diff --git a/accessapproval/v1/accessapproval-api.json b/accessapproval/v1/accessapproval-api.json index c3ffe1650d4..2e751fce6c3 100644 --- a/accessapproval/v1/accessapproval-api.json +++ b/accessapproval/v1/accessapproval-api.json @@ -913,7 +913,7 @@ } } }, - "revision": "20230303", + "revision": "20230324", "rootUrl": "https://accessapproval.googleapis.com/", "schemas": { "AccessApprovalServiceAccount": { @@ -1140,7 +1140,7 @@ "id": "EnrolledService", "properties": { "cloudProduct": { - "description": "The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): * all * GA * App Engine * Artifact Registry * BigQuery * Certificate Authority Service * Cloud Bigtable * Cloud Key Management Service * Compute Engine * Cloud Composer * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud EKM * Cloud HSM * Cloud Identity and Access Management * Cloud Logging * Cloud NAT * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * Cloud Storage * Google Kubernetes Engine * Organization Policy Serivice * Persistent Disk * Resource Manager * Secret Manager * Speaker ID Note: These values are supported as input for legacy purposes, but will not be returned from the API. * all * ga-only * appengine.googleapis.com * artifactregistry.googleapis.com * bigquery.googleapis.com * bigtable.googleapis.com * container.googleapis.com * cloudkms.googleapis.com * cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com * orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com * secretmanager.googleapis.com * speakerid.googleapis.com * storage.googleapis.com Calls to UpdateAccessApprovalSettings using 'all' or any of the XXX.googleapis.com will be translated to the associated product name ('all', 'App Engine', etc.). Note: 'all' will enroll the resource in all products supported at both 'GA' and 'Preview' levels. More information about levels of support is available at https://cloud.google.com/access-approval/docs/supported-services", + "description": "The product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive): * all * GA * App Engine * Artifact Registry * BigQuery * Certificate Authority Service * Cloud Bigtable * Cloud Key Management Service * Compute Engine * Cloud Composer * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud EKM * Cloud Firestore * Cloud HSM * Cloud Identity and Access Management * Cloud Logging * Cloud NAT * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * Cloud Storage * Google Kubernetes Engine * Organization Policy Serivice * Persistent Disk * Resource Manager * Secret Manager * Speaker ID Note: These values are supported as input for legacy purposes, but will not be returned from the API. * all * ga-only * appengine.googleapis.com * artifactregistry.googleapis.com * bigquery.googleapis.com * bigtable.googleapis.com * container.googleapis.com * cloudkms.googleapis.com * cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com * orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com * secretmanager.googleapis.com * speakerid.googleapis.com * storage.googleapis.com Calls to UpdateAccessApprovalSettings using 'all' or any of the XXX.googleapis.com will be translated to the associated product name ('all', 'App Engine', etc.). Note: 'all' will enroll the resource in all products supported at both 'GA' and 'Preview' levels. More information about levels of support is available at https://cloud.google.com/access-approval/docs/supported-services", "type": "string" }, "enrollmentLevel": { diff --git a/accessapproval/v1/accessapproval-gen.go b/accessapproval/v1/accessapproval-gen.go index 955dd2268af..23b07d1c184 100644 --- a/accessapproval/v1/accessapproval-gen.go +++ b/accessapproval/v1/accessapproval-gen.go @@ -630,14 +630,14 @@ type EnrolledService struct { // Engine * Artifact Registry * BigQuery * Certificate Authority Service // * Cloud Bigtable * Cloud Key Management Service * Compute Engine * // Cloud Composer * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud - // EKM * Cloud HSM * Cloud Identity and Access Management * Cloud - // Logging * Cloud NAT * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * - // Cloud Storage * Google Kubernetes Engine * Organization Policy - // Serivice * Persistent Disk * Resource Manager * Secret Manager * - // Speaker ID Note: These values are supported as input for legacy - // purposes, but will not be returned from the API. * all * ga-only * - // appengine.googleapis.com * artifactregistry.googleapis.com * - // bigquery.googleapis.com * bigtable.googleapis.com * + // EKM * Cloud Firestore * Cloud HSM * Cloud Identity and Access + // Management * Cloud Logging * Cloud NAT * Cloud Pub/Sub * Cloud + // Spanner * Cloud SQL * Cloud Storage * Google Kubernetes Engine * + // Organization Policy Serivice * Persistent Disk * Resource Manager * + // Secret Manager * Speaker ID Note: These values are supported as input + // for legacy purposes, but will not be returned from the API. * all * + // ga-only * appengine.googleapis.com * artifactregistry.googleapis.com + // * bigquery.googleapis.com * bigtable.googleapis.com * // container.googleapis.com * cloudkms.googleapis.com * // cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * // compute.googleapis.com * dataflow.googleapis.com * diff --git a/accesscontextmanager/v1/accesscontextmanager-api.json b/accesscontextmanager/v1/accesscontextmanager-api.json index 03e6c4d102d..23d90882d1a 100644 --- a/accesscontextmanager/v1/accesscontextmanager-api.json +++ b/accesscontextmanager/v1/accesscontextmanager-api.json @@ -1213,7 +1213,7 @@ "type": "string" }, "updateMask": { - "description": "Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and must always be: update_mask { paths: \"access_levels\" }", + "description": "Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and may only contain the following fields: `access_levels`, `dry_run_access_levels`. update_mask { paths: \"access_levels\" }", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1235,7 +1235,7 @@ } } }, - "revision": "20230312", + "revision": "20230326", "rootUrl": "https://accesscontextmanager.googleapis.com/", "schemas": { "AccessContextManagerOperationMetadata": { @@ -1729,7 +1729,7 @@ "id": "GcpUserAccessBinding", "properties": { "accessLevels": { - "description": "Required. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: \"accessPolicies/9522/accessLevels/device_trusted\"", + "description": "Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: \"accessPolicies/9522/accessLevels/device_trusted\"", "items": { "type": "string" }, diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index 304c7a0cc9f..a620f36e91b 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -1156,7 +1156,7 @@ func (s *Expr) MarshalJSON() ([]byte, error) { // GcpUserAccessBinding: Restricts access to Cloud Console and Google // Cloud APIs for a set of users using Context-Aware Access. type GcpUserAccessBinding struct { - // AccessLevels: Required. Access level that a user must have to be + // AccessLevels: Optional. Access level that a user must have to be // granted access. Only one access level is supported, not multiple. // This repeated field must have exactly one element. Example: // "accessPolicies/9522/accessLevels/device_trusted" @@ -8130,8 +8130,9 @@ func (r *OrganizationsGcpUserAccessBindingsService) Patch(name string, gcpuserac // UpdateMask sets the optional parameter "updateMask": Required. Only // the fields specified in this mask are updated. Because name and -// group_key cannot be changed, update_mask is required and must always -// be: update_mask { paths: "access_levels" } +// group_key cannot be changed, update_mask is required and may only +// contain the following fields: `access_levels`, +// `dry_run_access_levels`. update_mask { paths: "access_levels" } func (c *OrganizationsGcpUserAccessBindingsPatchCall) UpdateMask(updateMask string) *OrganizationsGcpUserAccessBindingsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -8244,7 +8245,7 @@ func (c *OrganizationsGcpUserAccessBindingsPatchCall) Do(opts ...googleapi.CallO // "type": "string" // }, // "updateMask": { - // "description": "Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and must always be: update_mask { paths: \"access_levels\" }", + // "description": "Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and may only contain the following fields: `access_levels`, `dry_run_access_levels`. update_mask { paths: \"access_levels\" }", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/admob/v1/admob-api.json b/admob/v1/admob-api.json index b73ea3411b5..d1491641926 100644 --- a/admob/v1/admob-api.json +++ b/admob/v1/admob-api.json @@ -321,7 +321,7 @@ } } }, - "revision": "20230112", + "revision": "20230330", "rootUrl": "https://admob.googleapis.com/", "schemas": { "AdUnit": { @@ -644,10 +644,10 @@ "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", "Mobile OS platform of the app (for example, \"Android\" or \"iOS\").", - "Mobile operating system version, e.g. \"iOS 13.5.1\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "GMA SDK version, e.g. \"iOS 7.62.0\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString. **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "Restriction mode for ads serving (e.g. \"Non-personalized ads\"). **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) metric." + "Mobile operating system version, e.g. \"iOS 13.5.1\".", + "GMA SDK version, e.g. \"iOS 7.62.0\".", + "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString.", + "Restriction mode for ads serving (e.g. \"Non-personalized ads\")." ], "type": "string" }, @@ -742,10 +742,10 @@ "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", "Mobile OS platform of the app (for example, \"Android\" or \"iOS\").", - "Mobile operating system version, e.g. \"iOS 13.5.1\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "GMA SDK version, e.g. \"iOS 7.62.0\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString. **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "Restriction mode for ads serving (e.g. \"Non-personalized ads\"). **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) metric." + "Mobile operating system version, e.g. \"iOS 13.5.1\".", + "GMA SDK version, e.g. \"iOS 7.62.0\".", + "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString.", + "Restriction mode for ads serving (e.g. \"Non-personalized ads\")." ], "type": "string" }, @@ -793,10 +793,10 @@ "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", "Mobile OS platform of the app (for example, \"Android\" or \"iOS\").", - "Mobile operating system version, e.g. \"iOS 13.5.1\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "GMA SDK version, e.g. \"iOS 7.62.0\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString. **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "Restriction mode for ads serving (e.g. \"Non-personalized ads\"). **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) metric." + "Mobile operating system version, e.g. \"iOS 13.5.1\".", + "GMA SDK version, e.g. \"iOS 7.62.0\".", + "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString.", + "Restriction mode for ads serving (e.g. \"Non-personalized ads\")." ], "type": "string" }, diff --git a/admob/v1/admob-gen.go b/admob/v1/admob-gen.go index 906c6c5b65a..04383d30436 100644 --- a/admob/v1/admob-gen.go +++ b/admob/v1/admob-gen.go @@ -851,23 +851,13 @@ type MediationReportSpec struct { // "PLATFORM" - Mobile OS platform of the app (for example, "Android" // or "iOS"). // "MOBILE_OS_VERSION" - Mobile operating system version, e.g. "iOS - // 13.5.1". **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // 13.5.1". // "GMA_SDK_VERSION" - GMA SDK version, e.g. "iOS 7.62.0". - // **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. // "APP_VERSION_NAME" - For Android, the app version name can be found // in versionName in PackageInfo. For iOS, the app version name can be - // found in CFBundleShortVersionString. **Warning:** The dimension is - // incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // found in CFBundleShortVersionString. // "SERVING_RESTRICTION" - Restriction mode for ads serving (e.g. - // "Non-personalized ads"). **Warning:** The dimension is incompatible - // with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) - // metric. + // "Non-personalized ads"). Dimensions []string `json:"dimensions,omitempty"` // LocalizationSettings: Localization settings of the report. @@ -988,23 +978,13 @@ type MediationReportSpecDimensionFilter struct { // "PLATFORM" - Mobile OS platform of the app (for example, "Android" // or "iOS"). // "MOBILE_OS_VERSION" - Mobile operating system version, e.g. "iOS - // 13.5.1". **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // 13.5.1". // "GMA_SDK_VERSION" - GMA SDK version, e.g. "iOS 7.62.0". - // **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. // "APP_VERSION_NAME" - For Android, the app version name can be found // in versionName in PackageInfo. For iOS, the app version name can be - // found in CFBundleShortVersionString. **Warning:** The dimension is - // incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // found in CFBundleShortVersionString. // "SERVING_RESTRICTION" - Restriction mode for ads serving (e.g. - // "Non-personalized ads"). **Warning:** The dimension is incompatible - // with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) - // metric. + // "Non-personalized ads"). Dimension string `json:"dimension,omitempty"` // MatchesAny: Matches a row if its value for the specified dimension is @@ -1071,23 +1051,13 @@ type MediationReportSpecSortCondition struct { // "PLATFORM" - Mobile OS platform of the app (for example, "Android" // or "iOS"). // "MOBILE_OS_VERSION" - Mobile operating system version, e.g. "iOS - // 13.5.1". **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // 13.5.1". // "GMA_SDK_VERSION" - GMA SDK version, e.g. "iOS 7.62.0". - // **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. // "APP_VERSION_NAME" - For Android, the app version name can be found // in versionName in PackageInfo. For iOS, the app version name can be - // found in CFBundleShortVersionString. **Warning:** The dimension is - // incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // found in CFBundleShortVersionString. // "SERVING_RESTRICTION" - Restriction mode for ads serving (e.g. - // "Non-personalized ads"). **Warning:** The dimension is incompatible - // with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) - // metric. + // "Non-personalized ads"). Dimension string `json:"dimension,omitempty"` // Metric: Sort by the specified metric. diff --git a/admob/v1beta/admob-api.json b/admob/v1beta/admob-api.json index fbef50eca64..760edede70c 100644 --- a/admob/v1beta/admob-api.json +++ b/admob/v1beta/admob-api.json @@ -359,7 +359,7 @@ } } }, - "revision": "20230112", + "revision": "20230330", "rootUrl": "https://admob.googleapis.com/", "schemas": { "AdSource": { @@ -719,10 +719,10 @@ "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", "Mobile OS platform of the app (for example, \"Android\" or \"iOS\").", - "Mobile operating system version, e.g. \"iOS 13.5.1\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "GMA SDK version, e.g. \"iOS 7.62.0\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString. **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "Restriction mode for ads serving (e.g. \"Non-personalized ads\"). **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) metric." + "Mobile operating system version, e.g. \"iOS 13.5.1\".", + "GMA SDK version, e.g. \"iOS 7.62.0\".", + "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString.", + "Restriction mode for ads serving (e.g. \"Non-personalized ads\")." ], "type": "string" }, @@ -817,10 +817,10 @@ "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", "Mobile OS platform of the app (for example, \"Android\" or \"iOS\").", - "Mobile operating system version, e.g. \"iOS 13.5.1\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "GMA SDK version, e.g. \"iOS 7.62.0\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString. **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "Restriction mode for ads serving (e.g. \"Non-personalized ads\"). **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) metric." + "Mobile operating system version, e.g. \"iOS 13.5.1\".", + "GMA SDK version, e.g. \"iOS 7.62.0\".", + "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString.", + "Restriction mode for ads serving (e.g. \"Non-personalized ads\")." ], "type": "string" }, @@ -868,10 +868,10 @@ "CLDR country code of the place where the ad views/clicks occur (for example, \"US\" or \"FR\"). This is a geography dimension.", "Format of the ad unit (for example, \"banner\", \"native\"), an ad delivery dimension.", "Mobile OS platform of the app (for example, \"Android\" or \"iOS\").", - "Mobile operating system version, e.g. \"iOS 13.5.1\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "GMA SDK version, e.g. \"iOS 7.62.0\". **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString. **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics.", - "Restriction mode for ads serving (e.g. \"Non-personalized ads\"). **Warning:** The dimension is incompatible with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) metric." + "Mobile operating system version, e.g. \"iOS 13.5.1\".", + "GMA SDK version, e.g. \"iOS 7.62.0\".", + "For Android, the app version name can be found in versionName in PackageInfo. For iOS, the app version name can be found in CFBundleShortVersionString.", + "Restriction mode for ads serving (e.g. \"Non-personalized ads\")." ], "type": "string" }, diff --git a/admob/v1beta/admob-gen.go b/admob/v1beta/admob-gen.go index 83d512b0ff8..71f35626305 100644 --- a/admob/v1beta/admob-gen.go +++ b/admob/v1beta/admob-gen.go @@ -935,23 +935,13 @@ type MediationReportSpec struct { // "PLATFORM" - Mobile OS platform of the app (for example, "Android" // or "iOS"). // "MOBILE_OS_VERSION" - Mobile operating system version, e.g. "iOS - // 13.5.1". **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // 13.5.1". // "GMA_SDK_VERSION" - GMA SDK version, e.g. "iOS 7.62.0". - // **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. // "APP_VERSION_NAME" - For Android, the app version name can be found // in versionName in PackageInfo. For iOS, the app version name can be - // found in CFBundleShortVersionString. **Warning:** The dimension is - // incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // found in CFBundleShortVersionString. // "SERVING_RESTRICTION" - Restriction mode for ads serving (e.g. - // "Non-personalized ads"). **Warning:** The dimension is incompatible - // with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) - // metric. + // "Non-personalized ads"). Dimensions []string `json:"dimensions,omitempty"` // LocalizationSettings: Localization settings of the report. @@ -1072,23 +1062,13 @@ type MediationReportSpecDimensionFilter struct { // "PLATFORM" - Mobile OS platform of the app (for example, "Android" // or "iOS"). // "MOBILE_OS_VERSION" - Mobile operating system version, e.g. "iOS - // 13.5.1". **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // 13.5.1". // "GMA_SDK_VERSION" - GMA SDK version, e.g. "iOS 7.62.0". - // **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. // "APP_VERSION_NAME" - For Android, the app version name can be found // in versionName in PackageInfo. For iOS, the app version name can be - // found in CFBundleShortVersionString. **Warning:** The dimension is - // incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // found in CFBundleShortVersionString. // "SERVING_RESTRICTION" - Restriction mode for ads serving (e.g. - // "Non-personalized ads"). **Warning:** The dimension is incompatible - // with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) - // metric. + // "Non-personalized ads"). Dimension string `json:"dimension,omitempty"` // MatchesAny: Matches a row if its value for the specified dimension is @@ -1155,23 +1135,13 @@ type MediationReportSpecSortCondition struct { // "PLATFORM" - Mobile OS platform of the app (for example, "Android" // or "iOS"). // "MOBILE_OS_VERSION" - Mobile operating system version, e.g. "iOS - // 13.5.1". **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // 13.5.1". // "GMA_SDK_VERSION" - GMA SDK version, e.g. "iOS 7.62.0". - // **Warning:** The dimension is incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. // "APP_VERSION_NAME" - For Android, the app version name can be found // in versionName in PackageInfo. For iOS, the app version name can be - // found in CFBundleShortVersionString. **Warning:** The dimension is - // incompatible with - // [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS), - // [OBSERVED_ECPM](#Metric.ENUM_VALUES.OBSERVED_ECPM) metrics. + // found in CFBundleShortVersionString. // "SERVING_RESTRICTION" - Restriction mode for ads serving (e.g. - // "Non-personalized ads"). **Warning:** The dimension is incompatible - // with [ESTIMATED_EARNINGS](#Metric.ENUM_VALUES.ESTIMATED_EARNINGS) - // metric. + // "Non-personalized ads"). Dimension string `json:"dimension,omitempty"` // Metric: Sort by the specified metric. diff --git a/adsense/v2/adsense-api.json b/adsense/v2/adsense-api.json index d0b152b4b00..31f9e67c3b7 100644 --- a/adsense/v2/adsense-api.json +++ b/adsense/v2/adsense-api.json @@ -905,6 +905,7 @@ "CUSTOM_CHANNEL_ID", "OWNED_SITE_DOMAIN_NAME", "OWNED_SITE_ID", + "PAGE_URL", "URL_CHANNEL_NAME", "URL_CHANNEL_ID", "BUYER_NETWORK_NAME", @@ -954,6 +955,7 @@ "Unique ID of a custom channel. The members of this dimension match the values from CustomChannel.reporting_dimension_id.", "Domain name of a verified site (e.g. \"example.com\"). The members of this dimension match the values from Site.domain.", "Unique ID of a verified site. The members of this dimension match the values from Site.reporting_dimension_id.", + "URL of the page upon which the ad was served. This is a complete URL including scheme and query parameters. Note that the URL that appears in this dimension may be a canonicalized version of the one that was used in the original request, and so may not exactly match the URL that a user might have seen. Note that there are also some caveats to be aware of when using this dimension. For more information, see [Page URL breakdown](https://support.google.com/adsense/answer/11988478).", "Name of a URL channel. The members of this dimension match the values from UrlChannel.uri_pattern.", "Unique ID of a URL channel. The members of this dimension match the values from UrlChannel.reporting_dimension_id.", "Name of an ad network that returned the winning ads for an ad request (e.g. \"Google AdWords\"). Note that unlike other \"NAME\" dimensions, the members of this dimensions are not localized.", @@ -1215,6 +1217,7 @@ "CUSTOM_CHANNEL_ID", "OWNED_SITE_DOMAIN_NAME", "OWNED_SITE_ID", + "PAGE_URL", "URL_CHANNEL_NAME", "URL_CHANNEL_ID", "BUYER_NETWORK_NAME", @@ -1264,6 +1267,7 @@ "Unique ID of a custom channel. The members of this dimension match the values from CustomChannel.reporting_dimension_id.", "Domain name of a verified site (e.g. \"example.com\"). The members of this dimension match the values from Site.domain.", "Unique ID of a verified site. The members of this dimension match the values from Site.reporting_dimension_id.", + "URL of the page upon which the ad was served. This is a complete URL including scheme and query parameters. Note that the URL that appears in this dimension may be a canonicalized version of the one that was used in the original request, and so may not exactly match the URL that a user might have seen. Note that there are also some caveats to be aware of when using this dimension. For more information, see [Page URL breakdown](https://support.google.com/adsense/answer/11988478).", "Name of a URL channel. The members of this dimension match the values from UrlChannel.uri_pattern.", "Unique ID of a URL channel. The members of this dimension match the values from UrlChannel.reporting_dimension_id.", "Name of an ad network that returned the winning ads for an ad request (e.g. \"Google AdWords\"). Note that unlike other \"NAME\" dimensions, the members of this dimensions are not localized.", @@ -1824,7 +1828,7 @@ } } }, - "revision": "20221201", + "revision": "20230330", "rootUrl": "https://adsense.googleapis.com/", "schemas": { "Account": { diff --git a/adsense/v2/adsense-gen.go b/adsense/v2/adsense-gen.go index 8449f5a7675..cc9baf1cdd2 100644 --- a/adsense/v2/adsense-gen.go +++ b/adsense/v2/adsense-gen.go @@ -5606,6 +5606,16 @@ func (c *AccountsReportsGenerateCall) DateRange(dateRange string) *AccountsRepor // // dimension match the values from Site.reporting_dimension_id. // +// "PAGE_URL" - URL of the page upon which the ad was served. This is +// +// a complete URL including scheme and query parameters. Note that the +// URL that appears in this dimension may be a canonicalized version of +// the one that was used in the original request, and so may not exactly +// match the URL that a user might have seen. Note that there are also +// some caveats to be aware of when using this dimension. For more +// information, see [Page URL +// breakdown](https://support.google.com/adsense/answer/11988478). +// // "URL_CHANNEL_NAME" - Name of a URL channel. The members of this // // dimension match the values from UrlChannel.uri_pattern. @@ -6124,6 +6134,7 @@ func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*ReportR // "CUSTOM_CHANNEL_ID", // "OWNED_SITE_DOMAIN_NAME", // "OWNED_SITE_ID", + // "PAGE_URL", // "URL_CHANNEL_NAME", // "URL_CHANNEL_ID", // "BUYER_NETWORK_NAME", @@ -6173,6 +6184,7 @@ func (c *AccountsReportsGenerateCall) Do(opts ...googleapi.CallOption) (*ReportR // "Unique ID of a custom channel. The members of this dimension match the values from CustomChannel.reporting_dimension_id.", // "Domain name of a verified site (e.g. \"example.com\"). The members of this dimension match the values from Site.domain.", // "Unique ID of a verified site. The members of this dimension match the values from Site.reporting_dimension_id.", + // "URL of the page upon which the ad was served. This is a complete URL including scheme and query parameters. Note that the URL that appears in this dimension may be a canonicalized version of the one that was used in the original request, and so may not exactly match the URL that a user might have seen. Note that there are also some caveats to be aware of when using this dimension. For more information, see [Page URL breakdown](https://support.google.com/adsense/answer/11988478).", // "Name of a URL channel. The members of this dimension match the values from UrlChannel.uri_pattern.", // "Unique ID of a URL channel. The members of this dimension match the values from UrlChannel.reporting_dimension_id.", // "Name of an ad network that returned the winning ads for an ad request (e.g. \"Google AdWords\"). Note that unlike other \"NAME\" dimensions, the members of this dimensions are not localized.", @@ -6502,6 +6514,16 @@ func (c *AccountsReportsGenerateCsvCall) DateRange(dateRange string) *AccountsRe // // dimension match the values from Site.reporting_dimension_id. // +// "PAGE_URL" - URL of the page upon which the ad was served. This is +// +// a complete URL including scheme and query parameters. Note that the +// URL that appears in this dimension may be a canonicalized version of +// the one that was used in the original request, and so may not exactly +// match the URL that a user might have seen. Note that there are also +// some caveats to be aware of when using this dimension. For more +// information, see [Page URL +// breakdown](https://support.google.com/adsense/answer/11988478). +// // "URL_CHANNEL_NAME" - Name of a URL channel. The members of this // // dimension match the values from UrlChannel.uri_pattern. @@ -7020,6 +7042,7 @@ func (c *AccountsReportsGenerateCsvCall) Do(opts ...googleapi.CallOption) (*Http // "CUSTOM_CHANNEL_ID", // "OWNED_SITE_DOMAIN_NAME", // "OWNED_SITE_ID", + // "PAGE_URL", // "URL_CHANNEL_NAME", // "URL_CHANNEL_ID", // "BUYER_NETWORK_NAME", @@ -7069,6 +7092,7 @@ func (c *AccountsReportsGenerateCsvCall) Do(opts ...googleapi.CallOption) (*Http // "Unique ID of a custom channel. The members of this dimension match the values from CustomChannel.reporting_dimension_id.", // "Domain name of a verified site (e.g. \"example.com\"). The members of this dimension match the values from Site.domain.", // "Unique ID of a verified site. The members of this dimension match the values from Site.reporting_dimension_id.", + // "URL of the page upon which the ad was served. This is a complete URL including scheme and query parameters. Note that the URL that appears in this dimension may be a canonicalized version of the one that was used in the original request, and so may not exactly match the URL that a user might have seen. Note that there are also some caveats to be aware of when using this dimension. For more information, see [Page URL breakdown](https://support.google.com/adsense/answer/11988478).", // "Name of a URL channel. The members of this dimension match the values from UrlChannel.uri_pattern.", // "Unique ID of a URL channel. The members of this dimension match the values from UrlChannel.reporting_dimension_id.", // "Name of an ad network that returned the winning ads for an ad request (e.g. \"Google AdWords\"). Note that unlike other \"NAME\" dimensions, the members of this dimensions are not localized.", diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index bc7625d7c74..fafc1d866ee 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -3886,7 +3886,7 @@ } } }, - "revision": "20230307", + "revision": "20230330", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -5910,7 +5910,7 @@ }, "dimensionFilterExpression": { "$ref": "GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression", - "description": "Immutable. A logical expression of ExpandedDataSet filters applied to dimension included in the ExpandedDataSet. This filter is used to reduce the number of rows and thus the change of encountering `other row`." + "description": "Immutable. A logical expression of ExpandedDataSet filters applied to dimension included in the ExpandedDataSet. This filter is used to reduce the number of rows and thus the chance of encountering `other` row." }, "dimensionNames": { "description": "Immutable. The list of dimensions included in the ExpandedDataSet. See the [API Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) for the list of dimension names.", @@ -5971,7 +5971,7 @@ }, "notExpression": { "$ref": "GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression", - "description": "A filter expression to be NOT'ed (i.e., inverted, complemented). It must include a dimension_filter. This cannot be set on the top level ExpandedDataSetFilterExpression." + "description": "A filter expression to be NOT'ed (that is, inverted, complemented). It must include a dimension_filter. This cannot be set on the top level ExpandedDataSetFilterExpression." } }, "type": "object" @@ -7036,7 +7036,6 @@ "DATA_STREAM", "ATTRIBUTION_SETTINGS", "EXPANDED_DATA_SET", - "CHANNEL_GROUP", "ENHANCED_MEASUREMENT_SETTINGS" ], "enumDescriptions": [ @@ -7057,7 +7056,6 @@ "DataStream resource", "AttributionSettings resource", "ExpandedDataSet resource", - "ChannelGroup resource", "EnhancedMeasurementSettings resource" ], "type": "string" diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 2476916f08c..f2d063dfd18 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -3942,7 +3942,7 @@ type GoogleAnalyticsAdminV1alphaExpandedDataSet struct { // DimensionFilterExpression: Immutable. A logical expression of // ExpandedDataSet filters applied to dimension included in the // ExpandedDataSet. This filter is used to reduce the number of rows and - // thus the change of encountering `other row`. + // thus the chance of encountering `other` row. DimensionFilterExpression *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression `json:"dimensionFilterExpression,omitempty"` // DimensionNames: Immutable. The list of dimensions included in the @@ -4045,7 +4045,7 @@ type GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression struct { // level ExpandedDataSetFilterExpression. Filter *GoogleAnalyticsAdminV1alphaExpandedDataSetFilter `json:"filter,omitempty"` - // NotExpression: A filter expression to be NOT'ed (i.e., inverted, + // NotExpression: A filter expression to be NOT'ed (that is, inverted, // complemented). It must include a dimension_filter. This cannot be set // on the top level ExpandedDataSetFilterExpression. NotExpression *GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression `json:"notExpression,omitempty"` @@ -5923,7 +5923,6 @@ type GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest struct { // "DATA_STREAM" - DataStream resource // "ATTRIBUTION_SETTINGS" - AttributionSettings resource // "EXPANDED_DATA_SET" - ExpandedDataSet resource - // "CHANNEL_GROUP" - ChannelGroup resource // "ENHANCED_MEASUREMENT_SETTINGS" - EnhancedMeasurementSettings // resource ResourceType []string `json:"resourceType,omitempty"` diff --git a/analyticsadmin/v1beta/analyticsadmin-api.json b/analyticsadmin/v1beta/analyticsadmin-api.json index 67fccd10795..587a04c918e 100644 --- a/analyticsadmin/v1beta/analyticsadmin-api.json +++ b/analyticsadmin/v1beta/analyticsadmin-api.json @@ -1594,7 +1594,7 @@ } } }, - "revision": "20230308", + "revision": "20230330", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1betaAccessBetweenFilter": { @@ -3170,11 +3170,8 @@ "DATA_RETENTION_SETTINGS", "DISPLAY_VIDEO_360_ADVERTISER_LINK", "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL", - "SEARCH_ADS_360_LINK", "DATA_STREAM", - "ATTRIBUTION_SETTINGS", - "EXPANDED_DATA_SET", - "CHANNEL_GROUP" + "ATTRIBUTION_SETTINGS" ], "enumDescriptions": [ "Resource type unknown or not specified.", @@ -3188,11 +3185,8 @@ "DataRetentionSettings resource", "DisplayVideo360AdvertiserLink resource", "DisplayVideo360AdvertiserLinkProposal resource", - "SearchAds360Link resource", "DataStream resource", - "AttributionSettings resource", - "ExpandedDataSet resource", - "ChannelGroup resource" + "AttributionSettings resource" ], "type": "string" }, diff --git a/analyticsadmin/v1beta/analyticsadmin-gen.go b/analyticsadmin/v1beta/analyticsadmin-gen.go index 7df7cb685f8..d3b76de6228 100644 --- a/analyticsadmin/v1beta/analyticsadmin-gen.go +++ b/analyticsadmin/v1beta/analyticsadmin-gen.go @@ -2848,11 +2848,8 @@ type GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest struct { // resource // "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL" - // DisplayVideo360AdvertiserLinkProposal resource - // "SEARCH_ADS_360_LINK" - SearchAds360Link resource // "DATA_STREAM" - DataStream resource // "ATTRIBUTION_SETTINGS" - AttributionSettings resource - // "EXPANDED_DATA_SET" - ExpandedDataSet resource - // "CHANNEL_GROUP" - ChannelGroup resource ResourceType []string `json:"resourceType,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to diff --git a/analyticshub/v1/analyticshub-api.json b/analyticshub/v1/analyticshub-api.json index c97306c5329..661dee2838c 100644 --- a/analyticshub/v1/analyticshub-api.json +++ b/analyticshub/v1/analyticshub-api.json @@ -695,7 +695,7 @@ } } }, - "revision": "20230220", + "revision": "20230324", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AuditConfig": { @@ -1199,10 +1199,6 @@ "description": "If true, enable restricted export.", "type": "boolean" }, - "restrictDirectTableAccess": { - "description": "If true, restrict direct table access(read api/tabledata.list) on linked table.", - "type": "boolean" - }, "restrictQueryResult": { "description": "If true, restrict export of query result derived from restricted linked dataset table.", "type": "boolean" diff --git a/analyticshub/v1/analyticshub-gen.go b/analyticshub/v1/analyticshub-gen.go index 90f91a85132..c25ee1059ca 100644 --- a/analyticshub/v1/analyticshub-gen.go +++ b/analyticshub/v1/analyticshub-gen.go @@ -1190,10 +1190,6 @@ type RestrictedExportConfig struct { // Enabled: If true, enable restricted export. Enabled bool `json:"enabled,omitempty"` - // RestrictDirectTableAccess: If true, restrict direct table access(read - // api/tabledata.list) on linked table. - RestrictDirectTableAccess bool `json:"restrictDirectTableAccess,omitempty"` - // RestrictQueryResult: If true, restrict export of query result derived // from restricted linked dataset table. RestrictQueryResult bool `json:"restrictQueryResult,omitempty"` diff --git a/analyticshub/v1beta1/analyticshub-api.json b/analyticshub/v1beta1/analyticshub-api.json index ee8c1b74db1..2f9f390c8b7 100644 --- a/analyticshub/v1beta1/analyticshub-api.json +++ b/analyticshub/v1beta1/analyticshub-api.json @@ -695,7 +695,7 @@ } } }, - "revision": "20230220", + "revision": "20230324", "rootUrl": "https://analyticshub.googleapis.com/", "schemas": { "AuditConfig": { @@ -1199,10 +1199,6 @@ "description": "If true, enable restricted export.", "type": "boolean" }, - "restrictDirectTableAccess": { - "description": "If true, restrict direct table access(read api/tabledata.list) on linked table.", - "type": "boolean" - }, "restrictQueryResult": { "description": "If true, restrict export of query result derived from restricted linked dataset table.", "type": "boolean" diff --git a/analyticshub/v1beta1/analyticshub-gen.go b/analyticshub/v1beta1/analyticshub-gen.go index d6133689c8f..554795a9039 100644 --- a/analyticshub/v1beta1/analyticshub-gen.go +++ b/analyticshub/v1beta1/analyticshub-gen.go @@ -1190,10 +1190,6 @@ type RestrictedExportConfig struct { // Enabled: If true, enable restricted export. Enabled bool `json:"enabled,omitempty"` - // RestrictDirectTableAccess: If true, restrict direct table access(read - // api/tabledata.list) on linked table. - RestrictDirectTableAccess bool `json:"restrictDirectTableAccess,omitempty"` - // RestrictQueryResult: If true, restrict export of query result derived // from restricted linked dataset table. RestrictQueryResult bool `json:"restrictQueryResult,omitempty"` diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 5a2fadb09da..c8d6391c8f1 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -1713,7 +1713,7 @@ "type": "string" }, "track": { - "description": "Identifier of the track.", + "description": "Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)", "location": "path", "required": true, "type": "string" @@ -1782,7 +1782,7 @@ "type": "string" }, "track": { - "description": "Identifier of the track.", + "description": "Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)", "location": "path", "required": true, "type": "string" @@ -1823,7 +1823,7 @@ "type": "string" }, "track": { - "description": "Identifier of the track.", + "description": "Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)", "location": "path", "required": true, "type": "string" @@ -3955,7 +3955,7 @@ } } }, - "revision": "20230315", + "revision": "20230330", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "AcquisitionTargetingRule": { @@ -6660,7 +6660,7 @@ "type": "array" }, "track": { - "description": "Identifier of the track.", + "description": "Identifier of the track. Form factor tracks have a special prefix as an identifier, for example `wear:production`, `automotive:production`. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)", "type": "string" } }, diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index dab99a36e25..aa02a65f067 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -5335,7 +5335,10 @@ type Track struct { // track. In an update request, represents desired changes. Releases []*TrackRelease `json:"releases,omitempty"` - // Track: Identifier of the track. + // Track: Identifier of the track. Form factor tracks have a special + // prefix as an identifier, for example `wear:production`, + // `automotive:production`. More on track name + // (https://developers.google.com/android-publisher/tracks#ff-track-name) Track string `json:"track,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -12146,9 +12149,10 @@ type EditsTracksGetCall struct { // Get: Gets a track. // -// - editId: Identifier of the edit. -// - packageName: Package name of the app. -// - track: Identifier of the track. +// - editId: Identifier of the edit. +// - packageName: Package name of the app. +// - track: Identifier of the track. More on track name +// (https://developers.google.com/android-publisher/tracks#ff-track-name). func (r *EditsTracksService) Get(packageName string, editId string, track string) *EditsTracksGetCall { c := &EditsTracksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.packageName = packageName @@ -12281,7 +12285,7 @@ func (c *EditsTracksGetCall) Do(opts ...googleapi.CallOption) (*Track, error) { // "type": "string" // }, // "track": { - // "description": "Identifier of the track.", + // "description": "Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)", // "location": "path", // "required": true, // "type": "string" @@ -12469,9 +12473,10 @@ type EditsTracksPatchCall struct { // Patch: Patches a track. // -// - editId: Identifier of the edit. -// - packageName: Package name of the app. -// - track: Identifier of the track. +// - editId: Identifier of the edit. +// - packageName: Package name of the app. +// - track: Identifier of the track. More on track name +// (https://developers.google.com/android-publisher/tracks#ff-track-name). func (r *EditsTracksService) Patch(packageName string, editId string, track string, track2 *Track) *EditsTracksPatchCall { c := &EditsTracksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.packageName = packageName @@ -12597,7 +12602,7 @@ func (c *EditsTracksPatchCall) Do(opts ...googleapi.CallOption) (*Track, error) // "type": "string" // }, // "track": { - // "description": "Identifier of the track.", + // "description": "Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)", // "location": "path", // "required": true, // "type": "string" @@ -12632,9 +12637,10 @@ type EditsTracksUpdateCall struct { // Update: Updates a track. // -// - editId: Identifier of the edit. -// - packageName: Package name of the app. -// - track: Identifier of the track. +// - editId: Identifier of the edit. +// - packageName: Package name of the app. +// - track: Identifier of the track. More on track name +// (https://developers.google.com/android-publisher/tracks#ff-track-name). func (r *EditsTracksService) Update(packageName string, editId string, track string, track2 *Track) *EditsTracksUpdateCall { c := &EditsTracksUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.packageName = packageName @@ -12760,7 +12766,7 @@ func (c *EditsTracksUpdateCall) Do(opts ...googleapi.CallOption) (*Track, error) // "type": "string" // }, // "track": { - // "description": "Identifier of the track.", + // "description": "Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)", // "location": "path", // "required": true, // "type": "string" diff --git a/api-list.json b/api-list.json index f560791dc07..53a23ff25e6 100644 --- a/api-list.json +++ b/api-list.json @@ -2781,6 +2781,21 @@ "documentationLink": "https://firebase.google.com/docs/app-check", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "firebaseappdistribution:v1", + "name": "firebaseappdistribution", + "version": "v1", + "title": "Firebase App Distribution API", + "description": "", + "discoveryRestUrl": "https://firebaseappdistribution.googleapis.com/$discovery/rest?version=v1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://firebase.google.com/products/app-distribution", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "firebasedatabase:v1beta", diff --git a/appengine/v1/appengine-api.json b/appengine/v1/appengine-api.json index 01928639ee6..61f31144526 100644 --- a/appengine/v1/appengine-api.json +++ b/appengine/v1/appengine-api.json @@ -118,7 +118,13 @@ "httpMethod": "POST", "id": "appengine.apps.create", "parameterOrder": [], - "parameters": {}, + "parameters": { + "parent": { + "description": "The project and location in which the application should be created, specified in the format projects/*/locations/*", + "location": "query", + "type": "string" + } + }, "path": "v1/apps", "request": { "$ref": "Application" @@ -1600,6 +1606,40 @@ "resources": { "applications": { "methods": { + "create": { + "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications", + "httpMethod": "POST", + "id": "appengine.projects.locations.applications.create", + "parameterOrder": [ + "projectsId", + "locationsId" + ], + "parameters": { + "locationsId": { + "description": "Part of `parent`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "projectsId": { + "description": "Part of `parent`. The project and location in which the application should be created, specified in the format projects/*/locations/*", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectsId}/locations/{locationsId}/applications", + "request": { + "$ref": "Application" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets information about an application.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", @@ -1647,7 +1687,7 @@ } } }, - "revision": "20230306", + "revision": "20230320", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -1733,7 +1773,8 @@ "type": "string" }, "codeBucket": { - "description": "Google Cloud Storage bucket that can be used for storing files associated with this application. This bucket is associated with the application and can be used by the gcloud deployment commands.@OutputOnly", + "description": "Output only. Google Cloud Storage bucket that can be used for storing files associated with this application. This bucket is associated with the application and can be used by the gcloud deployment commands.@OutputOnly", + "readOnly": true, "type": "string" }, "databaseType": { @@ -1753,7 +1794,8 @@ "type": "string" }, "defaultBucket": { - "description": "Google Cloud Storage bucket that can be used by this application to store content.@OutputOnly", + "description": "Output only. Google Cloud Storage bucket that can be used by this application to store content.@OutputOnly", + "readOnly": true, "type": "string" }, "defaultCookieExpiration": { @@ -1762,7 +1804,8 @@ "type": "string" }, "defaultHostname": { - "description": "Hostname used to reach this application, as resolved by App Engine.@OutputOnly", + "description": "Output only. Hostname used to reach this application, as resolved by App Engine.@OutputOnly", + "readOnly": true, "type": "string" }, "dispatchRules": { @@ -1777,7 +1820,8 @@ "description": "The feature specific settings to be used in the application." }, "gcrDomain": { - "description": "The Google Container Registry domain used for storing managed build docker images for this application.", + "description": "Output only. The Google Container Registry domain used for storing managed build docker images for this application.", + "readOnly": true, "type": "string" }, "iap": { @@ -1792,7 +1836,8 @@ "type": "string" }, "name": { - "description": "Full path to the Application resource in the API. Example: apps/myapp.@OutputOnly", + "description": "Output only. Full path to the Application resource in the API. Example: apps/myapp.@OutputOnly", + "readOnly": true, "type": "string" }, "serviceAccount": { @@ -2421,7 +2466,8 @@ "type": "string" }, "oauth2ClientSecretSha256": { - "description": "Hex-encoded SHA-256 hash of the client secret.@OutputOnly", + "description": "Output only. Hex-encoded SHA-256 hash of the client secret.@OutputOnly", + "readOnly": true, "type": "string" } }, diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index 7f1801a811a..52b64277331 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -432,10 +432,10 @@ type Application struct { // Google Account. AuthDomain string `json:"authDomain,omitempty"` - // CodeBucket: Google Cloud Storage bucket that can be used for storing - // files associated with this application. This bucket is associated - // with the application and can be used by the gcloud deployment - // commands.@OutputOnly + // CodeBucket: Output only. Google Cloud Storage bucket that can be used + // for storing files associated with this application. This bucket is + // associated with the application and can be used by the gcloud + // deployment commands.@OutputOnly CodeBucket string `json:"codeBucket,omitempty"` // DatabaseType: The type of the Cloud Firestore or Cloud Datastore @@ -448,16 +448,16 @@ type Application struct { // "CLOUD_DATASTORE_COMPATIBILITY" - Cloud Firestore in Datastore Mode DatabaseType string `json:"databaseType,omitempty"` - // DefaultBucket: Google Cloud Storage bucket that can be used by this - // application to store content.@OutputOnly + // DefaultBucket: Output only. Google Cloud Storage bucket that can be + // used by this application to store content.@OutputOnly DefaultBucket string `json:"defaultBucket,omitempty"` // DefaultCookieExpiration: Cookie expiration policy for this // application. DefaultCookieExpiration string `json:"defaultCookieExpiration,omitempty"` - // DefaultHostname: Hostname used to reach this application, as resolved - // by App Engine.@OutputOnly + // DefaultHostname: Output only. Hostname used to reach this + // application, as resolved by App Engine.@OutputOnly DefaultHostname string `json:"defaultHostname,omitempty"` // DispatchRules: HTTP path dispatch rules for requests to the @@ -469,8 +469,8 @@ type Application struct { // application. FeatureSettings *FeatureSettings `json:"featureSettings,omitempty"` - // GcrDomain: The Google Container Registry domain used for storing - // managed build docker images for this application. + // GcrDomain: Output only. The Google Container Registry domain used for + // storing managed build docker images for this application. GcrDomain string `json:"gcrDomain,omitempty"` Iap *IdentityAwareProxy `json:"iap,omitempty"` @@ -487,8 +487,8 @@ type Application struct { // (https://cloud.google.com/appengine/docs/locations). LocationId string `json:"locationId,omitempty"` - // Name: Full path to the Application resource in the API. Example: - // apps/myapp.@OutputOnly + // Name: Output only. Full path to the Application resource in the API. + // Example: apps/myapp.@OutputOnly Name string `json:"name,omitempty"` // ServiceAccount: The service account associated with the application. @@ -1684,8 +1684,8 @@ type IdentityAwareProxy struct { // returned in the oauth2_client_secret_sha256 field.@InputOnly Oauth2ClientSecret string `json:"oauth2ClientSecret,omitempty"` - // Oauth2ClientSecretSha256: Hex-encoded SHA-256 hash of the client - // secret.@OutputOnly + // Oauth2ClientSecretSha256: Output only. Hex-encoded SHA-256 hash of + // the client secret.@OutputOnly Oauth2ClientSecretSha256 string `json:"oauth2ClientSecretSha256,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to @@ -4234,6 +4234,14 @@ func (r *AppsService) Create(application *Application) *AppsCreateCall { return c } +// Parent sets the optional parameter "parent": The project and location +// in which the application should be created, specified in the format +// projects/*/locations/* +func (c *AppsCreateCall) Parent(parent string) *AppsCreateCall { + c.urlParams_.Set("parent", parent) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4327,7 +4335,13 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { // "httpMethod": "POST", // "id": "appengine.apps.create", // "parameterOrder": [], - // "parameters": {}, + // "parameters": { + // "parent": { + // "description": "The project and location in which the application should be created, specified in the format projects/*/locations/*", + // "location": "query", + // "type": "string" + // } + // }, // "path": "v1/apps", // "request": { // "$ref": "Application" @@ -10825,6 +10839,166 @@ func (c *AppsServicesVersionsInstancesListCall) Pages(ctx context.Context, f fun } } +// method id "appengine.projects.locations.applications.create": + +type ProjectsLocationsApplicationsCreateCall struct { + s *APIService + projectsId string + locationsId string + application *Application + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an App Engine application for a Google Cloud Platform +// project. Required fields: id - The ID of the target Cloud Platform +// project. location - The region +// (https://cloud.google.com/appengine/docs/locations) where you want +// the App Engine application located.For more information about App +// Engine applications, see Managing Projects, Applications, and Billing +// (https://cloud.google.com/appengine/docs/standard/python/console/). +// +// - locationsId: Part of `parent`. See documentation of `projectsId`. +// - projectsId: Part of `parent`. The project and location in which the +// application should be created, specified in the format +// projects/*/locations/*. +func (r *ProjectsLocationsApplicationsService) Create(projectsId string, locationsId string, application *Application) *ProjectsLocationsApplicationsCreateCall { + c := &ProjectsLocationsApplicationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + c.application = application + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsApplicationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsApplicationsCreateCall) Context(ctx context.Context) *ProjectsLocationsApplicationsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsApplicationsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsApplicationsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.application) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectsId}/locations/{locationsId}/applications") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.applications.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsApplicationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications", + // "httpMethod": "POST", + // "id": "appengine.projects.locations.applications.create", + // "parameterOrder": [ + // "projectsId", + // "locationsId" + // ], + // "parameters": { + // "locationsId": { + // "description": "Part of `parent`. See documentation of `projectsId`.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "projectsId": { + // "description": "Part of `parent`. The project and location in which the application should be created, specified in the format projects/*/locations/*", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/projects/{projectsId}/locations/{locationsId}/applications", + // "request": { + // "$ref": "Application" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "appengine.projects.locations.applications.get": type ProjectsLocationsApplicationsGetCall struct { diff --git a/artifactregistry/v1/artifactregistry-api.json b/artifactregistry/v1/artifactregistry-api.json index 8eafaaf5115..8394ec7351d 100644 --- a/artifactregistry/v1/artifactregistry-api.json +++ b/artifactregistry/v1/artifactregistry-api.json @@ -1517,7 +1517,7 @@ } } }, - "revision": "20230307", + "revision": "20230317", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1924,7 +1924,7 @@ "type": "object" }, "KfpArtifact": { - "description": "A detailed representation of a GooGet artifact.", + "description": "A detailed representation of a KFP artifact.", "id": "KfpArtifact", "properties": { "name": { diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index d022f2f272e..19857e20680 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -75,6 +75,7 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "artifactregistry:v1" const apiName = "artifactregistry" @@ -1048,7 +1049,7 @@ func (s *ImportYumArtifactsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// KfpArtifact: A detailed representation of a GooGet artifact. +// KfpArtifact: A detailed representation of a KFP artifact. type KfpArtifact struct { // Name: Output only. Resource name of the KFP artifact. Since users // don't directly interact with this resource, the name will be derived diff --git a/artifactregistry/v1beta1/artifactregistry-gen.go b/artifactregistry/v1beta1/artifactregistry-gen.go index 1d9a0ecb162..acdcfbcd0c0 100644 --- a/artifactregistry/v1beta1/artifactregistry-gen.go +++ b/artifactregistry/v1beta1/artifactregistry-gen.go @@ -75,6 +75,7 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "artifactregistry:v1beta1" const apiName = "artifactregistry" diff --git a/artifactregistry/v1beta2/artifactregistry-gen.go b/artifactregistry/v1beta2/artifactregistry-gen.go index 6a6d887d976..e846d1cf119 100644 --- a/artifactregistry/v1beta2/artifactregistry-gen.go +++ b/artifactregistry/v1beta2/artifactregistry-gen.go @@ -75,6 +75,7 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "artifactregistry:v1beta2" const apiName = "artifactregistry" diff --git a/bigquery/v2/bigquery-api.json b/bigquery/v2/bigquery-api.json index 443568523f7..2f5a4896d10 100644 --- a/bigquery/v2/bigquery-api.json +++ b/bigquery/v2/bigquery-api.json @@ -1710,7 +1710,7 @@ } } }, - "revision": "20230218", + "revision": "20230325", "rootUrl": "https://bigquery.googleapis.com/", "schemas": { "AggregateClassificationMetrics": { @@ -4280,6 +4280,10 @@ }, "type": "array" }, + "continuous": { + "description": "[Optional] Specifies whether the query should be executed as a continuous query. The default value is false.", + "type": "boolean" + }, "createDisposition": { "description": "[Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.", "type": "string" @@ -5472,6 +5476,10 @@ }, "type": "array" }, + "continuous": { + "description": "[Optional] Specifies whether the query should be executed as a continuous query. The default value is false.", + "type": "boolean" + }, "createSession": { "description": "If true, creates a new session, where session id will be a server generated random id. If false, runs query with an existing session_id passed in ConnectionProperty, otherwise runs query in non-session mode.", "type": "boolean" @@ -5834,13 +5842,17 @@ "LANGUAGE_UNSPECIFIED", "SQL", "JAVASCRIPT", - "PYTHON" + "PYTHON", + "JAVA", + "SCALA" ], "enumDescriptions": [ "", "SQL language.", "JavaScript language.", - "Python language." + "Python language.", + "Java language.", + "Scala language." ], "type": "string" }, @@ -6149,15 +6161,19 @@ }, "type": "array" }, + "mainClass": { + "description": "The fully qualified name of a class in jar_uris, for example, com.example.wordcount. Exactly one of main_class and main_jar_uri field should be set for Java/Scala language type.", + "type": "string" + }, "mainFileUri": { - "description": "The main file/jar URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set for Python. Exactly one of main_class and main_file_uri field should be set for Java/Scala language type.", + "description": "The main file/jar URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set for Python.", "type": "string" }, "properties": { "additionalProperties": { "type": "string" }, - "description": "Configuration properties as a set of key/value pairs, which will be passed on to the Spark application. For more information, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).", + "description": "Configuration properties as a set of key/value pairs, which will be passed on to the Spark application. For more information, see [Apache Spark](https://spark.apache.org/docs/latest/index.html) and the [procedure option list](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#procedure_option_list).", "type": "object" }, "pyFileUris": { @@ -6212,7 +6228,7 @@ "description": "The fields of this struct, in order, if type_kind = \"STRUCT\"." }, "typeKind": { - "description": "Required. The top level type of this field. Can be any standard SQL data type (e.g., \"INT64\", \"DATE\", \"ARRAY\").", + "description": "Required. The top level type of this field. Can be any GoogleSQL data type (e.g., \"INT64\", \"DATE\", \"ARRAY\").", "enum": [ "TYPE_KIND_UNSPECIFIED", "INT64", diff --git a/bigquery/v2/bigquery-gen.go b/bigquery/v2/bigquery-gen.go index c9f1eaaf3f3..2ff9f1556b7 100644 --- a/bigquery/v2/bigquery-gen.go +++ b/bigquery/v2/bigquery-gen.go @@ -4632,6 +4632,10 @@ type JobConfigurationQuery struct { // ConnectionProperties: Connection properties. ConnectionProperties []*ConnectionProperty `json:"connectionProperties,omitempty"` + // Continuous: [Optional] Specifies whether the query should be executed + // as a continuous query. The default value is false. + Continuous bool `json:"continuous,omitempty"` + // CreateDisposition: [Optional] Specifies whether the job is allowed to // create new tables. The following values are supported: // CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the @@ -6479,6 +6483,10 @@ type QueryRequest struct { // ConnectionProperties: Connection properties. ConnectionProperties []*ConnectionProperty `json:"connectionProperties,omitempty"` + // Continuous: [Optional] Specifies whether the query should be executed + // as a continuous query. The default value is false. + Continuous bool `json:"continuous,omitempty"` + // CreateSession: If true, creates a new session, where session id will // be a server generated random id. If false, runs query with an // existing session_id passed in ConnectionProperty, otherwise runs @@ -7055,6 +7063,8 @@ type Routine struct { // "SQL" - SQL language. // "JAVASCRIPT" - JavaScript language. // "PYTHON" - Python language. + // "JAVA" - Java language. + // "SCALA" - Scala language. Language string `json:"language,omitempty"` // LastModifiedTime: Output only. The time when this routine was last @@ -7593,16 +7603,22 @@ type SparkOptions struct { // (https://spark.apache.org/docs/latest/index.html). JarUris []string `json:"jarUris,omitempty"` + // MainClass: The fully qualified name of a class in jar_uris, for + // example, com.example.wordcount. Exactly one of main_class and + // main_jar_uri field should be set for Java/Scala language type. + MainClass string `json:"mainClass,omitempty"` + // MainFileUri: The main file/jar URI of the Spark application. Exactly // one of the definition_body field and the main_file_uri field must be - // set for Python. Exactly one of main_class and main_file_uri field - // should be set for Java/Scala language type. + // set for Python. MainFileUri string `json:"mainFileUri,omitempty"` // Properties: Configuration properties as a set of key/value pairs, // which will be passed on to the Spark application. For more // information, see Apache Spark - // (https://spark.apache.org/docs/latest/index.html). + // (https://spark.apache.org/docs/latest/index.html) and the procedure + // option list + // (https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#procedure_option_list). Properties map[string]string `json:"properties,omitempty"` // PyFileUris: Python files to be placed on the PYTHONPATH for PySpark @@ -7694,7 +7710,7 @@ type StandardSqlDataType struct { StructType *StandardSqlStructType `json:"structType,omitempty"` // TypeKind: Required. The top level type of this field. Can be any - // standard SQL data type (e.g., "INT64", "DATE", "ARRAY"). + // GoogleSQL data type (e.g., "INT64", "DATE", "ARRAY"). // // Possible values: // "TYPE_KIND_UNSPECIFIED" - Invalid type. diff --git a/bigqueryreservation/v1/bigqueryreservation-api.json b/bigqueryreservation/v1/bigqueryreservation-api.json index aad37214a34..5bb18177787 100644 --- a/bigqueryreservation/v1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1/bigqueryreservation-api.json @@ -823,7 +823,7 @@ } } }, - "revision": "20230215", + "revision": "20230326", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -939,14 +939,18 @@ "type": "string" }, "edition": { - "description": "Do not use.", + "description": "Edition of the capacity commitment.", "enum": [ "EDITION_UNSPECIFIED", - "ENTERPRISE" + "STANDARD", + "ENTERPRISE", + "ENTERPRISE_PLUS" ], "enumDescriptions": [ - "Do not use.", - "Do not use." + "Default value, which will be treated as ENTERPRISE.", + "Standard edition.", + "Enterprise edition.", + "Enterprise plus edition." ], "type": "string" }, @@ -956,7 +960,7 @@ "readOnly": true }, "multiRegionAuxiliary": { - "description": "Applicable only for commitments located within one of the BigQuery multi-regions (US or EU). If set to true, this commitment is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this commitment is placed in the organization's default region.", + "description": "Applicable only for commitments located within one of the BigQuery multi-regions (US or EU). If set to true, this commitment is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this commitment is placed in the organization's default region. NOTE: this is a preview feature. Project must be allow-listed in order to set this field.", "type": "boolean" }, "name": { @@ -969,18 +973,26 @@ "enum": [ "COMMITMENT_PLAN_UNSPECIFIED", "FLEX", + "FLEX_FLAT_RATE", "TRIAL", "MONTHLY", + "MONTHLY_FLAT_RATE", "ANNUAL", + "ANNUAL_FLAT_RATE", + "THREE_YEAR", "NONE" ], "enumDescriptions": [ "Invalid plan value. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.", "Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.", + "Same as FLEX, should only be used if flat-rate commitments are still available.", "Trial commitments have a committed period of 182 days after becoming ACTIVE. After that, they are converted to a new commitment based on the `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so that it can be deleted right after committed period ends.", "Monthly commitments have a committed period of 30 days after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.", + "Same as MONTHLY, should only be used if flat-rate commitments are still available.", "Annual commitments have a committed period of 365 days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.", - "Do not use." + "Same as ANNUAL, should only be used if flat-rate commitments are still available.", + "3-year commitments have a committed period of 1095(3 * 365) days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.", + "Should only be used for `renewal_plan` and is only meaningful if edition is specified to values other than EDITION_UNSPECIFIED. Otherwise CreateCapacityCommitmentRequest or UpdateCapacityCommitmentRequest will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. If the renewal_plan is NONE, capacity commitment will be removed at the end of its commitment period." ], "type": "string" }, @@ -989,18 +1001,26 @@ "enum": [ "COMMITMENT_PLAN_UNSPECIFIED", "FLEX", + "FLEX_FLAT_RATE", "TRIAL", "MONTHLY", + "MONTHLY_FLAT_RATE", "ANNUAL", + "ANNUAL_FLAT_RATE", + "THREE_YEAR", "NONE" ], "enumDescriptions": [ "Invalid plan value. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.", "Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.", + "Same as FLEX, should only be used if flat-rate commitments are still available.", "Trial commitments have a committed period of 182 days after becoming ACTIVE. After that, they are converted to a new commitment based on the `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so that it can be deleted right after committed period ends.", "Monthly commitments have a committed period of 30 days after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.", + "Same as MONTHLY, should only be used if flat-rate commitments are still available.", "Annual commitments have a committed period of 365 days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.", - "Do not use." + "Same as ANNUAL, should only be used if flat-rate commitments are still available.", + "3-year commitments have a committed period of 1095(3 * 365) days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.", + "Should only be used for `renewal_plan` and is only meaningful if edition is specified to values other than EDITION_UNSPECIFIED. Otherwise CreateCapacityCommitmentRequest or UpdateCapacityCommitmentRequest will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. If the renewal_plan is NONE, capacity commitment will be removed at the end of its commitment period." ], "type": "string" }, @@ -1107,6 +1127,10 @@ "description": "The request for ReservationService.MoveAssignment. **Note**: \"bigquery.reservationAssignments.create\" permission is required on the destination_id. **Note**: \"bigquery.reservationAssignments.create\" and \"bigquery.reservationAssignments.delete\" permission are required on the related assignee.", "id": "MoveAssignmentRequest", "properties": { + "assignmentId": { + "description": "The optional assignment ID. A new assignment name is generated if this field is empty. This field can contain only lowercase alphanumeric characters or dashes. Max length is 64 characters.", + "type": "string" + }, "destinationId": { "description": "The new reservation ID, e.g.: `projects/myotherproject/locations/US/reservations/team2-prod`", "type": "string" @@ -1134,14 +1158,18 @@ "type": "string" }, "edition": { - "description": "Do not use.", + "description": "Edition of the reservation.", "enum": [ "EDITION_UNSPECIFIED", - "ENTERPRISE" + "STANDARD", + "ENTERPRISE", + "ENTERPRISE_PLUS" ], "enumDescriptions": [ - "Do not use.", - "Do not use." + "Default value, which will be treated as ENTERPRISE.", + "Standard edition.", + "Enterprise edition.", + "Enterprise plus edition." ], "type": "string" }, @@ -1150,7 +1178,7 @@ "type": "boolean" }, "multiRegionAuxiliary": { - "description": "Applicable only for reservations located within one of the BigQuery multi-regions (US or EU). If set to true, this reservation is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization's default region.", + "description": "Applicable only for reservations located within one of the BigQuery multi-regions (US or EU). If set to true, this reservation is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this reservation is placed in the organization's default region. NOTE: this is a preview feature. Project must be allow-listed in order to set this field.", "type": "boolean" }, "name": { diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index 800a1d0cbd4..6746be6bf97 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -359,11 +359,14 @@ type CapacityCommitment struct { // period. It is applicable only for ACTIVE capacity commitments. CommitmentStartTime string `json:"commitmentStartTime,omitempty"` - // Edition: Do not use. + // Edition: Edition of the capacity commitment. // // Possible values: - // "EDITION_UNSPECIFIED" - Do not use. - // "ENTERPRISE" - Do not use. + // "EDITION_UNSPECIFIED" - Default value, which will be treated as + // ENTERPRISE. + // "STANDARD" - Standard edition. + // "ENTERPRISE" - Enterprise edition. + // "ENTERPRISE_PLUS" - Enterprise plus edition. Edition string `json:"edition,omitempty"` // FailureStatus: Output only. For FAILED commitment plan, provides the @@ -374,7 +377,9 @@ type CapacityCommitment struct { // one of the BigQuery multi-regions (US or EU). If set to true, this // commitment is placed in the organization's secondary region which is // designated for disaster recovery purposes. If false, this commitment - // is placed in the organization's default region. + // is placed in the organization's default region. NOTE: this is a + // preview feature. Project must be allow-listed in order to set this + // field. MultiRegionAuxiliary bool `json:"multiRegionAuxiliary,omitempty"` // Name: Output only. The resource name of the capacity commitment, @@ -393,6 +398,8 @@ type CapacityCommitment struct { // "FLEX" - Flex commitments have committed period of 1 minute after // becoming ACTIVE. After that, they are not in a committed period // anymore and can be removed any time. + // "FLEX_FLAT_RATE" - Same as FLEX, should only be used if flat-rate + // commitments are still available. // "TRIAL" - Trial commitments have a committed period of 182 days // after becoming ACTIVE. After that, they are converted to a new // commitment based on the `renewal_plan`. Default `renewal_plan` for @@ -401,10 +408,23 @@ type CapacityCommitment struct { // "MONTHLY" - Monthly commitments have a committed period of 30 days // after becoming ACTIVE. After that, they are not in a committed period // anymore and can be removed any time. + // "MONTHLY_FLAT_RATE" - Same as MONTHLY, should only be used if + // flat-rate commitments are still available. // "ANNUAL" - Annual commitments have a committed period of 365 days // after becoming ACTIVE. After that they are converted to a new // commitment based on the renewal_plan. - // "NONE" - Do not use. + // "ANNUAL_FLAT_RATE" - Same as ANNUAL, should only be used if + // flat-rate commitments are still available. + // "THREE_YEAR" - 3-year commitments have a committed period of 1095(3 + // * 365) days after becoming ACTIVE. After that they are converted to a + // new commitment based on the renewal_plan. + // "NONE" - Should only be used for `renewal_plan` and is only + // meaningful if edition is specified to values other than + // EDITION_UNSPECIFIED. Otherwise CreateCapacityCommitmentRequest or + // UpdateCapacityCommitmentRequest will be rejected with error code + // `google.rpc.Code.INVALID_ARGUMENT`. If the renewal_plan is NONE, + // capacity commitment will be removed at the end of its commitment + // period. Plan string `json:"plan,omitempty"` // RenewalPlan: The plan this capacity commitment is converted to after @@ -419,6 +439,8 @@ type CapacityCommitment struct { // "FLEX" - Flex commitments have committed period of 1 minute after // becoming ACTIVE. After that, they are not in a committed period // anymore and can be removed any time. + // "FLEX_FLAT_RATE" - Same as FLEX, should only be used if flat-rate + // commitments are still available. // "TRIAL" - Trial commitments have a committed period of 182 days // after becoming ACTIVE. After that, they are converted to a new // commitment based on the `renewal_plan`. Default `renewal_plan` for @@ -427,10 +449,23 @@ type CapacityCommitment struct { // "MONTHLY" - Monthly commitments have a committed period of 30 days // after becoming ACTIVE. After that, they are not in a committed period // anymore and can be removed any time. + // "MONTHLY_FLAT_RATE" - Same as MONTHLY, should only be used if + // flat-rate commitments are still available. // "ANNUAL" - Annual commitments have a committed period of 365 days // after becoming ACTIVE. After that they are converted to a new // commitment based on the renewal_plan. - // "NONE" - Do not use. + // "ANNUAL_FLAT_RATE" - Same as ANNUAL, should only be used if + // flat-rate commitments are still available. + // "THREE_YEAR" - 3-year commitments have a committed period of 1095(3 + // * 365) days after becoming ACTIVE. After that they are converted to a + // new commitment based on the renewal_plan. + // "NONE" - Should only be used for `renewal_plan` and is only + // meaningful if edition is specified to values other than + // EDITION_UNSPECIFIED. Otherwise CreateCapacityCommitmentRequest or + // UpdateCapacityCommitmentRequest will be rejected with error code + // `google.rpc.Code.INVALID_ARGUMENT`. If the renewal_plan is NONE, + // capacity commitment will be removed at the end of its commitment + // period. RenewalPlan string `json:"renewalPlan,omitempty"` // SlotCount: Number of slots in this commitment. @@ -644,11 +679,17 @@ func (s *MergeCapacityCommitmentsRequest) MarshalJSON() ([]byte, error) { // "bigquery.reservationAssignments.delete" permission are required on // the related assignee. type MoveAssignmentRequest struct { + // AssignmentId: The optional assignment ID. A new assignment name is + // generated if this field is empty. This field can contain only + // lowercase alphanumeric characters or dashes. Max length is 64 + // characters. + AssignmentId string `json:"assignmentId,omitempty"` + // DestinationId: The new reservation ID, e.g.: // `projects/myotherproject/locations/US/reservations/team2-prod` DestinationId string `json:"destinationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DestinationId") to + // ForceSendFields is a list of field names (e.g. "AssignmentId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -656,7 +697,7 @@ type MoveAssignmentRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DestinationId") to include + // NullFields is a list of field names (e.g. "AssignmentId") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -690,11 +731,14 @@ type Reservation struct { // CreationTime: Output only. Creation time of the reservation. CreationTime string `json:"creationTime,omitempty"` - // Edition: Do not use. + // Edition: Edition of the reservation. // // Possible values: - // "EDITION_UNSPECIFIED" - Do not use. - // "ENTERPRISE" - Do not use. + // "EDITION_UNSPECIFIED" - Default value, which will be treated as + // ENTERPRISE. + // "STANDARD" - Standard edition. + // "ENTERPRISE" - Enterprise edition. + // "ENTERPRISE_PLUS" - Enterprise plus edition. Edition string `json:"edition,omitempty"` // IgnoreIdleSlots: If false, any query or pipeline job using this @@ -708,7 +752,9 @@ type Reservation struct { // one of the BigQuery multi-regions (US or EU). If set to true, this // reservation is placed in the organization's secondary region which is // designated for disaster recovery purposes. If false, this reservation - // is placed in the organization's default region. + // is placed in the organization's default region. NOTE: this is a + // preview feature. Project must be allow-listed in order to set this + // field. MultiRegionAuxiliary bool `json:"multiRegionAuxiliary,omitempty"` // Name: The resource name of the reservation, e.g., diff --git a/calendar/v3/calendar-api.json b/calendar/v3/calendar-api.json index 5eeab4afc2a..1f3468c1b1d 100644 --- a/calendar/v3/calendar-api.json +++ b/calendar/v3/calendar-api.json @@ -1088,7 +1088,7 @@ "type": "string" }, "eventTypes": { - "description": "Event types to return. Optional. The default is [\"default\", \"outOfOffice\", \"focusTime\"]. This is used by the Working Location developer preview and only the default value is allowed for non-opted-in users.", + "description": "Event types to return. Optional. The default is [\"default\", \"outOfOffice\", \"focusTime\"]. Only the default value is available, unless you're enrolled in the Working Locations developer preview. Developer Preview.", "location": "query", "repeated": true, "type": "string" @@ -1491,7 +1491,7 @@ "type": "string" }, "eventTypes": { - "description": "Event types to return. Optional. The default is [\"default\", \"outOfOffice\", \"focusTime\"]. This is used by the Working Location developer preview and only the default value is allowed for non-opted-in users.", + "description": "Event types to return. Optional. The default is [\"default\", \"outOfOffice\", \"focusTime\"]. Only the default value is available, unless you're enrolled in the Working Locations developer preview. Developer Preview.", "location": "query", "repeated": true, "type": "string" @@ -1735,7 +1735,7 @@ } } }, - "revision": "20230313", + "revision": "20230324", "rootUrl": "https://www.googleapis.com/", "schemas": { "Acl": { @@ -2392,7 +2392,7 @@ }, "eventType": { "default": "default", - "description": "Specific type of the event. Read-only. Possible values are: \n- \"default\" - A regular event or not further specified. \n- \"outOfOffice\" - An out-of-office event. \n- \"focusTime\" - A focus-time event. \n- \"workingLocation\" - A working location event.", + "description": "Specific type of the event. Read-only. Possible values are: \n- \"default\" - A regular event or not further specified. \n- \"outOfOffice\" - An out-of-office event. \n- \"focusTime\" - A focus-time event. \n- \"workingLocation\" - A working location event. Developer Preview.", "type": "string" }, "extendedProperties": { @@ -2626,7 +2626,7 @@ }, "workingLocationProperties": { "$ref": "EventWorkingLocationProperties", - "description": "Working Location event data. Read-only." + "description": "Developer Preview: Working Location event data. Read-only." } }, "type": "object" diff --git a/calendar/v3/calendar-gen.go b/calendar/v3/calendar-gen.go index 3f1af92f6a1..34cf5f592b2 100644 --- a/calendar/v3/calendar-gen.go +++ b/calendar/v3/calendar-gen.go @@ -1361,7 +1361,7 @@ type Event struct { // - "default" - A regular event or not further specified. // - "outOfOffice" - An out-of-office event. // - "focusTime" - A focus-time event. - // - "workingLocation" - A working location event. + // - "workingLocation" - A working location event. Developer Preview. EventType string `json:"eventType,omitempty"` // ExtendedProperties: Extended properties of the event. @@ -1548,7 +1548,8 @@ type Event struct { // compatibility reasons. Visibility string `json:"visibility,omitempty"` - // WorkingLocationProperties: Working Location event data. Read-only. + // WorkingLocationProperties: Developer Preview: Working Location event + // data. Read-only. WorkingLocationProperties *EventWorkingLocationProperties `json:"workingLocationProperties,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -7066,9 +7067,9 @@ func (c *EventsListCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsList } // EventTypes sets the optional parameter "eventTypes": Event types to -// return. The default is ["default", "outOfOffice", "focusTime"]. This -// is used by the Working Location developer preview and only the -// default value is allowed for non-opted-in users. +// return. The default is ["default", "outOfOffice", "focusTime"]. Only +// the default value is available, unless you're enrolled in the Working +// Locations developer preview. Developer Preview. func (c *EventsListCall) EventTypes(eventTypes ...string) *EventsListCall { c.urlParams_.SetMulti("eventTypes", append([]string{}, eventTypes...)) return c @@ -7369,7 +7370,7 @@ func (c *EventsListCall) Do(opts ...googleapi.CallOption) (*Events, error) { // "type": "string" // }, // "eventTypes": { - // "description": "Event types to return. Optional. The default is [\"default\", \"outOfOffice\", \"focusTime\"]. This is used by the Working Location developer preview and only the default value is allowed for non-opted-in users.", + // "description": "Event types to return. Optional. The default is [\"default\", \"outOfOffice\", \"focusTime\"]. Only the default value is available, unless you're enrolled in the Working Locations developer preview. Developer Preview.", // "location": "query", // "repeated": true, // "type": "string" @@ -8478,9 +8479,9 @@ func (c *EventsWatchCall) AlwaysIncludeEmail(alwaysIncludeEmail bool) *EventsWat } // EventTypes sets the optional parameter "eventTypes": Event types to -// return. The default is ["default", "outOfOffice", "focusTime"]. This -// is used by the Working Location developer preview and only the -// default value is allowed for non-opted-in users. +// return. The default is ["default", "outOfOffice", "focusTime"]. Only +// the default value is available, unless you're enrolled in the Working +// Locations developer preview. Developer Preview. func (c *EventsWatchCall) EventTypes(eventTypes ...string) *EventsWatchCall { c.urlParams_.SetMulti("eventTypes", append([]string{}, eventTypes...)) return c @@ -8773,7 +8774,7 @@ func (c *EventsWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) { // "type": "string" // }, // "eventTypes": { - // "description": "Event types to return. Optional. The default is [\"default\", \"outOfOffice\", \"focusTime\"]. This is used by the Working Location developer preview and only the default value is allowed for non-opted-in users.", + // "description": "Event types to return. Optional. The default is [\"default\", \"outOfOffice\", \"focusTime\"]. Only the default value is available, unless you're enrolled in the Working Locations developer preview. Developer Preview.", // "location": "query", // "repeated": true, // "type": "string" diff --git a/certificatemanager/v1/certificatemanager-api.json b/certificatemanager/v1/certificatemanager-api.json index c0d8d11b237..2c6a84c97f3 100644 --- a/certificatemanager/v1/certificatemanager-api.json +++ b/certificatemanager/v1/certificatemanager-api.json @@ -1061,7 +1061,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "certificatemanager.projects.locations.operations.list", @@ -1108,7 +1108,7 @@ } } }, - "revision": "20230123", + "revision": "20230315", "rootUrl": "https://certificatemanager.googleapis.com/", "schemas": { "AuthorizationAttemptInfo": { @@ -1371,7 +1371,7 @@ "id": "CertificateMapEntry", "properties": { "certificates": { - "description": "A set of Certificates defines for the given `hostname`. There can be defined up to fifteen certificates in each Certificate Map Entry. Each certificate must match pattern `projects/*/locations/*/certificates/*`.", + "description": "A set of Certificates defines for the given `hostname`. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match pattern `projects/*/locations/*/certificates/*`.", "items": { "type": "string" }, diff --git a/certificatemanager/v1/certificatemanager-gen.go b/certificatemanager/v1/certificatemanager-gen.go index 74134879b93..9370c58e5e0 100644 --- a/certificatemanager/v1/certificatemanager-gen.go +++ b/certificatemanager/v1/certificatemanager-gen.go @@ -567,8 +567,8 @@ func (s *CertificateMap) MarshalJSON() ([]byte, error) { // CertificateMapEntry: Defines a certificate map entry. type CertificateMapEntry struct { // Certificates: A set of Certificates defines for the given `hostname`. - // There can be defined up to fifteen certificates in each Certificate - // Map Entry. Each certificate must match pattern + // There can be defined up to four certificates in each Certificate Map + // Entry. Each certificate must match pattern // `projects/*/locations/*/certificates/*`. Certificates []string `json:"certificates,omitempty"` @@ -6207,14 +6207,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -6343,7 +6336,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "certificatemanager.projects.locations.operations.list", diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 85a0bc07c52..af0d9c7b319 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -518,7 +518,7 @@ } } }, - "revision": "20230302", + "revision": "20230328", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -1192,7 +1192,7 @@ "type": "object" }, "GoogleAppsCardV1BorderStyle": { - "description": "Represents the complete border style applied to items in a widget.", + "description": "The style options for the border of a card or widget, including the border type and color.", "id": "GoogleAppsCardV1BorderStyle", "properties": { "cornerRadius": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 82eaca1cf41..5d027c3abae 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1450,8 +1450,8 @@ func (s *GoogleAppsCardV1ActionParameter) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleAppsCardV1BorderStyle: Represents the complete border style -// applied to items in a widget. +// GoogleAppsCardV1BorderStyle: The style options for the border of a +// card or widget, including the border type and color. type GoogleAppsCardV1BorderStyle struct { // CornerRadius: The corner radius for the border. CornerRadius int64 `json:"cornerRadius,omitempty"` diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index 3b83a5acd52..000ecd8e514 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -510,7 +510,7 @@ "type": "string" }, "filter": { - "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * completion_time", + "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * complete_time", "location": "query", "type": "string" }, @@ -561,7 +561,7 @@ "type": "string" }, "filter": { - "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * completion_time", + "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * complete_time", "location": "query", "type": "string" }, @@ -596,7 +596,7 @@ ] }, "findInstalledAppDevices": { - "description": "Generate report of devices that have a specified app installed.", + "description": "Generate report of managed Chrome browser devices that have a specified app installed.", "flatPath": "v1/customers/{customersId}/reports:findInstalledAppDevices", "httpMethod": "GET", "id": "chromemanagement.customers.reports.findInstalledAppDevices", @@ -719,7 +719,7 @@ ], "parameters": { "filter": { - "description": "Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number - device_id ", + "description": "Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number - device_id - reports_timestamp The \"reports_timestamp\" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC \"Zulu\" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: \"2014-10-02T15:01:23Z\", \"2014-10-02T15:01:23.045123456Z\", \"1679283943823\".", "location": "query", "type": "string" }, @@ -770,7 +770,7 @@ ], "parameters": { "filter": { - "description": "Optional. Only include resources that match the filter. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The \"timestamp\" filter accepts either Epoch milliseconds or RFC 3339 formatted time surrounded by simple double quotes.", + "description": "Optional. Only include resources that match the filter. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The \"timestamp\" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC \"Zulu\" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: \"2014-10-02T15:01:23Z\", \"2014-10-02T15:01:23.045123456Z\", \"1679283943823\".", "location": "query", "type": "string" }, @@ -896,7 +896,7 @@ } } }, - "revision": "20230223", + "revision": "20230330", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index 288a19bd373..eb93da76c48 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -5525,7 +5525,7 @@ func (r *CustomersReportsService) CountPrintJobsByPrinter(customer string) *Cust // Filter sets the optional parameter "filter": Query string to filter // results, AND-separated fields in EBNF syntax. Note: OR operations are // not supported in this filter. Note: Only >= and <= comparators are -// supported in this filter. Supported filter fields: * completion_time +// supported in this filter. Supported filter fields: * complete_time func (c *CustomersReportsCountPrintJobsByPrinterCall) Filter(filter string) *CustomersReportsCountPrintJobsByPrinterCall { c.urlParams_.Set("filter", filter) return c @@ -5682,7 +5682,7 @@ func (c *CustomersReportsCountPrintJobsByPrinterCall) Do(opts ...googleapi.CallO // "type": "string" // }, // "filter": { - // "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * completion_time", + // "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * complete_time", // "location": "query", // "type": "string" // }, @@ -5765,7 +5765,7 @@ func (r *CustomersReportsService) CountPrintJobsByUser(customer string) *Custome // Filter sets the optional parameter "filter": Query string to filter // results, AND-separated fields in EBNF syntax. Note: OR operations are // not supported in this filter. Note: Only >= and <= comparators are -// supported in this filter. Supported filter fields: * completion_time +// supported in this filter. Supported filter fields: * complete_time func (c *CustomersReportsCountPrintJobsByUserCall) Filter(filter string) *CustomersReportsCountPrintJobsByUserCall { c.urlParams_.Set("filter", filter) return c @@ -5920,7 +5920,7 @@ func (c *CustomersReportsCountPrintJobsByUserCall) Do(opts ...googleapi.CallOpti // "type": "string" // }, // "filter": { - // "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * completion_time", + // "description": "Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \u003e= and \u003c= comparators are supported in this filter. Supported filter fields: * complete_time", // "location": "query", // "type": "string" // }, @@ -5989,8 +5989,8 @@ type CustomersReportsFindInstalledAppDevicesCall struct { header_ http.Header } -// FindInstalledAppDevices: Generate report of devices that have a -// specified app installed. +// FindInstalledAppDevices: Generate report of managed Chrome browser +// devices that have a specified app installed. // // - customer: Customer id or "my_customer" to use the customer // associated to the account making the request. @@ -6163,7 +6163,7 @@ func (c *CustomersReportsFindInstalledAppDevicesCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Generate report of devices that have a specified app installed.", + // "description": "Generate report of managed Chrome browser devices that have a specified app installed.", // "flatPath": "v1/customers/{customersId}/reports:findInstalledAppDevices", // "httpMethod": "GET", // "id": "chromemanagement.customers.reports.findInstalledAppDevices", @@ -6446,7 +6446,12 @@ func (r *CustomersTelemetryDevicesService) List(parent string) *CustomersTelemet // Filter sets the optional parameter "filter": Only include resources // that match the filter. Supported filter fields: - org_unit_id - -// serial_number - device_id +// serial_number - device_id - reports_timestamp The "reports_timestamp" +// filter accepts either the Unix Epoch milliseconds format or the +// RFC3339 UTC "Zulu" format with nanosecond resolution and up to nine +// fractional digits. Both formats should be surrounded by simple double +// quotes. Examples: "2014-10-02T15:01:23Z", +// "2014-10-02T15:01:23.045123456Z", "1679283943823". func (c *CustomersTelemetryDevicesListCall) Filter(filter string) *CustomersTelemetryDevicesListCall { c.urlParams_.Set("filter", filter) return c @@ -6583,7 +6588,7 @@ func (c *CustomersTelemetryDevicesListCall) Do(opts ...googleapi.CallOption) (*G // ], // "parameters": { // "filter": { - // "description": "Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number - device_id ", + // "description": "Optional. Only include resources that match the filter. Supported filter fields: - org_unit_id - serial_number - device_id - reports_timestamp The \"reports_timestamp\" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC \"Zulu\" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: \"2014-10-02T15:01:23Z\", \"2014-10-02T15:01:23.045123456Z\", \"1679283943823\".", // "location": "query", // "type": "string" // }, @@ -6668,8 +6673,11 @@ func (r *CustomersTelemetryEventsService) List(parent string) *CustomersTelemetr // Filter sets the optional parameter "filter": Only include resources // that match the filter. Supported filter fields: - device_id - user_id // - device_org_unit_id - user_org_unit_id - timestamp - event_type The -// "timestamp" filter accepts either Epoch milliseconds or RFC 3339 -// formatted time surrounded by simple double quotes. +// "timestamp" filter accepts either the Unix Epoch milliseconds format +// or the RFC3339 UTC "Zulu" format with nanosecond resolution and up to +// nine fractional digits. Both formats should be surrounded by simple +// double quotes. Examples: "2014-10-02T15:01:23Z", +// "2014-10-02T15:01:23.045123456Z", "1679283943823". func (c *CustomersTelemetryEventsListCall) Filter(filter string) *CustomersTelemetryEventsListCall { c.urlParams_.Set("filter", filter) return c @@ -6806,7 +6814,7 @@ func (c *CustomersTelemetryEventsListCall) Do(opts ...googleapi.CallOption) (*Go // ], // "parameters": { // "filter": { - // "description": "Optional. Only include resources that match the filter. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The \"timestamp\" filter accepts either Epoch milliseconds or RFC 3339 formatted time surrounded by simple double quotes.", + // "description": "Optional. Only include resources that match the filter. Supported filter fields: - device_id - user_id - device_org_unit_id - user_org_unit_id - timestamp - event_type The \"timestamp\" filter accepts either the Unix Epoch milliseconds format or the RFC3339 UTC \"Zulu\" format with nanosecond resolution and up to nine fractional digits. Both formats should be surrounded by simple double quotes. Examples: \"2014-10-02T15:01:23Z\", \"2014-10-02T15:01:23.045123456Z\", \"1679283943823\".", // "location": "query", // "type": "string" // }, diff --git a/civicinfo/v2/civicinfo-api.json b/civicinfo/v2/civicinfo-api.json index c6defd7da4b..9db1210cec4 100644 --- a/civicinfo/v2/civicinfo-api.json +++ b/civicinfo/v2/civicinfo-api.json @@ -352,7 +352,7 @@ } } }, - "revision": "20221206", + "revision": "20230328", "rootUrl": "https://civicinfo.googleapis.com/", "schemas": { "AdministrationRegion": { @@ -590,10 +590,6 @@ }, "type": "array" }, - "primaryParty": { - "description": "[DEPRECATED] If this is a partisan election, the name of the party it is for. This field as deprecated in favor of the array \"primaryParties\", as contests may contain more than one party.", - "type": "string" - }, "referendumBallotResponses": { "description": "The set of ballot responses for the referendum. A ballot response represents a line on the ballot. Common examples might include \"yes\" or \"no\" for referenda. This field is only populated for contests of type 'Referendum'.", "items": { diff --git a/civicinfo/v2/civicinfo-gen.go b/civicinfo/v2/civicinfo-gen.go index 45bafd64ee1..37c0f5c326e 100644 --- a/civicinfo/v2/civicinfo-gen.go +++ b/civicinfo/v2/civicinfo-gen.go @@ -432,11 +432,6 @@ type Contest struct { // party/parties it is for. PrimaryParties []string `json:"primaryParties,omitempty"` - // PrimaryParty: [DEPRECATED] If this is a partisan election, the name - // of the party it is for. This field as deprecated in favor of the - // array "primaryParties", as contests may contain more than one party. - PrimaryParty string `json:"primaryParty,omitempty"` - // ReferendumBallotResponses: The set of ballot responses for the // referendum. A ballot response represents a line on the ballot. Common // examples might include "yes" or "no" for referenda. This field is diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index 95ce2167f24..a0081dd4838 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -2400,7 +2400,7 @@ } } }, - "revision": "20230116", + "revision": "20230329", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "Announcement": { @@ -3074,7 +3074,7 @@ "type": "string" }, "responseUrl": { - "description": "URL of the form responses document. Only set if respsonses have been recorded and only when the requesting user is an editor of the form. Read-only.", + "description": "URL of the form responses document. Only set if responses have been recorded and only when the requesting user is an editor of the form. Read-only.", "type": "string" }, "thumbnailUrl": { diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index 56e7e22b714..7165452e5c7 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -1444,7 +1444,7 @@ type Form struct { FormUrl string `json:"formUrl,omitempty"` // ResponseUrl: URL of the form responses document. Only set if - // respsonses have been recorded and only when the requesting user is an + // responses have been recorded and only when the requesting user is an // editor of the form. Read-only. ResponseUrl string `json:"responseUrl,omitempty"` diff --git a/cloudchannel/v1/cloudchannel-api.json b/cloudchannel/v1/cloudchannel-api.json index 01dfa357a5a..4fe391b4fb5 100644 --- a/cloudchannel/v1/cloudchannel-api.json +++ b/cloudchannel/v1/cloudchannel-api.json @@ -2055,7 +2055,7 @@ } } }, - "revision": "20230314", + "revision": "20230329", "rootUrl": "https://cloudchannel.googleapis.com/", "schemas": { "GoogleCloudChannelV1ActivateEntitlementRequest": { @@ -5014,6 +5014,11 @@ "resizeUnitCount": { "description": "If true and enable_renewal = true, the unit (for example seats or licenses) will be set to the number of active units at renewal time.", "type": "boolean" + }, + "scheduledRenewalOffer": { + "description": "Output only. The offer resource name that the entitlement will renew on at the end date. Takes the form: accounts/{account_id}/offers/{offer_id}.", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/cloudchannel/v1/cloudchannel-gen.go b/cloudchannel/v1/cloudchannel-gen.go index e0002ecd80e..3355e0e0236 100644 --- a/cloudchannel/v1/cloudchannel-gen.go +++ b/cloudchannel/v1/cloudchannel-gen.go @@ -5195,6 +5195,11 @@ type GoogleCloudChannelV1alpha1RenewalSettings struct { // at renewal time. ResizeUnitCount bool `json:"resizeUnitCount,omitempty"` + // ScheduledRenewalOffer: Output only. The offer resource name that the + // entitlement will renew on at the end date. Takes the form: + // accounts/{account_id}/offers/{offer_id}. + ScheduledRenewalOffer string `json:"scheduledRenewalOffer,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisableCommitment") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index c97dfa6080f..f719fcb2f9a 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -654,6 +654,34 @@ "resources": { "rollouts": { "methods": { + "advance": { + "description": "Advances a Rollout in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts/{rolloutsId}:advance", + "httpMethod": "POST", + "id": "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.advance", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the Rollout. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/releases/[^/]+/rollouts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:advance", + "request": { + "$ref": "AdvanceRolloutRequest" + }, + "response": { + "$ref": "AdvanceRolloutResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "approve": { "description": "Approves a Rollout.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts/{rolloutsId}:approve", @@ -682,6 +710,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "cancel": { + "description": "Cancels a Rollout in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts/{rolloutsId}:cancel", + "httpMethod": "POST", + "id": "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the Rollout. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/releases/[^/]+/rollouts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "CancelRolloutRequest" + }, + "response": { + "$ref": "CancelRolloutResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a new Rollout in a given project and location.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts", @@ -755,6 +811,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "ignoreJob": { + "description": "Ignores the specified Job in a Rollout.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts/{rolloutsId}:ignoreJob", + "httpMethod": "POST", + "id": "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.ignoreJob", + "parameterOrder": [ + "rollout" + ], + "parameters": { + "rollout": { + "description": "Required. Name of the Rollout. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/releases/[^/]+/rollouts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+rollout}:ignoreJob", + "request": { + "$ref": "IgnoreJobRequest" + }, + "response": { + "$ref": "IgnoreJobResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists Rollouts in a given project and location.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts", @@ -903,6 +987,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "terminate": { + "description": "Terminates a Job Run in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts/{rolloutsId}/jobRuns/{jobRunsId}:terminate", + "httpMethod": "POST", + "id": "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.jobRuns.terminate", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the `JobRun`. Format must be projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/releases/[^/]+/rollouts/[^/]+/jobRuns/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:terminate", + "request": { + "$ref": "TerminateJobRunRequest" + }, + "response": { + "$ref": "TerminateJobRunResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -1339,7 +1451,7 @@ } } }, - "revision": "20230306", + "revision": "20230315", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -1377,6 +1489,23 @@ }, "type": "object" }, + "AdvanceRolloutRequest": { + "description": "The request object used by `AdvanceRollout`.", + "id": "AdvanceRolloutRequest", + "properties": { + "phaseId": { + "description": "Required. The phase ID to advance the `Rollout` to.", + "type": "string" + } + }, + "type": "object" + }, + "AdvanceRolloutResponse": { + "description": "The response object from `AdvanceRollout`.", + "id": "AdvanceRolloutResponse", + "properties": {}, + "type": "object" + }, "AnthosCluster": { "description": "Information specifying an Anthos Cluster.", "id": "AnthosCluster", @@ -1490,12 +1619,62 @@ }, "type": "object" }, + "Canary": { + "description": "Canary represents the canary deployment strategy.", + "id": "Canary", + "properties": { + "canaryDeployment": { + "$ref": "CanaryDeployment", + "description": "Configures the progressive based deployment for a Target." + }, + "customCanaryDeployment": { + "$ref": "CustomCanaryDeployment", + "description": "Configures the progressive based deployment for a Target, but allows customizing at the phase level where a phase represents each of the percentage deployments." + }, + "runtimeConfig": { + "$ref": "RuntimeConfig", + "description": "Optional. Runtime specific configurations for the deployment strategy. The runtime configuration is used to determine how Cloud Deploy will split traffic to enable a progressive deployment." + } + }, + "type": "object" + }, + "CanaryDeployment": { + "description": "CanaryDeployment represents the canary deployment configuration", + "id": "CanaryDeployment", + "properties": { + "percentages": { + "description": "Required. The percentage based deployments that will occur as a part of a `Rollout`. List is expected in ascending order and each integer n is 0 \u003c= n \u003c 100.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "verify": { + "description": "Whether to run verify tests after each percentage deployment.", + "type": "boolean" + } + }, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", "properties": {}, "type": "object" }, + "CancelRolloutRequest": { + "description": "The request object used by `CancelRollout`.", + "id": "CancelRolloutRequest", + "properties": {}, + "type": "object" + }, + "CancelRolloutResponse": { + "description": "The response object from `CancelRollout`.", + "id": "CancelRolloutResponse", + "properties": {}, + "type": "object" + }, "ChildRolloutJobs": { "description": "ChildRollouts job composition", "id": "ChildRolloutJobs", @@ -1519,6 +1698,17 @@ }, "type": "object" }, + "CloudRunConfig": { + "description": "CloudRunConfig contains the Cloud Run runtime configuration.", + "id": "CloudRunConfig", + "properties": { + "automaticTrafficControl": { + "description": "Whether Cloud Deploy should update the traffic stanza in a Cloud Run Service on the user's behalf to facilitate traffic splitting. This is required to be true for CanaryDeployments, but optional for CustomCanaryDeployments.", + "type": "boolean" + } + }, + "type": "object" + }, "CloudRunLocation": { "description": "Information specifying where to deploy a Cloud Run Service.", "id": "CloudRunLocation", @@ -1555,6 +1745,18 @@ }, "type": "object" }, + "CloudRunRenderMetadata": { + "description": "CloudRunRenderMetadata contains Cloud Run information associated with a `Release` render.", + "id": "CloudRunRenderMetadata", + "properties": { + "service": { + "description": "Output only. The name of the Cloud Run Service in the rendered manifest. Format is projects/{project}/locations/{location}/services/{service}.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Config": { "description": "Service-wide configuration.", "id": "Config", @@ -1600,6 +1802,20 @@ }, "type": "object" }, + "CustomCanaryDeployment": { + "description": "CustomCanaryDeployment represents the custom canary deployment configuration.", + "id": "CustomCanaryDeployment", + "properties": { + "phaseConfigs": { + "description": "Required. Configuration for each phase in the canary deployment in the order executed.", + "items": { + "$ref": "PhaseConfig" + }, + "type": "array" + } + }, + "type": "object" + }, "Date": { "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", @@ -1751,6 +1967,7 @@ "CLOUD_BUILD_UNAVAILABLE", "EXECUTION_FAILED", "DEADLINE_EXCEEDED", + "MISSING_RESOURCES_FOR_CANARY", "CLOUD_BUILD_REQUEST_FAILED" ], "enumDescriptions": [ @@ -1758,6 +1975,7 @@ "Cloud Build is not available, either because it is not enabled or because Google Cloud Deploy has insufficient permissions. See [Required permission](/deploy/docs/cloud-deploy-service-account#required_permissions).", "The deploy operation did not complete successfully; check Cloud Build logs.", "The deploy build did not complete within the alloted time.", + "There were missing resources in the runtime environment required for a canary deployment. Check the Cloud Build logs for more information.", "Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details." ], "readOnly": true, @@ -1885,6 +2103,25 @@ }, "type": "object" }, + "GatewayServiceMesh": { + "description": "Information about the Kubernetes Gateway API service mesh configuration.", + "id": "GatewayServiceMesh", + "properties": { + "deployment": { + "description": "Required. Name of the Kubernetes Deployment whose traffic is managed by the specified HTTPRoute and Service.", + "type": "string" + }, + "httpRoute": { + "description": "Required. Name of the Gateway API HTTPRoute.", + "type": "string" + }, + "service": { + "description": "Required. Name of the Kubernetes Service.", + "type": "string" + } + }, + "type": "object" + }, "GkeCluster": { "description": "Information specifying a GKE Cluster.", "id": "GkeCluster", @@ -1900,6 +2137,27 @@ }, "type": "object" }, + "IgnoreJobRequest": { + "description": "The request object used by `IgnoreJob`.", + "id": "IgnoreJobRequest", + "properties": { + "jobId": { + "description": "Required. The job ID for the Job to ignore.", + "type": "string" + }, + "phaseId": { + "description": "Required. The phase ID the Job to ignore belongs to.", + "type": "string" + } + }, + "type": "object" + }, + "IgnoreJobResponse": { + "description": "The response object from `IgnoreJob`.", + "id": "IgnoreJobResponse", + "properties": {}, + "type": "object" + }, "Job": { "description": "Job represents an operation for a `Rollout`.", "id": "Job", @@ -1929,6 +2187,11 @@ "readOnly": true, "type": "string" }, + "skipMessage": { + "description": "Output only. Additional information on why the Job was skipped, if available.", + "readOnly": true, + "type": "string" + }, "state": { "description": "Output only. The current state of the Job.", "enum": [ @@ -1938,7 +2201,9 @@ "IN_PROGRESS", "SUCCEEDED", "FAILED", - "ABORTED" + "ABORTED", + "SKIPPED", + "IGNORED" ], "enumDescriptions": [ "The Job has an unspecified state.", @@ -1947,7 +2212,9 @@ "The Job is in progress.", "The Job succeeded.", "The Job failed.", - "The Job was aborted." + "The Job was aborted.", + "The Job was skipped.", + "The Job was ignored." ], "readOnly": true, "type": "string" @@ -2022,13 +2289,17 @@ "STATE_UNSPECIFIED", "IN_PROGRESS", "SUCCEEDED", - "FAILED" + "FAILED", + "TERMINATING", + "TERMINATED" ], "enumDescriptions": [ "The `JobRun` has an unspecified state.", "The `JobRun` is in progress.", "The `JobRun` has succeeded.", - "The `JobRun` has failed." + "The `JobRun` has failed.", + "The `JobRun` is terminating.", + "The `JobRun` was terminated." ], "readOnly": true, "type": "string" @@ -2091,6 +2362,21 @@ }, "type": "object" }, + "KubernetesConfig": { + "description": "KubernetesConfig contains the Kubernetes runtime configuration.", + "id": "KubernetesConfig", + "properties": { + "gatewayServiceMesh": { + "$ref": "GatewayServiceMesh", + "description": "Kubernetes Gateway API service mesh configuration." + }, + "serviceNetworking": { + "$ref": "ServiceNetworking", + "description": "Kubernetes Service networking configuration." + } + }, + "type": "object" + }, "ListDeliveryPipelinesResponse": { "description": "The response object from `ListDeliveryPipelines`.", "id": "ListDeliveryPipelinesResponse", @@ -2410,6 +2696,11 @@ "readOnly": true, "type": "string" }, + "skipMessage": { + "description": "Output only. Additional information on why the Phase was skipped, if available.", + "readOnly": true, + "type": "string" + }, "state": { "description": "Output only. Current state of the Phase.", "enum": [ @@ -2418,7 +2709,8 @@ "IN_PROGRESS", "SUCCEEDED", "FAILED", - "ABORTED" + "ABORTED", + "SKIPPED" ], "enumDescriptions": [ "The Phase has an unspecified state.", @@ -2426,7 +2718,8 @@ "The Phase is in progress.", "The Phase has succeeded.", "The Phase has failed.", - "The Phase was aborted." + "The Phase was aborted.", + "The Phase was skipped." ], "readOnly": true, "type": "string" @@ -2434,6 +2727,50 @@ }, "type": "object" }, + "PhaseArtifact": { + "description": "Contains the paths to the artifacts, relative to the URI, for a phase.", + "id": "PhaseArtifact", + "properties": { + "manifestPath": { + "description": "Output only. File path of the rendered manifest relative to the URI.", + "readOnly": true, + "type": "string" + }, + "skaffoldConfigPath": { + "description": "Output only. File path of the resolved Skaffold configuration relative to the URI.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "PhaseConfig": { + "description": "PhaseConfig represents the configuration for a phase in the custom canary deployment.", + "id": "PhaseConfig", + "properties": { + "percentage": { + "description": "Required. Percentage deployment for the phase.", + "format": "int32", + "type": "integer" + }, + "phaseId": { + "description": "Required. The ID to assign to the `Rollout` phase. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.", + "type": "string" + }, + "profiles": { + "description": "Skaffold profiles to use when rendering the manifest for this phase. These are in addition to the profiles list specified in the `DeliveryPipeline` stage.", + "items": { + "type": "string" + }, + "type": "array" + }, + "verify": { + "description": "Whether to run verify tests after the deployment.", + "type": "boolean" + } + }, + "type": "object" + }, "PipelineCondition": { "description": "PipelineCondition contains all conditions relevant to a Delivery Pipeline.", "id": "PipelineCondition", @@ -2720,6 +3057,18 @@ }, "type": "object" }, + "RenderMetadata": { + "description": "RenderMetadata includes information associated with a `Release` render.", + "id": "RenderMetadata", + "properties": { + "cloudRun": { + "$ref": "CloudRunRenderMetadata", + "description": "Output only. Metadata associated with rendering for Cloud Run.", + "readOnly": true + } + }, + "type": "object" + }, "RetryJobRequest": { "description": "RetryJobRequest is the request object used by `RetryJob`.", "id": "RetryJobRequest", @@ -2883,7 +3232,10 @@ "PENDING_APPROVAL", "APPROVAL_REJECTED", "PENDING", - "PENDING_RELEASE" + "PENDING_RELEASE", + "CANCELLING", + "CANCELLED", + "HALTED" ], "enumDescriptions": [ "The `Rollout` has an unspecified state.", @@ -2893,7 +3245,10 @@ "The `Rollout` needs approval.", "An approver rejected the `Rollout`.", "The `Rollout` is waiting for an earlier Rollout(s) to complete on this `Target`.", - "The `Rollout` is waiting for the `Release` to be fully rendered." + "The `Rollout` is waiting for the `Release` to be fully rendered.", + "The `Rollout` is in the process of being cancelled.", + "The `Rollout` has been cancelled.", + "The `Rollout` is halted." ], "readOnly": true, "type": "string" @@ -2951,6 +3306,21 @@ }, "type": "object" }, + "RuntimeConfig": { + "description": "RuntimeConfig contains the runtime specific configurations for a deployment strategy.", + "id": "RuntimeConfig", + "properties": { + "cloudRun": { + "$ref": "CloudRunConfig", + "description": "Cloud Run runtime configuration." + }, + "kubernetes": { + "$ref": "KubernetesConfig", + "description": "Kubernetes runtime configuration." + } + }, + "type": "object" + }, "SerialPipeline": { "description": "SerialPipeline defines a sequential set of stages for a `DeliveryPipeline`.", "id": "SerialPipeline", @@ -2965,6 +3335,21 @@ }, "type": "object" }, + "ServiceNetworking": { + "description": "Information about the Kubernetes Service networking configuration.", + "id": "ServiceNetworking", + "properties": { + "deployment": { + "description": "Required. Name of the Kubernetes Deployment whose traffic is managed by the specified Service.", + "type": "string" + }, + "service": { + "description": "Required. Name of the Kubernetes Service.", + "type": "string" + } + }, + "type": "object" + }, "SetIamPolicyRequest": { "description": "Request message for `SetIamPolicy` method.", "id": "SetIamPolicyRequest", @@ -3107,6 +3492,10 @@ "description": "Strategy contains deployment strategy information.", "id": "Strategy", "properties": { + "canary": { + "$ref": "Canary", + "description": "Canary deployment strategy provides progressive percentage based deployments to a Target." + }, "standard": { "$ref": "Standard", "description": "Standard deployment strategy executes a single deploy and allows verifying the deployment." @@ -3210,6 +3599,14 @@ "readOnly": true, "type": "string" }, + "phaseArtifacts": { + "additionalProperties": { + "$ref": "PhaseArtifact" + }, + "description": "Output only. Map from the phase ID to the phase artifacts for the `Target`.", + "readOnly": true, + "type": "object" + }, "skaffoldConfigPath": { "description": "Output only. File path of the resolved Skaffold configuration relative to the URI.", "readOnly": true, @@ -3273,6 +3670,11 @@ "readOnly": true, "type": "string" }, + "metadata": { + "$ref": "RenderMetadata", + "description": "Output only. Metadata related to the `Release` render for this Target.", + "readOnly": true + }, "renderingBuild": { "description": "Output only. The resource name of the Cloud Build `Build` object that is used to render the manifest for this target. Format is `projects/{project}/locations/{location}/builds/{build}`.", "readOnly": true, @@ -3336,6 +3738,18 @@ }, "type": "object" }, + "TerminateJobRunRequest": { + "description": "The request object used by `TerminateJobRun`.", + "id": "TerminateJobRunRequest", + "properties": {}, + "type": "object" + }, + "TerminateJobRunResponse": { + "description": "The response object from `TerminateJobRun`.", + "id": "TerminateJobRunResponse", + "properties": {}, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 24acc1bcdd3..12987ca74a4 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -281,6 +281,41 @@ func (s *AdvanceChildRolloutJobRun) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AdvanceRolloutRequest: The request object used by `AdvanceRollout`. +type AdvanceRolloutRequest struct { + // PhaseId: Required. The phase ID to advance the `Rollout` to. + PhaseId string `json:"phaseId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PhaseId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PhaseId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AdvanceRolloutRequest) MarshalJSON() ([]byte, error) { + type NoMethod AdvanceRolloutRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AdvanceRolloutResponse: The response object from `AdvanceRollout`. +type AdvanceRolloutResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // AnthosCluster: Information specifying an Anthos Cluster. type AnthosCluster struct { // Membership: Membership of the GKE Hub-registered cluster to which to @@ -556,11 +591,97 @@ func (s *BuildArtifact) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Canary: Canary represents the canary deployment strategy. +type Canary struct { + // CanaryDeployment: Configures the progressive based deployment for a + // Target. + CanaryDeployment *CanaryDeployment `json:"canaryDeployment,omitempty"` + + // CustomCanaryDeployment: Configures the progressive based deployment + // for a Target, but allows customizing at the phase level where a phase + // represents each of the percentage deployments. + CustomCanaryDeployment *CustomCanaryDeployment `json:"customCanaryDeployment,omitempty"` + + // RuntimeConfig: Optional. Runtime specific configurations for the + // deployment strategy. The runtime configuration is used to determine + // how Cloud Deploy will split traffic to enable a progressive + // deployment. + RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CanaryDeployment") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CanaryDeployment") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Canary) MarshalJSON() ([]byte, error) { + type NoMethod Canary + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CanaryDeployment: CanaryDeployment represents the canary deployment +// configuration +type CanaryDeployment struct { + // Percentages: Required. The percentage based deployments that will + // occur as a part of a `Rollout`. List is expected in ascending order + // and each integer n is 0 <= n < 100. + Percentages []int64 `json:"percentages,omitempty"` + + // Verify: Whether to run verify tests after each percentage deployment. + Verify bool `json:"verify,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Percentages") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Percentages") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CanaryDeployment) MarshalJSON() ([]byte, error) { + type NoMethod CanaryDeployment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CancelOperationRequest: The request message for // Operations.CancelOperation. type CancelOperationRequest struct { } +// CancelRolloutRequest: The request object used by `CancelRollout`. +type CancelRolloutRequest struct { +} + +// CancelRolloutResponse: The response object from `CancelRollout`. +type CancelRolloutResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // ChildRolloutJobs: ChildRollouts job composition type ChildRolloutJobs struct { // AdvanceRolloutJobs: Output only. List of AdvanceChildRolloutJobs @@ -593,6 +714,40 @@ func (s *ChildRolloutJobs) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudRunConfig: CloudRunConfig contains the Cloud Run runtime +// configuration. +type CloudRunConfig struct { + // AutomaticTrafficControl: Whether Cloud Deploy should update the + // traffic stanza in a Cloud Run Service on the user's behalf to + // facilitate traffic splitting. This is required to be true for + // CanaryDeployments, but optional for CustomCanaryDeployments. + AutomaticTrafficControl bool `json:"automaticTrafficControl,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AutomaticTrafficControl") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AutomaticTrafficControl") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *CloudRunConfig) MarshalJSON() ([]byte, error) { + type NoMethod CloudRunConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CloudRunLocation: Information specifying where to deploy a Cloud Run // Service. type CloudRunLocation struct { @@ -662,6 +817,37 @@ func (s *CloudRunMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudRunRenderMetadata: CloudRunRenderMetadata contains Cloud Run +// information associated with a `Release` render. +type CloudRunRenderMetadata struct { + // Service: Output only. The name of the Cloud Run Service in the + // rendered manifest. Format is + // projects/{project}/locations/{location}/services/{service}. + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Service") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Service") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudRunRenderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CloudRunRenderMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Config: Service-wide configuration. type Config struct { // DefaultSkaffoldVersion: Default Skaffold version that is assigned @@ -743,6 +929,36 @@ func (s *CreateChildRolloutJobRun) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CustomCanaryDeployment: CustomCanaryDeployment represents the custom +// canary deployment configuration. +type CustomCanaryDeployment struct { + // PhaseConfigs: Required. Configuration for each phase in the canary + // deployment in the order executed. + PhaseConfigs []*PhaseConfig `json:"phaseConfigs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PhaseConfigs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PhaseConfigs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CustomCanaryDeployment) MarshalJSON() ([]byte, error) { + type NoMethod CustomCanaryDeployment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Date: Represents a whole or partial calendar date, such as a // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian @@ -980,6 +1196,9 @@ type DeployJobRun struct { // successfully; check Cloud Build logs. // "DEADLINE_EXCEEDED" - The deploy build did not complete within the // alloted time. + // "MISSING_RESOURCES_FOR_CANARY" - There were missing resources in + // the runtime environment required for a canary deployment. Check the + // Cloud Build logs for more information. // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Google // Cloud Deploy's request. See failure_message for additional details. FailureCause string `json:"failureCause,omitempty"` @@ -1215,6 +1434,42 @@ func (s *Expr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GatewayServiceMesh: Information about the Kubernetes Gateway API +// service mesh configuration. +type GatewayServiceMesh struct { + // Deployment: Required. Name of the Kubernetes Deployment whose traffic + // is managed by the specified HTTPRoute and Service. + Deployment string `json:"deployment,omitempty"` + + // HttpRoute: Required. Name of the Gateway API HTTPRoute. + HttpRoute string `json:"httpRoute,omitempty"` + + // Service: Required. Name of the Kubernetes Service. + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Deployment") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Deployment") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GatewayServiceMesh) MarshalJSON() ([]byte, error) { + type NoMethod GatewayServiceMesh + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GkeCluster: Information specifying a GKE Cluster. type GkeCluster struct { // Cluster: Information specifying a GKE Cluster. Format is @@ -1253,6 +1508,44 @@ func (s *GkeCluster) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// IgnoreJobRequest: The request object used by `IgnoreJob`. +type IgnoreJobRequest struct { + // JobId: Required. The job ID for the Job to ignore. + JobId string `json:"jobId,omitempty"` + + // PhaseId: Required. The phase ID the Job to ignore belongs to. + PhaseId string `json:"phaseId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "JobId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "JobId") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *IgnoreJobRequest) MarshalJSON() ([]byte, error) { + type NoMethod IgnoreJobRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// IgnoreJobResponse: The response object from `IgnoreJob`. +type IgnoreJobResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // Job: Job represents an operation for a `Rollout`. type Job struct { // AdvanceChildRolloutJob: Output only. An advanceChildRollout Job. @@ -1271,6 +1564,10 @@ type Job struct { // most recent invocation of this Job. JobRun string `json:"jobRun,omitempty"` + // SkipMessage: Output only. Additional information on why the Job was + // skipped, if available. + SkipMessage string `json:"skipMessage,omitempty"` + // State: Output only. The current state of the Job. // // Possible values: @@ -1282,6 +1579,8 @@ type Job struct { // "SUCCEEDED" - The Job succeeded. // "FAILED" - The Job failed. // "ABORTED" - The Job was aborted. + // "SKIPPED" - The Job was skipped. + // "IGNORED" - The Job was ignored. State string `json:"state,omitempty"` // VerifyJob: Output only. A verify Job. @@ -1362,6 +1661,8 @@ type JobRun struct { // "IN_PROGRESS" - The `JobRun` is in progress. // "SUCCEEDED" - The `JobRun` has succeeded. // "FAILED" - The `JobRun` has failed. + // "TERMINATING" - The `JobRun` is terminating. + // "TERMINATED" - The `JobRun` was terminated. State string `json:"state,omitempty"` // Uid: Output only. Unique identifier of the `JobRun`. @@ -1455,6 +1756,40 @@ func (s *JobRunNotificationEvent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// KubernetesConfig: KubernetesConfig contains the Kubernetes runtime +// configuration. +type KubernetesConfig struct { + // GatewayServiceMesh: Kubernetes Gateway API service mesh + // configuration. + GatewayServiceMesh *GatewayServiceMesh `json:"gatewayServiceMesh,omitempty"` + + // ServiceNetworking: Kubernetes Service networking configuration. + ServiceNetworking *ServiceNetworking `json:"serviceNetworking,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GatewayServiceMesh") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GatewayServiceMesh") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *KubernetesConfig) MarshalJSON() ([]byte, error) { + type NoMethod KubernetesConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListDeliveryPipelinesResponse: The response object from // `ListDeliveryPipelines`. type ListDeliveryPipelinesResponse struct { @@ -1966,6 +2301,10 @@ type Phase struct { // Id: Output only. The ID of the Phase. Id string `json:"id,omitempty"` + // SkipMessage: Output only. Additional information on why the Phase was + // skipped, if available. + SkipMessage string `json:"skipMessage,omitempty"` + // State: Output only. Current state of the Phase. // // Possible values: @@ -1976,6 +2315,7 @@ type Phase struct { // "SUCCEEDED" - The Phase has succeeded. // "FAILED" - The Phase has failed. // "ABORTED" - The Phase was aborted. + // "SKIPPED" - The Phase was skipped. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "ChildRolloutJobs") to @@ -2002,36 +2342,114 @@ func (s *Phase) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PipelineCondition: PipelineCondition contains all conditions relevant -// to a Delivery Pipeline. -type PipelineCondition struct { - // PipelineReadyCondition: Details around the Pipeline's overall status. - PipelineReadyCondition *PipelineReadyCondition `json:"pipelineReadyCondition,omitempty"` - - // TargetsPresentCondition: Details around targets enumerated in the - // pipeline. - TargetsPresentCondition *TargetsPresentCondition `json:"targetsPresentCondition,omitempty"` +// PhaseArtifact: Contains the paths to the artifacts, relative to the +// URI, for a phase. +type PhaseArtifact struct { + // ManifestPath: Output only. File path of the rendered manifest + // relative to the URI. + ManifestPath string `json:"manifestPath,omitempty"` - // TargetsTypeCondition: Details on the whether the targets enumerated - // in the pipeline are of the same type. - TargetsTypeCondition *TargetsTypeCondition `json:"targetsTypeCondition,omitempty"` + // SkaffoldConfigPath: Output only. File path of the resolved Skaffold + // configuration relative to the URI. + SkaffoldConfigPath string `json:"skaffoldConfigPath,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "PipelineReadyCondition") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ManifestPath") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PipelineReadyCondition") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ManifestPath") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PhaseArtifact) MarshalJSON() ([]byte, error) { + type NoMethod PhaseArtifact + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PhaseConfig: PhaseConfig represents the configuration for a phase in +// the custom canary deployment. +type PhaseConfig struct { + // Percentage: Required. Percentage deployment for the phase. + Percentage int64 `json:"percentage,omitempty"` + + // PhaseId: Required. The ID to assign to the `Rollout` phase. This + // value must consist of lower-case letters, numbers, and hyphens, start + // with a letter and end with a letter or a number, and have a max + // length of 63 characters. In other words, it must match the following + // regex: `^a-z ([a-z0-9-]{0,61}[a-z0-9])?$`. + PhaseId string `json:"phaseId,omitempty"` + + // Profiles: Skaffold profiles to use when rendering the manifest for + // this phase. These are in addition to the profiles list specified in + // the `DeliveryPipeline` stage. + Profiles []string `json:"profiles,omitempty"` + + // Verify: Whether to run verify tests after the deployment. + Verify bool `json:"verify,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Percentage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Percentage") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PhaseConfig) MarshalJSON() ([]byte, error) { + type NoMethod PhaseConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PipelineCondition: PipelineCondition contains all conditions relevant +// to a Delivery Pipeline. +type PipelineCondition struct { + // PipelineReadyCondition: Details around the Pipeline's overall status. + PipelineReadyCondition *PipelineReadyCondition `json:"pipelineReadyCondition,omitempty"` + + // TargetsPresentCondition: Details around targets enumerated in the + // pipeline. + TargetsPresentCondition *TargetsPresentCondition `json:"targetsPresentCondition,omitempty"` + + // TargetsTypeCondition: Details on the whether the targets enumerated + // in the pipeline are of the same type. + TargetsTypeCondition *TargetsTypeCondition `json:"targetsTypeCondition,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "PipelineReadyCondition") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PipelineReadyCondition") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2499,6 +2917,36 @@ func (s *ReleaseRenderEvent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RenderMetadata: RenderMetadata includes information associated with a +// `Release` render. +type RenderMetadata struct { + // CloudRun: Output only. Metadata associated with rendering for Cloud + // Run. + CloudRun *CloudRunRenderMetadata `json:"cloudRun,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CloudRun") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CloudRun") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RenderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod RenderMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RetryJobRequest: RetryJobRequest is the request object used by // `RetryJob`. type RetryJobRequest struct { @@ -2658,6 +3106,9 @@ type Rollout struct { // complete on this `Target`. // "PENDING_RELEASE" - The `Rollout` is waiting for the `Release` to // be fully rendered. + // "CANCELLING" - The `Rollout` is in the process of being cancelled. + // "CANCELLED" - The `Rollout` has been cancelled. + // "HALTED" - The `Rollout` is halted. State string `json:"state,omitempty"` // TargetId: Required. The ID of Target to which this `Rollout` is @@ -2747,6 +3198,38 @@ func (s *RolloutNotificationEvent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RuntimeConfig: RuntimeConfig contains the runtime specific +// configurations for a deployment strategy. +type RuntimeConfig struct { + // CloudRun: Cloud Run runtime configuration. + CloudRun *CloudRunConfig `json:"cloudRun,omitempty"` + + // Kubernetes: Kubernetes runtime configuration. + Kubernetes *KubernetesConfig `json:"kubernetes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CloudRun") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CloudRun") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RuntimeConfig) MarshalJSON() ([]byte, error) { + type NoMethod RuntimeConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SerialPipeline: SerialPipeline defines a sequential set of stages for // a `DeliveryPipeline`. type SerialPipeline struct { @@ -2777,6 +3260,39 @@ func (s *SerialPipeline) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ServiceNetworking: Information about the Kubernetes Service +// networking configuration. +type ServiceNetworking struct { + // Deployment: Required. Name of the Kubernetes Deployment whose traffic + // is managed by the specified Service. + Deployment string `json:"deployment,omitempty"` + + // Service: Required. Name of the Kubernetes Service. + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Deployment") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Deployment") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ServiceNetworking) MarshalJSON() ([]byte, error) { + type NoMethod ServiceNetworking + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SetIamPolicyRequest: Request message for `SetIamPolicy` method. type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the @@ -3024,11 +3540,15 @@ func (s *Status) MarshalJSON() ([]byte, error) { // Strategy: Strategy contains deployment strategy information. type Strategy struct { + // Canary: Canary deployment strategy provides progressive percentage + // based deployments to a Target. + Canary *Canary `json:"canary,omitempty"` + // Standard: Standard deployment strategy executes a single deploy and // allows verifying the deployment. Standard *Standard `json:"standard,omitempty"` - // ForceSendFields is a list of field names (e.g. "Standard") to + // ForceSendFields is a list of field names (e.g. "Canary") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3036,8 +3556,8 @@ type Strategy struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Standard") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Canary") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -3160,6 +3680,10 @@ type TargetArtifact struct { // relative to the URI. ManifestPath string `json:"manifestPath,omitempty"` + // PhaseArtifacts: Output only. Map from the phase ID to the phase + // artifacts for the `Target`. + PhaseArtifacts map[string]PhaseArtifact `json:"phaseArtifacts,omitempty"` + // SkaffoldConfigPath: Output only. File path of the resolved Skaffold // configuration relative to the URI. SkaffoldConfigPath string `json:"skaffoldConfigPath,omitempty"` @@ -3253,6 +3777,10 @@ type TargetRender struct { // failure, if available. FailureMessage string `json:"failureMessage,omitempty"` + // Metadata: Output only. Metadata related to the `Release` render for + // this Target. + Metadata *RenderMetadata `json:"metadata,omitempty"` + // RenderingBuild: Output only. The resource name of the Cloud Build // `Build` object that is used to render the manifest for this target. // Format is `projects/{project}/locations/{location}/builds/{build}`. @@ -3366,6 +3894,17 @@ func (s *TargetsTypeCondition) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TerminateJobRunRequest: The request object used by `TerminateJobRun`. +type TerminateJobRunRequest struct { +} + +// TerminateJobRunResponse: The response object from `TerminateJobRun`. +type TerminateJobRunResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // TestIamPermissionsRequest: Request message for `TestIamPermissions` // method. type TestIamPermissionsRequest struct { @@ -6159,33 +6698,33 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesListCall) Pages(ctx context.C } } -// method id "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.approve": +// method id "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.advance": -type ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall struct { +type ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall struct { s *Service name string - approverolloutrequest *ApproveRolloutRequest + advancerolloutrequest *AdvanceRolloutRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Approve: Approves a Rollout. +// Advance: Advances a Rollout in a given project and location. // // - name: Name of the Rollout. Format is // projects/{project}/locations/{location}/deliveryPipelines/{deliveryP // ipeline}/ releases/{release}/rollouts/{rollout}. -func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) Approve(name string, approverolloutrequest *ApproveRolloutRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall { - c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) Advance(name string, advancerolloutrequest *AdvanceRolloutRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall { + c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.approverolloutrequest = approverolloutrequest + c.advancerolloutrequest = advancerolloutrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall { +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6193,21 +6732,21 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Fields(s // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall { +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6215,14 +6754,14 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) doReques } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.approverolloutrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.advancerolloutrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:approve") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:advance") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -6235,14 +6774,14 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) doReques return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.approve" call. -// Exactly one of *ApproveRolloutResponse or error will be non-nil. Any +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.advance" call. +// Exactly one of *AdvanceRolloutResponse or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ApproveRolloutResponse.ServerResponse.Header or (if a response was +// *AdvanceRolloutResponse.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Do(opts ...googleapi.CallOption) (*ApproveRolloutResponse, error) { +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsAdvanceCall) Do(opts ...googleapi.CallOption) (*AdvanceRolloutResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6261,7 +6800,7 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ApproveRolloutResponse{ + ret := &AdvanceRolloutResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6273,10 +6812,10 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Do(opts } return ret, nil // { - // "description": "Approves a Rollout.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts/{rolloutsId}:approve", + // "description": "Advances a Rollout in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts/{rolloutsId}:advance", // "httpMethod": "POST", - // "id": "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.approve", + // "id": "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.advance", // "parameterOrder": [ // "name" // ], @@ -6289,12 +6828,12 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Do(opts // "type": "string" // } // }, - // "path": "v1/{+name}:approve", + // "path": "v1/{+name}:advance", // "request": { - // "$ref": "ApproveRolloutRequest" + // "$ref": "AdvanceRolloutRequest" // }, // "response": { - // "$ref": "ApproveRolloutResponse" + // "$ref": "AdvanceRolloutResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6303,74 +6842,33 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Do(opts } -// method id "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.create": +// method id "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.approve": -type ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall struct { - s *Service - parent string - rollout *Rollout - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall struct { + s *Service + name string + approverolloutrequest *ApproveRolloutRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new Rollout in a given project and location. +// Approve: Approves a Rollout. // -// - parent: The parent collection in which the `Rollout` should be -// created. Format should be -// projects/{project_id}/locations/{location_name}/deliveryPipelines/{p -// ipeline_name}/releases/{release_name}. -func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) Create(parent string, rollout *Rollout) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { - c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.rollout = rollout - return c -} - -// RequestId sets the optional parameter "requestId": A request ID to -// identify requests. Specify a unique request ID so that if you must -// retry your request, the server will know to ignore the request if it -// has already been completed. The server will guarantee that for at -// least 60 minutes since the first request. For example, consider a -// situation where you make an initial request and the request times -// out. If you make the request again with the same request ID, the -// server can check if original operation with the same request ID was -// received, and if so, will ignore the second request. This prevents -// clients from accidentally creating duplicate commitments. The request -// ID must be a valid UUID with the exception that zero UUID is not -// supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// RolloutId sets the optional parameter "rolloutId": Required. ID of -// the `Rollout`. -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) RolloutId(rolloutId string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { - c.urlParams_.Set("rolloutId", rolloutId) - return c -} - -// StartingPhaseId sets the optional parameter "startingPhaseId": The -// starting phase ID for the `Rollout`. If empty the `Rollout` will -// start at the first phase. -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) StartingPhaseId(startingPhaseId string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { - c.urlParams_.Set("startingPhaseId", startingPhaseId) - return c -} - -// ValidateOnly sets the optional parameter "validateOnly": If set to -// true, the request is validated and the user is provided with an -// expected result, but no actual change is made. -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) +// - name: Name of the Rollout. Format is +// projects/{project}/locations/{location}/deliveryPipelines/{deliveryP +// ipeline}/ releases/{release}/rollouts/{rollout}. +func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) Approve(name string, approverolloutrequest *ApproveRolloutRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall { + c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.approverolloutrequest = approverolloutrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6378,21 +6876,21 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) Fields(s // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6400,14 +6898,343 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) doRequest } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollout) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.approverolloutrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rollouts") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:approve") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.approve" call. +// Exactly one of *ApproveRolloutResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ApproveRolloutResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsApproveCall) Do(opts ...googleapi.CallOption) (*ApproveRolloutResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ApproveRolloutResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Approves a Rollout.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts/{rolloutsId}:approve", + // "httpMethod": "POST", + // "id": "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.approve", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the Rollout. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/releases/[^/]+/rollouts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:approve", + // "request": { + // "$ref": "ApproveRolloutRequest" + // }, + // "response": { + // "$ref": "ApproveRolloutResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.cancel": + +type ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall struct { + s *Service + name string + cancelrolloutrequest *CancelRolloutRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels a Rollout in a given project and location. +// +// - name: Name of the Rollout. Format is +// projects/{project}/locations/{location}/deliveryPipelines/{deliveryP +// ipeline}/ releases/{release}/rollouts/{rollout}. +func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) Cancel(name string, cancelrolloutrequest *CancelRolloutRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall { + c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.cancelrolloutrequest = cancelrolloutrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.cancelrolloutrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.cancel" call. +// Exactly one of *CancelRolloutResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *CancelRolloutResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCancelCall) Do(opts ...googleapi.CallOption) (*CancelRolloutResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &CancelRolloutResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Cancels a Rollout in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts/{rolloutsId}:cancel", + // "httpMethod": "POST", + // "id": "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the Rollout. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/releases/[^/]+/rollouts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "CancelRolloutRequest" + // }, + // "response": { + // "$ref": "CancelRolloutResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.create": + +type ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall struct { + s *Service + parent string + rollout *Rollout + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Rollout in a given project and location. +// +// - parent: The parent collection in which the `Rollout` should be +// created. Format should be +// projects/{project_id}/locations/{location_name}/deliveryPipelines/{p +// ipeline_name}/releases/{release_name}. +func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) Create(parent string, rollout *Rollout) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { + c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.rollout = rollout + return c +} + +// RequestId sets the optional parameter "requestId": A request ID to +// identify requests. Specify a unique request ID so that if you must +// retry your request, the server will know to ignore the request if it +// has already been completed. The server will guarantee that for at +// least 60 minutes since the first request. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// RolloutId sets the optional parameter "rolloutId": Required. ID of +// the `Rollout`. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) RolloutId(rolloutId string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { + c.urlParams_.Set("rolloutId", rolloutId) + return c +} + +// StartingPhaseId sets the optional parameter "startingPhaseId": The +// starting phase ID for the `Rollout`. If empty the `Rollout` will +// start at the first phase. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) StartingPhaseId(startingPhaseId string) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { + c.urlParams_.Set("startingPhaseId", startingPhaseId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set to +// true, the request is validated and the user is provided with an +// expected result, but no actual change is made. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollout) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rollouts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -6656,6 +7483,150 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsGetCall) Do(opts ...g } +// method id "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.ignoreJob": + +type ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall struct { + s *Service + rollout string + ignorejobrequest *IgnoreJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// IgnoreJob: Ignores the specified Job in a Rollout. +// +// - rollout: Name of the Rollout. Format is +// projects/{project}/locations/{location}/deliveryPipelines/{deliveryP +// ipeline}/ releases/{release}/rollouts/{rollout}. +func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsService) IgnoreJob(rollout string, ignorejobrequest *IgnoreJobRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall { + c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.rollout = rollout + c.ignorejobrequest = ignorejobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.ignorejobrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+rollout}:ignoreJob") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "rollout": c.rollout, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.ignoreJob" call. +// Exactly one of *IgnoreJobResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *IgnoreJobResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsIgnoreJobCall) Do(opts ...googleapi.CallOption) (*IgnoreJobResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &IgnoreJobResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Ignores the specified Job in a Rollout.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts/{rolloutsId}:ignoreJob", + // "httpMethod": "POST", + // "id": "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.ignoreJob", + // "parameterOrder": [ + // "rollout" + // ], + // "parameters": { + // "rollout": { + // "description": "Required. Name of the Rollout. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/releases/[^/]+/rollouts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+rollout}:ignoreJob", + // "request": { + // "$ref": "IgnoreJobRequest" + // }, + // "response": { + // "$ref": "IgnoreJobResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.list": type ProjectsLocationsDeliveryPipelinesReleasesRolloutsListCall struct { @@ -7392,6 +8363,150 @@ func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsListCall) Page } } +// method id "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.jobRuns.terminate": + +type ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall struct { + s *Service + name string + terminatejobrunrequest *TerminateJobRunRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Terminate: Terminates a Job Run in a given project and location. +// +// - name: Name of the `JobRun`. Format must be +// projects/{project}/locations/{location}/deliveryPipelines/{deliveryP +// ipeline}/ releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}. +func (r *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsService) Terminate(name string, terminatejobrunrequest *TerminateJobRunRequest) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall { + c := &ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.terminatejobrunrequest = terminatejobrunrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.terminatejobrunrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:terminate") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.jobRuns.terminate" call. +// Exactly one of *TerminateJobRunResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *TerminateJobRunResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRunsTerminateCall) Do(opts ...googleapi.CallOption) (*TerminateJobRunResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TerminateJobRunResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Terminates a Job Run in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/releases/{releasesId}/rollouts/{rolloutsId}/jobRuns/{jobRunsId}:terminate", + // "httpMethod": "POST", + // "id": "clouddeploy.projects.locations.deliveryPipelines.releases.rollouts.jobRuns.terminate", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the `JobRun`. Format must be projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/releases/[^/]+/rollouts/[^/]+/jobRuns/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:terminate", + // "request": { + // "$ref": "TerminateJobRunRequest" + // }, + // "response": { + // "$ref": "TerminateJobRunResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "clouddeploy.projects.locations.operations.cancel": type ProjectsLocationsOperationsCancelCall struct { diff --git a/cloudidentity/v1/cloudidentity-api.json b/cloudidentity/v1/cloudidentity-api.json index 3d7128bb75c..b768f9d95b3 100644 --- a/cloudidentity/v1/cloudidentity-api.json +++ b/cloudidentity/v1/cloudidentity-api.json @@ -1460,6 +1460,49 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "searchDirectGroups": { + "description": "Searches direct groups of a member.", + "flatPath": "v1/groups/{groupsId}/memberships:searchDirectGroups", + "httpMethod": "GET", + "id": "cloudidentity.groups.memberships.searchDirectGroups", + "parameterOrder": [ + "parent" + ], + "parameters": { + "orderBy": { + "description": "The ordering of membership relation for the display name or email in the response. The syntax for this field can be found at https://cloud.google.com/apis/design/design_patterns#sorting_order. Example: Sort by the ascending display name: order_by=\"group_name\" or order_by=\"group_name asc\". Sort by the descending display name: order_by=\"group_name desc\". Sort by the ascending group key: order_by=\"group_key\" or order_by=\"group_key asc\". Sort by the descending group key: order_by=\"group_key desc\".", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The default page size is 200 (max 1000).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request, if any", + "location": "query", + "type": "string" + }, + "parent": { + "description": "[Resource name](https://cloud.google.com/apis/design/resource_names) of the group to search transitive memberships in. Format: groups/{group_id}, where group_id is always '-' as this API will search across all groups for a given member.", + "location": "path", + "pattern": "^groups/[^/]+$", + "required": true, + "type": "string" + }, + "query": { + "description": "Required. A CEL expression that MUST include member specification AND label(s). Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels. Identity-mapped groups are uniquely identified by both a `member_key_id` and a `member_key_namespace`, which requires an additional query input: `member_key_namespace`. Example query: `member_key_id == 'member_key_id_value' \u0026\u0026 'label_value' in labels`", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/memberships:searchDirectGroups", + "response": { + "$ref": "SearchDirectGroupsResponse" + } + }, "searchTransitiveGroups": { "description": "Search transitive groups of a member. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A transitive group is any group that has a direct or indirect membership to the member. Actor must have view permissions all transitive groups.", "flatPath": "v1/groups/{groupsId}/memberships:searchTransitiveGroups", @@ -1942,7 +1985,7 @@ } } }, - "revision": "20230307", + "revision": "20230328", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { @@ -3371,6 +3414,27 @@ "readOnly": true, "type": "string" }, + "deliverySetting": { + "description": "Output only. Delivery setting associated with the membership.", + "enum": [ + "DELIVERY_SETTING_UNSPECIFIED", + "ALL_MAIL", + "DIGEST", + "DAILY", + "NONE", + "DISABLED" + ], + "enumDescriptions": [ + "Default. Should not be used.", + "Represents each mail should be delivered", + "Represents 1 email for every 25 messages.", + "Represents daily summary of messages.", + "Represents no delivery.", + "Represents disabled state." + ], + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Membership`. Shall be of the form `groups/{group}/memberships/{membership}`.", "readOnly": true, @@ -3435,6 +3499,47 @@ }, "type": "object" }, + "MembershipRelation": { + "description": "Message containing membership relation.", + "id": "MembershipRelation", + "properties": { + "description": { + "description": "An extended description to help users determine the purpose of a `Group`.", + "type": "string" + }, + "displayName": { + "description": "The display name of the `Group`.", + "type": "string" + }, + "group": { + "description": "The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Group`. Shall be of the form `groups/{group_id}`.", + "type": "string" + }, + "groupKey": { + "$ref": "EntityKey", + "description": "The `EntityKey` of the `Group`." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "One or more label entries that apply to the Group. Currently supported labels contain a key with an empty value.", + "type": "object" + }, + "membership": { + "description": "The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Membership`. Shall be of the form `groups/{group_id}/memberships/{membership_id}`.", + "type": "string" + }, + "roles": { + "description": "The `MembershipRole`s that apply to the `Membership`.", + "items": { + "$ref": "MembershipRole" + }, + "type": "array" + } + }, + "type": "object" + }, "MembershipRole": { "description": "A membership role within the Cloud Identity Groups API. A `MembershipRole` defines the privileges granted to a `Membership`.", "id": "MembershipRole", @@ -3654,6 +3759,24 @@ }, "type": "object" }, + "SearchDirectGroupsResponse": { + "description": "The response message for MembershipsService.SearchDirectGroups.", + "id": "SearchDirectGroupsResponse", + "properties": { + "memberships": { + "description": "List of direct groups satisfying the query.", + "items": { + "$ref": "MembershipRelation" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results available for listing.", + "type": "string" + } + }, + "type": "object" + }, "SearchGroupsResponse": { "description": "The response message for GroupsService.SearchGroups.", "id": "SearchGroupsResponse", diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index 09ddd0e34d7..1f7ccfecf38 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -2517,6 +2517,18 @@ type Membership struct { // CreateTime: Output only. The time when the `Membership` was created. CreateTime string `json:"createTime,omitempty"` + // DeliverySetting: Output only. Delivery setting associated with the + // membership. + // + // Possible values: + // "DELIVERY_SETTING_UNSPECIFIED" - Default. Should not be used. + // "ALL_MAIL" - Represents each mail should be delivered + // "DIGEST" - Represents 1 email for every 25 messages. + // "DAILY" - Represents daily summary of messages. + // "NONE" - Represents no delivery. + // "DISABLED" - Represents disabled state. + DeliverySetting string `json:"deliverySetting,omitempty"` + // Name: Output only. The resource name // (https://cloud.google.com/apis/design/resource_names) of the // `Membership`. Shall be of the form @@ -2610,6 +2622,59 @@ func (s *MembershipAdjacencyList) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MembershipRelation: Message containing membership relation. +type MembershipRelation struct { + // Description: An extended description to help users determine the + // purpose of a `Group`. + Description string `json:"description,omitempty"` + + // DisplayName: The display name of the `Group`. + DisplayName string `json:"displayName,omitempty"` + + // Group: The resource name + // (https://cloud.google.com/apis/design/resource_names) of the `Group`. + // Shall be of the form `groups/{group_id}`. + Group string `json:"group,omitempty"` + + // GroupKey: The `EntityKey` of the `Group`. + GroupKey *EntityKey `json:"groupKey,omitempty"` + + // Labels: One or more label entries that apply to the Group. Currently + // supported labels contain a key with an empty value. + Labels map[string]string `json:"labels,omitempty"` + + // Membership: The resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // `Membership`. Shall be of the form + // `groups/{group_id}/memberships/{membership_id}`. + Membership string `json:"membership,omitempty"` + + // Roles: The `MembershipRole`s that apply to the `Membership`. + Roles []*MembershipRole `json:"roles,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MembershipRelation) MarshalJSON() ([]byte, error) { + type NoMethod MembershipRelation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MembershipRole: A membership role within the Cloud Identity Groups // API. A `MembershipRole` defines the privileges granted to a // `Membership`. @@ -3048,6 +3113,43 @@ func (s *SamlSsoInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SearchDirectGroupsResponse: The response message for +// MembershipsService.SearchDirectGroups. +type SearchDirectGroupsResponse struct { + // Memberships: List of direct groups satisfying the query. + Memberships []*MembershipRelation `json:"memberships,omitempty"` + + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results available for listing. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Memberships") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Memberships") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SearchDirectGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchDirectGroupsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SearchGroupsResponse: The response message for // GroupsService.SearchGroups. type SearchGroupsResponse struct { @@ -10191,6 +10293,235 @@ func (c *GroupsMembershipsModifyMembershipRolesCall) Do(opts ...googleapi.CallOp } +// method id "cloudidentity.groups.memberships.searchDirectGroups": + +type GroupsMembershipsSearchDirectGroupsCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SearchDirectGroups: Searches direct groups of a member. +// +// - parent: Resource name +// (https://cloud.google.com/apis/design/resource_names) of the group +// to search transitive memberships in. Format: groups/{group_id}, +// where group_id is always '-' as this API will search across all +// groups for a given member. +func (r *GroupsMembershipsService) SearchDirectGroups(parent string) *GroupsMembershipsSearchDirectGroupsCall { + c := &GroupsMembershipsSearchDirectGroupsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// OrderBy sets the optional parameter "orderBy": The ordering of +// membership relation for the display name or email in the response. +// The syntax for this field can be found at +// https://cloud.google.com/apis/design/design_patterns#sorting_order. +// Example: Sort by the ascending display name: order_by="group_name" or +// order_by="group_name asc". Sort by the descending display name: +// order_by="group_name desc". Sort by the ascending group key: +// order_by="group_key" or order_by="group_key asc". Sort by the +// descending group key: order_by="group_key desc". +func (c *GroupsMembershipsSearchDirectGroupsCall) OrderBy(orderBy string) *GroupsMembershipsSearchDirectGroupsCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The default page +// size is 200 (max 1000). +func (c *GroupsMembershipsSearchDirectGroupsCall) PageSize(pageSize int64) *GroupsMembershipsSearchDirectGroupsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous list request, if any +func (c *GroupsMembershipsSearchDirectGroupsCall) PageToken(pageToken string) *GroupsMembershipsSearchDirectGroupsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Query sets the optional parameter "query": Required. A CEL expression +// that MUST include member specification AND label(s). Users can search +// on label attributes of groups. CONTAINS match ('in') is supported on +// labels. Identity-mapped groups are uniquely identified by both a +// `member_key_id` and a `member_key_namespace`, which requires an +// additional query input: `member_key_namespace`. Example query: +// `member_key_id == 'member_key_id_value' && 'label_value' in labels` +func (c *GroupsMembershipsSearchDirectGroupsCall) Query(query string) *GroupsMembershipsSearchDirectGroupsCall { + c.urlParams_.Set("query", query) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *GroupsMembershipsSearchDirectGroupsCall) Fields(s ...googleapi.Field) *GroupsMembershipsSearchDirectGroupsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *GroupsMembershipsSearchDirectGroupsCall) IfNoneMatch(entityTag string) *GroupsMembershipsSearchDirectGroupsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *GroupsMembershipsSearchDirectGroupsCall) Context(ctx context.Context) *GroupsMembershipsSearchDirectGroupsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *GroupsMembershipsSearchDirectGroupsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *GroupsMembershipsSearchDirectGroupsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/memberships:searchDirectGroups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudidentity.groups.memberships.searchDirectGroups" call. +// Exactly one of *SearchDirectGroupsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *SearchDirectGroupsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *GroupsMembershipsSearchDirectGroupsCall) Do(opts ...googleapi.CallOption) (*SearchDirectGroupsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SearchDirectGroupsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Searches direct groups of a member.", + // "flatPath": "v1/groups/{groupsId}/memberships:searchDirectGroups", + // "httpMethod": "GET", + // "id": "cloudidentity.groups.memberships.searchDirectGroups", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "orderBy": { + // "description": "The ordering of membership relation for the display name or email in the response. The syntax for this field can be found at https://cloud.google.com/apis/design/design_patterns#sorting_order. Example: Sort by the ascending display name: order_by=\"group_name\" or order_by=\"group_name asc\". Sort by the descending display name: order_by=\"group_name desc\". Sort by the ascending group key: order_by=\"group_key\" or order_by=\"group_key asc\". Sort by the descending group key: order_by=\"group_key desc\".", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The default page size is 200 (max 1000).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous list request, if any", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "[Resource name](https://cloud.google.com/apis/design/resource_names) of the group to search transitive memberships in. Format: groups/{group_id}, where group_id is always '-' as this API will search across all groups for a given member.", + // "location": "path", + // "pattern": "^groups/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "query": { + // "description": "Required. A CEL expression that MUST include member specification AND label(s). Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels. Identity-mapped groups are uniquely identified by both a `member_key_id` and a `member_key_namespace`, which requires an additional query input: `member_key_namespace`. Example query: `member_key_id == 'member_key_id_value' \u0026\u0026 'label_value' in labels`", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/memberships:searchDirectGroups", + // "response": { + // "$ref": "SearchDirectGroupsResponse" + // } + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *GroupsMembershipsSearchDirectGroupsCall) Pages(ctx context.Context, f func(*SearchDirectGroupsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "cloudidentity.groups.memberships.searchTransitiveGroups": type GroupsMembershipsSearchTransitiveGroupsCall struct { diff --git a/cloudidentity/v1beta1/cloudidentity-api.json b/cloudidentity/v1beta1/cloudidentity-api.json index a2023fad66f..e6f11742599 100644 --- a/cloudidentity/v1beta1/cloudidentity-api.json +++ b/cloudidentity/v1beta1/cloudidentity-api.json @@ -1409,6 +1409,49 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "searchDirectGroups": { + "description": "Searches direct groups of a member.", + "flatPath": "v1beta1/groups/{groupsId}/memberships:searchDirectGroups", + "httpMethod": "GET", + "id": "cloudidentity.groups.memberships.searchDirectGroups", + "parameterOrder": [ + "parent" + ], + "parameters": { + "orderBy": { + "description": "The ordering of membership relation for the display name or email in the response. The syntax for this field can be found at https://cloud.google.com/apis/design/design_patterns#sorting_order. Example: Sort by the ascending display name: order_by=\"group_name\" or order_by=\"group_name asc\". Sort by the descending display name: order_by=\"group_name desc\". Sort by the ascending group key: order_by=\"group_key\" or order_by=\"group_key asc\". Sort by the descending group key: order_by=\"group_key desc\".", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The default page size is 200 (max 1000).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The next_page_token value returned from a previous list request, if any", + "location": "query", + "type": "string" + }, + "parent": { + "description": "[Resource name](https://cloud.google.com/apis/design/resource_names) of the group to search transitive memberships in. Format: groups/{group_id}, where group_id is always '-' as this API will search across all groups for a given member.", + "location": "path", + "pattern": "^groups/[^/]+$", + "required": true, + "type": "string" + }, + "query": { + "description": "Required. A CEL expression that MUST include member specification AND label(s). Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels. Identity-mapped groups are uniquely identified by both a `member_key_id` and a `member_key_namespace`, which requires an additional query input: `member_key_namespace`. Example query: `member_key_id == 'member_key_id_value' \u0026\u0026 'label_value' in labels`", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/memberships:searchDirectGroups", + "response": { + "$ref": "SearchDirectGroupsResponse" + } + }, "searchTransitiveGroups": { "description": "Search transitive groups of a member. **Note:** This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. A transitive group is any group that has a direct or indirect membership to the member. Actor must have view permissions all transitive groups.", "flatPath": "v1beta1/groups/{groupsId}/memberships:searchTransitiveGroups", @@ -1967,7 +2010,7 @@ } } }, - "revision": "20230307", + "revision": "20230328", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { @@ -4034,6 +4077,27 @@ "readOnly": true, "type": "string" }, + "deliverySetting": { + "description": "Output only. Delivery setting associated with the membership.", + "enum": [ + "DELIVERY_SETTING_UNSPECIFIED", + "ALL_MAIL", + "DIGEST", + "DAILY", + "NONE", + "DISABLED" + ], + "enumDescriptions": [ + "Default. Should not be used.", + "Represents each mail should be delivered", + "Represents 1 email for every 25 messages.", + "Represents daily summary of messages.", + "Represents no delivery.", + "Represents disabled state." + ], + "readOnly": true, + "type": "string" + }, "memberKey": { "$ref": "EntityKey", "description": "Immutable. The `EntityKey` of the member. Either `member_key` or `preferred_member_key` must be set when calling MembershipsService.CreateMembership but not both; both shall be set when returned." @@ -4102,6 +4166,47 @@ }, "type": "object" }, + "MembershipRelation": { + "description": "Message containing membership relation.", + "id": "MembershipRelation", + "properties": { + "description": { + "description": "An extended description to help users determine the purpose of a `Group`.", + "type": "string" + }, + "displayName": { + "description": "The display name of the `Group`.", + "type": "string" + }, + "group": { + "description": "The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Group`. Shall be of the form `groups/{group_id}`.", + "type": "string" + }, + "groupKey": { + "$ref": "EntityKey", + "description": "The `EntityKey` of the `Group`." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "One or more label entries that apply to the Group. Currently supported labels contain a key with an empty value.", + "type": "object" + }, + "membership": { + "description": "The [resource name](https://cloud.google.com/apis/design/resource_names) of the `Membership`. Shall be of the form `groups/{group_id}/memberships/{membership_id}`.", + "type": "string" + }, + "roles": { + "description": "The `MembershipRole`s that apply to the `Membership`.", + "items": { + "$ref": "MembershipRole" + }, + "type": "array" + } + }, + "type": "object" + }, "MembershipRole": { "description": "A membership role within the Cloud Identity Groups API. A `MembershipRole` defines the privileges granted to a `Membership`.", "id": "MembershipRole", @@ -4387,6 +4492,24 @@ }, "type": "object" }, + "SearchDirectGroupsResponse": { + "description": "The response message for MembershipsService.SearchDirectGroups.", + "id": "SearchDirectGroupsResponse", + "properties": { + "memberships": { + "description": "List of direct groups satisfying the query.", + "items": { + "$ref": "MembershipRelation" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to retrieve the next page of results, or empty if there are no more results available for listing.", + "type": "string" + } + }, + "type": "object" + }, "SearchGroupsResponse": { "description": "The response message for GroupsService.SearchGroups.", "id": "SearchGroupsResponse", diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index e3b062bd32b..e101ad8a943 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -3252,6 +3252,18 @@ type Membership struct { // CreateTime: Output only. The time when the `Membership` was created. CreateTime string `json:"createTime,omitempty"` + // DeliverySetting: Output only. Delivery setting associated with the + // membership. + // + // Possible values: + // "DELIVERY_SETTING_UNSPECIFIED" - Default. Should not be used. + // "ALL_MAIL" - Represents each mail should be delivered + // "DIGEST" - Represents 1 email for every 25 messages. + // "DAILY" - Represents daily summary of messages. + // "NONE" - Represents no delivery. + // "DISABLED" - Represents disabled state. + DeliverySetting string `json:"deliverySetting,omitempty"` + // MemberKey: Immutable. The `EntityKey` of the member. Either // `member_key` or `preferred_member_key` must be set when calling // MembershipsService.CreateMembership but not both; both shall be set @@ -3353,6 +3365,59 @@ func (s *MembershipAdjacencyList) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MembershipRelation: Message containing membership relation. +type MembershipRelation struct { + // Description: An extended description to help users determine the + // purpose of a `Group`. + Description string `json:"description,omitempty"` + + // DisplayName: The display name of the `Group`. + DisplayName string `json:"displayName,omitempty"` + + // Group: The resource name + // (https://cloud.google.com/apis/design/resource_names) of the `Group`. + // Shall be of the form `groups/{group_id}`. + Group string `json:"group,omitempty"` + + // GroupKey: The `EntityKey` of the `Group`. + GroupKey *EntityKey `json:"groupKey,omitempty"` + + // Labels: One or more label entries that apply to the Group. Currently + // supported labels contain a key with an empty value. + Labels map[string]string `json:"labels,omitempty"` + + // Membership: The resource name + // (https://cloud.google.com/apis/design/resource_names) of the + // `Membership`. Shall be of the form + // `groups/{group_id}/memberships/{membership_id}`. + Membership string `json:"membership,omitempty"` + + // Roles: The `MembershipRole`s that apply to the `Membership`. + Roles []*MembershipRole `json:"roles,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MembershipRelation) MarshalJSON() ([]byte, error) { + type NoMethod MembershipRelation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MembershipRole: A membership role within the Cloud Identity Groups // API. A `MembershipRole` defines the privileges granted to a // `Membership`. @@ -3929,6 +3994,43 @@ func (s *SamlSsoInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SearchDirectGroupsResponse: The response message for +// MembershipsService.SearchDirectGroups. +type SearchDirectGroupsResponse struct { + // Memberships: List of direct groups satisfying the query. + Memberships []*MembershipRelation `json:"memberships,omitempty"` + + // NextPageToken: Token to retrieve the next page of results, or empty + // if there are no more results available for listing. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Memberships") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Memberships") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SearchDirectGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod SearchDirectGroupsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SearchGroupsResponse: The response message for // GroupsService.SearchGroups. type SearchGroupsResponse struct { @@ -10920,6 +11022,235 @@ func (c *GroupsMembershipsModifyMembershipRolesCall) Do(opts ...googleapi.CallOp } +// method id "cloudidentity.groups.memberships.searchDirectGroups": + +type GroupsMembershipsSearchDirectGroupsCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SearchDirectGroups: Searches direct groups of a member. +// +// - parent: Resource name +// (https://cloud.google.com/apis/design/resource_names) of the group +// to search transitive memberships in. Format: groups/{group_id}, +// where group_id is always '-' as this API will search across all +// groups for a given member. +func (r *GroupsMembershipsService) SearchDirectGroups(parent string) *GroupsMembershipsSearchDirectGroupsCall { + c := &GroupsMembershipsSearchDirectGroupsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// OrderBy sets the optional parameter "orderBy": The ordering of +// membership relation for the display name or email in the response. +// The syntax for this field can be found at +// https://cloud.google.com/apis/design/design_patterns#sorting_order. +// Example: Sort by the ascending display name: order_by="group_name" or +// order_by="group_name asc". Sort by the descending display name: +// order_by="group_name desc". Sort by the ascending group key: +// order_by="group_key" or order_by="group_key asc". Sort by the +// descending group key: order_by="group_key desc". +func (c *GroupsMembershipsSearchDirectGroupsCall) OrderBy(orderBy string) *GroupsMembershipsSearchDirectGroupsCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The default page +// size is 200 (max 1000). +func (c *GroupsMembershipsSearchDirectGroupsCall) PageSize(pageSize int64) *GroupsMembershipsSearchDirectGroupsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous list request, if any +func (c *GroupsMembershipsSearchDirectGroupsCall) PageToken(pageToken string) *GroupsMembershipsSearchDirectGroupsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Query sets the optional parameter "query": Required. A CEL expression +// that MUST include member specification AND label(s). Users can search +// on label attributes of groups. CONTAINS match ('in') is supported on +// labels. Identity-mapped groups are uniquely identified by both a +// `member_key_id` and a `member_key_namespace`, which requires an +// additional query input: `member_key_namespace`. Example query: +// `member_key_id == 'member_key_id_value' && 'label_value' in labels` +func (c *GroupsMembershipsSearchDirectGroupsCall) Query(query string) *GroupsMembershipsSearchDirectGroupsCall { + c.urlParams_.Set("query", query) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *GroupsMembershipsSearchDirectGroupsCall) Fields(s ...googleapi.Field) *GroupsMembershipsSearchDirectGroupsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *GroupsMembershipsSearchDirectGroupsCall) IfNoneMatch(entityTag string) *GroupsMembershipsSearchDirectGroupsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *GroupsMembershipsSearchDirectGroupsCall) Context(ctx context.Context) *GroupsMembershipsSearchDirectGroupsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *GroupsMembershipsSearchDirectGroupsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *GroupsMembershipsSearchDirectGroupsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/memberships:searchDirectGroups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudidentity.groups.memberships.searchDirectGroups" call. +// Exactly one of *SearchDirectGroupsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *SearchDirectGroupsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *GroupsMembershipsSearchDirectGroupsCall) Do(opts ...googleapi.CallOption) (*SearchDirectGroupsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SearchDirectGroupsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Searches direct groups of a member.", + // "flatPath": "v1beta1/groups/{groupsId}/memberships:searchDirectGroups", + // "httpMethod": "GET", + // "id": "cloudidentity.groups.memberships.searchDirectGroups", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "orderBy": { + // "description": "The ordering of membership relation for the display name or email in the response. The syntax for this field can be found at https://cloud.google.com/apis/design/design_patterns#sorting_order. Example: Sort by the ascending display name: order_by=\"group_name\" or order_by=\"group_name asc\". Sort by the descending display name: order_by=\"group_name desc\". Sort by the ascending group key: order_by=\"group_key\" or order_by=\"group_key asc\". Sort by the descending group key: order_by=\"group_key desc\".", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The default page size is 200 (max 1000).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The next_page_token value returned from a previous list request, if any", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "[Resource name](https://cloud.google.com/apis/design/resource_names) of the group to search transitive memberships in. Format: groups/{group_id}, where group_id is always '-' as this API will search across all groups for a given member.", + // "location": "path", + // "pattern": "^groups/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "query": { + // "description": "Required. A CEL expression that MUST include member specification AND label(s). Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels. Identity-mapped groups are uniquely identified by both a `member_key_id` and a `member_key_namespace`, which requires an additional query input: `member_key_namespace`. Example query: `member_key_id == 'member_key_id_value' \u0026\u0026 'label_value' in labels`", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/memberships:searchDirectGroups", + // "response": { + // "$ref": "SearchDirectGroupsResponse" + // } + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *GroupsMembershipsSearchDirectGroupsCall) Pages(ctx context.Context, f func(*SearchDirectGroupsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "cloudidentity.groups.memberships.searchTransitiveGroups": type GroupsMembershipsSearchTransitiveGroupsCall struct { diff --git a/cloudprofiler/v2/cloudprofiler-api.json b/cloudprofiler/v2/cloudprofiler-api.json index 141611ef2c1..bba699deed9 100644 --- a/cloudprofiler/v2/cloudprofiler-api.json +++ b/cloudprofiler/v2/cloudprofiler-api.json @@ -216,7 +216,7 @@ } } }, - "revision": "20230306", + "revision": "20230327", "rootUrl": "https://cloudprofiler.googleapis.com/", "schemas": { "CreateProfileRequest": { @@ -225,10 +225,10 @@ "properties": { "deployment": { "$ref": "Deployment", - "description": "Required. Deployment details." + "description": "Deployment details." }, "profileType": { - "description": "Required. One or more profile types that the agent is capable of providing.", + "description": "One or more profile types that the agent is capable of providing.", "items": { "enum": [ "PROFILE_TYPE_UNSPECIFIED", diff --git a/cloudprofiler/v2/cloudprofiler-gen.go b/cloudprofiler/v2/cloudprofiler-gen.go index dac12d361a3..bdf5e6b0e95 100644 --- a/cloudprofiler/v2/cloudprofiler-gen.go +++ b/cloudprofiler/v2/cloudprofiler-gen.go @@ -178,11 +178,11 @@ type ProjectsProfilesService struct { // supported by the agent. The creation call will hang until a profile // of one of these types needs to be collected. type CreateProfileRequest struct { - // Deployment: Required. Deployment details. + // Deployment: Deployment details. Deployment *Deployment `json:"deployment,omitempty"` - // ProfileType: Required. One or more profile types that the agent is - // capable of providing. + // ProfileType: One or more profile types that the agent is capable of + // providing. // // Possible values: // "PROFILE_TYPE_UNSPECIFIED" - Unspecified profile type. diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index cb16759c575..2b6c8715fea 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -2077,7 +2077,7 @@ } } }, - "revision": "20230307", + "revision": "20230321", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "AbuseReportingConfig": { @@ -2322,7 +2322,7 @@ "type": "object" }, "Annotation": { - "description": "NOTE WHEN ADDING NEW PROTO FIELDS: Be sure to add datapol annotations to new fields with potential PII, so they get scrubbed when logging protos for errors. NEXT TAG: 31", + "description": "NOTE WHEN ADDING NEW PROTO FIELDS: Be sure to add datapol annotations to new fields with potential PII, so they get scrubbed when logging protos for errors. NEXT TAG: 32", "id": "Annotation", "properties": { "babelPlaceholderMetadata": { @@ -2348,6 +2348,10 @@ ], "type": "string" }, + "componentSearchInfo": { + "$ref": "AppsDynamiteSharedMessageComponentSearchInfo", + "description": "Contains additional metadata that further enhances the annotation when it is returned as part of search response. For example, this can be used to define how the annotation matches the search. Information can be used to highlight in rendering search results. The following are the different annotation text fields that can be highlighted by this field: 1. DriveMetadata.title 2. UploadMetadata.content_name 3. GsuiteIntegrationMetadata.TasksMessageIntegrationRenderData.title 4. GsuiteIntegrationMetadata.CalendarEventAnnotationData.title" + }, "consentedAppUnfurlMetadata": { "$ref": "ConsentedAppUnfurlMetadata" }, @@ -3552,6 +3556,21 @@ }, "type": "object" }, + "AppsDynamiteSharedMessageComponentSearchInfo": { + "description": "Metadata used to describe search information in a specific component of a chat message, for example an annotation or an attachment.", + "id": "AppsDynamiteSharedMessageComponentSearchInfo", + "properties": { + "matchedSearch": { + "description": "Whether the whole component matched the search.", + "type": "boolean" + }, + "titleTextWithDescription": { + "$ref": "AppsDynamiteSharedTextWithDescription", + "description": "Backend should always set TextWithDescription.text_body based on the title (or its snippet) of the annotation or attachment." + } + }, + "type": "object" + }, "AppsDynamiteSharedMessageInfo": { "description": "Information that references a Dynamite chat message. This is only used for Activity Feed messages.", "id": "AppsDynamiteSharedMessageInfo", @@ -3925,6 +3944,63 @@ "properties": {}, "type": "object" }, + "AppsDynamiteSharedTextSegment": { + "description": "Defines a segment in a text.", + "id": "AppsDynamiteSharedTextSegment", + "properties": { + "length": { + "description": "Length of the segment in the text.", + "format": "int32", + "type": "integer" + }, + "startIndex": { + "description": "Start index (0-indexed and inclusive) of the segment in the text.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "AppsDynamiteSharedTextSegmentsWithDescription": { + "description": "Defines text segments with description type associated.", + "id": "AppsDynamiteSharedTextSegmentsWithDescription", + "properties": { + "descriptionType": { + "enum": [ + "DESCRIPTION_TYPE_UNSPECIFIED", + "KEYWORD_MATCH" + ], + "enumDescriptions": [ + "", + "Indicates the text segments contain matched keywords. Client can highlight them in search results page." + ], + "type": "string" + }, + "textSegment": { + "items": { + "$ref": "AppsDynamiteSharedTextSegment" + }, + "type": "array" + } + }, + "type": "object" + }, + "AppsDynamiteSharedTextWithDescription": { + "description": "Defines a text with descriptive text segments associated.", + "id": "AppsDynamiteSharedTextWithDescription", + "properties": { + "textBody": { + "type": "string" + }, + "textSegmentsWithDescription": { + "items": { + "$ref": "AppsDynamiteSharedTextSegmentsWithDescription" + }, + "type": "array" + } + }, + "type": "object" + }, "AppsDynamiteSharedUserBlockRelationship": { "description": "User-block relationship", "id": "AppsDynamiteSharedUserBlockRelationship", @@ -7194,10 +7270,38 @@ "properties": {}, "type": "object" }, + "DlpAction": { + "id": "DlpAction", + "properties": { + "actionType": { + "enum": [ + "NO_ACTION", + "BLOCK", + "AUDIT_ONLY", + "WARN" + ], + "enumDescriptions": [ + "LINT.IfChange", + "", + "", + "LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/external/dlp/ApplicableDlpActionEvaluator.java)" + ], + "type": "string" + }, + "unsafeHtmlMessageBody": { + "description": "The custom error message defined by the customer administrator.", + "type": "string" + } + }, + "type": "object" + }, "DlpScanSummary": { "description": "A summary of a DLP scan event. This is a summary and should contain the minimum amount of data required to identify and process DLP scans. It is written to Starcast and encoded \u0026 returned to the client on attachment upload.", "id": "DlpScanSummary", "properties": { + "dlpAction": { + "$ref": "DlpAction" + }, "scanId": { "description": "The scan ID of the corresponding {@link DlpViolationScanRecord} in the {@link EphemeralDlpScans} Spanner table. This can be used to fetch additional details about the scan, e.g. for audit logging.", "type": "string" @@ -7692,6 +7796,10 @@ "format": "int64", "type": "string" }, + "memberCountScore": { + "format": "double", + "type": "number" + }, "memberMetadataCount": { "format": "double", "type": "number" @@ -10178,7 +10286,7 @@ "type": "object" }, "GsuiteIntegrationMetadata": { - "description": "Annotation metadata for an GsuiteIntegration artifact.", + "description": "Annotation metadata for a GsuiteIntegration artifact.", "id": "GsuiteIntegrationMetadata", "properties": { "activityFeedData": { @@ -10598,7 +10706,7 @@ "id": "Id", "properties": { "creatorUserId": { - "description": "The User account in which the DirEntry was originally created. If name_space==GAIA, then it's the gaia_id of the user this id is referring to.", + "description": "The User account in which the DirEntry was originally created. If name_space==GAIA, then it's the gaia_id of the user this id is referring to. This field should really be called the \"bucket ID\", not the creator ID. In some circumstances, such as copying a Google Docs file, a user can create an item in a different user's bucket, so it should not be relied upon for anything other than bucket location. To look up the requesting user who initially created item, use the `creator_id` DirEntry field instead.", "format": "uint64", "type": "string" }, diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index e323922723c..390d8bb5121 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -876,7 +876,7 @@ type AllAuthenticatedUsersProto struct { // Annotation: NOTE WHEN ADDING NEW PROTO FIELDS: Be sure to add datapol // annotations to new fields with potential PII, so they get scrubbed -// when logging protos for errors. NEXT TAG: 31 +// when logging protos for errors. NEXT TAG: 32 type Annotation struct { BabelPlaceholderMetadata *BabelPlaceholderMetadata `json:"babelPlaceholderMetadata,omitempty"` @@ -900,6 +900,17 @@ type Annotation struct { // preview chip. ChipRenderType string `json:"chipRenderType,omitempty"` + // ComponentSearchInfo: Contains additional metadata that further + // enhances the annotation when it is returned as part of search + // response. For example, this can be used to define how the annotation + // matches the search. Information can be used to highlight in rendering + // search results. The following are the different annotation text + // fields that can be highlighted by this field: 1. DriveMetadata.title + // 2. UploadMetadata.content_name 3. + // GsuiteIntegrationMetadata.TasksMessageIntegrationRenderData.title 4. + // GsuiteIntegrationMetadata.CalendarEventAnnotationData.title + ComponentSearchInfo *AppsDynamiteSharedMessageComponentSearchInfo `json:"componentSearchInfo,omitempty"` + ConsentedAppUnfurlMetadata *ConsentedAppUnfurlMetadata `json:"consentedAppUnfurlMetadata,omitempty"` CustomEmojiMetadata *CustomEmojiMetadata `json:"customEmojiMetadata,omitempty"` @@ -2683,6 +2694,41 @@ func (s *AppsDynamiteSharedMeetMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AppsDynamiteSharedMessageComponentSearchInfo: Metadata used to +// describe search information in a specific component of a chat +// message, for example an annotation or an attachment. +type AppsDynamiteSharedMessageComponentSearchInfo struct { + // MatchedSearch: Whether the whole component matched the search. + MatchedSearch bool `json:"matchedSearch,omitempty"` + + // TitleTextWithDescription: Backend should always set + // TextWithDescription.text_body based on the title (or its snippet) of + // the annotation or attachment. + TitleTextWithDescription *AppsDynamiteSharedTextWithDescription `json:"titleTextWithDescription,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MatchedSearch") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MatchedSearch") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedMessageComponentSearchInfo) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedMessageComponentSearchInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AppsDynamiteSharedMessageInfo: Information that references a Dynamite // chat message. This is only used for Activity Feed messages. type AppsDynamiteSharedMessageInfo struct { @@ -3253,6 +3299,103 @@ type AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage struct { type AppsDynamiteSharedTasksMessageIntegrationPayload struct { } +// AppsDynamiteSharedTextSegment: Defines a segment in a text. +type AppsDynamiteSharedTextSegment struct { + // Length: Length of the segment in the text. + Length int64 `json:"length,omitempty"` + + // StartIndex: Start index (0-indexed and inclusive) of the segment in + // the text. + StartIndex int64 `json:"startIndex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Length") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Length") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedTextSegment) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedTextSegment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteSharedTextSegmentsWithDescription: Defines text segments +// with description type associated. +type AppsDynamiteSharedTextSegmentsWithDescription struct { + // Possible values: + // "DESCRIPTION_TYPE_UNSPECIFIED" + // "KEYWORD_MATCH" - Indicates the text segments contain matched + // keywords. Client can highlight them in search results page. + DescriptionType string `json:"descriptionType,omitempty"` + + TextSegment []*AppsDynamiteSharedTextSegment `json:"textSegment,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DescriptionType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DescriptionType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedTextSegmentsWithDescription) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedTextSegmentsWithDescription + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteSharedTextWithDescription: Defines a text with +// descriptive text segments associated. +type AppsDynamiteSharedTextWithDescription struct { + TextBody string `json:"textBody,omitempty"` + + TextSegmentsWithDescription []*AppsDynamiteSharedTextSegmentsWithDescription `json:"textSegmentsWithDescription,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TextBody") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TextBody") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedTextWithDescription) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedTextWithDescription + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AppsDynamiteSharedUserBlockRelationship: User-block relationship type AppsDynamiteSharedUserBlockRelationship struct { HasBlockedRequester bool `json:"hasBlockedRequester,omitempty"` @@ -8741,11 +8884,50 @@ func (s *DisplayedProperty) MarshalJSON() ([]byte, error) { type Divider struct { } +type DlpAction struct { + // Possible values: + // "NO_ACTION" - LINT.IfChange + // "BLOCK" + // "AUDIT_ONLY" + // "WARN" - + // LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/exter + // nal/dlp/ApplicableDlpActionEvaluator.java) + ActionType string `json:"actionType,omitempty"` + + // UnsafeHtmlMessageBody: The custom error message defined by the + // customer administrator. + UnsafeHtmlMessageBody string `json:"unsafeHtmlMessageBody,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ActionType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ActionType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DlpAction) MarshalJSON() ([]byte, error) { + type NoMethod DlpAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DlpScanSummary: A summary of a DLP scan event. This is a summary and // should contain the minimum amount of data required to identify and // process DLP scans. It is written to Starcast and encoded & returned // to the client on attachment upload. type DlpScanSummary struct { + DlpAction *DlpAction `json:"dlpAction,omitempty"` + // ScanId: The scan ID of the corresponding {@link // DlpViolationScanRecord} in the {@link EphemeralDlpScans} Spanner // table. This can be used to fetch additional details about the scan, @@ -8844,7 +9026,7 @@ type DlpScanSummary struct { // to BIP (no user-facing action performed). ScanOutcome string `json:"scanOutcome,omitempty"` - // ForceSendFields is a list of field names (e.g. "ScanId") to + // ForceSendFields is a list of field names (e.g. "DlpAction") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -8852,8 +9034,8 @@ type DlpScanSummary struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ScanId") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "DlpAction") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -9441,6 +9623,8 @@ type DynamiteSpacesScoringInfo struct { LastReadTimestampSecs int64 `json:"lastReadTimestampSecs,omitempty,string"` + MemberCountScore float64 `json:"memberCountScore,omitempty"` + MemberMetadataCount float64 `json:"memberMetadataCount,omitempty"` MessageScore float64 `json:"messageScore,omitempty"` @@ -9489,6 +9673,7 @@ func (s *DynamiteSpacesScoringInfo) UnmarshalJSON(data []byte) error { FinalScore gensupport.JSONFloat64 `json:"finalScore"` FreshnessScore gensupport.JSONFloat64 `json:"freshnessScore"` JoinedSpacesAffinityScore gensupport.JSONFloat64 `json:"joinedSpacesAffinityScore"` + MemberCountScore gensupport.JSONFloat64 `json:"memberCountScore"` MemberMetadataCount gensupport.JSONFloat64 `json:"memberMetadataCount"` MessageScore gensupport.JSONFloat64 `json:"messageScore"` SmallContactListAffinityScore gensupport.JSONFloat64 `json:"smallContactListAffinityScore"` @@ -9507,6 +9692,7 @@ func (s *DynamiteSpacesScoringInfo) UnmarshalJSON(data []byte) error { s.FinalScore = float64(s1.FinalScore) s.FreshnessScore = float64(s1.FreshnessScore) s.JoinedSpacesAffinityScore = float64(s1.JoinedSpacesAffinityScore) + s.MemberCountScore = float64(s1.MemberCountScore) s.MemberMetadataCount = float64(s1.MemberMetadataCount) s.MessageScore = float64(s1.MessageScore) s.SmallContactListAffinityScore = float64(s1.SmallContactListAffinityScore) @@ -12736,7 +12922,7 @@ func (s *GroupRetentionSettingsUpdatedMetaData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GsuiteIntegrationMetadata: Annotation metadata for an +// GsuiteIntegrationMetadata: Annotation metadata for a // GsuiteIntegration artifact. type GsuiteIntegrationMetadata struct { ActivityFeedData *AppsDynamiteSharedActivityFeedAnnotationData `json:"activityFeedData,omitempty"` @@ -13285,7 +13471,12 @@ func (s *IconImage) MarshalJSON() ([]byte, error) { type Id struct { // CreatorUserId: The User account in which the DirEntry was originally // created. If name_space==GAIA, then it's the gaia_id of the user this - // id is referring to. + // id is referring to. This field should really be called the "bucket + // ID", not the creator ID. In some circumstances, such as copying a + // Google Docs file, a user can create an item in a different user's + // bucket, so it should not be relied upon for anything other than + // bucket location. To look up the requesting user who initially created + // item, use the `creator_id` DirEntry field instead. CreatorUserId uint64 `json:"creatorUserId,omitempty,string"` // LocalId: The local identifier for the DirEntry (local to the diff --git a/cloudshell/v1/cloudshell-api.json b/cloudshell/v1/cloudshell-api.json index 711912b5308..32a553aaab7 100644 --- a/cloudshell/v1/cloudshell-api.json +++ b/cloudshell/v1/cloudshell-api.json @@ -186,7 +186,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/operations", "httpMethod": "GET", "id": "cloudshell.operations.list", @@ -374,7 +374,7 @@ } } }, - "revision": "20220319", + "revision": "20230327", "rootUrl": "https://cloudshell.googleapis.com/", "schemas": { "AddPublicKeyMetadata": { diff --git a/cloudshell/v1/cloudshell-gen.go b/cloudshell/v1/cloudshell-gen.go index 7a93693c896..04b7a5f6c93 100644 --- a/cloudshell/v1/cloudshell-gen.go +++ b/cloudshell/v1/cloudshell-gen.go @@ -1135,14 +1135,7 @@ type OperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *OperationsService) List(name string) *OperationsListCall { @@ -1271,7 +1264,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/operations", // "httpMethod": "GET", // "id": "cloudshell.operations.list", diff --git a/cloudsupport/v2beta/cloudsupport-api.json b/cloudsupport/v2beta/cloudsupport-api.json index 3e9356b30ff..992208c0f33 100644 --- a/cloudsupport/v2beta/cloudsupport-api.json +++ b/cloudsupport/v2beta/cloudsupport-api.json @@ -105,38 +105,6 @@ }, "protocol": "rest", "resources": { - "attachments": { - "methods": { - "create": { - "description": "Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename.", - "flatPath": "v2beta/{v2betaId}/{v2betaId1}/attachments", - "httpMethod": "POST", - "id": "cloudsupport.attachments.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the case (or case parent) to which the attachment should be attached.", - "location": "path", - "pattern": "^[^/]+/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v2beta/{+parent}/attachments", - "request": { - "$ref": "CreateAttachmentRequest" - }, - "response": { - "$ref": "Attachment" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "caseClassifications": { "methods": { "search": { @@ -575,7 +543,7 @@ } } }, - "revision": "20230110", + "revision": "20230330", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { @@ -815,7 +783,7 @@ "id": "Comment", "properties": { "body": { - "description": "The full comment body. Maximum of 120000 characters. This can contain rich text syntax.", + "description": "The full comment body. Maximum of 12800 characters. This can contain rich text syntax.", "type": "string" }, "createTime": { diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index 0203721a803..9a78116d10b 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -119,7 +119,6 @@ func New(client *http.Client) (*Service, error) { return nil, errors.New("client is nil") } s := &Service{client: client, BasePath: basePath} - s.Attachments = NewAttachmentsService(s) s.CaseClassifications = NewCaseClassificationsService(s) s.Cases = NewCasesService(s) s.Media = NewMediaService(s) @@ -131,8 +130,6 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment - Attachments *AttachmentsService - CaseClassifications *CaseClassificationsService Cases *CasesService @@ -147,15 +144,6 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } -func NewAttachmentsService(s *Service) *AttachmentsService { - rs := &AttachmentsService{s: s} - return rs -} - -type AttachmentsService struct { - s *Service -} - func NewCaseClassificationsService(s *Service) *CaseClassificationsService { rs := &CaseClassificationsService{s: s} return rs @@ -514,7 +502,7 @@ type CloseCaseRequest struct { // Comment: A comment associated with a support case. type Comment struct { - // Body: The full comment body. Maximum of 120000 characters. This can + // Body: The full comment body. Maximum of 12800 characters. This can // contain rich text syntax. Body string `json:"body,omitempty"` @@ -1424,150 +1412,6 @@ func (s *WorkflowOperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "cloudsupport.attachments.create": - -type AttachmentsCreateCall struct { - s *Service - parent string - createattachmentrequest *CreateAttachmentRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Create a file attachment on a case or Cloud resource. The -// attachment object must have the following fields set: filename. -// -// - parent: The resource name of the case (or case parent) to which the -// attachment should be attached. -func (r *AttachmentsService) Create(parent string, createattachmentrequest *CreateAttachmentRequest) *AttachmentsCreateCall { - c := &AttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.createattachmentrequest = createattachmentrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *AttachmentsCreateCall) Fields(s ...googleapi.Field) *AttachmentsCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *AttachmentsCreateCall) Context(ctx context.Context) *AttachmentsCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *AttachmentsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AttachmentsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.createattachmentrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta/{+parent}/attachments") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "cloudsupport.attachments.create" call. -// Exactly one of *Attachment or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Attachment.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *AttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*Attachment, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Attachment{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename.", - // "flatPath": "v2beta/{v2betaId}/{v2betaId1}/attachments", - // "httpMethod": "POST", - // "id": "cloudsupport.attachments.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The resource name of the case (or case parent) to which the attachment should be attached.", - // "location": "path", - // "pattern": "^[^/]+/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v2beta/{+parent}/attachments", - // "request": { - // "$ref": "CreateAttachmentRequest" - // }, - // "response": { - // "$ref": "Attachment" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "cloudsupport.caseClassifications.search": type CaseClassificationsSearchCall struct { diff --git a/composer/v1/composer-api.json b/composer/v1/composer-api.json index 98267176e60..9dc02e14911 100644 --- a/composer/v1/composer-api.json +++ b/composer/v1/composer-api.json @@ -462,7 +462,7 @@ } } }, - "revision": "20230310", + "revision": "20230323", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AllowedIpRange": { @@ -648,6 +648,11 @@ "description": "Configuration information for an environment.", "id": "EnvironmentConfig", "properties": { + "airflowByoidUri": { + "description": "Output only. The 'bring your own identity' variant of the URI of the Apache Airflow Web UI hosted within this environment, to be accessed with external identities using workforce identity federation (see [Access environments with workforce identity federation](/composer/docs/composer-2/access-environments-with-workforce-identity-federation)).", + "readOnly": true, + "type": "string" + }, "airflowUri": { "description": "Output only. The URI of the Apache Airflow Web UI hosted within this environment (see [Airflow web interface](/composer/docs/how-to/accessing/airflow-web-interface)).", "type": "string" diff --git a/composer/v1/composer-gen.go b/composer/v1/composer-gen.go index 322a02debe3..56a6998f565 100644 --- a/composer/v1/composer-gen.go +++ b/composer/v1/composer-gen.go @@ -516,6 +516,15 @@ func (s *Environment) MarshalJSON() ([]byte, error) { // EnvironmentConfig: Configuration information for an environment. type EnvironmentConfig struct { + // AirflowByoidUri: Output only. The 'bring your own identity' variant + // of the URI of the Apache Airflow Web UI hosted within this + // environment, to be accessed with external identities using workforce + // identity federation (see Access environments with workforce identity + // federation + // (/composer/docs/composer-2/access-environments-with-workforce-identity + // -federation)). + AirflowByoidUri string `json:"airflowByoidUri,omitempty"` + // AirflowUri: Output only. The URI of the Apache Airflow Web UI hosted // within this environment (see Airflow web interface // (/composer/docs/how-to/accessing/airflow-web-interface)). @@ -608,7 +617,7 @@ type EnvironmentConfig struct { // composer-2.*.*-airflow-*.*.* and newer. WorkloadsConfig *WorkloadsConfig `json:"workloadsConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "AirflowUri") to + // ForceSendFields is a list of field names (e.g. "AirflowByoidUri") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -616,12 +625,13 @@ type EnvironmentConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AirflowUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AirflowByoidUri") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/composer/v1beta1/composer-api.json b/composer/v1beta1/composer-api.json index e04e9ed050e..3ebec824558 100644 --- a/composer/v1beta1/composer-api.json +++ b/composer/v1beta1/composer-api.json @@ -518,7 +518,7 @@ } } }, - "revision": "20230310", + "revision": "20230323", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AllowedIpRange": { @@ -729,6 +729,11 @@ "description": "Configuration information for an environment.", "id": "EnvironmentConfig", "properties": { + "airflowByoidUri": { + "description": "Output only. The 'bring your own identity' variant of the URI of the Apache Airflow Web UI hosted within this environment, to be accessed with external identities using workforce identity federation (see [Access environments with workforce identity federation](/composer/docs/composer-2/access-environments-with-workforce-identity-federation)).", + "readOnly": true, + "type": "string" + }, "airflowUri": { "description": "Output only. The URI of the Apache Airflow Web UI hosted within this environment (see [Airflow web interface](/composer/docs/how-to/accessing/airflow-web-interface)).", "readOnly": true, diff --git a/composer/v1beta1/composer-gen.go b/composer/v1beta1/composer-gen.go index ecd8a159701..b82bfe94335 100644 --- a/composer/v1beta1/composer-gen.go +++ b/composer/v1beta1/composer-gen.go @@ -596,6 +596,15 @@ func (s *Environment) MarshalJSON() ([]byte, error) { // EnvironmentConfig: Configuration information for an environment. type EnvironmentConfig struct { + // AirflowByoidUri: Output only. The 'bring your own identity' variant + // of the URI of the Apache Airflow Web UI hosted within this + // environment, to be accessed with external identities using workforce + // identity federation (see Access environments with workforce identity + // federation + // (/composer/docs/composer-2/access-environments-with-workforce-identity + // -federation)). + AirflowByoidUri string `json:"airflowByoidUri,omitempty"` + // AirflowUri: Output only. The URI of the Apache Airflow Web UI hosted // within this environment (see Airflow web interface // (/composer/docs/how-to/accessing/airflow-web-interface)). @@ -689,7 +698,7 @@ type EnvironmentConfig struct { // composer-2.*.*-airflow-*.*.* and newer. WorkloadsConfig *WorkloadsConfig `json:"workloadsConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "AirflowUri") to + // ForceSendFields is a list of field names (e.g. "AirflowByoidUri") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -697,12 +706,13 @@ type EnvironmentConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AirflowUri") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AirflowByoidUri") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index b1361722dca..b45b4c77b1a 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -5339,7 +5339,7 @@ ], "parameters": { "ipAddress": { - "description": "The ip_address could be external IPv4, or internal IPv4 within IPv6 form of virtual_network_id with internal IPv4. IPv6 is not supported yet.", + "description": "The VM IP address.", "location": "query", "type": "string" }, @@ -12543,6 +12543,55 @@ "https://www.googleapis.com/auth/compute" ] }, + "setSecurityPolicy": { + "description": "Sets the Google Cloud Armor security policy for the specified instance. For more information, see Google Cloud Armor Overview", + "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy", + "httpMethod": "POST", + "id": "compute.instances.setSecurityPolicy", + "parameterOrder": [ + "project", + "zone", + "instance" + ], + "parameters": { + "instance": { + "description": "Name of the Instance resource to which the security policy should be set. The name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "zone": { + "description": "Name of the zone scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy", + "request": { + "$ref": "InstancesSetSecurityPolicyRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "setServiceAccount": { "description": "Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.", "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount", @@ -16301,6 +16350,56 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "patch": { + "description": "Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "flatPath": "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}", + "httpMethod": "PATCH", + "id": "compute.networkAttachments.patch", + "parameterOrder": [ + "project", + "region", + "networkAttachment" + ], + "parameters": { + "networkAttachment": { + "description": "Name of the NetworkAttachment resource to patch.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}", + "request": { + "$ref": "NetworkAttachment" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", "flatPath": "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy", @@ -28079,6 +28178,56 @@ "https://www.googleapis.com/auth/compute" ] }, + "patchAssociation": { + "description": "Updates an association for the specified network firewall policy.", + "flatPath": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation", + "httpMethod": "POST", + "id": "compute.regionNetworkFirewallPolicies.patchAssociation", + "parameterOrder": [ + "project", + "region", + "firewallPolicy" + ], + "parameters": { + "firewallPolicy": { + "description": "Name of the firewall policy to update.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation", + "request": { + "$ref": "FirewallPolicyAssociation" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "patchRule": { "description": "Patches a rule of the specified priority.", "flatPath": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule", @@ -34034,11 +34183,6 @@ "required": true, "type": "string" }, - "reconcileConnections": { - "description": "This flag determines how to change the status of consumer connections, when the connection policy for the corresponding project or network is modified. If the flag is false, the default case, then existing ACCEPTED and REJECTED consumer connections stay in that state. For example, even if the project is removed from the accept list, existing ACCEPTED connections will stay the same. If the flag is true, then the connection can change from ACCEPTED or REJECTED to pending when the connection policy is modified. For example, if a project is removed from the reject list, its existing REJECTED connections will move to the PENDING state. If the project is also added to the accept list, then those connections will move to the ACCEPTED state.", - "location": "query", - "type": "boolean" - }, "region": { "description": "The region scoping this request and should conform to RFC1035.", "location": "path", @@ -35106,13 +35250,13 @@ } } }, - "subnetworks": { + "storagePools": { "methods": { "aggregatedList": { - "description": "Retrieves an aggregated list of subnetworks.", - "flatPath": "projects/{project}/aggregated/subnetworks", + "description": "Retrieves an aggregated list of storage pools.", + "flatPath": "projects/{project}/aggregated/storagePools", "httpMethod": "GET", - "id": "compute.subnetworks.aggregatedList", + "id": "compute.storagePools.aggregatedList", "parameterOrder": [ "project" ], @@ -35158,9 +35302,9 @@ "type": "boolean" } }, - "path": "projects/{project}/aggregated/subnetworks", + "path": "projects/{project}/aggregated/storagePools", "response": { - "$ref": "SubnetworkAggregatedList" + "$ref": "StoragePoolAggregatedList" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", @@ -35169,14 +35313,14 @@ ] }, "delete": { - "description": "Deletes the specified subnetwork.", - "flatPath": "projects/{project}/regions/{region}/subnetworks/{subnetwork}", + "description": "Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots.", + "flatPath": "projects/{project}/zones/{zone}/storagePools/{storagePool}", "httpMethod": "DELETE", - "id": "compute.subnetworks.delete", + "id": "compute.storagePools.delete", "parameterOrder": [ "project", - "region", - "subnetwork" + "zone", + "storagePool" ], "parameters": { "project": { @@ -35186,77 +35330,26 @@ "required": true, "type": "string" }, - "region": { - "description": "Name of the region scoping this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - }, "requestId": { "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" }, - "subnetwork": { - "description": "Name of the Subnetwork resource to delete.", + "storagePool": { + "description": "Name of the storage pool to delete.", "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - "required": true, - "type": "string" - } - }, - "path": "projects/{project}/regions/{region}/subnetworks/{subnetwork}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "expandIpCidrRange": { - "description": "Expands the IP CIDR range of the subnetwork to a specified value.", - "flatPath": "projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange", - "httpMethod": "POST", - "id": "compute.subnetworks.expandIpCidrRange", - "parameterOrder": [ - "project", - "region", - "subnetwork" - ], - "parameters": { - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", "required": true, "type": "string" }, - "region": { - "description": "Name of the region scoping this request.", + "zone": { + "description": "The name of the zone for this request.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "required": true, "type": "string" - }, - "requestId": { - "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - }, - "subnetwork": { - "description": "Name of the Subnetwork resource to update.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - "required": true, - "type": "string" } }, - "path": "projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange", - "request": { - "$ref": "SubnetworksExpandIpCidrRangeRequest" - }, + "path": "projects/{project}/zones/{zone}/storagePools/{storagePool}", "response": { "$ref": "Operation" }, @@ -35266,14 +35359,14 @@ ] }, "get": { - "description": "Returns the specified subnetwork.", - "flatPath": "projects/{project}/regions/{region}/subnetworks/{subnetwork}", + "description": "Returns a specified storage pool. Gets a list of available storage pools by making a list() request.", + "flatPath": "projects/{project}/zones/{zone}/storagePools/{storagePool}", "httpMethod": "GET", - "id": "compute.subnetworks.get", + "id": "compute.storagePools.get", "parameterOrder": [ "project", - "region", - "subnetwork" + "zone", + "storagePool" ], "parameters": { "project": { @@ -35283,24 +35376,24 @@ "required": true, "type": "string" }, - "region": { - "description": "Name of the region scoping this request.", + "storagePool": { + "description": "Name of the storage pool to return.", "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" }, - "subnetwork": { - "description": "Name of the Subnetwork resource to return.", + "zone": { + "description": "The name of the zone for this request.", "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "required": true, "type": "string" } }, - "path": "projects/{project}/regions/{region}/subnetworks/{subnetwork}", + "path": "projects/{project}/zones/{zone}/storagePools/{storagePool}", "response": { - "$ref": "Subnetwork" + "$ref": "StoragePool" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", @@ -35310,12 +35403,12 @@ }, "getIamPolicy": { "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "flatPath": "projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy", + "flatPath": "projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy", "httpMethod": "GET", - "id": "compute.subnetworks.getIamPolicy", + "id": "compute.storagePools.getIamPolicy", "parameterOrder": [ "project", - "region", + "zone", "resource" ], "parameters": { @@ -35332,22 +35425,22 @@ "required": true, "type": "string" }, - "region": { - "description": "The name of the region for this request.", + "resource": { + "description": "Name or id of the resource for this request.", "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" }, - "resource": { - "description": "Name or id of the resource for this request.", + "zone": { + "description": "The name of the zone for this request.", "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "required": true, "type": "string" } }, - "path": "projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy", + "path": "projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy", "response": { "$ref": "Policy" }, @@ -35358,13 +35451,13 @@ ] }, "insert": { - "description": "Creates a subnetwork in the specified project using the data included in the request.", - "flatPath": "projects/{project}/regions/{region}/subnetworks", + "description": "Creates a storage pool in the specified project using the data in the request.", + "flatPath": "projects/{project}/zones/{zone}/storagePools", "httpMethod": "POST", - "id": "compute.subnetworks.insert", + "id": "compute.storagePools.insert", "parameterOrder": [ "project", - "region" + "zone" ], "parameters": { "project": { @@ -35374,22 +35467,22 @@ "required": true, "type": "string" }, - "region": { - "description": "Name of the region scoping this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - }, "requestId": { "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" } }, - "path": "projects/{project}/regions/{region}/subnetworks", + "path": "projects/{project}/zones/{zone}/storagePools", "request": { - "$ref": "Subnetwork" + "$ref": "StoragePool" }, "response": { "$ref": "Operation" @@ -35400,13 +35493,13 @@ ] }, "list": { - "description": "Retrieves a list of subnetworks available to the specified project.", - "flatPath": "projects/{project}/regions/{region}/subnetworks", + "description": "Retrieves a list of storage pools contained within the specified zone.", + "flatPath": "projects/{project}/zones/{zone}/storagePools", "httpMethod": "GET", - "id": "compute.subnetworks.list", + "id": "compute.storagePools.list", "parameterOrder": [ "project", - "region" + "zone" ], "parameters": { "filter": { @@ -35439,22 +35532,163 @@ "required": true, "type": "string" }, - "region": { - "description": "Name of the region scoping this request.", + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", + "location": "query", + "type": "boolean" + }, + "zone": { + "description": "The name of the zone for this request.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "required": true, "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/storagePools", + "response": { + "$ref": "StoragePoolList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", + "flatPath": "projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy", + "httpMethod": "POST", + "id": "compute.storagePools.setIamPolicy", + "parameterOrder": [ + "project", + "zone", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" }, - "returnPartialSuccess": { - "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy", + "request": { + "$ref": "ZoneSetPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "setLabels": { + "description": "Sets the labels on a storage pools. To learn more about labels, read the Labeling Resources documentation.", + "flatPath": "projects/{project}/zones/{zone}/storagePools/{resource}/setLabels", + "httpMethod": "POST", + "id": "compute.storagePools.setLabels", + "parameterOrder": [ + "project", + "zone", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", "location": "query", - "type": "boolean" + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" } }, - "path": "projects/{project}/regions/{region}/subnetworks", + "path": "projects/{project}/zones/{zone}/storagePools/{resource}/setLabels", + "request": { + "$ref": "ZoneSetLabelsRequest" + }, "response": { - "$ref": "SubnetworkList" + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.storagePools.testIamPermissions", + "parameterOrder": [ + "project", + "zone", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", @@ -35462,11 +35696,71 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, - "listUsable": { - "description": "Retrieves an aggregated list of all usable subnetworks in the project.", - "flatPath": "projects/{project}/aggregated/subnetworks/listUsable", + "update": { + "description": "Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: size_tb and provisioned_iops.", + "flatPath": "projects/{project}/zones/{zone}/storagePools/{storagePool}", + "httpMethod": "PATCH", + "id": "compute.storagePools.update", + "parameterOrder": [ + "project", + "zone", + "storagePool" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "storagePool": { + "description": "The storagePool name for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "update_mask indicates fields to be updated as part of this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/storagePools/{storagePool}", + "request": { + "$ref": "StoragePool" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + } + } + }, + "subnetworks": { + "methods": { + "aggregatedList": { + "description": "Retrieves an aggregated list of subnetworks.", + "flatPath": "projects/{project}/aggregated/subnetworks", "httpMethod": "GET", - "id": "compute.subnetworks.listUsable", + "id": "compute.subnetworks.aggregatedList", "parameterOrder": [ "project" ], @@ -35476,6 +35770,11 @@ "location": "query", "type": "string" }, + "includeAllScopes": { + "description": "Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.", + "location": "query", + "type": "boolean" + }, "maxResults": { "default": "500", "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", @@ -35505,16 +35804,11 @@ "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", "location": "query", "type": "boolean" - }, - "serviceProject": { - "description": "The project id or project number in which the subnetwork is intended to be used. Only applied for Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/)", - "location": "query", - "type": "string" } }, - "path": "projects/{project}/aggregated/subnetworks/listUsable", + "path": "projects/{project}/aggregated/subnetworks", "response": { - "$ref": "UsableSubnetworksAggregatedList" + "$ref": "SubnetworkAggregatedList" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", @@ -35522,23 +35816,17 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, - "patch": { - "description": "Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched.", + "delete": { + "description": "Deletes the specified subnetwork.", "flatPath": "projects/{project}/regions/{region}/subnetworks/{subnetwork}", - "httpMethod": "PATCH", - "id": "compute.subnetworks.patch", + "httpMethod": "DELETE", + "id": "compute.subnetworks.delete", "parameterOrder": [ "project", "region", "subnetwork" ], "parameters": { - "drainTimeoutSeconds": { - "description": "The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout is only applicable when the following conditions are true: - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE and BACKUP subnetworks will be swapped.", - "format": "int32", - "location": "query", - "type": "integer" - }, "project": { "description": "Project ID for this request.", "location": "path", @@ -35559,7 +35847,7 @@ "type": "string" }, "subnetwork": { - "description": "Name of the Subnetwork resource to patch.", + "description": "Name of the Subnetwork resource to delete.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, @@ -35567,9 +35855,6 @@ } }, "path": "projects/{project}/regions/{region}/subnetworks/{subnetwork}", - "request": { - "$ref": "Subnetwork" - }, "response": { "$ref": "Operation" }, @@ -35578,15 +35863,15 @@ "https://www.googleapis.com/auth/compute" ] }, - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", - "flatPath": "projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy", + "expandIpCidrRange": { + "description": "Expands the IP CIDR range of the subnetwork to a specified value.", + "flatPath": "projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange", "httpMethod": "POST", - "id": "compute.subnetworks.setIamPolicy", + "id": "compute.subnetworks.expandIpCidrRange", "parameterOrder": [ "project", "region", - "resource" + "subnetwork" ], "parameters": { "project": { @@ -35597,37 +35882,42 @@ "type": "string" }, "region": { - "description": "The name of the region for this request.", + "description": "Name of the region scoping this request.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "required": true, "type": "string" }, - "resource": { - "description": "Name or id of the resource for this request.", + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "subnetwork": { + "description": "Name of the Subnetwork resource to update.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" } }, - "path": "projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy", + "path": "projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange", "request": { - "$ref": "RegionSetPolicyRequest" + "$ref": "SubnetworksExpandIpCidrRangeRequest" }, "response": { - "$ref": "Policy" + "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] }, - "setPrivateIpGoogleAccess": { - "description": "Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.", - "flatPath": "projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess", - "httpMethod": "POST", - "id": "compute.subnetworks.setPrivateIpGoogleAccess", + "get": { + "description": "Returns the specified subnetwork.", + "flatPath": "projects/{project}/regions/{region}/subnetworks/{subnetwork}", + "httpMethod": "GET", + "id": "compute.subnetworks.get", "parameterOrder": [ "project", "region", @@ -35648,42 +35938,41 @@ "required": true, "type": "string" }, - "requestId": { - "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - }, "subnetwork": { - "description": "Name of the Subnetwork resource.", + "description": "Name of the Subnetwork resource to return.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" } }, - "path": "projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess", - "request": { - "$ref": "SubnetworksSetPrivateIpGoogleAccessRequest" - }, + "path": "projects/{project}/regions/{region}/subnetworks/{subnetwork}", "response": { - "$ref": "Operation" + "$ref": "Subnetwork" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" ] }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource.", - "flatPath": "projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions", - "httpMethod": "POST", - "id": "compute.subnetworks.testIamPermissions", + "getIamPolicy": { + "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "flatPath": "projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy", + "httpMethod": "GET", + "id": "compute.subnetworks.getIamPolicy", "parameterOrder": [ "project", "region", "resource" ], "parameters": { + "optionsRequestedPolicyVersion": { + "description": "Requested IAM Policy version.", + "format": "int32", + "location": "query", + "type": "integer" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -35706,31 +35995,24 @@ "type": "string" } }, - "path": "projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions", - "request": { - "$ref": "TestPermissionsRequest" - }, + "path": "projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy", "response": { - "$ref": "TestPermissionsResponse" + "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly" ] - } - } - }, - "targetGrpcProxies": { - "methods": { - "delete": { - "description": "Deletes the specified TargetGrpcProxy in the given scope", - "flatPath": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", - "httpMethod": "DELETE", - "id": "compute.targetGrpcProxies.delete", + }, + "insert": { + "description": "Creates a subnetwork in the specified project using the data included in the request.", + "flatPath": "projects/{project}/regions/{region}/subnetworks", + "httpMethod": "POST", + "id": "compute.subnetworks.insert", "parameterOrder": [ "project", - "targetGrpcProxy" + "region" ], "parameters": { "project": { @@ -35740,20 +36022,23 @@ "required": true, "type": "string" }, + "region": { + "description": "Name of the region scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, "requestId": { "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" - }, - "targetGrpcProxy": { - "description": "Name of the TargetGrpcProxy resource to delete.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - "required": true, - "type": "string" } }, - "path": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", + "path": "projects/{project}/regions/{region}/subnetworks", + "request": { + "$ref": "Subnetwork" + }, "response": { "$ref": "Operation" }, @@ -35762,16 +36047,39 @@ "https://www.googleapis.com/auth/compute" ] }, - "get": { - "description": "Returns the specified TargetGrpcProxy resource in the given scope.", - "flatPath": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", + "list": { + "description": "Retrieves a list of subnetworks available to the specified project.", + "flatPath": "projects/{project}/regions/{region}/subnetworks", "httpMethod": "GET", - "id": "compute.targetGrpcProxies.get", + "id": "compute.subnetworks.list", "parameterOrder": [ "project", - "targetGrpcProxy" + "region" ], "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "location": "query", + "type": "string" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -35779,63 +36087,34 @@ "required": true, "type": "string" }, - "targetGrpcProxy": { - "description": "Name of the TargetGrpcProxy resource to return.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - "required": true, - "type": "string" - } - }, - "path": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", - "response": { - "$ref": "TargetGrpcProxy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "description": "Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that are included in the request.", - "flatPath": "projects/{project}/global/targetGrpcProxies", - "httpMethod": "POST", - "id": "compute.targetGrpcProxies.insert", - "parameterOrder": [ - "project" - ], - "parameters": { - "project": { - "description": "Project ID for this request.", + "region": { + "description": "Name of the region scoping this request.", "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "required": true, "type": "string" }, - "requestId": { - "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", "location": "query", - "type": "string" + "type": "boolean" } }, - "path": "projects/{project}/global/targetGrpcProxies", - "request": { - "$ref": "TargetGrpcProxy" - }, + "path": "projects/{project}/regions/{region}/subnetworks", "response": { - "$ref": "Operation" + "$ref": "SubnetworkList" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" ] }, - "list": { - "description": "Lists the TargetGrpcProxies for a project in the given scope.", - "flatPath": "projects/{project}/global/targetGrpcProxies", + "listUsable": { + "description": "Retrieves an aggregated list of all usable subnetworks in the project.", + "flatPath": "projects/{project}/aggregated/subnetworks/listUsable", "httpMethod": "GET", - "id": "compute.targetGrpcProxies.list", + "id": "compute.subnetworks.listUsable", "parameterOrder": [ "project" ], @@ -35874,11 +36153,16 @@ "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", "location": "query", "type": "boolean" + }, + "serviceProject": { + "description": "The project id or project number in which the subnetwork is intended to be used. Only applied for Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/)", + "location": "query", + "type": "string" } }, - "path": "projects/{project}/global/targetGrpcProxies", + "path": "projects/{project}/aggregated/subnetworks/listUsable", "response": { - "$ref": "TargetGrpcProxyList" + "$ref": "UsableSubnetworksAggregatedList" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", @@ -35887,15 +36171,22 @@ ] }, "patch": { - "description": "Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", - "flatPath": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", + "description": "Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched.", + "flatPath": "projects/{project}/regions/{region}/subnetworks/{subnetwork}", "httpMethod": "PATCH", - "id": "compute.targetGrpcProxies.patch", + "id": "compute.subnetworks.patch", "parameterOrder": [ "project", - "targetGrpcProxy" + "region", + "subnetwork" ], "parameters": { + "drainTimeoutSeconds": { + "description": "The drain timeout specifies the upper bound in seconds on the amount of time allowed to drain connections from the current ACTIVE subnetwork to the current BACKUP subnetwork. The drain timeout is only applicable when the following conditions are true: - the subnetwork being patched has purpose = INTERNAL_HTTPS_LOAD_BALANCER - the subnetwork being patched has role = BACKUP - the patch request is setting the role to ACTIVE. Note that after this patch operation the roles of the ACTIVE and BACKUP subnetworks will be swapped.", + "format": "int32", + "location": "query", + "type": "integer" + }, "project": { "description": "Project ID for this request.", "location": "path", @@ -35903,22 +36194,29 @@ "required": true, "type": "string" }, + "region": { + "description": "Name of the region scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, "requestId": { "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" }, - "targetGrpcProxy": { - "description": "Name of the TargetGrpcProxy resource to patch.", + "subnetwork": { + "description": "Name of the Subnetwork resource to patch.", "location": "path", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" } }, - "path": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", + "path": "projects/{project}/regions/{region}/subnetworks/{subnetwork}", "request": { - "$ref": "TargetGrpcProxy" + "$ref": "Subnetwork" }, "response": { "$ref": "Operation" @@ -35928,13 +36226,14 @@ "https://www.googleapis.com/auth/compute" ] }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource.", - "flatPath": "projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions", + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", + "flatPath": "projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy", "httpMethod": "POST", - "id": "compute.targetGrpcProxies.testIamPermissions", + "id": "compute.subnetworks.setIamPolicy", "parameterOrder": [ "project", + "region", "resource" ], "parameters": { @@ -35945,32 +36244,381 @@ "required": true, "type": "string" }, + "region": { + "description": "The name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, "resource": { "description": "Name or id of the resource for this request.", "location": "path", - "pattern": "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", "required": true, "type": "string" } }, - "path": "projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions", + "path": "projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy", "request": { - "$ref": "TestPermissionsRequest" + "$ref": "RegionSetPolicyRequest" }, "response": { - "$ref": "TestPermissionsResponse" + "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" + "https://www.googleapis.com/auth/compute" ] - } - } - }, - "targetHttpProxies": { - "methods": { - "aggregatedList": { + }, + "setPrivateIpGoogleAccess": { + "description": "Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.", + "flatPath": "projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess", + "httpMethod": "POST", + "id": "compute.subnetworks.setPrivateIpGoogleAccess", + "parameterOrder": [ + "project", + "region", + "subnetwork" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "subnetwork": { + "description": "Name of the Subnetwork resource.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess", + "request": { + "$ref": "SubnetworksSetPrivateIpGoogleAccessRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.subnetworks.testIamPermissions", + "parameterOrder": [ + "project", + "region", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + } + } + }, + "targetGrpcProxies": { + "methods": { + "delete": { + "description": "Deletes the specified TargetGrpcProxy in the given scope", + "flatPath": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", + "httpMethod": "DELETE", + "id": "compute.targetGrpcProxies.delete", + "parameterOrder": [ + "project", + "targetGrpcProxy" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "targetGrpcProxy": { + "description": "Name of the TargetGrpcProxy resource to delete.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "get": { + "description": "Returns the specified TargetGrpcProxy resource in the given scope.", + "flatPath": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", + "httpMethod": "GET", + "id": "compute.targetGrpcProxies.get", + "parameterOrder": [ + "project", + "targetGrpcProxy" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "targetGrpcProxy": { + "description": "Name of the TargetGrpcProxy resource to return.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", + "response": { + "$ref": "TargetGrpcProxy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "insert": { + "description": "Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that are included in the request.", + "flatPath": "projects/{project}/global/targetGrpcProxies", + "httpMethod": "POST", + "id": "compute.targetGrpcProxies.insert", + "parameterOrder": [ + "project" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/global/targetGrpcProxies", + "request": { + "$ref": "TargetGrpcProxy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "list": { + "description": "Lists the TargetGrpcProxies for a project in the given scope.", + "flatPath": "projects/{project}/global/targetGrpcProxies", + "httpMethod": "GET", + "id": "compute.targetGrpcProxies.list", + "parameterOrder": [ + "project" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.", + "location": "query", + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/global/targetGrpcProxies", + "response": { + "$ref": "TargetGrpcProxyList" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "patch": { + "description": "Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "flatPath": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", + "httpMethod": "PATCH", + "id": "compute.targetGrpcProxies.patch", + "parameterOrder": [ + "project", + "targetGrpcProxy" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "targetGrpcProxy": { + "description": "Name of the TargetGrpcProxy resource to patch.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}", + "request": { + "$ref": "TargetGrpcProxy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource.", + "flatPath": "projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions", + "httpMethod": "POST", + "id": "compute.targetGrpcProxies.testIamPermissions", + "parameterOrder": [ + "project", + "resource" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "resource": { + "description": "Name or id of the resource for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions", + "request": { + "$ref": "TestPermissionsRequest" + }, + "response": { + "$ref": "TestPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + } + } + }, + "targetHttpProxies": { + "methods": { + "aggregatedList": { "description": "Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project.", "flatPath": "projects/{project}/aggregated/targetHttpProxies", "httpMethod": "GET", @@ -37088,6 +37736,55 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "setSecurityPolicy": { + "description": "Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview", + "flatPath": "projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy", + "httpMethod": "POST", + "id": "compute.targetInstances.setSecurityPolicy", + "parameterOrder": [ + "project", + "zone", + "targetInstance" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "targetInstance": { + "description": "Name of the TargetInstance resource to which the security policy should be set. The name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "zone": { + "description": "Name of the zone scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy", + "request": { + "$ref": "SecurityPolicyReference" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "testIamPermissions": { "description": "Returns permissions that a caller has on the specified resource.", "flatPath": "projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions", @@ -37695,6 +38392,55 @@ "https://www.googleapis.com/auth/compute" ] }, + "setSecurityPolicy": { + "description": "Sets the Google Cloud Armor security policy for the specified target pool. For more information, see Google Cloud Armor Overview", + "flatPath": "projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy", + "httpMethod": "POST", + "id": "compute.targetPools.setSecurityPolicy", + "parameterOrder": [ + "project", + "region", + "targetPool" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "targetPool": { + "description": "Name of the TargetPool resource to which the security policy should be set. The name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy", + "request": { + "$ref": "SecurityPolicyReference" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "testIamPermissions": { "description": "Returns permissions that a caller has on the specified resource.", "flatPath": "projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions", @@ -40632,7 +41378,7 @@ } } }, - "revision": "20230307", + "revision": "20230322", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -41079,11 +41825,11 @@ "id": "AccessConfig", "properties": { "externalIpv6": { - "description": "The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.", + "description": "Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.", "type": "string" }, "externalIpv6PrefixLength": { - "description": "The prefix length of the external IPv6 range.", + "description": "Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range.", "format": "int32", "type": "integer" }, @@ -41093,11 +41839,11 @@ "type": "string" }, "name": { - "description": "The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.", + "description": "The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. In ipv6AccessConfigs, the recommend name is External IPv6.", "type": "string" }, "natIP": { - "description": "An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", + "description": "Applies to accessConfigs (IPv4) only. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", "type": "string" }, "networkTier": { @@ -41139,8 +41885,7 @@ "type": "boolean" }, "type": { - "default": "ONE_TO_ONE_NAT", - "description": "The type of configuration. The default and only option is ONE_TO_ONE_NAT.", + "description": "The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.", "enum": [ "DIRECT_IPV6", "ONE_TO_ONE_NAT" @@ -43654,6 +44399,13 @@ "$ref": "Duration", "description": "Specifies the default maximum duration (timeout) for streams to this service. Duration is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, there will be no timeout limit, i.e. the maximum duration is infinite. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. This field is only allowed when the loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED." }, + "metadatas": { + "additionalProperties": { + "type": "string" + }, + "description": "Deployment metadata associated with the resource to be set by a GKE hub controller and read by the backend RCTH", + "type": "object" + }, "name": { "description": "Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", @@ -44844,6 +45596,10 @@ "description": "Per-instance properties to be set on individual instances. To be extended in the future.", "id": "BulkInsertInstanceResourcePerInstanceProperties", "properties": { + "hostname": { + "description": "Specifies the hostname of the instance. More details in: https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention hostname must be uniqe in per_instance_properties map.", + "type": "string" + }, "name": { "description": "This field is only temporary. It will be removed. Do not use it.", "type": "string" @@ -45942,6 +46698,10 @@ "$ref": "CustomerEncryptionKey", "description": "Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key. Encryption keys do not protect access to metadata of the disk. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later. For example, to create a disk snapshot, to create a disk image, to create a machine image, or to attach the disk to a virtual machine. After you encrypt a disk with a customer-managed key, the diskEncryptionKey.kmsKeyName is set to a key *version* name once the disk is created. The disk is encrypted with this version of the key. In the response, diskEncryptionKey.kmsKeyName appears in the following format: \"diskEncryptionKey.kmsKeyName\": \"projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeysVersions/version If you do not provide an encryption key when creating the disk, then the disk is encrypted using an automatically generated key and you don't need to provide a key to use the disk later." }, + "enableConfidentialCompute": { + "description": "Whether this disk is using confidential compute mode. see go/confidential-mode-in-arcus for details.", + "type": "boolean" + }, "eraseWindowsVssSignature": { "description": "Specifies whether the disk restored from a source snapshot should erase Windows specific VSS signature.", "type": "boolean" @@ -48105,6 +48865,11 @@ "description": "The name for an association.", "type": "string" }, + "priority": { + "description": "An integer indicating the priority of an association. The priority must be a positive value between 1 and 2147483647. Firewall Policies are evaluated from highest to lowest priority where 1 is the highest priority and 2147483647 is the lowest priority. The default value is `1000`. If two associations have the same priority then lexicographical order on association names is applied.", + "format": "int32", + "type": "integer" + }, "shortName": { "description": "[Output Only] The short name of the firewall policy of the association.", "type": "string" @@ -49867,7 +50632,7 @@ "id": "GuestOsFeature", "properties": { "type": { - "description": "The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more information, see Enabling guest operating system features.", + "description": "The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more information, see Enabling guest operating system features.", "enum": [ "BARE_METAL_LINUX_COMPATIBLE", "FEATURE_TYPE_UNSPECIFIED", @@ -51058,7 +51823,7 @@ "type": "string" }, "healthState": { - "description": "Health state of the instance.", + "description": "Health state of the IPv4 address of the instance.", "enum": [ "HEALTHY", "UNHEALTHY" @@ -52656,7 +53421,7 @@ "TERMINATED" ], "enumDescriptions": [ - "The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -54340,7 +55105,7 @@ "id": "InstanceGroupManagersDeleteInstancesRequest", "properties": { "instances": { - "description": "The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].", + "description": "The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be deleted only by name. One cannot specify both URLs and names in a single request.", "items": { "type": "string" }, @@ -56058,7 +56823,7 @@ "TERMINATED" ], "enumDescriptions": [ - "The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -56370,6 +57135,23 @@ }, "type": "object" }, + "InstancesSetSecurityPolicyRequest": { + "id": "InstancesSetSecurityPolicyRequest", + "properties": { + "networkInterfaces": { + "description": "The network interfaces that the security policy will be applied to. Network interfaces use the nicN naming format. You can only set a security policy for network interfaces with an access config.", + "items": { + "type": "string" + }, + "type": "array" + }, + "securityPolicy": { + "description": "A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.", + "type": "string" + } + }, + "type": "object" + }, "InstancesSetServiceAccountRequest": { "id": "InstancesSetServiceAccountRequest", "properties": { @@ -56941,13 +57723,26 @@ "type": "object" }, "Interconnect": { - "description": "Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the GCP network and your on-premises network. For more information, read the Dedicated Interconnect Overview.", + "description": "Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the Google Cloud network and your on-premises network. For more information, read the Dedicated Interconnect Overview.", "id": "Interconnect", "properties": { "adminEnabled": { "description": "Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true.", "type": "boolean" }, + "availableFeatures": { + "description": "[Output only] List of features available for this interconnect, which can take one of the following values: - MACSEC If present then the interconnect was created on MACsec capable hardware ports. If not present then the interconnect is provisioned on non-MACsec capable ports and MACsec enablement will fail.", + "items": { + "enum": [ + "IF_MACSEC" + ], + "enumDescriptions": [ + "Media Access Control security (MACsec)" + ], + "type": "string" + }, + "type": "array" + }, "circuitInfos": { "description": "[Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG.", "items": { @@ -57088,6 +57883,19 @@ "description": "Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of Google's network that the interconnect is connected to.", "type": "string" }, + "requestedFeatures": { + "description": "Optional. List of features requested for this interconnect, which can take one of the following values: - MACSEC If specified then the interconnect will be created on MACsec capable hardware ports. If not specified, the default value is false, which will allocate non-MACsec capable ports first if available. This parameter can only be provided during interconnect INSERT and cannot be changed using interconnect PATCH. Please review Interconnect Pricing for implications on enabling this flag.", + "items": { + "enum": [ + "IF_MACSEC" + ], + "enumDescriptions": [ + "Media Access Control security (MACsec)" + ], + "type": "string" + }, + "type": "array" + }, "requestedLinkCount": { "description": "Target number of physical links in the link bundle, as requested by the customer.", "format": "int32", @@ -57255,7 +58063,7 @@ "type": "string" }, "ipsecInternalAddresses": { - "description": "A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the VLAN attachment that has the encryption option as IPSEC. The addresses must be regional internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the attachment is configured to use a regional internal IP address, then the VPN gateway's IP address is allocated from the IP address range specified here. For example, if the HA VPN gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN attachment. If this field is not specified when creating the VLAN attachment, then later on when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is allocated from the regional external IP address pool. Not currently available publicly. ", + "description": "A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the VLAN attachment that has the encryption option as IPSEC. The addresses must be regional internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the attachment is configured to use a regional internal IP address, then the VPN gateway's IP address is allocated from the IP address range specified here. For example, if the HA VPN gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN attachment. If this field is not specified when creating the VLAN attachment, then later on when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is allocated from the regional external IP address pool.", "items": { "type": "string" }, @@ -58156,6 +58964,34 @@ "description": "[Output Only] Availability zone for this InterconnectLocation. Within a metropolitan area (metro), maintenance will not be simultaneously scheduled in more than one availability zone. Example: \"zone1\" or \"zone2\".", "type": "string" }, + "availableFeatures": { + "description": "[Output only] List of features available at this interconnect location, which can take one of the following values: - MACSEC ", + "items": { + "enum": [ + "IF_MACSEC" + ], + "enumDescriptions": [ + "Media Access Control security (MACsec)" + ], + "type": "string" + }, + "type": "array" + }, + "availableLinkTypes": { + "description": "[Output only] List of link types available at this interconnect location, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR ", + "items": { + "enum": [ + "LINK_TYPE_ETHERNET_100G_LR", + "LINK_TYPE_ETHERNET_10G_LR" + ], + "enumDescriptions": [ + "100G Ethernet, LR Optics.", + "10G Ethernet, LR Optics. [(rate_bps) = 10000000000];" + ], + "type": "string" + }, + "type": "array" + }, "city": { "description": "[Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: \"Chicago, IL\", \"Amsterdam, Netherlands\".", "type": "string" @@ -60501,7 +61337,7 @@ "TERMINATED" ], "enumDescriptions": [ - "The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -60854,7 +61690,7 @@ "type": "string" }, "gatewayIPv4": { - "description": "[Output Only] The gateway address for default routing out of the network, selected by GCP.", + "description": "[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.", "pattern": "[0-9]{1,3}(?:\\.[0-9]{1,3}){3}", "type": "string" }, @@ -62636,7 +63472,7 @@ "type": "integer" }, "stackType": { - "description": "The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. This field can be both set at instance creation and update network interface operations.", + "description": "The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations.", "enum": [ "IPV4_IPV6", "IPV4_ONLY" @@ -72514,14 +73350,14 @@ "description": "BFD configuration for the BGP peering." }, "customLearnedIpRanges": { - "description": "User-defined Custom Learned Route IP range list for a BGP session.", + "description": "A list of user-defined custom learned route IP address ranges for a BGP session.", "items": { "$ref": "RouterBgpPeerCustomLearnedIpRange" }, "type": "array" }, "customLearnedRoutePriority": { - "description": "User-defined Custom Learned Route Priority for a BGP session. This will be applied to all Custom Learned Route ranges of the BGP session, if not given, google-managed priority of 100 is used.", + "description": "The user-defined custom learned route priority for a BGP session. This value is applied to all custom learned route ranges for the session. You can choose a value from `0` to `65335`. If you don't provide a value, Google Cloud assigns a priority of `100` to the ranges.", "format": "int32", "type": "integer" }, @@ -72674,7 +73510,7 @@ "id": "RouterBgpPeerCustomLearnedIpRange", "properties": { "range": { - "description": "The Custom Learned Route IP range. Must be a valid CIDR-formatted prefix. If an IP is provided without a subnet mask, it is interpreted as a /32 singular IP range for IPv4, and /128 for IPv6.", + "description": "The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a `/32` singular IP address range, and, for IPv6, `/128`.", "type": "string" } }, @@ -74465,6 +75301,13 @@ "" ], "type": "string" + }, + "userIpRequestHeaders": { + "description": "An optional list of case-insensitive request header names to use for resolving the callers client IP address.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -75416,7 +76259,7 @@ "type": "object" }, "ServiceAttachment": { - "description": "Represents a ServiceAttachment resource. A service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service. next tag = 20", + "description": "Represents a ServiceAttachment resource. A service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service.", "id": "ServiceAttachment", "properties": { "connectedEndpoints": { @@ -75513,6 +76356,10 @@ "$ref": "Uint128", "description": "[Output Only] An 128-bit global unique ID of the PSC service attachment." }, + "reconcileConnections": { + "description": "This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to true.", + "type": "boolean" + }, "region": { "description": "[Output Only] URL of the region where the service attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.", "type": "string" @@ -77562,303 +78409,807 @@ }, "type": "object" }, - "SslPolicy": { - "description": "Represents an SSL Policy resource. Use SSL policies to control the SSL features, such as versions and cipher suites, offered by an HTTPS or SSL Proxy load balancer. For more information, read SSL Policy Concepts.", - "id": "SslPolicy", - "properties": { - "creationTimestamp": { - "description": "[Output Only] Creation timestamp in RFC3339 text format.", - "type": "string" - }, - "customFeatures": { - "description": "A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM.", - "items": { - "type": "string" - }, - "type": "array" - }, - "description": { - "description": "An optional description of this resource. Provide this property when you create the resource.", - "type": "string" - }, - "enabledFeatures": { - "description": "[Output Only] The list of features enabled in the SSL policy.", - "items": { - "type": "string" - }, - "type": "array" - }, - "fingerprint": { - "description": "Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy.", - "format": "byte", - "type": "string" - }, - "id": { - "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", - "format": "uint64", - "type": "string" - }, - "kind": { - "default": "compute#sslPolicy", - "description": "[Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.", - "type": "string" - }, - "minTlsVersion": { - "description": "The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2.", - "enum": [ - "TLS_1_0", - "TLS_1_1", - "TLS_1_2" - ], - "enumDescriptions": [ - "TLS 1.0", - "TLS 1.1", - "TLS 1.2" - ], - "type": "string" - }, - "name": { - "description": "Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "type": "string" - }, - "profile": { - "description": "Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field.", - "enum": [ - "COMPATIBLE", - "CUSTOM", - "MODERN", - "RESTRICTED" - ], - "enumDescriptions": [ - "Compatible profile. Allows the broadset set of clients, even those which support only out-of-date SSL features to negotiate with the load balancer.", - "Custom profile. Allow only the set of allowed SSL features specified in the customFeatures field.", - "Modern profile. Supports a wide set of SSL features, allowing modern clients to negotiate SSL with the load balancer.", - "Restricted profile. Supports a reduced set of SSL features, intended to meet stricter compliance requirements." - ], - "type": "string" - }, - "region": { - "description": "[Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.", - "type": "string" - }, - "selfLink": { - "description": "[Output Only] Server-defined URL for the resource.", - "type": "string" - }, - "selfLinkWithId": { - "description": "[Output Only] Server-defined URL for this resource with the resource id.", - "type": "string" - }, - "tlsSettings": { - "$ref": "ServerTlsSettings", - "description": "Security settings for the proxy. This field is only applicable to a global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED." - }, - "warnings": { - "description": "[Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.", - "items": { - "properties": { - "code": { - "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", - "enum": [ - "CLEANUP_FAILED", - "DEPRECATED_RESOURCE_USED", - "DEPRECATED_TYPE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "EXPERIMENTAL_TYPE_USED", - "EXTERNAL_API_WARNING", - "FIELD_VALUE_OVERRIDEN", - "INJECTED_KERNELS_DEPRECATED", - "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", - "LARGE_DEPLOYMENT_WARNING", - "MISSING_TYPE_DEPENDENCY", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NOT_CRITICAL_ERROR", - "NO_RESULTS_ON_PAGE", - "PARTIAL_SUCCESS", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", - "RESOURCE_NOT_DELETED", - "SCHEMA_VALIDATION_IGNORED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNDECLARED_PROPERTIES", - "UNREACHABLE" - ], - "enumDescriptions": [ - "Warning about failed cleanup of transient changes made by a failed operation.", - "A link to a deprecated resource was created.", - "When deploying and at least one of the resources has a type marked as deprecated", - "The user created a boot disk that is larger than image size.", - "When deploying and at least one of the resources has a type marked as experimental", - "Warning that is present in an external api call", - "Warning that value of a field has been overridden. Deprecated unused field.", - "The operation involved use of an injected kernel, which is deprecated.", - "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", - "When deploying a deployment with a exceedingly large number of resources", - "A resource depends on a missing type", - "The route's nextHopIp address is not assigned to an instance on the network.", - "The route's next hop instance cannot ip forward.", - "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", - "The route's nextHopInstance URL refers to an instance that does not exist.", - "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", - "The route's next hop instance does not have a status of RUNNING.", - "Error which is not critical. We decided to continue the process despite the mentioned error.", - "No results are present on a particular list page.", - "Success is reported, but some results may be missing due to errors", - "The user attempted to use a resource that requires a TOS they have not accepted.", - "Warning that a resource is in use.", - "One or more of the resources set to auto-delete could not be deleted because they were in use.", - "When a resource schema validation is ignored.", - "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", - "When undeclared properties in the schema are present", - "A given scope cannot be reached." - ], - "type": "string" - }, - "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", - "items": { - "properties": { - "key": { - "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", - "type": "string" - }, - "value": { - "description": "[Output Only] A warning data value corresponding to the key.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "message": { - "description": "[Output Only] A human-readable description of the warning code.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - } - }, - "type": "object" - }, - "SslPolicyReference": { - "id": "SslPolicyReference", - "properties": { - "sslPolicy": { - "description": "URL of the SSL policy resource. Set this to empty string to clear any existing SSL policy associated with the target proxy resource.", - "type": "string" - } - }, - "type": "object" - }, - "StatefulPolicy": { - "id": "StatefulPolicy", - "properties": { - "preservedState": { - "$ref": "StatefulPolicyPreservedState" - } - }, - "type": "object" - }, - "StatefulPolicyPreservedState": { - "description": "Configuration of preserved resources.", - "id": "StatefulPolicyPreservedState", - "properties": { - "disks": { - "additionalProperties": { - "$ref": "StatefulPolicyPreservedStateDiskDevice" - }, - "description": "Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.", - "type": "object" - }, - "externalIPs": { - "additionalProperties": { - "$ref": "StatefulPolicyPreservedStateNetworkIp" - }, - "description": "External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.", - "type": "object" - }, - "internalIPs": { - "additionalProperties": { - "$ref": "StatefulPolicyPreservedStateNetworkIp" - }, - "description": "Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.", - "type": "object" - } - }, - "type": "object" - }, - "StatefulPolicyPreservedStateDiskDevice": { - "id": "StatefulPolicyPreservedStateDiskDevice", - "properties": { - "autoDelete": { - "description": "These stateful disks will never be deleted during autohealing, update or VM instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted.", - "enum": [ - "NEVER", - "ON_PERMANENT_INSTANCE_DELETION" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "StatefulPolicyPreservedStateNetworkIp": { - "id": "StatefulPolicyPreservedStateNetworkIp", - "properties": { - "autoDelete": { - "description": "These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.", - "enum": [ - "NEVER", - "ON_PERMANENT_INSTANCE_DELETION" - ], - "enumDescriptions": [ - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "Status": { - "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", - "id": "Status", - "properties": { - "code": { - "description": "The status code, which should be an enum value of google.rpc.Code.", - "format": "int32", - "type": "integer" - }, - "details": { - "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", - "items": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "type": "object" - }, - "type": "array" - }, - "message": { - "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", - "type": "string" - } - }, - "type": "object" - }, + "SslPolicy": { + "description": "Represents an SSL Policy resource. Use SSL policies to control the SSL features, such as versions and cipher suites, offered by an HTTPS or SSL Proxy load balancer. For more information, read SSL Policy Concepts.", + "id": "SslPolicy", + "properties": { + "creationTimestamp": { + "description": "[Output Only] Creation timestamp in RFC3339 text format.", + "type": "string" + }, + "customFeatures": { + "description": "A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "An optional description of this resource. Provide this property when you create the resource.", + "type": "string" + }, + "enabledFeatures": { + "description": "[Output Only] The list of features enabled in the SSL policy.", + "items": { + "type": "string" + }, + "type": "array" + }, + "fingerprint": { + "description": "Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy.", + "format": "byte", + "type": "string" + }, + "id": { + "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", + "format": "uint64", + "type": "string" + }, + "kind": { + "default": "compute#sslPolicy", + "description": "[Output only] Type of the resource. Always compute#sslPolicyfor SSL policies.", + "type": "string" + }, + "minTlsVersion": { + "description": "The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2.", + "enum": [ + "TLS_1_0", + "TLS_1_1", + "TLS_1_2" + ], + "enumDescriptions": [ + "TLS 1.0", + "TLS 1.1", + "TLS 1.2" + ], + "type": "string" + }, + "name": { + "description": "Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "type": "string" + }, + "profile": { + "description": "Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to enable must be specified in the customFeatures field.", + "enum": [ + "COMPATIBLE", + "CUSTOM", + "MODERN", + "RESTRICTED" + ], + "enumDescriptions": [ + "Compatible profile. Allows the broadset set of clients, even those which support only out-of-date SSL features to negotiate with the load balancer.", + "Custom profile. Allow only the set of allowed SSL features specified in the customFeatures field.", + "Modern profile. Supports a wide set of SSL features, allowing modern clients to negotiate SSL with the load balancer.", + "Restricted profile. Supports a reduced set of SSL features, intended to meet stricter compliance requirements." + ], + "type": "string" + }, + "region": { + "description": "[Output Only] URL of the region where the regional SSL policy resides. This field is not applicable to global SSL policies.", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for the resource.", + "type": "string" + }, + "selfLinkWithId": { + "description": "[Output Only] Server-defined URL for this resource with the resource id.", + "type": "string" + }, + "tlsSettings": { + "$ref": "ServerTlsSettings", + "description": "Security settings for the proxy. This field is only applicable to a global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED." + }, + "warnings": { + "description": "[Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages.", + "items": { + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "SslPolicyReference": { + "id": "SslPolicyReference", + "properties": { + "sslPolicy": { + "description": "URL of the SSL policy resource. Set this to empty string to clear any existing SSL policy associated with the target proxy resource.", + "type": "string" + } + }, + "type": "object" + }, + "StatefulPolicy": { + "id": "StatefulPolicy", + "properties": { + "preservedState": { + "$ref": "StatefulPolicyPreservedState" + } + }, + "type": "object" + }, + "StatefulPolicyPreservedState": { + "description": "Configuration of preserved resources.", + "id": "StatefulPolicyPreservedState", + "properties": { + "disks": { + "additionalProperties": { + "$ref": "StatefulPolicyPreservedStateDiskDevice" + }, + "description": "Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.", + "type": "object" + }, + "externalIPs": { + "additionalProperties": { + "$ref": "StatefulPolicyPreservedStateNetworkIp" + }, + "description": "External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.", + "type": "object" + }, + "internalIPs": { + "additionalProperties": { + "$ref": "StatefulPolicyPreservedStateNetworkIp" + }, + "description": "Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.", + "type": "object" + } + }, + "type": "object" + }, + "StatefulPolicyPreservedStateDiskDevice": { + "id": "StatefulPolicyPreservedStateDiskDevice", + "properties": { + "autoDelete": { + "description": "These stateful disks will never be deleted during autohealing, update or VM instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. Note: disks attached in READ_ONLY mode cannot be auto-deleted.", + "enum": [ + "NEVER", + "ON_PERMANENT_INSTANCE_DELETION" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "StatefulPolicyPreservedStateNetworkIp": { + "id": "StatefulPolicyPreservedStateNetworkIp", + "properties": { + "autoDelete": { + "description": "These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.", + "enum": [ + "NEVER", + "ON_PERMANENT_INSTANCE_DELETION" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, + "StoragePool": { + "description": "Represents a zonal storage pool resource.", + "id": "StoragePool", + "properties": { + "creationTimestamp": { + "description": "[Output Only] Creation timestamp in RFC3339 text format.", + "type": "string" + }, + "description": { + "description": "An optional description of this resource. Provide this property when you create the resource.", + "type": "string" + }, + "id": { + "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", + "format": "uint64", + "type": "string" + }, + "kind": { + "default": "compute#storagePool", + "description": "[Output Only] Type of the resource. Always compute#storagePool for storage pools.", + "type": "string" + }, + "labelFingerprint": { + "description": "A fingerprint for the labels being applied to this storage pool, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a storage pool.", + "format": "byte", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Labels to apply to this storage pool. These can be later modified by the setLabels method.", + "type": "object" + }, + "name": { + "annotations": { + "required": [ + "compute.storagePools.insert" + ] + }, + "description": "Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "type": "string" + }, + "provisionedIops": { + "description": "Provsioned IOPS of the storage pool.", + "format": "int64", + "type": "string" + }, + "resourceStatus": { + "$ref": "StoragePoolResourceStatus", + "description": "[Output Only] Status information for the storage pool resource." + }, + "selfLink": { + "description": "[Output Only] Server-defined fully-qualified URL for this resource.", + "type": "string" + }, + "selfLinkWithId": { + "description": "[Output Only] Server-defined URL for this resource's resource id.", + "type": "string" + }, + "sizeGb": { + "description": "Size, in GiB, of the storage pool.", + "format": "int64", + "type": "string" + }, + "state": { + "description": "[Output Only] The status of storage pool creation. - CREATING: Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. - READY: Storage pool is ready for use. - DELETING: Storage pool is deleting. ", + "enum": [ + "CREATING", + "DELETING", + "FAILED", + "READY" + ], + "enumDescriptions": [ + "StoragePool is provisioning", + "StoragePool is deleting.", + "StoragePool creation failed.", + "StoragePool is ready for use." + ], + "type": "string" + }, + "type": { + "description": "Type of the storage pool", + "enum": [ + "SSD", + "UNSPECIFIED" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + }, + "zone": { + "description": "[Output Only] URL of the zone where the storage pool resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.", + "type": "string" + } + }, + "type": "object" + }, + "StoragePoolAggregatedList": { + "id": "StoragePoolAggregatedList", + "properties": { + "etag": { + "type": "string" + }, + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "additionalProperties": { + "$ref": "StoragePoolsScopedList", + "description": "[Output Only] Name of the scope containing this set of storage pool." + }, + "description": "A list of StoragePoolsScopedList resources.", + "type": "object" + }, + "kind": { + "default": "compute#storagePoolAggregatedList", + "description": "[Output Only] Type of resource. Always compute#storagePoolAggregatedList for aggregated lists of storage pools.", + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for this resource.", + "type": "string" + }, + "unreachables": { + "description": "[Output Only] Unreachable resources.", + "items": { + "type": "string" + }, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "StoragePoolList": { + "description": "A list of StoragePool resources.", + "id": "StoragePoolList", + "properties": { + "etag": { + "type": "string" + }, + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "description": "A list of StoragePool resources.", + "items": { + "$ref": "StoragePool" + }, + "type": "array" + }, + "kind": { + "default": "compute#storagePoolList", + "description": "[Output Only] Type of resource. Always compute#storagePoolList for lists of storagePools.", + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for this resource.", + "type": "string" + }, + "unreachables": { + "description": "[Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder", + "items": { + "type": "string" + }, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "StoragePoolResourceStatus": { + "description": "[Output Only] Contains output only fields.", + "id": "StoragePoolResourceStatus", + "properties": { + "aggregateDiskProvisionedIops": { + "description": "[Output Only] Sum of all the disk' provisioned IOPS.", + "format": "int64", + "type": "string" + }, + "aggregateDiskSizeGb": { + "description": "[Output Only] Sum of all the capacity provisioned in disks in this storage pool. A disk's provisioned capacity is the same as its total capacity.", + "format": "int64", + "type": "string" + }, + "lastResizeTimestamp": { + "description": "[Output Only] Timestamp of the last successful resize in RFC3339 text format.", + "type": "string" + }, + "maxAggregateDiskSizeGb": { + "description": "[Output Only] Maximum allowed aggregate disk size in gigabytes.", + "format": "int64", + "type": "string" + }, + "numberOfDisks": { + "description": "[Output Only] Number of disks used.", + "format": "int64", + "type": "string" + }, + "usedBytes": { + "description": "[Output Only] Sum of all the disks' local used bytes. This specifically refers to the amount of bytes used on the disk without any encryption or compression.", + "format": "int64", + "type": "string" + }, + "usedReducedBytes": { + "description": "[Output Only] Sum of all the disks' used reduced bytes. This is the actual storage capacity consumed by all of the disks.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "StoragePoolsScopedList": { + "id": "StoragePoolsScopedList", + "properties": { + "storagePools": { + "description": "[Output Only] A list of storage pool contained in this scope.", + "items": { + "$ref": "StoragePool" + }, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning which replaces the list of storage pool when the list is empty.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "Subnetwork": { "description": "Represents a Subnetwork resource. A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read Virtual Private Cloud (VPC) Network.", "id": "Subnetwork", @@ -78939,6 +80290,11 @@ }, "type": "array" }, + "httpKeepAliveTimeoutSec": { + "description": "Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 seconds) will be used. For Global external HTTP(S) load balancer, the minimum allowed value is 5 seconds and the maximum allowed value is 1200 seconds. For Global external HTTP(S) load balancer (classic), this option is not available publicly.", + "format": "int32", + "type": "integer" + }, "id": { "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", "format": "uint64", @@ -79409,6 +80765,11 @@ }, "type": "array" }, + "httpKeepAliveTimeoutSec": { + "description": "Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 seconds) will be used. For Global external HTTP(S) load balancer, the minimum allowed value is 5 seconds and the maximum allowed value is 1200 seconds. For Global external HTTP(S) load balancer (classic), this option is not available publicly.", + "format": "int32", + "type": "integer" + }, "id": { "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", "format": "uint64", @@ -79455,7 +80816,7 @@ "type": "string" }, "serverTlsPolicy": { - "description": "Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted. Note: This field currently has no impact.", + "description": "Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are accepted with INTERNAL_SELF_MANAGED and which with EXTERNAL, EXTERNAL_MANAGED loadBalancingScheme consult ServerTlsPolicy documentation. If left blank, communications are not encrypted.", "type": "string" }, "sslCertificates": { diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index c1adbd339fd..1d8b5e6c51e 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -229,6 +229,7 @@ func New(client *http.Client) (*Service, error) { s.Snapshots = NewSnapshotsService(s) s.SslCertificates = NewSslCertificatesService(s) s.SslPolicies = NewSslPoliciesService(s) + s.StoragePools = NewStoragePoolsService(s) s.Subnetworks = NewSubnetworksService(s) s.TargetGrpcProxies = NewTargetGrpcProxiesService(s) s.TargetHttpProxies = NewTargetHttpProxiesService(s) @@ -420,6 +421,8 @@ type Service struct { SslPolicies *SslPoliciesService + StoragePools *StoragePoolsService + Subnetworks *SubnetworksService TargetGrpcProxies *TargetGrpcProxiesService @@ -1214,6 +1217,15 @@ type SslPoliciesService struct { s *Service } +func NewStoragePoolsService(s *Service) *StoragePoolsService { + rs := &StoragePoolsService{s: s} + return rs +} + +type StoragePoolsService struct { + s *Service +} + func NewSubnetworksService(s *Service) *SubnetworksService { rs := &SubnetworksService{s: s} return rs @@ -2067,32 +2079,35 @@ func (s *AcceleratorTypesScopedListWarningData) MarshalJSON() ([]byte, error) { // AccessConfig: An access configuration attached to an instance's // network interface. Only one access config per instance is supported. type AccessConfig struct { - // ExternalIpv6: The first IPv6 address of the external IPv6 range - // associated with this instance, prefix length is stored in - // externalIpv6PrefixLength in ipv6AccessConfig. To use a static - // external IP address, it must be unused and in the same region as the - // instance's zone. If not specified, Google Cloud will automatically - // assign an external IPv6 address from the instance's subnetwork. + // ExternalIpv6: Applies to ipv6AccessConfigs only. The first IPv6 + // address of the external IPv6 range associated with this instance, + // prefix length is stored in externalIpv6PrefixLength in + // ipv6AccessConfig. To use a static external IP address, it must be + // unused and in the same region as the instance's zone. If not + // specified, Google Cloud will automatically assign an external IPv6 + // address from the instance's subnetwork. ExternalIpv6 string `json:"externalIpv6,omitempty"` - // ExternalIpv6PrefixLength: The prefix length of the external IPv6 - // range. + // ExternalIpv6PrefixLength: Applies to ipv6AccessConfigs only. The + // prefix length of the external IPv6 range. ExternalIpv6PrefixLength int64 `json:"externalIpv6PrefixLength,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#accessConfig // for access configs. Kind string `json:"kind,omitempty"` - // Name: The name of this access configuration. The default and - // recommended name is External NAT, but you can use any arbitrary - // string, such as My external IP or Network Access. + // Name: The name of this access configuration. In accessConfigs (IPv4), + // the default and recommended name is External NAT, but you can use any + // arbitrary string, such as My external IP or Network Access. In + // ipv6AccessConfigs, the recommend name is External IPv6. Name string `json:"name,omitempty"` - // NatIP: An external IP address associated with this instance. Specify - // an unused static external IP address available to the project or - // leave this field undefined to use an IP from a shared ephemeral IP - // address pool. If you specify a static external IP address, it must - // live in the same region as the zone of the instance. + // NatIP: Applies to accessConfigs (IPv4) only. An external IP address + // associated with this instance. Specify an unused static external IP + // address available to the project or leave this field undefined to use + // an IP from a shared ephemeral IP address pool. If you specify a + // static external IP address, it must live in the same region as the + // zone of the instance. NatIP string `json:"natIP,omitempty"` // NetworkTier: This signifies the networking tier used for configuring @@ -2142,12 +2157,13 @@ type AccessConfig struct { // associated. SetPublicPtr bool `json:"setPublicPtr,omitempty"` - // Type: The type of configuration. The default and only option is - // ONE_TO_ONE_NAT. + // Type: The type of configuration. In accessConfigs (IPv4), the default + // and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default + // and only option is DIRECT_IPV6. // // Possible values: // "DIRECT_IPV6" - // "ONE_TO_ONE_NAT" (default) + // "ONE_TO_ONE_NAT" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "ExternalIpv6") to @@ -6185,6 +6201,10 @@ type BackendService struct { // loadBalancingScheme of the backend service is INTERNAL_SELF_MANAGED. MaxStreamDuration *Duration `json:"maxStreamDuration,omitempty"` + // Metadatas: Deployment metadata associated with the resource to be set + // by a GKE hub controller and read by the backend RCTH + Metadatas map[string]string `json:"metadatas,omitempty"` + // Name: Name of the resource. Provided by the client when the resource // is created. The name must be 1-63 characters long, and comply with // RFC1035. Specifically, the name must be 1-63 characters long and @@ -8152,11 +8172,16 @@ func (s *BulkInsertInstanceResource) MarshalJSON() ([]byte, error) { // properties to be set on individual instances. To be extended in the // future. type BulkInsertInstanceResourcePerInstanceProperties struct { + // Hostname: Specifies the hostname of the instance. More details in: + // https://cloud.google.com/compute/docs/instances/custom-hostname-vm#naming_convention + // hostname must be uniqe in per_instance_properties map. + Hostname string `json:"hostname,omitempty"` + // Name: This field is only temporary. It will be removed. Do not use // it. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "Hostname") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -8164,8 +8189,8 @@ type BulkInsertInstanceResourcePerInstanceProperties struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Hostname") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -9852,6 +9877,10 @@ type Disk struct { // provide a key to use the disk later. DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"` + // EnableConfidentialCompute: Whether this disk is using confidential + // compute mode. see go/confidential-mode-in-arcus for details. + EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` + // EraseWindowsVssSignature: Specifies whether the disk restored from a // source snapshot should erase Windows specific VSS signature. EraseWindowsVssSignature bool `json:"eraseWindowsVssSignature,omitempty"` @@ -13400,6 +13429,14 @@ type FirewallPolicyAssociation struct { // Name: The name for an association. Name string `json:"name,omitempty"` + // Priority: An integer indicating the priority of an association. The + // priority must be a positive value between 1 and 2147483647. Firewall + // Policies are evaluated from highest to lowest priority where 1 is the + // highest priority and 2147483647 is the lowest priority. The default + // value is `1000`. If two associations have the same priority then + // lexicographical order on association names is applied. + Priority int64 `json:"priority,omitempty"` + // ShortName: [Output Only] The short name of the firewall policy of the // association. ShortName string `json:"shortName,omitempty"` @@ -16212,8 +16249,8 @@ type GuestOsFeature struct { // commas to separate values. Set to one or more of the following // values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - // UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - - // SEV_SNP_CAPABLE - TDX_CAPABLE For more information, see Enabling - // guest operating system features. + // SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more + // information, see Enabling guest operating system features. // // Possible values: // "BARE_METAL_LINUX_COMPATIBLE" @@ -18075,7 +18112,7 @@ type HealthStatus struct { // instance. ForwardingRuleIp string `json:"forwardingRuleIp,omitempty"` - // HealthState: Health state of the instance. + // HealthState: Health state of the IPv4 address of the instance. // // Possible values: // "HEALTHY" @@ -20596,9 +20633,9 @@ type Instance struct { // cycle. // // Possible values: - // "DEPROVISIONING" - The Nanny is halted and we are performing tear - // down tasks like network deprogramming, releasing quota, IP, tearing - // down disks etc. + // "DEPROVISIONING" - The instance is halted and we are performing + // tear down tasks like network deprogramming, releasing quota, IP, + // tearing down disks etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. @@ -23298,7 +23335,9 @@ func (s *InstanceGroupManagersCreateInstancesRequest) MarshalJSON() ([]byte, err type InstanceGroupManagersDeleteInstancesRequest struct { // Instances: The URLs of one or more instances to delete. This can be a // full URL or a partial URL, such as - // zones/[ZONE]/instances/[INSTANCE_NAME]. + // zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have + // URL and can be deleted only by name. One cannot specify both URLs and + // names in a single request. Instances []string `json:"instances,omitempty"` // SkipInstancesOnValidationError: Specifies whether the request should @@ -26179,9 +26218,9 @@ type InstanceWithNamedPorts struct { // Status: [Output Only] The status of the instance. // // Possible values: - // "DEPROVISIONING" - The Nanny is halted and we are performing tear - // down tasks like network deprogramming, releasing quota, IP, tearing - // down disks etc. + // "DEPROVISIONING" - The instance is halted and we are performing + // tear down tasks like network deprogramming, releasing quota, IP, + // tearing down disks etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. @@ -26752,6 +26791,42 @@ func (s *InstancesSetNameRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type InstancesSetSecurityPolicyRequest struct { + // NetworkInterfaces: The network interfaces that the security policy + // will be applied to. Network interfaces use the nicN naming format. + // You can only set a security policy for network interfaces with an + // access config. + NetworkInterfaces []string `json:"networkInterfaces,omitempty"` + + // SecurityPolicy: A full or partial URL to a security policy to add to + // this instance. If this field is set to an empty string it will remove + // the associated security policy. + SecurityPolicy string `json:"securityPolicy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NetworkInterfaces") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NetworkInterfaces") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *InstancesSetSecurityPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod InstancesSetSecurityPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type InstancesSetServiceAccountRequest struct { // Email: Email address of the service account. Email string `json:"email,omitempty"` @@ -27655,9 +27730,9 @@ func (s *Int64RangeMatch) MarshalJSON() ([]byte, error) { } // Interconnect: Represents an Interconnect resource. An Interconnect -// resource is a dedicated connection between the GCP network and your -// on-premises network. For more information, read the Dedicated -// Interconnect Overview. +// resource is a dedicated connection between the Google Cloud network +// and your on-premises network. For more information, read the +// Dedicated Interconnect Overview. type Interconnect struct { // AdminEnabled: Administrative status of the interconnect. When this is // set to true, the Interconnect is functional and can carry traffic. @@ -27666,6 +27741,16 @@ type Interconnect struct { // set to true. AdminEnabled bool `json:"adminEnabled,omitempty"` + // AvailableFeatures: [Output only] List of features available for this + // interconnect, which can take one of the following values: - MACSEC If + // present then the interconnect was created on MACsec capable hardware + // ports. If not present then the interconnect is provisioned on + // non-MACsec capable ports and MACsec enablement will fail. + // + // Possible values: + // "IF_MACSEC" - Media Access Control security (MACsec) + AvailableFeatures []string `json:"availableFeatures,omitempty"` + // CircuitInfos: [Output Only] A list of CircuitInfo objects, that // describe the individual circuits in this LAG. CircuitInfos []*InterconnectCircuitInfo `json:"circuitInfos,omitempty"` @@ -27811,6 +27896,19 @@ type Interconnect struct { // the interconnect is connected to. RemoteLocation string `json:"remoteLocation,omitempty"` + // RequestedFeatures: Optional. List of features requested for this + // interconnect, which can take one of the following values: - MACSEC If + // specified then the interconnect will be created on MACsec capable + // hardware ports. If not specified, the default value is false, which + // will allocate non-MACsec capable ports first if available. This + // parameter can only be provided during interconnect INSERT and cannot + // be changed using interconnect PATCH. Please review Interconnect + // Pricing for implications on enabling this flag. + // + // Possible values: + // "IF_MACSEC" - Media Access Control security (MACsec) + RequestedFeatures []string `json:"requestedFeatures,omitempty"` + // RequestedLinkCount: Target number of physical links in the link // bundle, as requested by the customer. RequestedLinkCount int64 `json:"requestedLinkCount,omitempty"` @@ -28027,8 +28125,7 @@ type InterconnectAttachment struct { // attachment. If this field is not specified when creating the VLAN // attachment, then later on when creating an HA VPN gateway on this // VLAN attachment, the HA VPN gateway's IP address is allocated from - // the regional external IP address pool. Not currently available - // publicly. + // the regional external IP address pool. IpsecInternalAddresses []string `json:"ipsecInternalAddresses,omitempty"` // Kind: [Output Only] Type of the resource. Always @@ -29491,6 +29588,24 @@ type InterconnectLocation struct { // zone. Example: "zone1" or "zone2". AvailabilityZone string `json:"availabilityZone,omitempty"` + // AvailableFeatures: [Output only] List of features available at this + // interconnect location, which can take one of the following values: - + // MACSEC + // + // Possible values: + // "IF_MACSEC" - Media Access Control security (MACsec) + AvailableFeatures []string `json:"availableFeatures,omitempty"` + + // AvailableLinkTypes: [Output only] List of link types available at + // this interconnect location, which can take one of the following + // values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR + // + // Possible values: + // "LINK_TYPE_ETHERNET_100G_LR" - 100G Ethernet, LR Optics. + // "LINK_TYPE_ETHERNET_10G_LR" - 10G Ethernet, LR Optics. [(rate_bps) + // = 10000000000]; + AvailableLinkTypes []string `json:"availableLinkTypes,omitempty"` + // City: [Output Only] Metropolitan area designator that indicates which // city an interconnect is located. For example: "Chicago, IL", // "Amsterdam, Netherlands". @@ -33085,9 +33200,9 @@ type ManagedInstance struct { // is empty when the instance does not exist. // // Possible values: - // "DEPROVISIONING" - The Nanny is halted and we are performing tear - // down tasks like network deprogramming, releasing quota, IP, tearing - // down disks etc. + // "DEPROVISIONING" - The instance is halted and we are performing + // tear down tasks like network deprogramming, releasing quota, IP, + // tearing down disks etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. @@ -33741,7 +33856,7 @@ type Network struct { FirewallPolicy string `json:"firewallPolicy,omitempty"` // GatewayIPv4: [Output Only] The gateway address for default routing - // out of the network, selected by GCP. + // out of the network, selected by Google Cloud. GatewayIPv4 string `json:"gatewayIPv4,omitempty"` // Id: [Output Only] The unique identifier for the resource. This @@ -36488,10 +36603,11 @@ type NetworkInterface struct { // number. It'll be empty if not specified by the users. QueueCount int64 `json:"queueCount,omitempty"` - // StackType: The stack type for this network interface to identify - // whether the IPv6 feature is enabled or not. If not specified, - // IPV4_ONLY will be used. This field can be both set at instance - // creation and update network interface operations. + // StackType: The stack type for this network interface. To assign only + // IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 + // addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This + // field can be both set at instance creation and update network + // interface operations. // // Possible values: // "IPV4_IPV6" - The network interface can have both IPv4 and IPv6 @@ -51772,14 +51888,15 @@ type RouterBgpPeer struct { // Bfd: BFD configuration for the BGP peering. Bfd *RouterBgpPeerBfd `json:"bfd,omitempty"` - // CustomLearnedIpRanges: User-defined Custom Learned Route IP range - // list for a BGP session. + // CustomLearnedIpRanges: A list of user-defined custom learned route IP + // address ranges for a BGP session. CustomLearnedIpRanges []*RouterBgpPeerCustomLearnedIpRange `json:"customLearnedIpRanges,omitempty"` - // CustomLearnedRoutePriority: User-defined Custom Learned Route - // Priority for a BGP session. This will be applied to all Custom - // Learned Route ranges of the BGP session, if not given, google-managed - // priority of 100 is used. + // CustomLearnedRoutePriority: The user-defined custom learned route + // priority for a BGP session. This value is applied to all custom + // learned route ranges for the session. You can choose a value from `0` + // to `65335`. If you don't provide a value, Google Cloud assigns a + // priority of `100` to the ranges. CustomLearnedRoutePriority int64 `json:"customLearnedRoutePriority,omitempty"` // Enable: The status of the BGP peer connection. If set to FALSE, any @@ -51979,10 +52096,10 @@ func (s *RouterBgpPeerBfd) MarshalJSON() ([]byte, error) { } type RouterBgpPeerCustomLearnedIpRange struct { - // Range: The Custom Learned Route IP range. Must be a valid - // CIDR-formatted prefix. If an IP is provided without a subnet mask, it - // is interpreted as a /32 singular IP range for IPv4, and /128 for - // IPv6. + // Range: The custom learned route IP address range. Must be a valid + // CIDR-formatted prefix. If an IP address is provided without a subnet + // mask, it is interpreted as, for IPv4, a `/32` singular IP address + // range, and, for IPv6, `/128`. Range string `json:"range,omitempty"` // ForceSendFields is a list of field names (e.g. "Range") to @@ -54513,6 +54630,10 @@ type SecurityPolicyAdvancedOptionsConfig struct { // "VERBOSE" LogLevel string `json:"logLevel,omitempty"` + // UserIpRequestHeaders: An optional list of case-insensitive request + // header names to use for resolving the callers client IP address. + UserIpRequestHeaders []string `json:"userIpRequestHeaders,omitempty"` + // ForceSendFields is a list of field names (e.g. "JsonCustomConfig") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -56098,7 +56219,7 @@ func (s *ServiceAccount) MarshalJSON() ([]byte, error) { // attachment represents a service that a producer has exposed. It // encapsulates the load balancer which fronts the service runs and a // list of NAT IP ranges that the producers uses to represent the -// consumers connecting to the service. next tag = 20 +// consumers connecting to the service. type ServiceAttachment struct { // ConnectedEndpoints: [Output Only] An array of connections for all the // consumers connected to this service attachment. @@ -56183,6 +56304,18 @@ type ServiceAttachment struct { // the PSC service attachment. PscServiceAttachmentId *Uint128 `json:"pscServiceAttachmentId,omitempty"` + // ReconcileConnections: This flag determines whether a consumer + // accept/reject list change can reconcile the statuses of existing + // ACCEPTED or REJECTED PSC endpoints. - If false, connection policy + // update will only affect existing PENDING PSC endpoints. Existing + // ACCEPTED/REJECTED endpoints will remain untouched regardless how the + // connection policy is modified . - If true, update will affect both + // PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED + // PSC endpoint will be moved to REJECTED if its project is added to the + // reject list. For newly created service attachment, this boolean + // defaults to true. + ReconcileConnections bool `json:"reconcileConnections,omitempty"` + // Region: [Output Only] URL of the region where the service attachment // resides. This field applies only to the region resource. You must // specify this field as part of the HTTP request URL. It is not @@ -59852,278 +59985,94 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Subnetwork: Represents a Subnetwork resource. A subnetwork (also -// known as a subnet) is a logical partition of a Virtual Private Cloud -// network with one primary IP range and zero or more secondary IP -// ranges. For more information, read Virtual Private Cloud (VPC) -// Network. -type Subnetwork struct { - // AggregationInterval: Can only be specified if VPC flow logging for - // this subnetwork is enabled. Sets the aggregation interval for - // collecting flow logs. Increasing the interval time reduces the amount - // of generated flow logs for long-lasting connections. Default is an - // interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, - // INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, - // INTERVAL_15_MIN. - // - // Possible values: - // "INTERVAL_10_MIN" - // "INTERVAL_15_MIN" - // "INTERVAL_1_MIN" - // "INTERVAL_30_SEC" - // "INTERVAL_5_MIN" - // "INTERVAL_5_SEC" - AggregationInterval string `json:"aggregationInterval,omitempty"` - - // AllowSubnetCidrRoutesOverlap: Whether this subnetwork's ranges can - // conflict with existing static routes. Setting this to true allows - // this subnetwork's primary and secondary ranges to overlap with (and - // contain) static routes that have already been configured on the - // corresponding network. For example if a static route has range - // 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if - // allow_conflicting_routes=true. Overlapping is only allowed on - // subnetwork operations; routes whose ranges conflict with this - // subnetwork's ranges won't be allowed unless - // route.allow_conflicting_subnetworks is set to true. Typically packets - // destined to IPs within the subnetwork (which may contain - // private/sensitive data) are prevented from leaving the virtual - // network. Setting this field to true will disable this feature. The - // default value is false and applies to all existing subnetworks and - // automatically created subnetworks. This field cannot be set to true - // at resource creation time. - AllowSubnetCidrRoutesOverlap bool `json:"allowSubnetCidrRoutesOverlap,omitempty"` - +// StoragePool: Represents a zonal storage pool resource. +type StoragePool struct { // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` // Description: An optional description of this resource. Provide this - // property when you create the resource. This field can be set only at - // resource creation time. + // property when you create the resource. Description string `json:"description,omitempty"` - // EnableFlowLogs: Whether to enable flow logging for this subnetwork. - // If this field is not explicitly set, it will not appear in get - // listings. If not set the default behavior is determined by the org - // policy, if there is no org policy specified, then it will default to - // disabled. This field isn't supported with the purpose field set to - // INTERNAL_HTTPS_LOAD_BALANCER. - EnableFlowLogs bool `json:"enableFlowLogs,omitempty"` - - // EnableL2: Enables Layer2 communication on the subnetwork. - EnableL2 bool `json:"enableL2,omitempty"` - - // EnablePrivateV6Access: Deprecated in favor of enable in - // PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly - // access Google services via internal IPv6 addresses. This field can be - // both set at resource creation time and updated using patch. - EnablePrivateV6Access bool `json:"enablePrivateV6Access,omitempty"` - - // ExternalIpv6Prefix: The external IPv6 address range that is owned by - // this subnetwork. - ExternalIpv6Prefix string `json:"externalIpv6Prefix,omitempty"` - - // Fingerprint: Fingerprint of this resource. A hash of the contents - // stored in this object. This field is used in optimistic locking. This - // field will be ignored when inserting a Subnetwork. An up-to-date - // fingerprint must be provided in order to update the Subnetwork, - // otherwise the request will fail with error 412 conditionNotMet. To - // see the latest fingerprint, make a get() request to retrieve a - // Subnetwork. - Fingerprint string `json:"fingerprint,omitempty"` - - // FlowSampling: Can only be specified if VPC flow logging for this - // subnetwork is enabled. The value of the field must be in [0, 1]. Set - // the sampling rate of VPC flow logs within the subnetwork where 1.0 - // means all collected logs are reported and 0.0 means no logs are - // reported. Default is 0.5 unless otherwise specified by the org - // policy, which means half of all collected logs are reported. - FlowSampling float64 `json:"flowSampling,omitempty"` - - // GatewayAddress: [Output Only] The gateway address for default routes - // to reach destination addresses outside this subnetwork. - GatewayAddress string `json:"gatewayAddress,omitempty"` - // Id: [Output Only] The unique identifier for the resource. This // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` - // InternalIpv6Prefix: [Output Only] The internal IPv6 address range - // that is assigned to this subnetwork. - InternalIpv6Prefix string `json:"internalIpv6Prefix,omitempty"` - - // IpCidrRange: The range of internal addresses that are owned by this - // subnetwork. Provide this property when you create the subnetwork. For - // example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and - // non-overlapping within a network. Only IPv4 is supported. This field - // is set at resource creation time. The range can be any range listed - // in the Valid ranges list. The range can be expanded after creation - // using expandIpCidrRange. - IpCidrRange string `json:"ipCidrRange,omitempty"` - - // Ipv6AccessType: The access type of IPv6 address this subnet holds. - // It's immutable and can only be specified during creation or the first - // time the subnet is updated into IPV4_IPV6 dual stack. - // - // Possible values: - // "EXTERNAL" - VMs on this subnet will be assigned IPv6 addresses - // that are accessible via the Internet, as well as the VPC network. - // "INTERNAL" - VMs on this subnet will be assigned IPv6 addresses - // that are only accessible over the VPC network. - Ipv6AccessType string `json:"ipv6AccessType,omitempty"` - - // Ipv6CidrRange: [Output Only] This field is for internal use. - Ipv6CidrRange string `json:"ipv6CidrRange,omitempty"` - - // Kind: [Output Only] Type of the resource. Always compute#subnetwork - // for Subnetwork resources. + // Kind: [Output Only] Type of the resource. Always compute#storagePool + // for storage pools. Kind string `json:"kind,omitempty"` - // LogConfig: This field denotes the VPC flow logging options for this - // subnetwork. If logging is enabled, logs are exported to Cloud - // Logging. - LogConfig *SubnetworkLogConfig `json:"logConfig,omitempty"` + // LabelFingerprint: A fingerprint for the labels being applied to this + // storage pool, which is essentially a hash of the labels set used for + // optimistic locking. The fingerprint is initially generated by Compute + // Engine and changes after every request to modify or update labels. + // You must always provide an up-to-date fingerprint hash in order to + // update or change labels, otherwise the request will fail with error + // 412 conditionNotMet. To see the latest fingerprint, make a get() + // request to retrieve a storage pool. + LabelFingerprint string `json:"labelFingerprint,omitempty"` - // Metadata: Can only be specified if VPC flow logging for this - // subnetwork is enabled. Configures whether metadata fields should be - // added to the reported VPC flow logs. Options are - // INCLUDE_ALL_METADATA, EXCLUDE_ALL_METADATA, and CUSTOM_METADATA. - // Default is EXCLUDE_ALL_METADATA. - // - // Possible values: - // "EXCLUDE_ALL_METADATA" - // "INCLUDE_ALL_METADATA" - Metadata string `json:"metadata,omitempty"` + // Labels: Labels to apply to this storage pool. These can be later + // modified by the setLabels method. + Labels map[string]string `json:"labels,omitempty"` - // Name: The name of the resource, provided by the client when initially - // creating the resource. The name must be 1-63 characters long, and - // comply with RFC1035. Specifically, the name must be 1-63 characters - // long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` - // which means the first character must be a lowercase letter, and all - // following characters must be a dash, lowercase letter, or digit, - // except the last character, which cannot be a dash. + // Name: Name of the resource. Provided by the client when the resource + // is created. The name must be 1-63 characters long, and comply with + // RFC1035. Specifically, the name must be 1-63 characters long and + // match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means + // the first character must be a lowercase letter, and all following + // characters must be a dash, lowercase letter, or digit, except the + // last character, which cannot be a dash. Name string `json:"name,omitempty"` - // Network: The URL of the network to which this subnetwork belongs, - // provided by the client when initially creating the subnetwork. This - // field can be set only at resource creation time. - Network string `json:"network,omitempty"` - - // PrivateIpGoogleAccess: Whether the VMs in this subnet can access - // Google services without assigned external IP addresses. This field - // can be both set at resource creation time and updated using - // setPrivateIpGoogleAccess. - PrivateIpGoogleAccess bool `json:"privateIpGoogleAccess,omitempty"` - - // PrivateIpv6GoogleAccess: This field is for internal use. This field - // can be both set at resource creation time and updated using patch. - // - // Possible values: - // "DISABLE_GOOGLE_ACCESS" - Disable private IPv6 access to/from - // Google services. - // "ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE" - Bidirectional private - // IPv6 access to/from Google services. - // "ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE" - Outbound private IPv6 - // access from VMs in this subnet to Google services. - PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` - - // Purpose: The purpose of the resource. This field can be either - // PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with - // purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created - // subnetwork that is reserved for Internal HTTP(S) Load Balancing. If - // unspecified, the purpose defaults to PRIVATE_RFC_1918. The - // enableFlowLogs field isn't supported with the purpose field set to - // INTERNAL_HTTPS_LOAD_BALANCER. - // - // Possible values: - // "AGGREGATE" - Subnetwork used to aggregate multiple private - // subnetworks. - // "CLOUD_EXTENSION" - Subnetworks created for Cloud Extension - // Machines. - // "GLOBAL_MANAGED_PROXY" - Subnet reserved for Global Internal - // HTTP(S) Load Balancing. - // "INTERNAL_HTTPS_LOAD_BALANCER" - Subnet reserved for Internal - // HTTP(S) Load Balancing. - // "PRIVATE" - Regular user created or automatically created subnet. - // "PRIVATE_NAT" - Subnetwork used as source range for Private NAT - // Gateways. - // "PRIVATE_RFC_1918" - Regular user created or automatically created - // subnet. - // "PRIVATE_SERVICE_CONNECT" - Subnetworks created for Private Service - // Connect in the producer network. - // "REGIONAL_MANAGED_PROXY" - Subnetwork used for Regional - // Internal/External HTTP(S) Load Balancing. - Purpose string `json:"purpose,omitempty"` - - // Region: URL of the region where the Subnetwork resides. This field - // can be set only at resource creation time. - Region string `json:"region,omitempty"` - - // ReservedInternalRange: The URL of the reserved internal range. - ReservedInternalRange string `json:"reservedInternalRange,omitempty"` - - // Role: The role of subnetwork. Currently, this field is only used when - // purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to - // ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being - // used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one - // that is ready to be promoted to ACTIVE or is currently draining. This - // field can be updated with a patch request. - // - // Possible values: - // "ACTIVE" - The ACTIVE subnet that is currently used. - // "BACKUP" - The BACKUP subnet that could be promoted to ACTIVE. - Role string `json:"role,omitempty"` + // ProvisionedIops: Provsioned IOPS of the storage pool. + ProvisionedIops int64 `json:"provisionedIops,omitempty,string"` - // SecondaryIpRanges: An array of configurations for secondary IP ranges - // for VM instances contained in this subnetwork. The primary IP of such - // VM must belong to the primary ipCidrRange of the subnetwork. The - // alias IPs may belong to either primary or secondary ranges. This - // field can be updated with a patch request. - SecondaryIpRanges []*SubnetworkSecondaryRange `json:"secondaryIpRanges,omitempty"` + // ResourceStatus: [Output Only] Status information for the storage pool + // resource. + ResourceStatus *StoragePoolResourceStatus `json:"resourceStatus,omitempty"` - // SelfLink: [Output Only] Server-defined URL for the resource. + // SelfLink: [Output Only] Server-defined fully-qualified URL for this + // resource. SelfLink string `json:"selfLink,omitempty"` - // SelfLinkWithId: [Output Only] Server-defined URL for this resource - // with the resource id. + // SelfLinkWithId: [Output Only] Server-defined URL for this resource's + // resource id. SelfLinkWithId string `json:"selfLinkWithId,omitempty"` - // StackType: The stack type for the subnet. If set to IPV4_ONLY, new - // VMs in the subnet are assigned IPv4 addresses only. If set to - // IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 - // addresses. If not specified, IPV4_ONLY is used. This field can be - // both set at resource creation time and updated using patch. + // SizeGb: Size, in GiB, of the storage pool. + SizeGb int64 `json:"sizeGb,omitempty,string"` + + // State: [Output Only] The status of storage pool creation. - CREATING: + // Storage pool is provisioning. storagePool. - FAILED: Storage pool + // creation failed. - READY: Storage pool is ready for use. - DELETING: + // Storage pool is deleting. // // Possible values: - // "IPV4_IPV6" - New VMs in this subnet can have both IPv4 and IPv6 - // addresses. - // "IPV4_ONLY" - New VMs in this subnet will only be assigned IPv4 - // addresses. - StackType string `json:"stackType,omitempty"` + // "CREATING" - StoragePool is provisioning + // "DELETING" - StoragePool is deleting. + // "FAILED" - StoragePool creation failed. + // "READY" - StoragePool is ready for use. + State string `json:"state,omitempty"` - // State: [Output Only] The state of the subnetwork, which can be one of - // the following values: READY: Subnetwork is created and ready to use - // DRAINING: only applicable to subnetworks that have the purpose set to - // INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the - // load balancer are being drained. A subnetwork that is draining cannot - // be used or modified until it reaches a status of READY + // Type: Type of the storage pool // // Possible values: - // "DRAINING" - Subnetwork is being drained. - // "READY" - Subnetwork is ready for use. - State string `json:"state,omitempty"` + // "SSD" + // "UNSPECIFIED" + Type string `json:"type,omitempty"` - // Vlans: A repeated field indicating the VLAN IDs supported on this - // subnetwork. During Subnet creation, specifying vlan is valid only if - // enable_l2 is true. During Subnet Update, specifying vlan is allowed - // only for l2 enabled subnets. Restricted to only one VLAN. - Vlans []int64 `json:"vlans,omitempty"` + // Zone: [Output Only] URL of the zone where the storage pool resides. + // You must specify this field as part of the HTTP request URL. It is + // not settable as a field in the request body. + Zone string `json:"zone,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AggregationInterval") + // ForceSendFields is a list of field names (e.g. "CreationTimestamp") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -60131,7 +60080,7 @@ type Subnetwork struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AggregationInterval") to + // NullFields is a list of field names (e.g. "CreationTimestamp") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -60141,36 +60090,25 @@ type Subnetwork struct { NullFields []string `json:"-"` } -func (s *Subnetwork) MarshalJSON() ([]byte, error) { - type NoMethod Subnetwork +func (s *StoragePool) MarshalJSON() ([]byte, error) { + type NoMethod StoragePool raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (s *Subnetwork) UnmarshalJSON(data []byte) error { - type NoMethod Subnetwork - var s1 struct { - FlowSampling gensupport.JSONFloat64 `json:"flowSampling"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.FlowSampling = float64(s1.FlowSampling) - return nil -} +type StoragePoolAggregatedList struct { + Etag string `json:"etag,omitempty"` -type SubnetworkAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the // server. Id string `json:"id,omitempty"` - // Items: A list of SubnetworksScopedList resources. - Items map[string]SubnetworksScopedList `json:"items,omitempty"` + // Items: A list of StoragePoolsScopedList resources. + Items map[string]StoragePoolsScopedList `json:"items,omitempty"` // Kind: [Output Only] Type of resource. Always - // compute#subnetworkAggregatedList for aggregated lists of subnetworks. + // compute#storagePoolAggregatedList for aggregated lists of storage + // pools. Kind string `json:"kind,omitempty"` // NextPageToken: [Output Only] This token allows you to get the next @@ -60188,13 +60126,13 @@ type SubnetworkAggregatedList struct { Unreachables []string `json:"unreachables,omitempty"` // Warning: [Output Only] Informational warning message. - Warning *SubnetworkAggregatedListWarning `json:"warning,omitempty"` + Warning *StoragePoolAggregatedListWarning `json:"warning,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Id") to + // ForceSendFields is a list of field names (e.g. "Etag") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -60202,7 +60140,7 @@ type SubnetworkAggregatedList struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Id") to include in API + // NullFields is a list of field names (e.g. "Etag") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -60211,15 +60149,936 @@ type SubnetworkAggregatedList struct { NullFields []string `json:"-"` } -func (s *SubnetworkAggregatedList) MarshalJSON() ([]byte, error) { - type NoMethod SubnetworkAggregatedList +func (s *StoragePoolAggregatedList) MarshalJSON() ([]byte, error) { + type NoMethod StoragePoolAggregatedList raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SubnetworkAggregatedListWarning: [Output Only] Informational warning +// StoragePoolAggregatedListWarning: [Output Only] Informational warning // message. -type SubnetworkAggregatedListWarning struct { +type StoragePoolAggregatedListWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in + // the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV + // backend service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's + // nextHopInstance URL refers to an instance that does not have an ipv6 + // interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + + // Data: [Output Only] Metadata about this warning in key: value format. + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } + Data []*StoragePoolAggregatedListWarningData `json:"data,omitempty"` + + // Message: [Output Only] A human-readable description of the warning + // code. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StoragePoolAggregatedListWarning) MarshalJSON() ([]byte, error) { + type NoMethod StoragePoolAggregatedListWarning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type StoragePoolAggregatedListWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning + // being returned. For example, for warnings where there are no results + // in a list request for a particular zone, this key might be scope and + // the key value might be the zone name. Other examples might be a key + // indicating a deprecated resource and a suggested replacement, or a + // warning about invalid network settings (for example, if an instance + // attempts to perform IP forwarding but is not enabled for IP + // forwarding). + Key string `json:"key,omitempty"` + + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StoragePoolAggregatedListWarningData) MarshalJSON() ([]byte, error) { + type NoMethod StoragePoolAggregatedListWarningData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StoragePoolList: A list of StoragePool resources. +type StoragePoolList struct { + Etag string `json:"etag,omitempty"` + + // Id: [Output Only] Unique identifier for the resource; defined by the + // server. + Id string `json:"id,omitempty"` + + // Items: A list of StoragePool resources. + Items []*StoragePool `json:"items,omitempty"` + + // Kind: [Output Only] Type of resource. Always compute#storagePoolList + // for lists of storagePools. + Kind string `json:"kind,omitempty"` + + // NextPageToken: [Output Only] This token allows you to get the next + // page of results for list requests. If the number of results is larger + // than maxResults, use the nextPageToken as a value for the query + // parameter pageToken in the next list request. Subsequent list + // requests will have their own nextPageToken to continue paging through + // the results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // SelfLink: [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + + // Unreachables: [Output Only] Unreachable resources. end_interface: + // MixerListResponseWithEtagBuilder + Unreachables []string `json:"unreachables,omitempty"` + + // Warning: [Output Only] Informational warning message. + Warning *StoragePoolListWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Etag") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Etag") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StoragePoolList) MarshalJSON() ([]byte, error) { + type NoMethod StoragePoolList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StoragePoolListWarning: [Output Only] Informational warning message. +type StoragePoolListWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in + // the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV + // backend service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's + // nextHopInstance URL refers to an instance that does not have an ipv6 + // interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + + // Data: [Output Only] Metadata about this warning in key: value format. + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } + Data []*StoragePoolListWarningData `json:"data,omitempty"` + + // Message: [Output Only] A human-readable description of the warning + // code. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StoragePoolListWarning) MarshalJSON() ([]byte, error) { + type NoMethod StoragePoolListWarning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type StoragePoolListWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning + // being returned. For example, for warnings where there are no results + // in a list request for a particular zone, this key might be scope and + // the key value might be the zone name. Other examples might be a key + // indicating a deprecated resource and a suggested replacement, or a + // warning about invalid network settings (for example, if an instance + // attempts to perform IP forwarding but is not enabled for IP + // forwarding). + Key string `json:"key,omitempty"` + + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StoragePoolListWarningData) MarshalJSON() ([]byte, error) { + type NoMethod StoragePoolListWarningData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StoragePoolResourceStatus: [Output Only] Contains output only fields. +type StoragePoolResourceStatus struct { + // AggregateDiskProvisionedIops: [Output Only] Sum of all the disk' + // provisioned IOPS. + AggregateDiskProvisionedIops int64 `json:"aggregateDiskProvisionedIops,omitempty,string"` + + // AggregateDiskSizeGb: [Output Only] Sum of all the capacity + // provisioned in disks in this storage pool. A disk's provisioned + // capacity is the same as its total capacity. + AggregateDiskSizeGb int64 `json:"aggregateDiskSizeGb,omitempty,string"` + + // LastResizeTimestamp: [Output Only] Timestamp of the last successful + // resize in RFC3339 text format. + LastResizeTimestamp string `json:"lastResizeTimestamp,omitempty"` + + // MaxAggregateDiskSizeGb: [Output Only] Maximum allowed aggregate disk + // size in gigabytes. + MaxAggregateDiskSizeGb int64 `json:"maxAggregateDiskSizeGb,omitempty,string"` + + // NumberOfDisks: [Output Only] Number of disks used. + NumberOfDisks int64 `json:"numberOfDisks,omitempty,string"` + + // UsedBytes: [Output Only] Sum of all the disks' local used bytes. This + // specifically refers to the amount of bytes used on the disk without + // any encryption or compression. + UsedBytes int64 `json:"usedBytes,omitempty,string"` + + // UsedReducedBytes: [Output Only] Sum of all the disks' used reduced + // bytes. This is the actual storage capacity consumed by all of the + // disks. + UsedReducedBytes int64 `json:"usedReducedBytes,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. + // "AggregateDiskProvisionedIops") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "AggregateDiskProvisionedIops") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StoragePoolResourceStatus) MarshalJSON() ([]byte, error) { + type NoMethod StoragePoolResourceStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type StoragePoolsScopedList struct { + // StoragePools: [Output Only] A list of storage pool contained in this + // scope. + StoragePools []*StoragePool `json:"storagePools,omitempty"` + + // Warning: [Output Only] Informational warning which replaces the list + // of storage pool when the list is empty. + Warning *StoragePoolsScopedListWarning `json:"warning,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StoragePools") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StoragePools") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StoragePoolsScopedList) MarshalJSON() ([]byte, error) { + type NoMethod StoragePoolsScopedList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StoragePoolsScopedListWarning: [Output Only] Informational warning +// which replaces the list of storage pool when the list is empty. +type StoragePoolsScopedListWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in + // the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV + // backend service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's + // nextHopInstance URL refers to an instance that does not have an ipv6 + // interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + + // Data: [Output Only] Metadata about this warning in key: value format. + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } + Data []*StoragePoolsScopedListWarningData `json:"data,omitempty"` + + // Message: [Output Only] A human-readable description of the warning + // code. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StoragePoolsScopedListWarning) MarshalJSON() ([]byte, error) { + type NoMethod StoragePoolsScopedListWarning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type StoragePoolsScopedListWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning + // being returned. For example, for warnings where there are no results + // in a list request for a particular zone, this key might be scope and + // the key value might be the zone name. Other examples might be a key + // indicating a deprecated resource and a suggested replacement, or a + // warning about invalid network settings (for example, if an instance + // attempts to perform IP forwarding but is not enabled for IP + // forwarding). + Key string `json:"key,omitempty"` + + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StoragePoolsScopedListWarningData) MarshalJSON() ([]byte, error) { + type NoMethod StoragePoolsScopedListWarningData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Subnetwork: Represents a Subnetwork resource. A subnetwork (also +// known as a subnet) is a logical partition of a Virtual Private Cloud +// network with one primary IP range and zero or more secondary IP +// ranges. For more information, read Virtual Private Cloud (VPC) +// Network. +type Subnetwork struct { + // AggregationInterval: Can only be specified if VPC flow logging for + // this subnetwork is enabled. Sets the aggregation interval for + // collecting flow logs. Increasing the interval time reduces the amount + // of generated flow logs for long-lasting connections. Default is an + // interval of 5 seconds per connection. Valid values: INTERVAL_5_SEC, + // INTERVAL_30_SEC, INTERVAL_1_MIN, INTERVAL_5_MIN, INTERVAL_10_MIN, + // INTERVAL_15_MIN. + // + // Possible values: + // "INTERVAL_10_MIN" + // "INTERVAL_15_MIN" + // "INTERVAL_1_MIN" + // "INTERVAL_30_SEC" + // "INTERVAL_5_MIN" + // "INTERVAL_5_SEC" + AggregationInterval string `json:"aggregationInterval,omitempty"` + + // AllowSubnetCidrRoutesOverlap: Whether this subnetwork's ranges can + // conflict with existing static routes. Setting this to true allows + // this subnetwork's primary and secondary ranges to overlap with (and + // contain) static routes that have already been configured on the + // corresponding network. For example if a static route has range + // 10.1.0.0/16, a subnet range 10.0.0.0/8 could only be created if + // allow_conflicting_routes=true. Overlapping is only allowed on + // subnetwork operations; routes whose ranges conflict with this + // subnetwork's ranges won't be allowed unless + // route.allow_conflicting_subnetworks is set to true. Typically packets + // destined to IPs within the subnetwork (which may contain + // private/sensitive data) are prevented from leaving the virtual + // network. Setting this field to true will disable this feature. The + // default value is false and applies to all existing subnetworks and + // automatically created subnetworks. This field cannot be set to true + // at resource creation time. + AllowSubnetCidrRoutesOverlap bool `json:"allowSubnetCidrRoutesOverlap,omitempty"` + + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text + // format. + CreationTimestamp string `json:"creationTimestamp,omitempty"` + + // Description: An optional description of this resource. Provide this + // property when you create the resource. This field can be set only at + // resource creation time. + Description string `json:"description,omitempty"` + + // EnableFlowLogs: Whether to enable flow logging for this subnetwork. + // If this field is not explicitly set, it will not appear in get + // listings. If not set the default behavior is determined by the org + // policy, if there is no org policy specified, then it will default to + // disabled. This field isn't supported with the purpose field set to + // INTERNAL_HTTPS_LOAD_BALANCER. + EnableFlowLogs bool `json:"enableFlowLogs,omitempty"` + + // EnableL2: Enables Layer2 communication on the subnetwork. + EnableL2 bool `json:"enableL2,omitempty"` + + // EnablePrivateV6Access: Deprecated in favor of enable in + // PrivateIpv6GoogleAccess. Whether the VMs in this subnet can directly + // access Google services via internal IPv6 addresses. This field can be + // both set at resource creation time and updated using patch. + EnablePrivateV6Access bool `json:"enablePrivateV6Access,omitempty"` + + // ExternalIpv6Prefix: The external IPv6 address range that is owned by + // this subnetwork. + ExternalIpv6Prefix string `json:"externalIpv6Prefix,omitempty"` + + // Fingerprint: Fingerprint of this resource. A hash of the contents + // stored in this object. This field is used in optimistic locking. This + // field will be ignored when inserting a Subnetwork. An up-to-date + // fingerprint must be provided in order to update the Subnetwork, + // otherwise the request will fail with error 412 conditionNotMet. To + // see the latest fingerprint, make a get() request to retrieve a + // Subnetwork. + Fingerprint string `json:"fingerprint,omitempty"` + + // FlowSampling: Can only be specified if VPC flow logging for this + // subnetwork is enabled. The value of the field must be in [0, 1]. Set + // the sampling rate of VPC flow logs within the subnetwork where 1.0 + // means all collected logs are reported and 0.0 means no logs are + // reported. Default is 0.5 unless otherwise specified by the org + // policy, which means half of all collected logs are reported. + FlowSampling float64 `json:"flowSampling,omitempty"` + + // GatewayAddress: [Output Only] The gateway address for default routes + // to reach destination addresses outside this subnetwork. + GatewayAddress string `json:"gatewayAddress,omitempty"` + + // Id: [Output Only] The unique identifier for the resource. This + // identifier is defined by the server. + Id uint64 `json:"id,omitempty,string"` + + // InternalIpv6Prefix: [Output Only] The internal IPv6 address range + // that is assigned to this subnetwork. + InternalIpv6Prefix string `json:"internalIpv6Prefix,omitempty"` + + // IpCidrRange: The range of internal addresses that are owned by this + // subnetwork. Provide this property when you create the subnetwork. For + // example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and + // non-overlapping within a network. Only IPv4 is supported. This field + // is set at resource creation time. The range can be any range listed + // in the Valid ranges list. The range can be expanded after creation + // using expandIpCidrRange. + IpCidrRange string `json:"ipCidrRange,omitempty"` + + // Ipv6AccessType: The access type of IPv6 address this subnet holds. + // It's immutable and can only be specified during creation or the first + // time the subnet is updated into IPV4_IPV6 dual stack. + // + // Possible values: + // "EXTERNAL" - VMs on this subnet will be assigned IPv6 addresses + // that are accessible via the Internet, as well as the VPC network. + // "INTERNAL" - VMs on this subnet will be assigned IPv6 addresses + // that are only accessible over the VPC network. + Ipv6AccessType string `json:"ipv6AccessType,omitempty"` + + // Ipv6CidrRange: [Output Only] This field is for internal use. + Ipv6CidrRange string `json:"ipv6CidrRange,omitempty"` + + // Kind: [Output Only] Type of the resource. Always compute#subnetwork + // for Subnetwork resources. + Kind string `json:"kind,omitempty"` + + // LogConfig: This field denotes the VPC flow logging options for this + // subnetwork. If logging is enabled, logs are exported to Cloud + // Logging. + LogConfig *SubnetworkLogConfig `json:"logConfig,omitempty"` + + // Metadata: Can only be specified if VPC flow logging for this + // subnetwork is enabled. Configures whether metadata fields should be + // added to the reported VPC flow logs. Options are + // INCLUDE_ALL_METADATA, EXCLUDE_ALL_METADATA, and CUSTOM_METADATA. + // Default is EXCLUDE_ALL_METADATA. + // + // Possible values: + // "EXCLUDE_ALL_METADATA" + // "INCLUDE_ALL_METADATA" + Metadata string `json:"metadata,omitempty"` + + // Name: The name of the resource, provided by the client when initially + // creating the resource. The name must be 1-63 characters long, and + // comply with RFC1035. Specifically, the name must be 1-63 characters + // long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` + // which means the first character must be a lowercase letter, and all + // following characters must be a dash, lowercase letter, or digit, + // except the last character, which cannot be a dash. + Name string `json:"name,omitempty"` + + // Network: The URL of the network to which this subnetwork belongs, + // provided by the client when initially creating the subnetwork. This + // field can be set only at resource creation time. + Network string `json:"network,omitempty"` + + // PrivateIpGoogleAccess: Whether the VMs in this subnet can access + // Google services without assigned external IP addresses. This field + // can be both set at resource creation time and updated using + // setPrivateIpGoogleAccess. + PrivateIpGoogleAccess bool `json:"privateIpGoogleAccess,omitempty"` + + // PrivateIpv6GoogleAccess: This field is for internal use. This field + // can be both set at resource creation time and updated using patch. + // + // Possible values: + // "DISABLE_GOOGLE_ACCESS" - Disable private IPv6 access to/from + // Google services. + // "ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE" - Bidirectional private + // IPv6 access to/from Google services. + // "ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE" - Outbound private IPv6 + // access from VMs in this subnet to Google services. + PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` + + // Purpose: The purpose of the resource. This field can be either + // PRIVATE_RFC_1918 or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with + // purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created + // subnetwork that is reserved for Internal HTTP(S) Load Balancing. If + // unspecified, the purpose defaults to PRIVATE_RFC_1918. The + // enableFlowLogs field isn't supported with the purpose field set to + // INTERNAL_HTTPS_LOAD_BALANCER. + // + // Possible values: + // "AGGREGATE" - Subnetwork used to aggregate multiple private + // subnetworks. + // "CLOUD_EXTENSION" - Subnetworks created for Cloud Extension + // Machines. + // "GLOBAL_MANAGED_PROXY" - Subnet reserved for Global Internal + // HTTP(S) Load Balancing. + // "INTERNAL_HTTPS_LOAD_BALANCER" - Subnet reserved for Internal + // HTTP(S) Load Balancing. + // "PRIVATE" - Regular user created or automatically created subnet. + // "PRIVATE_NAT" - Subnetwork used as source range for Private NAT + // Gateways. + // "PRIVATE_RFC_1918" - Regular user created or automatically created + // subnet. + // "PRIVATE_SERVICE_CONNECT" - Subnetworks created for Private Service + // Connect in the producer network. + // "REGIONAL_MANAGED_PROXY" - Subnetwork used for Regional + // Internal/External HTTP(S) Load Balancing. + Purpose string `json:"purpose,omitempty"` + + // Region: URL of the region where the Subnetwork resides. This field + // can be set only at resource creation time. + Region string `json:"region,omitempty"` + + // ReservedInternalRange: The URL of the reserved internal range. + ReservedInternalRange string `json:"reservedInternalRange,omitempty"` + + // Role: The role of subnetwork. Currently, this field is only used when + // purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to + // ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being + // used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one + // that is ready to be promoted to ACTIVE or is currently draining. This + // field can be updated with a patch request. + // + // Possible values: + // "ACTIVE" - The ACTIVE subnet that is currently used. + // "BACKUP" - The BACKUP subnet that could be promoted to ACTIVE. + Role string `json:"role,omitempty"` + + // SecondaryIpRanges: An array of configurations for secondary IP ranges + // for VM instances contained in this subnetwork. The primary IP of such + // VM must belong to the primary ipCidrRange of the subnetwork. The + // alias IPs may belong to either primary or secondary ranges. This + // field can be updated with a patch request. + SecondaryIpRanges []*SubnetworkSecondaryRange `json:"secondaryIpRanges,omitempty"` + + // SelfLink: [Output Only] Server-defined URL for the resource. + SelfLink string `json:"selfLink,omitempty"` + + // SelfLinkWithId: [Output Only] Server-defined URL for this resource + // with the resource id. + SelfLinkWithId string `json:"selfLinkWithId,omitempty"` + + // StackType: The stack type for the subnet. If set to IPV4_ONLY, new + // VMs in the subnet are assigned IPv4 addresses only. If set to + // IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 + // addresses. If not specified, IPV4_ONLY is used. This field can be + // both set at resource creation time and updated using patch. + // + // Possible values: + // "IPV4_IPV6" - New VMs in this subnet can have both IPv4 and IPv6 + // addresses. + // "IPV4_ONLY" - New VMs in this subnet will only be assigned IPv4 + // addresses. + StackType string `json:"stackType,omitempty"` + + // State: [Output Only] The state of the subnetwork, which can be one of + // the following values: READY: Subnetwork is created and ready to use + // DRAINING: only applicable to subnetworks that have the purpose set to + // INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the + // load balancer are being drained. A subnetwork that is draining cannot + // be used or modified until it reaches a status of READY + // + // Possible values: + // "DRAINING" - Subnetwork is being drained. + // "READY" - Subnetwork is ready for use. + State string `json:"state,omitempty"` + + // Vlans: A repeated field indicating the VLAN IDs supported on this + // subnetwork. During Subnet creation, specifying vlan is valid only if + // enable_l2 is true. During Subnet Update, specifying vlan is allowed + // only for l2 enabled subnets. Restricted to only one VLAN. + Vlans []int64 `json:"vlans,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AggregationInterval") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AggregationInterval") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Subnetwork) MarshalJSON() ([]byte, error) { + type NoMethod Subnetwork + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *Subnetwork) UnmarshalJSON(data []byte) error { + type NoMethod Subnetwork + var s1 struct { + FlowSampling gensupport.JSONFloat64 `json:"flowSampling"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.FlowSampling = float64(s1.FlowSampling) + return nil +} + +type SubnetworkAggregatedList struct { + // Id: [Output Only] Unique identifier for the resource; defined by the + // server. + Id string `json:"id,omitempty"` + + // Items: A list of SubnetworksScopedList resources. + Items map[string]SubnetworksScopedList `json:"items,omitempty"` + + // Kind: [Output Only] Type of resource. Always + // compute#subnetworkAggregatedList for aggregated lists of subnetworks. + Kind string `json:"kind,omitempty"` + + // NextPageToken: [Output Only] This token allows you to get the next + // page of results for list requests. If the number of results is larger + // than maxResults, use the nextPageToken as a value for the query + // parameter pageToken in the next list request. Subsequent list + // requests will have their own nextPageToken to continue paging through + // the results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // SelfLink: [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + + // Unreachables: [Output Only] Unreachable resources. + Unreachables []string `json:"unreachables,omitempty"` + + // Warning: [Output Only] Informational warning message. + Warning *SubnetworkAggregatedListWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SubnetworkAggregatedList) MarshalJSON() ([]byte, error) { + type NoMethod SubnetworkAggregatedList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SubnetworkAggregatedListWarning: [Output Only] Informational warning +// message. +type SubnetworkAggregatedListWarning struct { // Code: [Output Only] A warning code, if applicable. For example, // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in // the response. @@ -61576,6 +62435,15 @@ type TargetHttpProxy struct { // ForwardingRule for more details. HttpFilters []string `json:"httpFilters,omitempty"` + // HttpKeepAliveTimeoutSec: Specifies how long to keep a connection + // open, after completing a response, while there is no matching traffic + // (in seconds). If an HTTP keep-alive is not specified, a default value + // (610 seconds) will be used. For Global external HTTP(S) load + // balancer, the minimum allowed value is 5 seconds and the maximum + // allowed value is 1200 seconds. For Global external HTTP(S) load + // balancer (classic), this option is not available publicly. + HttpKeepAliveTimeoutSec int64 `json:"httpKeepAliveTimeoutSec,omitempty"` + // Id: [Output Only] The unique identifier for the resource. This // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` @@ -62360,6 +63228,15 @@ type TargetHttpsProxy struct { // ForwardingRule for more details. HttpFilters []string `json:"httpFilters,omitempty"` + // HttpKeepAliveTimeoutSec: Specifies how long to keep a connection + // open, after completing a response, while there is no matching traffic + // (in seconds). If an HTTP keep-alive is not specified, a default value + // (610 seconds) will be used. For Global external HTTP(S) load + // balancer, the minimum allowed value is 5 seconds and the maximum + // allowed value is 1200 seconds. For Global external HTTP(S) load + // balancer (classic), this option is not available publicly. + HttpKeepAliveTimeoutSec int64 `json:"httpKeepAliveTimeoutSec,omitempty"` + // Id: [Output Only] The unique identifier for the resource. This // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` @@ -62422,9 +63299,11 @@ type TargetHttpsProxy struct { // networksecurity.ServerTlsPolicy resource that describes how the proxy // should authenticate inbound traffic. serverTlsPolicy only applies to // a global TargetHttpsProxy attached to globalForwardingRules with the - // loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, - // communications are not encrypted. Note: This field currently has no - // impact. + // loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or + // EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are + // accepted with INTERNAL_SELF_MANAGED and which with EXTERNAL, + // EXTERNAL_MANAGED loadBalancingScheme consult ServerTlsPolicy + // documentation. If left blank, communications are not encrypted. ServerTlsPolicy string `json:"serverTlsPolicy,omitempty"` // SslCertificates: URLs to SslCertificate resources that are used to @@ -93131,9 +94010,7 @@ func (r *GlobalAddressesService) GetOwnerInstance(project string) *GlobalAddress return c } -// IpAddress sets the optional parameter "ipAddress": The ip_address -// could be external IPv4, or internal IPv4 within IPv6 form of -// virtual_network_id with internal IPv4. IPv6 is not supported yet. +// IpAddress sets the optional parameter "ipAddress": The VM IP address. func (c *GlobalAddressesGetOwnerInstanceCall) IpAddress(ipAddress string) *GlobalAddressesGetOwnerInstanceCall { c.urlParams_.Set("ipAddress", ipAddress) return c @@ -93247,7 +94124,7 @@ func (c *GlobalAddressesGetOwnerInstanceCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "ipAddress": { - // "description": "The ip_address could be external IPv4, or internal IPv4 within IPv6 form of virtual_network_id with internal IPv4. IPv6 is not supported yet.", + // "description": "The VM IP address.", // "location": "query", // "type": "string" // }, @@ -123544,32 +124421,33 @@ func (c *InstancesSetSchedulingCall) Do(opts ...googleapi.CallOption) (*Operatio } -// method id "compute.instances.setServiceAccount": +// method id "compute.instances.setSecurityPolicy": -type InstancesSetServiceAccountCall struct { +type InstancesSetSecurityPolicyCall struct { s *Service project string zone string instance string - instancessetserviceaccountrequest *InstancesSetServiceAccountRequest + instancessetsecuritypolicyrequest *InstancesSetSecurityPolicyRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// SetServiceAccount: Sets the service account on the instance. For more -// information, read Changing the service account and access scopes for -// an instance. +// SetSecurityPolicy: Sets the Google Cloud Armor security policy for +// the specified instance. For more information, see Google Cloud Armor +// Overview // -// - instance: Name of the instance resource to start. -// - project: Project ID for this request. -// - zone: The name of the zone for this request. -func (r *InstancesService) SetServiceAccount(project string, zone string, instance string, instancessetserviceaccountrequest *InstancesSetServiceAccountRequest) *InstancesSetServiceAccountCall { - c := &InstancesSetServiceAccountCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - instance: Name of the Instance resource to which the security +// policy should be set. The name should conform to RFC1035. +// - project: Project ID for this request. +// - zone: Name of the zone scoping this request. +func (r *InstancesService) SetSecurityPolicy(project string, zone string, instance string, instancessetsecuritypolicyrequest *InstancesSetSecurityPolicyRequest) *InstancesSetSecurityPolicyCall { + c := &InstancesSetSecurityPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.instance = instance - c.instancessetserviceaccountrequest = instancessetserviceaccountrequest + c.instancessetsecuritypolicyrequest = instancessetsecuritypolicyrequest return c } @@ -123584,7 +124462,7 @@ func (r *InstancesService) SetServiceAccount(project string, zone string, instan // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *InstancesSetServiceAccountCall) RequestId(requestId string) *InstancesSetServiceAccountCall { +func (c *InstancesSetSecurityPolicyCall) RequestId(requestId string) *InstancesSetSecurityPolicyCall { c.urlParams_.Set("requestId", requestId) return c } @@ -123592,7 +124470,7 @@ func (c *InstancesSetServiceAccountCall) RequestId(requestId string) *InstancesS // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *InstancesSetServiceAccountCall) Fields(s ...googleapi.Field) *InstancesSetServiceAccountCall { +func (c *InstancesSetSecurityPolicyCall) Fields(s ...googleapi.Field) *InstancesSetSecurityPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -123600,21 +124478,21 @@ func (c *InstancesSetServiceAccountCall) Fields(s ...googleapi.Field) *Instances // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *InstancesSetServiceAccountCall) Context(ctx context.Context) *InstancesSetServiceAccountCall { +func (c *InstancesSetSecurityPolicyCall) Context(ctx context.Context) *InstancesSetSecurityPolicyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *InstancesSetServiceAccountCall) Header() http.Header { +func (c *InstancesSetSecurityPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *InstancesSetServiceAccountCall) doRequest(alt string) (*http.Response, error) { +func (c *InstancesSetSecurityPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -123622,14 +124500,14 @@ func (c *InstancesSetServiceAccountCall) doRequest(alt string) (*http.Response, } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancessetserviceaccountrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancessetsecuritypolicyrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -123644,14 +124522,14 @@ func (c *InstancesSetServiceAccountCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.instances.setServiceAccount" call. +// Do executes the "compute.instances.setSecurityPolicy" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *InstancesSetServiceAccountCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *InstancesSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -123682,10 +124560,10 @@ func (c *InstancesSetServiceAccountCall) Do(opts ...googleapi.CallOption) (*Oper } return ret, nil // { - // "description": "Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.", - // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount", + // "description": "Sets the Google Cloud Armor security policy for the specified instance. For more information, see Google Cloud Armor Overview", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy", // "httpMethod": "POST", - // "id": "compute.instances.setServiceAccount", + // "id": "compute.instances.setSecurityPolicy", // "parameterOrder": [ // "project", // "zone", @@ -123693,9 +124571,8 @@ func (c *InstancesSetServiceAccountCall) Do(opts ...googleapi.CallOption) (*Oper // ], // "parameters": { // "instance": { - // "description": "Name of the instance resource to start.", + // "description": "Name of the Instance resource to which the security policy should be set. The name should conform to RFC1035.", // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", // "required": true, // "type": "string" // }, @@ -123712,16 +124589,16 @@ func (c *InstancesSetServiceAccountCall) Do(opts ...googleapi.CallOption) (*Oper // "type": "string" // }, // "zone": { - // "description": "The name of the zone for this request.", + // "description": "Name of the zone scoping this request.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // } // }, - // "path": "projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount", + // "path": "projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy", // "request": { - // "$ref": "InstancesSetServiceAccountRequest" + // "$ref": "InstancesSetSecurityPolicyRequest" // }, // "response": { // "$ref": "Operation" @@ -123734,33 +124611,32 @@ func (c *InstancesSetServiceAccountCall) Do(opts ...googleapi.CallOption) (*Oper } -// method id "compute.instances.setShieldedInstanceIntegrityPolicy": +// method id "compute.instances.setServiceAccount": -type InstancesSetShieldedInstanceIntegrityPolicyCall struct { - s *Service - project string - zone string - instance string - shieldedinstanceintegritypolicy *ShieldedInstanceIntegrityPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type InstancesSetServiceAccountCall struct { + s *Service + project string + zone string + instance string + instancessetserviceaccountrequest *InstancesSetServiceAccountRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetShieldedInstanceIntegrityPolicy: Sets the Shielded Instance -// integrity policy for an instance. You can only use this method on a -// running instance. This method supports PATCH semantics and uses the -// JSON merge patch format and processing rules. +// SetServiceAccount: Sets the service account on the instance. For more +// information, read Changing the service account and access scopes for +// an instance. // -// - instance: Name or id of the instance scoping this request. +// - instance: Name of the instance resource to start. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *InstancesService) SetShieldedInstanceIntegrityPolicy(project string, zone string, instance string, shieldedinstanceintegritypolicy *ShieldedInstanceIntegrityPolicy) *InstancesSetShieldedInstanceIntegrityPolicyCall { - c := &InstancesSetShieldedInstanceIntegrityPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *InstancesService) SetServiceAccount(project string, zone string, instance string, instancessetserviceaccountrequest *InstancesSetServiceAccountRequest) *InstancesSetServiceAccountCall { + c := &InstancesSetServiceAccountCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.instance = instance - c.shieldedinstanceintegritypolicy = shieldedinstanceintegritypolicy + c.instancessetserviceaccountrequest = instancessetserviceaccountrequest return c } @@ -123775,7 +124651,7 @@ func (r *InstancesService) SetShieldedInstanceIntegrityPolicy(project string, zo // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) RequestId(requestId string) *InstancesSetShieldedInstanceIntegrityPolicyCall { +func (c *InstancesSetServiceAccountCall) RequestId(requestId string) *InstancesSetServiceAccountCall { c.urlParams_.Set("requestId", requestId) return c } @@ -123783,7 +124659,7 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) RequestId(requestId st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Fields(s ...googleapi.Field) *InstancesSetShieldedInstanceIntegrityPolicyCall { +func (c *InstancesSetServiceAccountCall) Fields(s ...googleapi.Field) *InstancesSetServiceAccountCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -123791,21 +124667,21 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Fields(s ...googleapi. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Context(ctx context.Context) *InstancesSetShieldedInstanceIntegrityPolicyCall { +func (c *InstancesSetServiceAccountCall) Context(ctx context.Context) *InstancesSetServiceAccountCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Header() http.Header { +func (c *InstancesSetServiceAccountCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *InstancesSetServiceAccountCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -123813,16 +124689,16 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.shieldedinstanceintegritypolicy) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancessetserviceaccountrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -123835,14 +124711,14 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.instances.setShieldedInstanceIntegrityPolicy" call. +// Do executes the "compute.instances.setServiceAccount" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *InstancesSetServiceAccountCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -123873,10 +124749,10 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", - // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy", - // "httpMethod": "PATCH", - // "id": "compute.instances.setShieldedInstanceIntegrityPolicy", + // "description": "Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount", + // "httpMethod": "POST", + // "id": "compute.instances.setServiceAccount", // "parameterOrder": [ // "project", // "zone", @@ -123884,7 +124760,7 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Do(opts ...googleapi.C // ], // "parameters": { // "instance": { - // "description": "Name or id of the instance scoping this request.", + // "description": "Name of the instance resource to start.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", // "required": true, @@ -123910,9 +124786,9 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Do(opts ...googleapi.C // "type": "string" // } // }, - // "path": "projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy", + // "path": "projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount", // "request": { - // "$ref": "ShieldedInstanceIntegrityPolicy" + // "$ref": "InstancesSetServiceAccountRequest" // }, // "response": { // "$ref": "Operation" @@ -123925,33 +124801,33 @@ func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Do(opts ...googleapi.C } -// method id "compute.instances.setShieldedVmIntegrityPolicy": +// method id "compute.instances.setShieldedInstanceIntegrityPolicy": -type InstancesSetShieldedVmIntegrityPolicyCall struct { - s *Service - project string - zone string - instance string - shieldedvmintegritypolicy *ShieldedVmIntegrityPolicy - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type InstancesSetShieldedInstanceIntegrityPolicyCall struct { + s *Service + project string + zone string + instance string + shieldedinstanceintegritypolicy *ShieldedInstanceIntegrityPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetShieldedVmIntegrityPolicy: Sets the Shielded VM integrity policy -// for a VM instance. You can only use this method on a running VM -// instance. This method supports PATCH semantics and uses the JSON -// merge patch format and processing rules. +// SetShieldedInstanceIntegrityPolicy: Sets the Shielded Instance +// integrity policy for an instance. You can only use this method on a +// running instance. This method supports PATCH semantics and uses the +// JSON merge patch format and processing rules. // -// - instance: Name of the instance scoping this request. +// - instance: Name or id of the instance scoping this request. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *InstancesService) SetShieldedVmIntegrityPolicy(project string, zone string, instance string, shieldedvmintegritypolicy *ShieldedVmIntegrityPolicy) *InstancesSetShieldedVmIntegrityPolicyCall { - c := &InstancesSetShieldedVmIntegrityPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *InstancesService) SetShieldedInstanceIntegrityPolicy(project string, zone string, instance string, shieldedinstanceintegritypolicy *ShieldedInstanceIntegrityPolicy) *InstancesSetShieldedInstanceIntegrityPolicyCall { + c := &InstancesSetShieldedInstanceIntegrityPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.instance = instance - c.shieldedvmintegritypolicy = shieldedvmintegritypolicy + c.shieldedinstanceintegritypolicy = shieldedinstanceintegritypolicy return c } @@ -123966,7 +124842,7 @@ func (r *InstancesService) SetShieldedVmIntegrityPolicy(project string, zone str // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *InstancesSetShieldedVmIntegrityPolicyCall) RequestId(requestId string) *InstancesSetShieldedVmIntegrityPolicyCall { +func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) RequestId(requestId string) *InstancesSetShieldedInstanceIntegrityPolicyCall { c.urlParams_.Set("requestId", requestId) return c } @@ -123974,7 +124850,7 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) RequestId(requestId string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *InstancesSetShieldedVmIntegrityPolicyCall) Fields(s ...googleapi.Field) *InstancesSetShieldedVmIntegrityPolicyCall { +func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Fields(s ...googleapi.Field) *InstancesSetShieldedInstanceIntegrityPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -123982,21 +124858,21 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *InstancesSetShieldedVmIntegrityPolicyCall) Context(ctx context.Context) *InstancesSetShieldedVmIntegrityPolicyCall { +func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Context(ctx context.Context) *InstancesSetShieldedInstanceIntegrityPolicyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *InstancesSetShieldedVmIntegrityPolicyCall) Header() http.Header { +func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *InstancesSetShieldedVmIntegrityPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -124004,14 +124880,14 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.shieldedvmintegritypolicy) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.shieldedinstanceintegritypolicy) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("PATCH", urls, body) if err != nil { @@ -124026,14 +124902,14 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.instances.setShieldedVmIntegrityPolicy" call. +// Do executes the "compute.instances.setShieldedInstanceIntegrityPolicy" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *InstancesSetShieldedVmIntegrityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *InstancesSetShieldedInstanceIntegrityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -124064,10 +124940,10 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Sets the Shielded VM integrity policy for a VM instance. You can only use this method on a running VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", - // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy", + // "description": "Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy", // "httpMethod": "PATCH", - // "id": "compute.instances.setShieldedVmIntegrityPolicy", + // "id": "compute.instances.setShieldedInstanceIntegrityPolicy", // "parameterOrder": [ // "project", // "zone", @@ -124075,7 +124951,7 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "instance": { - // "description": "Name of the instance scoping this request.", + // "description": "Name or id of the instance scoping this request.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", // "required": true, @@ -124101,9 +124977,9 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) Do(opts ...googleapi.CallOpt // "type": "string" // } // }, - // "path": "projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy", + // "path": "projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy", // "request": { - // "$ref": "ShieldedVmIntegrityPolicy" + // "$ref": "ShieldedInstanceIntegrityPolicy" // }, // "response": { // "$ref": "Operation" @@ -124116,31 +124992,33 @@ func (c *InstancesSetShieldedVmIntegrityPolicyCall) Do(opts ...googleapi.CallOpt } -// method id "compute.instances.setTags": +// method id "compute.instances.setShieldedVmIntegrityPolicy": -type InstancesSetTagsCall struct { - s *Service - project string - zone string - instance string - tags *Tags - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type InstancesSetShieldedVmIntegrityPolicyCall struct { + s *Service + project string + zone string + instance string + shieldedvmintegritypolicy *ShieldedVmIntegrityPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetTags: Sets network tags for the specified instance to the data -// included in the request. +// SetShieldedVmIntegrityPolicy: Sets the Shielded VM integrity policy +// for a VM instance. You can only use this method on a running VM +// instance. This method supports PATCH semantics and uses the JSON +// merge patch format and processing rules. // // - instance: Name of the instance scoping this request. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *InstancesService) SetTags(project string, zone string, instance string, tags *Tags) *InstancesSetTagsCall { - c := &InstancesSetTagsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *InstancesService) SetShieldedVmIntegrityPolicy(project string, zone string, instance string, shieldedvmintegritypolicy *ShieldedVmIntegrityPolicy) *InstancesSetShieldedVmIntegrityPolicyCall { + c := &InstancesSetShieldedVmIntegrityPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.instance = instance - c.tags = tags + c.shieldedvmintegritypolicy = shieldedvmintegritypolicy return c } @@ -124155,7 +125033,7 @@ func (r *InstancesService) SetTags(project string, zone string, instance string, // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *InstancesSetTagsCall) RequestId(requestId string) *InstancesSetTagsCall { +func (c *InstancesSetShieldedVmIntegrityPolicyCall) RequestId(requestId string) *InstancesSetShieldedVmIntegrityPolicyCall { c.urlParams_.Set("requestId", requestId) return c } @@ -124163,7 +125041,7 @@ func (c *InstancesSetTagsCall) RequestId(requestId string) *InstancesSetTagsCall // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *InstancesSetTagsCall) Fields(s ...googleapi.Field) *InstancesSetTagsCall { +func (c *InstancesSetShieldedVmIntegrityPolicyCall) Fields(s ...googleapi.Field) *InstancesSetShieldedVmIntegrityPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -124171,21 +125049,21 @@ func (c *InstancesSetTagsCall) Fields(s ...googleapi.Field) *InstancesSetTagsCal // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *InstancesSetTagsCall) Context(ctx context.Context) *InstancesSetTagsCall { +func (c *InstancesSetShieldedVmIntegrityPolicyCall) Context(ctx context.Context) *InstancesSetShieldedVmIntegrityPolicyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *InstancesSetTagsCall) Header() http.Header { +func (c *InstancesSetShieldedVmIntegrityPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *InstancesSetTagsCall) doRequest(alt string) (*http.Response, error) { +func (c *InstancesSetShieldedVmIntegrityPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -124193,16 +125071,16 @@ func (c *InstancesSetTagsCall) doRequest(alt string) (*http.Response, error) { } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.tags) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.shieldedvmintegritypolicy) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/setTags") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -124215,14 +125093,14 @@ func (c *InstancesSetTagsCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.instances.setTags" call. +// Do executes the "compute.instances.setShieldedVmIntegrityPolicy" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *InstancesSetTagsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *InstancesSetShieldedVmIntegrityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -124253,10 +125131,10 @@ func (c *InstancesSetTagsCall) Do(opts ...googleapi.CallOption) (*Operation, err } return ret, nil // { - // "description": "Sets network tags for the specified instance to the data included in the request.", - // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setTags", - // "httpMethod": "POST", - // "id": "compute.instances.setTags", + // "description": "Sets the Shielded VM integrity policy for a VM instance. You can only use this method on a running VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy", + // "httpMethod": "PATCH", + // "id": "compute.instances.setShieldedVmIntegrityPolicy", // "parameterOrder": [ // "project", // "zone", @@ -124290,9 +125168,9 @@ func (c *InstancesSetTagsCall) Do(opts ...googleapi.CallOption) (*Operation, err // "type": "string" // } // }, - // "path": "projects/{project}/zones/{zone}/instances/{instance}/setTags", + // "path": "projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy", // "request": { - // "$ref": "Tags" + // "$ref": "ShieldedVmIntegrityPolicy" // }, // "response": { // "$ref": "Operation" @@ -124305,29 +125183,31 @@ func (c *InstancesSetTagsCall) Do(opts ...googleapi.CallOption) (*Operation, err } -// method id "compute.instances.simulateMaintenanceEvent": +// method id "compute.instances.setTags": -type InstancesSimulateMaintenanceEventCall struct { +type InstancesSetTagsCall struct { s *Service project string zone string instance string + tags *Tags urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// SimulateMaintenanceEvent: Simulates a host maintenance event on a VM. -// For more information, see Simulate a host maintenance event. +// SetTags: Sets network tags for the specified instance to the data +// included in the request. // // - instance: Name of the instance scoping this request. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *InstancesService) SimulateMaintenanceEvent(project string, zone string, instance string) *InstancesSimulateMaintenanceEventCall { - c := &InstancesSimulateMaintenanceEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *InstancesService) SetTags(project string, zone string, instance string, tags *Tags) *InstancesSetTagsCall { + c := &InstancesSetTagsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.instance = instance + c.tags = tags return c } @@ -124342,23 +125222,15 @@ func (r *InstancesService) SimulateMaintenanceEvent(project string, zone string, // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *InstancesSimulateMaintenanceEventCall) RequestId(requestId string) *InstancesSimulateMaintenanceEventCall { +func (c *InstancesSetTagsCall) RequestId(requestId string) *InstancesSetTagsCall { c.urlParams_.Set("requestId", requestId) return c } -// WithExtendedNotifications sets the optional parameter -// "withExtendedNotifications": Determines whether the customers receive -// notifications before migration. Only applicable to SF vms. -func (c *InstancesSimulateMaintenanceEventCall) WithExtendedNotifications(withExtendedNotifications bool) *InstancesSimulateMaintenanceEventCall { - c.urlParams_.Set("withExtendedNotifications", fmt.Sprint(withExtendedNotifications)) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *InstancesSimulateMaintenanceEventCall) Fields(s ...googleapi.Field) *InstancesSimulateMaintenanceEventCall { +func (c *InstancesSetTagsCall) Fields(s ...googleapi.Field) *InstancesSetTagsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -124366,21 +125238,21 @@ func (c *InstancesSimulateMaintenanceEventCall) Fields(s ...googleapi.Field) *In // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *InstancesSimulateMaintenanceEventCall) Context(ctx context.Context) *InstancesSimulateMaintenanceEventCall { +func (c *InstancesSetTagsCall) Context(ctx context.Context) *InstancesSetTagsCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *InstancesSimulateMaintenanceEventCall) Header() http.Header { +func (c *InstancesSetTagsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *InstancesSimulateMaintenanceEventCall) doRequest(alt string) (*http.Response, error) { +func (c *InstancesSetTagsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -124388,9 +125260,14 @@ func (c *InstancesSimulateMaintenanceEventCall) doRequest(alt string) (*http.Res } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.tags) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/setTags") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -124405,14 +125282,14 @@ func (c *InstancesSimulateMaintenanceEventCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.instances.simulateMaintenanceEvent" call. +// Do executes the "compute.instances.setTags" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *InstancesSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *InstancesSetTagsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -124443,10 +125320,10 @@ func (c *InstancesSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.", - // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent", + // "description": "Sets network tags for the specified instance to the data included in the request.", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/setTags", // "httpMethod": "POST", - // "id": "compute.instances.simulateMaintenanceEvent", + // "id": "compute.instances.setTags", // "parameterOrder": [ // "project", // "zone", @@ -124472,11 +125349,6 @@ func (c *InstancesSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) // "location": "query", // "type": "string" // }, - // "withExtendedNotifications": { - // "description": "Determines whether the customers receive notifications before migration. Only applicable to SF vms.", - // "location": "query", - // "type": "boolean" - // }, // "zone": { // "description": "The name of the zone for this request.", // "location": "path", @@ -124485,7 +125357,10 @@ func (c *InstancesSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) // "type": "string" // } // }, - // "path": "projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent", + // "path": "projects/{project}/zones/{zone}/instances/{instance}/setTags", + // "request": { + // "$ref": "Tags" + // }, // "response": { // "$ref": "Operation" // }, @@ -124497,9 +125372,9 @@ func (c *InstancesSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) } -// method id "compute.instances.start": +// method id "compute.instances.simulateMaintenanceEvent": -type InstancesStartCall struct { +type InstancesSimulateMaintenanceEventCall struct { s *Service project string zone string @@ -124509,14 +125384,14 @@ type InstancesStartCall struct { header_ http.Header } -// Start: Starts an instance that was stopped using the instances().stop -// method. For more information, see Restart an instance. +// SimulateMaintenanceEvent: Simulates a host maintenance event on a VM. +// For more information, see Simulate a host maintenance event. // -// - instance: Name of the instance resource to start. +// - instance: Name of the instance scoping this request. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *InstancesService) Start(project string, zone string, instance string) *InstancesStartCall { - c := &InstancesStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *InstancesService) SimulateMaintenanceEvent(project string, zone string, instance string) *InstancesSimulateMaintenanceEventCall { + c := &InstancesSimulateMaintenanceEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.instance = instance @@ -124534,15 +125409,23 @@ func (r *InstancesService) Start(project string, zone string, instance string) * // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *InstancesStartCall) RequestId(requestId string) *InstancesStartCall { +func (c *InstancesSimulateMaintenanceEventCall) RequestId(requestId string) *InstancesSimulateMaintenanceEventCall { c.urlParams_.Set("requestId", requestId) return c } +// WithExtendedNotifications sets the optional parameter +// "withExtendedNotifications": Determines whether the customers receive +// notifications before migration. Only applicable to SF vms. +func (c *InstancesSimulateMaintenanceEventCall) WithExtendedNotifications(withExtendedNotifications bool) *InstancesSimulateMaintenanceEventCall { + c.urlParams_.Set("withExtendedNotifications", fmt.Sprint(withExtendedNotifications)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *InstancesStartCall) Fields(s ...googleapi.Field) *InstancesStartCall { +func (c *InstancesSimulateMaintenanceEventCall) Fields(s ...googleapi.Field) *InstancesSimulateMaintenanceEventCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -124550,21 +125433,21 @@ func (c *InstancesStartCall) Fields(s ...googleapi.Field) *InstancesStartCall { // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *InstancesStartCall) Context(ctx context.Context) *InstancesStartCall { +func (c *InstancesSimulateMaintenanceEventCall) Context(ctx context.Context) *InstancesSimulateMaintenanceEventCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *InstancesStartCall) Header() http.Header { +func (c *InstancesSimulateMaintenanceEventCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *InstancesStartCall) doRequest(alt string) (*http.Response, error) { +func (c *InstancesSimulateMaintenanceEventCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -124574,7 +125457,7 @@ func (c *InstancesStartCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/start") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -124589,14 +125472,14 @@ func (c *InstancesStartCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.instances.start" call. +// Do executes the "compute.instances.simulateMaintenanceEvent" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *InstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *InstancesSimulateMaintenanceEventCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -124627,10 +125510,10 @@ func (c *InstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error } return ret, nil // { - // "description": "Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.", - // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/start", + // "description": "Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent", // "httpMethod": "POST", - // "id": "compute.instances.start", + // "id": "compute.instances.simulateMaintenanceEvent", // "parameterOrder": [ // "project", // "zone", @@ -124638,7 +125521,7 @@ func (c *InstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error // ], // "parameters": { // "instance": { - // "description": "Name of the instance resource to start.", + // "description": "Name of the instance scoping this request.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", // "required": true, @@ -124656,6 +125539,11 @@ func (c *InstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error // "location": "query", // "type": "string" // }, + // "withExtendedNotifications": { + // "description": "Determines whether the customers receive notifications before migration. Only applicable to SF vms.", + // "location": "query", + // "type": "boolean" + // }, // "zone": { // "description": "The name of the zone for this request.", // "location": "path", @@ -124664,7 +125552,7 @@ func (c *InstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error // "type": "string" // } // }, - // "path": "projects/{project}/zones/{zone}/instances/{instance}/start", + // "path": "projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent", // "response": { // "$ref": "Operation" // }, @@ -124676,32 +125564,29 @@ func (c *InstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error } -// method id "compute.instances.startWithEncryptionKey": +// method id "compute.instances.start": -type InstancesStartWithEncryptionKeyCall struct { - s *Service - project string - zone string - instance string - instancesstartwithencryptionkeyrequest *InstancesStartWithEncryptionKeyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type InstancesStartCall struct { + s *Service + project string + zone string + instance string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// StartWithEncryptionKey: Starts an instance that was stopped using the -// instances().stop method. For more information, see Restart an -// instance. +// Start: Starts an instance that was stopped using the instances().stop +// method. For more information, see Restart an instance. // // - instance: Name of the instance resource to start. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *InstancesService) StartWithEncryptionKey(project string, zone string, instance string, instancesstartwithencryptionkeyrequest *InstancesStartWithEncryptionKeyRequest) *InstancesStartWithEncryptionKeyCall { - c := &InstancesStartWithEncryptionKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *InstancesService) Start(project string, zone string, instance string) *InstancesStartCall { + c := &InstancesStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.instance = instance - c.instancesstartwithencryptionkeyrequest = instancesstartwithencryptionkeyrequest return c } @@ -124716,7 +125601,7 @@ func (r *InstancesService) StartWithEncryptionKey(project string, zone string, i // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *InstancesStartWithEncryptionKeyCall) RequestId(requestId string) *InstancesStartWithEncryptionKeyCall { +func (c *InstancesStartCall) RequestId(requestId string) *InstancesStartCall { c.urlParams_.Set("requestId", requestId) return c } @@ -124724,7 +125609,7 @@ func (c *InstancesStartWithEncryptionKeyCall) RequestId(requestId string) *Insta // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *InstancesStartWithEncryptionKeyCall) Fields(s ...googleapi.Field) *InstancesStartWithEncryptionKeyCall { +func (c *InstancesStartCall) Fields(s ...googleapi.Field) *InstancesStartCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -124732,21 +125617,21 @@ func (c *InstancesStartWithEncryptionKeyCall) Fields(s ...googleapi.Field) *Inst // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *InstancesStartWithEncryptionKeyCall) Context(ctx context.Context) *InstancesStartWithEncryptionKeyCall { +func (c *InstancesStartCall) Context(ctx context.Context) *InstancesStartCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *InstancesStartWithEncryptionKeyCall) Header() http.Header { +func (c *InstancesStartCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *InstancesStartWithEncryptionKeyCall) doRequest(alt string) (*http.Response, error) { +func (c *InstancesStartCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -124754,14 +125639,9 @@ func (c *InstancesStartWithEncryptionKeyCall) doRequest(alt string) (*http.Respo } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesstartwithencryptionkeyrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/start") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -124776,14 +125656,14 @@ func (c *InstancesStartWithEncryptionKeyCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.instances.startWithEncryptionKey" call. +// Do executes the "compute.instances.start" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *InstancesStartWithEncryptionKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *InstancesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -124815,9 +125695,9 @@ func (c *InstancesStartWithEncryptionKeyCall) Do(opts ...googleapi.CallOption) ( return ret, nil // { // "description": "Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.", - // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/start", // "httpMethod": "POST", - // "id": "compute.instances.startWithEncryptionKey", + // "id": "compute.instances.start", // "parameterOrder": [ // "project", // "zone", @@ -124851,10 +125731,7 @@ func (c *InstancesStartWithEncryptionKeyCall) Do(opts ...googleapi.CallOption) ( // "type": "string" // } // }, - // "path": "projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey", - // "request": { - // "$ref": "InstancesStartWithEncryptionKeyRequest" - // }, + // "path": "projects/{project}/zones/{zone}/instances/{instance}/start", // "response": { // "$ref": "Operation" // }, @@ -124866,41 +125743,32 @@ func (c *InstancesStartWithEncryptionKeyCall) Do(opts ...googleapi.CallOption) ( } -// method id "compute.instances.stop": +// method id "compute.instances.startWithEncryptionKey": -type InstancesStopCall struct { - s *Service - project string - zone string - instance string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type InstancesStartWithEncryptionKeyCall struct { + s *Service + project string + zone string + instance string + instancesstartwithencryptionkeyrequest *InstancesStartWithEncryptionKeyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Stop: Stops a running instance, shutting it down cleanly, and allows -// you to restart the instance at a later time. Stopped instances do not -// incur VM usage charges while they are stopped. However, resources -// that the VM is using, such as persistent disks and static IP -// addresses, will continue to be charged until they are deleted. For -// more information, see Stopping an instance. +// StartWithEncryptionKey: Starts an instance that was stopped using the +// instances().stop method. For more information, see Restart an +// instance. // -// - instance: Name of the instance resource to stop. +// - instance: Name of the instance resource to start. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *InstancesService) Stop(project string, zone string, instance string) *InstancesStopCall { - c := &InstancesStopCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *InstancesService) StartWithEncryptionKey(project string, zone string, instance string, instancesstartwithencryptionkeyrequest *InstancesStartWithEncryptionKeyRequest) *InstancesStartWithEncryptionKeyCall { + c := &InstancesStartWithEncryptionKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.instance = instance - return c -} - -// DiscardLocalSsd sets the optional parameter "discardLocalSsd": If -// true, discard the contents of any attached localSSD partitions. -// Default value is false. -func (c *InstancesStopCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesStopCall { - c.urlParams_.Set("discardLocalSsd", fmt.Sprint(discardLocalSsd)) + c.instancesstartwithencryptionkeyrequest = instancesstartwithencryptionkeyrequest return c } @@ -124915,7 +125783,7 @@ func (c *InstancesStopCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesStop // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *InstancesStopCall) RequestId(requestId string) *InstancesStopCall { +func (c *InstancesStartWithEncryptionKeyCall) RequestId(requestId string) *InstancesStartWithEncryptionKeyCall { c.urlParams_.Set("requestId", requestId) return c } @@ -124923,7 +125791,7 @@ func (c *InstancesStopCall) RequestId(requestId string) *InstancesStopCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *InstancesStopCall) Fields(s ...googleapi.Field) *InstancesStopCall { +func (c *InstancesStartWithEncryptionKeyCall) Fields(s ...googleapi.Field) *InstancesStartWithEncryptionKeyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -124931,21 +125799,21 @@ func (c *InstancesStopCall) Fields(s ...googleapi.Field) *InstancesStopCall { // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *InstancesStopCall) Context(ctx context.Context) *InstancesStopCall { +func (c *InstancesStartWithEncryptionKeyCall) Context(ctx context.Context) *InstancesStartWithEncryptionKeyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *InstancesStopCall) Header() http.Header { +func (c *InstancesStartWithEncryptionKeyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *InstancesStopCall) doRequest(alt string) (*http.Response, error) { +func (c *InstancesStartWithEncryptionKeyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -124953,9 +125821,14 @@ func (c *InstancesStopCall) doRequest(alt string) (*http.Response, error) { } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesstartwithencryptionkeyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/stop") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -124970,14 +125843,14 @@ func (c *InstancesStopCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.instances.stop" call. +// Do executes the "compute.instances.startWithEncryptionKey" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *InstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *InstancesStartWithEncryptionKeyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -125008,23 +125881,18 @@ func (c *InstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) } return ret, nil // { - // "description": "Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.", - // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/stop", + // "description": "Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey", // "httpMethod": "POST", - // "id": "compute.instances.stop", + // "id": "compute.instances.startWithEncryptionKey", // "parameterOrder": [ // "project", // "zone", // "instance" // ], // "parameters": { - // "discardLocalSsd": { - // "description": "If true, discard the contents of any attached localSSD partitions. Default value is false.", - // "location": "query", - // "type": "boolean" - // }, // "instance": { - // "description": "Name of the instance resource to stop.", + // "description": "Name of the instance resource to start.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", // "required": true, @@ -125050,7 +125918,10 @@ func (c *InstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) // "type": "string" // } // }, - // "path": "projects/{project}/zones/{zone}/instances/{instance}/stop", + // "path": "projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey", + // "request": { + // "$ref": "InstancesStartWithEncryptionKeyRequest" + // }, // "response": { // "$ref": "Operation" // }, @@ -125062,9 +125933,9 @@ func (c *InstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) } -// method id "compute.instances.suspend": +// method id "compute.instances.stop": -type InstancesSuspendCall struct { +type InstancesStopCall struct { s *Service project string zone string @@ -125074,20 +125945,18 @@ type InstancesSuspendCall struct { header_ http.Header } -// Suspend: This method suspends a running instance, saving its state to -// persistent storage, and allows you to resume the instance at a later -// time. Suspended instances have no compute costs (cores or RAM), and -// incur only storage charges for the saved VM memory and localSSD data. -// Any charged resources the virtual machine was using, such as -// persistent disks and static IP addresses, will continue to be charged -// while the instance is suspended. For more information, see Suspending -// and resuming an instance. +// Stop: Stops a running instance, shutting it down cleanly, and allows +// you to restart the instance at a later time. Stopped instances do not +// incur VM usage charges while they are stopped. However, resources +// that the VM is using, such as persistent disks and static IP +// addresses, will continue to be charged until they are deleted. For +// more information, see Stopping an instance. // -// - instance: Name of the instance resource to suspend. +// - instance: Name of the instance resource to stop. // - project: Project ID for this request. // - zone: The name of the zone for this request. -func (r *InstancesService) Suspend(project string, zone string, instance string) *InstancesSuspendCall { - c := &InstancesSuspendCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *InstancesService) Stop(project string, zone string, instance string) *InstancesStopCall { + c := &InstancesStopCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.zone = zone c.instance = instance @@ -125097,7 +125966,7 @@ func (r *InstancesService) Suspend(project string, zone string, instance string) // DiscardLocalSsd sets the optional parameter "discardLocalSsd": If // true, discard the contents of any attached localSSD partitions. // Default value is false. -func (c *InstancesSuspendCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesSuspendCall { +func (c *InstancesStopCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesStopCall { c.urlParams_.Set("discardLocalSsd", fmt.Sprint(discardLocalSsd)) return c } @@ -125113,7 +125982,7 @@ func (c *InstancesSuspendCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesS // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *InstancesSuspendCall) RequestId(requestId string) *InstancesSuspendCall { +func (c *InstancesStopCall) RequestId(requestId string) *InstancesStopCall { c.urlParams_.Set("requestId", requestId) return c } @@ -125121,7 +125990,7 @@ func (c *InstancesSuspendCall) RequestId(requestId string) *InstancesSuspendCall // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *InstancesSuspendCall) Fields(s ...googleapi.Field) *InstancesSuspendCall { +func (c *InstancesStopCall) Fields(s ...googleapi.Field) *InstancesStopCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -125129,21 +125998,21 @@ func (c *InstancesSuspendCall) Fields(s ...googleapi.Field) *InstancesSuspendCal // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *InstancesSuspendCall) Context(ctx context.Context) *InstancesSuspendCall { +func (c *InstancesStopCall) Context(ctx context.Context) *InstancesStopCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *InstancesSuspendCall) Header() http.Header { +func (c *InstancesStopCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *InstancesSuspendCall) doRequest(alt string) (*http.Response, error) { +func (c *InstancesStopCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -125153,7 +126022,7 @@ func (c *InstancesSuspendCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/suspend") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/stop") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -125168,14 +126037,14 @@ func (c *InstancesSuspendCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.instances.suspend" call. +// Do executes the "compute.instances.stop" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *InstancesSuspendCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *InstancesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -125206,10 +126075,10 @@ func (c *InstancesSuspendCall) Do(opts ...googleapi.CallOption) (*Operation, err } return ret, nil // { - // "description": "This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance.", - // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/suspend", + // "description": "Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/stop", // "httpMethod": "POST", - // "id": "compute.instances.suspend", + // "id": "compute.instances.stop", // "parameterOrder": [ // "project", // "zone", @@ -125222,7 +126091,205 @@ func (c *InstancesSuspendCall) Do(opts ...googleapi.CallOption) (*Operation, err // "type": "boolean" // }, // "instance": { - // "description": "Name of the instance resource to suspend.", + // "description": "Name of the instance resource to stop.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/instances/{instance}/stop", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.instances.suspend": + +type InstancesSuspendCall struct { + s *Service + project string + zone string + instance string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Suspend: This method suspends a running instance, saving its state to +// persistent storage, and allows you to resume the instance at a later +// time. Suspended instances have no compute costs (cores or RAM), and +// incur only storage charges for the saved VM memory and localSSD data. +// Any charged resources the virtual machine was using, such as +// persistent disks and static IP addresses, will continue to be charged +// while the instance is suspended. For more information, see Suspending +// and resuming an instance. +// +// - instance: Name of the instance resource to suspend. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *InstancesService) Suspend(project string, zone string, instance string) *InstancesSuspendCall { + c := &InstancesSuspendCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.instance = instance + return c +} + +// DiscardLocalSsd sets the optional parameter "discardLocalSsd": If +// true, discard the contents of any attached localSSD partitions. +// Default value is false. +func (c *InstancesSuspendCall) DiscardLocalSsd(discardLocalSsd bool) *InstancesSuspendCall { + c.urlParams_.Set("discardLocalSsd", fmt.Sprint(discardLocalSsd)) + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *InstancesSuspendCall) RequestId(requestId string) *InstancesSuspendCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *InstancesSuspendCall) Fields(s ...googleapi.Field) *InstancesSuspendCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *InstancesSuspendCall) Context(ctx context.Context) *InstancesSuspendCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *InstancesSuspendCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InstancesSuspendCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/suspend") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "instance": c.instance, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.instances.suspend" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *InstancesSuspendCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance.", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/suspend", + // "httpMethod": "POST", + // "id": "compute.instances.suspend", + // "parameterOrder": [ + // "project", + // "zone", + // "instance" + // ], + // "parameters": { + // "discardLocalSsd": { + // "description": "If true, discard the contents of any attached localSSD partitions. Default value is false.", + // "location": "query", + // "type": "boolean" + // }, + // "instance": { + // "description": "Name of the instance resource to suspend.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", // "required": true, @@ -139126,38 +140193,56 @@ func (c *NetworkAttachmentsListCall) Pages(ctx context.Context, f func(*NetworkA } } -// method id "compute.networkAttachments.setIamPolicy": +// method id "compute.networkAttachments.patch": -type NetworkAttachmentsSetIamPolicyCall struct { - s *Service - project string - region string - resource string - regionsetpolicyrequest *RegionSetPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type NetworkAttachmentsPatchCall struct { + s *Service + project string + region string + networkAttachment string + networkattachment *NetworkAttachment + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. +// Patch: Patches the specified NetworkAttachment resource with the data +// included in the request. This method supports PATCH semantics and +// uses JSON merge patch format and processing rules. // +// - networkAttachment: Name of the NetworkAttachment resource to patch. // - project: Project ID for this request. -// - region: The name of the region for this request. -// - resource: Name or id of the resource for this request. -func (r *NetworkAttachmentsService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *NetworkAttachmentsSetIamPolicyCall { - c := &NetworkAttachmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - region: Name of the region for this request. +func (r *NetworkAttachmentsService) Patch(project string, region string, networkAttachment string, networkattachment *NetworkAttachment) *NetworkAttachmentsPatchCall { + c := &NetworkAttachmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.region = region - c.resource = resource - c.regionsetpolicyrequest = regionsetpolicyrequest + c.networkAttachment = networkAttachment + c.networkattachment = networkattachment + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). end_interface: +// MixerMutationRequestBuilder +func (c *NetworkAttachmentsPatchCall) RequestId(requestId string) *NetworkAttachmentsPatchCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *NetworkAttachmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *NetworkAttachmentsSetIamPolicyCall { +func (c *NetworkAttachmentsPatchCall) Fields(s ...googleapi.Field) *NetworkAttachmentsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -139165,21 +140250,21 @@ func (c *NetworkAttachmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *Netwo // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *NetworkAttachmentsSetIamPolicyCall) Context(ctx context.Context) *NetworkAttachmentsSetIamPolicyCall { +func (c *NetworkAttachmentsPatchCall) Context(ctx context.Context) *NetworkAttachmentsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *NetworkAttachmentsSetIamPolicyCall) Header() http.Header { +func (c *NetworkAttachmentsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NetworkAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *NetworkAttachmentsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -139187,36 +140272,36 @@ func (c *NetworkAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.Respon } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.regionsetpolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.networkattachment) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "resource": c.resource, + "project": c.project, + "region": c.region, + "networkAttachment": c.networkAttachment, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.networkAttachments.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *NetworkAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// Do executes the "compute.networkAttachments.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *NetworkAttachmentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -139235,7 +140320,7 @@ func (c *NetworkAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -139247,16 +140332,23 @@ func (c *NetworkAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", - // "flatPath": "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy", - // "httpMethod": "POST", - // "id": "compute.networkAttachments.setIamPolicy", + // "description": "Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + // "flatPath": "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}", + // "httpMethod": "PATCH", + // "id": "compute.networkAttachments.patch", // "parameterOrder": [ // "project", // "region", - // "resource" + // "networkAttachment" // ], // "parameters": { + // "networkAttachment": { + // "description": "Name of the NetworkAttachment resource to patch.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, // "project": { // "description": "Project ID for this request.", // "location": "path", @@ -139265,26 +140357,24 @@ func (c *NetworkAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (* // "type": "string" // }, // "region": { - // "description": "The name of the region for this request.", + // "description": "Name of the region for this request.", // "location": "path", // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", // "required": true, // "type": "string" // }, - // "resource": { - // "description": "Name or id of the resource for this request.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - // "required": true, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder", + // "location": "query", // "type": "string" // } // }, - // "path": "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy", + // "path": "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}", // "request": { - // "$ref": "RegionSetPolicyRequest" + // "$ref": "NetworkAttachment" // }, // "response": { - // "$ref": "Policy" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -139294,38 +140384,38 @@ func (c *NetworkAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (* } -// method id "compute.networkAttachments.testIamPermissions": +// method id "compute.networkAttachments.setIamPolicy": -type NetworkAttachmentsTestIamPermissionsCall struct { +type NetworkAttachmentsSetIamPolicyCall struct { s *Service project string region string resource string - testpermissionsrequest *TestPermissionsRequest + regionsetpolicyrequest *RegionSetPolicyRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. // // - project: Project ID for this request. // - region: The name of the region for this request. // - resource: Name or id of the resource for this request. -func (r *NetworkAttachmentsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *NetworkAttachmentsTestIamPermissionsCall { - c := &NetworkAttachmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *NetworkAttachmentsService) SetIamPolicy(project string, region string, resource string, regionsetpolicyrequest *RegionSetPolicyRequest) *NetworkAttachmentsSetIamPolicyCall { + c := &NetworkAttachmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.region = region c.resource = resource - c.testpermissionsrequest = testpermissionsrequest + c.regionsetpolicyrequest = regionsetpolicyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *NetworkAttachmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *NetworkAttachmentsTestIamPermissionsCall { +func (c *NetworkAttachmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *NetworkAttachmentsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -139333,21 +140423,21 @@ func (c *NetworkAttachmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *NetworkAttachmentsTestIamPermissionsCall) Context(ctx context.Context) *NetworkAttachmentsTestIamPermissionsCall { +func (c *NetworkAttachmentsSetIamPolicyCall) Context(ctx context.Context) *NetworkAttachmentsSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *NetworkAttachmentsTestIamPermissionsCall) Header() http.Header { +func (c *NetworkAttachmentsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *NetworkAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *NetworkAttachmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -139355,14 +140445,14 @@ func (c *NetworkAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.testpermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.regionsetpolicyrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -139377,14 +140467,14 @@ func (c *NetworkAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.networkAttachments.testIamPermissions" call. -// Exactly one of *TestPermissionsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *TestPermissionsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *NetworkAttachmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { +// Do executes the "compute.networkAttachments.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *NetworkAttachmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -139403,7 +140493,7 @@ func (c *NetworkAttachmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestPermissionsResponse{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -139415,10 +140505,178 @@ func (c *NetworkAttachmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource.", - // "flatPath": "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", + // "flatPath": "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy", // "httpMethod": "POST", - // "id": "compute.networkAttachments.testIamPermissions", + // "id": "compute.networkAttachments.setIamPolicy", + // "parameterOrder": [ + // "project", + // "region", + // "resource" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "The name of the region for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "resource": { + // "description": "Name or id of the resource for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy", + // "request": { + // "$ref": "RegionSetPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.networkAttachments.testIamPermissions": + +type NetworkAttachmentsTestIamPermissionsCall struct { + s *Service + project string + region string + resource string + testpermissionsrequest *TestPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. +// +// - project: Project ID for this request. +// - region: The name of the region for this request. +// - resource: Name or id of the resource for this request. +func (r *NetworkAttachmentsService) TestIamPermissions(project string, region string, resource string, testpermissionsrequest *TestPermissionsRequest) *NetworkAttachmentsTestIamPermissionsCall { + c := &NetworkAttachmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.resource = resource + c.testpermissionsrequest = testpermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *NetworkAttachmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *NetworkAttachmentsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *NetworkAttachmentsTestIamPermissionsCall) Context(ctx context.Context) *NetworkAttachmentsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *NetworkAttachmentsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *NetworkAttachmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testpermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.networkAttachments.testIamPermissions" call. +// Exactly one of *TestPermissionsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *TestPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *NetworkAttachmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TestPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource.", + // "flatPath": "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions", + // "httpMethod": "POST", + // "id": "compute.networkAttachments.testIamPermissions", // "parameterOrder": [ // "project", // "region", @@ -188100,37 +189358,31 @@ func (c *RegionNetworkFirewallPoliciesPatchCall) Do(opts ...googleapi.CallOption } -// method id "compute.regionNetworkFirewallPolicies.patchRule": +// method id "compute.regionNetworkFirewallPolicies.patchAssociation": -type RegionNetworkFirewallPoliciesPatchRuleCall struct { - s *Service - project string - region string - firewallPolicy string - firewallpolicyrule *FirewallPolicyRule - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type RegionNetworkFirewallPoliciesPatchAssociationCall struct { + s *Service + project string + region string + firewallPolicy string + firewallpolicyassociation *FirewallPolicyAssociation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PatchRule: Patches a rule of the specified priority. +// PatchAssociation: Updates an association for the specified network +// firewall policy. // // - firewallPolicy: Name of the firewall policy to update. // - project: Project ID for this request. // - region: Name of the region scoping this request. -func (r *RegionNetworkFirewallPoliciesService) PatchRule(project string, region string, firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *RegionNetworkFirewallPoliciesPatchRuleCall { - c := &RegionNetworkFirewallPoliciesPatchRuleCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *RegionNetworkFirewallPoliciesService) PatchAssociation(project string, region string, firewallPolicy string, firewallpolicyassociation *FirewallPolicyAssociation) *RegionNetworkFirewallPoliciesPatchAssociationCall { + c := &RegionNetworkFirewallPoliciesPatchAssociationCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.region = region c.firewallPolicy = firewallPolicy - c.firewallpolicyrule = firewallpolicyrule - return c -} - -// Priority sets the optional parameter "priority": The priority of the -// rule to patch. -func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Priority(priority int64) *RegionNetworkFirewallPoliciesPatchRuleCall { - c.urlParams_.Set("priority", fmt.Sprint(priority)) + c.firewallpolicyassociation = firewallpolicyassociation return c } @@ -188145,7 +189397,7 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Priority(priority int64) *R // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *RegionNetworkFirewallPoliciesPatchRuleCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesPatchRuleCall { +func (c *RegionNetworkFirewallPoliciesPatchAssociationCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesPatchAssociationCall { c.urlParams_.Set("requestId", requestId) return c } @@ -188153,7 +189405,7 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) RequestId(requestId string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesPatchRuleCall { +func (c *RegionNetworkFirewallPoliciesPatchAssociationCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesPatchAssociationCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -188161,21 +189413,21 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Fields(s ...googleapi.Field // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesPatchRuleCall { +func (c *RegionNetworkFirewallPoliciesPatchAssociationCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesPatchAssociationCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Header() http.Header { +func (c *RegionNetworkFirewallPoliciesPatchAssociationCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RegionNetworkFirewallPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, error) { +func (c *RegionNetworkFirewallPoliciesPatchAssociationCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -188183,14 +189435,14 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) doRequest(alt string) (*htt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.firewallpolicyrule) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.firewallpolicyassociation) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -188205,14 +189457,14 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.regionNetworkFirewallPolicies.patchRule" call. +// Do executes the "compute.regionNetworkFirewallPolicies.patchAssociation" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *RegionNetworkFirewallPoliciesPatchAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -188243,10 +189495,10 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Patches a rule of the specified priority.", - // "flatPath": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule", + // "description": "Updates an association for the specified network firewall policy.", + // "flatPath": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation", // "httpMethod": "POST", - // "id": "compute.regionNetworkFirewallPolicies.patchRule", + // "id": "compute.regionNetworkFirewallPolicies.patchAssociation", // "parameterOrder": [ // "project", // "region", @@ -188260,12 +189512,6 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOp // "required": true, // "type": "string" // }, - // "priority": { - // "description": "The priority of the rule to patch.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, // "project": { // "description": "Project ID for this request.", // "location": "path", @@ -188286,9 +189532,9 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOp // "type": "string" // } // }, - // "path": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule", + // "path": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation", // "request": { - // "$ref": "FirewallPolicyRule" + // "$ref": "FirewallPolicyAssociation" // }, // "response": { // "$ref": "Operation" @@ -188301,36 +189547,37 @@ func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOp } -// method id "compute.regionNetworkFirewallPolicies.removeAssociation": +// method id "compute.regionNetworkFirewallPolicies.patchRule": -type RegionNetworkFirewallPoliciesRemoveAssociationCall struct { - s *Service - project string - region string - firewallPolicy string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type RegionNetworkFirewallPoliciesPatchRuleCall struct { + s *Service + project string + region string + firewallPolicy string + firewallpolicyrule *FirewallPolicyRule + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// RemoveAssociation: Removes an association for the specified network -// firewall policy. +// PatchRule: Patches a rule of the specified priority. // // - firewallPolicy: Name of the firewall policy to update. // - project: Project ID for this request. // - region: Name of the region scoping this request. -func (r *RegionNetworkFirewallPoliciesService) RemoveAssociation(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesRemoveAssociationCall { - c := &RegionNetworkFirewallPoliciesRemoveAssociationCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *RegionNetworkFirewallPoliciesService) PatchRule(project string, region string, firewallPolicy string, firewallpolicyrule *FirewallPolicyRule) *RegionNetworkFirewallPoliciesPatchRuleCall { + c := &RegionNetworkFirewallPoliciesPatchRuleCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.project = project c.region = region c.firewallPolicy = firewallPolicy + c.firewallpolicyrule = firewallpolicyrule return c } -// Name sets the optional parameter "name": Name for the association -// that will be removed. -func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Name(name string) *RegionNetworkFirewallPoliciesRemoveAssociationCall { - c.urlParams_.Set("name", name) +// Priority sets the optional parameter "priority": The priority of the +// rule to patch. +func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Priority(priority int64) *RegionNetworkFirewallPoliciesPatchRuleCall { + c.urlParams_.Set("priority", fmt.Sprint(priority)) return c } @@ -188345,7 +189592,7 @@ func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Name(name string) * // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported ( 00000000-0000-0000-0000-000000000000). -func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesRemoveAssociationCall { +func (c *RegionNetworkFirewallPoliciesPatchRuleCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesPatchRuleCall { c.urlParams_.Set("requestId", requestId) return c } @@ -188353,7 +189600,7 @@ func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) RequestId(requestId // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesRemoveAssociationCall { +func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesPatchRuleCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -188361,21 +189608,21 @@ func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Fields(s ...googlea // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesRemoveAssociationCall { +func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesPatchRuleCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Header() http.Header { +func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) doRequest(alt string) (*http.Response, error) { +func (c *RegionNetworkFirewallPoliciesPatchRuleCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -188383,9 +189630,14 @@ func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.firewallpolicyrule) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -188400,14 +189652,209 @@ func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "compute.regionNetworkFirewallPolicies.removeAssociation" call. +// Do executes the "compute.regionNetworkFirewallPolicies.patchRule" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *RegionNetworkFirewallPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Patches a rule of the specified priority.", + // "flatPath": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule", + // "httpMethod": "POST", + // "id": "compute.regionNetworkFirewallPolicies.patchRule", + // "parameterOrder": [ + // "project", + // "region", + // "firewallPolicy" + // ], + // "parameters": { + // "firewallPolicy": { + // "description": "Name of the firewall policy to update.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "priority": { + // "description": "The priority of the rule to patch.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "Name of the region scoping this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule", + // "request": { + // "$ref": "FirewallPolicyRule" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.regionNetworkFirewallPolicies.removeAssociation": + +type RegionNetworkFirewallPoliciesRemoveAssociationCall struct { + s *Service + project string + region string + firewallPolicy string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveAssociation: Removes an association for the specified network +// firewall policy. +// +// - firewallPolicy: Name of the firewall policy to update. +// - project: Project ID for this request. +// - region: Name of the region scoping this request. +func (r *RegionNetworkFirewallPoliciesService) RemoveAssociation(project string, region string, firewallPolicy string) *RegionNetworkFirewallPoliciesRemoveAssociationCall { + c := &RegionNetworkFirewallPoliciesRemoveAssociationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.firewallPolicy = firewallPolicy + return c +} + +// Name sets the optional parameter "name": Name for the association +// that will be removed. +func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Name(name string) *RegionNetworkFirewallPoliciesRemoveAssociationCall { + c.urlParams_.Set("name", name) + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) RequestId(requestId string) *RegionNetworkFirewallPoliciesRemoveAssociationCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Fields(s ...googleapi.Field) *RegionNetworkFirewallPoliciesRemoveAssociationCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Context(ctx context.Context) *RegionNetworkFirewallPoliciesRemoveAssociationCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "firewallPolicy": c.firewallPolicy, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionNetworkFirewallPolicies.removeAssociation" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *RegionNetworkFirewallPoliciesRemoveAssociationCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -212202,24 +213649,6 @@ func (r *ServiceAttachmentsService) Patch(project string, region string, service return c } -// ReconcileConnections sets the optional parameter -// "reconcileConnections": This flag determines how to change the status -// of consumer connections, when the connection policy for the -// corresponding project or network is modified. If the flag is false, -// the default case, then existing ACCEPTED and REJECTED consumer -// connections stay in that state. For example, even if the project is -// removed from the accept list, existing ACCEPTED connections will stay -// the same. If the flag is true, then the connection can change from -// ACCEPTED or REJECTED to pending when the connection policy is -// modified. For example, if a project is removed from the reject list, -// its existing REJECTED connections will move to the PENDING state. If -// the project is also added to the accept list, then those connections -// will move to the ACCEPTED state. -func (c *ServiceAttachmentsPatchCall) ReconcileConnections(reconcileConnections bool) *ServiceAttachmentsPatchCall { - c.urlParams_.Set("reconcileConnections", fmt.Sprint(reconcileConnections)) - return c -} - // RequestId sets the optional parameter "requestId": An optional // request ID to identify requests. Specify a unique request ID so that // if you must retry your request, the server will know to ignore the @@ -212346,11 +213775,6 @@ func (c *ServiceAttachmentsPatchCall) Do(opts ...googleapi.CallOption) (*Operati // "required": true, // "type": "string" // }, - // "reconcileConnections": { - // "description": "This flag determines how to change the status of consumer connections, when the connection policy for the corresponding project or network is modified. If the flag is false, the default case, then existing ACCEPTED and REJECTED consumer connections stay in that state. For example, even if the project is removed from the accept list, existing ACCEPTED connections will stay the same. If the flag is true, then the connection can change from ACCEPTED or REJECTED to pending when the connection policy is modified. For example, if a project is removed from the reject list, its existing REJECTED connections will move to the PENDING state. If the project is also added to the accept list, then those connections will move to the ACCEPTED state.", - // "location": "query", - // "type": "boolean" - // }, // "region": { // "description": "The region scoping this request and should conform to RFC1035.", // "location": "path", @@ -217035,6 +218459,2041 @@ func (c *SslPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*T } +// method id "compute.storagePools.aggregatedList": + +type StoragePoolsAggregatedListCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// AggregatedList: Retrieves an aggregated list of storage pools. +// +// - project: Project ID for this request. +func (r *StoragePoolsService) AggregatedList(project string) *StoragePoolsAggregatedListCall { + c := &StoragePoolsAggregatedListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most Compute resources +// support two types of filter expressions: expressions that support +// regular expressions and expressions that follow API improvement +// proposal AIP-160. If you want to use AIP-160, your expression must +// specify the field name, an operator, and the value that you want to +// use for filtering. The value must be a string, a number, or a +// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` +// or `:`. For example, if you are filtering Compute Engine instances, +// you can exclude instances named `example-instance` by specifying +// `name != example-instance`. The `:` operator can be used with string +// fields to match substrings. For non-string fields it is equivalent to +// the `=` operator. The `:*` comparison can be used to test whether a +// key has been defined. For example, to find all objects with `owner` +// label use: ``` labels.owner:* ``` You can also filter nested fields. +// For example, you could specify `scheduling.automaticRestart = false` +// to include instances only if they are not scheduled for automatic +// restarts. You can use filtering on nested fields to filter based on +// resource labels. To filter on multiple expressions, provide each +// separate expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` If you want to use a +// regular expression, use the `eq` (equal) or `ne` (not equal) operator +// against a single un-parenthesized expression with or without quotes +// or against multiple parenthesized expressions. Examples: `fieldname +// eq unquoted literal` `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" `(fieldname1 eq literal) +// (fieldname2 ne "literal")` The literal value is interpreted as a +// regular expression using Google RE2 library syntax. The literal value +// must match the entire field. For example, to filter for instances +// that do not end with name "instance", you would use `name ne +// .*instance`. +func (c *StoragePoolsAggregatedListCall) Filter(filter string) *StoragePoolsAggregatedListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// IncludeAllScopes sets the optional parameter "includeAllScopes": +// Indicates whether every visible scope for each scope type (zone, +// region, global) should be included in the response. For new resource +// types added after this field, the flag has no effect as new resource +// types will always include every visible scope for each scope type in +// response. For resource types which predate this field, if this flag +// is omitted or false, only scopes of the scope types where the +// resource type is expected to be found will be included. +func (c *StoragePoolsAggregatedListCall) IncludeAllScopes(includeAllScopes bool) *StoragePoolsAggregatedListCall { + c.urlParams_.Set("includeAllScopes", fmt.Sprint(includeAllScopes)) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum +// number of results per page that should be returned. If the number of +// available results is larger than `maxResults`, Compute Engine returns +// a `nextPageToken` that can be used to get the next page of results in +// subsequent list requests. Acceptable values are `0` to `500`, +// inclusive. (Default: `500`) +func (c *StoragePoolsAggregatedListCall) MaxResults(maxResults int64) *StoragePoolsAggregatedListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sorts list results by +// a certain order. By default, results are returned in alphanumerical +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. +func (c *StoragePoolsAggregatedListCall) OrderBy(orderBy string) *StoragePoolsAggregatedListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Set `pageToken` to the `nextPageToken` returned by a +// previous list request to get the next page of results. +func (c *StoragePoolsAggregatedListCall) PageToken(pageToken string) *StoragePoolsAggregatedListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false. +func (c *StoragePoolsAggregatedListCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolsAggregatedListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *StoragePoolsAggregatedListCall) Fields(s ...googleapi.Field) *StoragePoolsAggregatedListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *StoragePoolsAggregatedListCall) IfNoneMatch(entityTag string) *StoragePoolsAggregatedListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *StoragePoolsAggregatedListCall) Context(ctx context.Context) *StoragePoolsAggregatedListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *StoragePoolsAggregatedListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *StoragePoolsAggregatedListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/aggregated/storagePools") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.storagePools.aggregatedList" call. +// Exactly one of *StoragePoolAggregatedList or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *StoragePoolAggregatedList.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *StoragePoolsAggregatedListCall) Do(opts ...googleapi.CallOption) (*StoragePoolAggregatedList, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &StoragePoolAggregatedList{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves an aggregated list of storage pools.", + // "flatPath": "projects/{project}/aggregated/storagePools", + // "httpMethod": "GET", + // "id": "compute.storagePools.aggregatedList", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "filter": { + // "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.", + // "location": "query", + // "type": "string" + // }, + // "includeAllScopes": { + // "description": "Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.", + // "location": "query", + // "type": "boolean" + // }, + // "maxResults": { + // "default": "500", + // "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + // "format": "uint32", + // "location": "query", + // "minimum": "0", + // "type": "integer" + // }, + // "orderBy": { + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "location": "query", + // "type": "string" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "projects/{project}/aggregated/storagePools", + // "response": { + // "$ref": "StoragePoolAggregatedList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *StoragePoolsAggregatedListCall) Pages(ctx context.Context, f func(*StoragePoolAggregatedList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "compute.storagePools.delete": + +type StoragePoolsDeleteCall struct { + s *Service + project string + zone string + storagePool string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified storage pool. Deleting a storagePool +// removes its data permanently and is irreversible. However, deleting a +// storagePool does not delete any snapshots previously made from the +// storagePool. You must separately delete snapshots. +// +// - project: Project ID for this request. +// - storagePool: Name of the storage pool to delete. +// - zone: The name of the zone for this request. +func (r *StoragePoolsService) Delete(project string, zone string, storagePool string) *StoragePoolsDeleteCall { + c := &StoragePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.storagePool = storagePool + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *StoragePoolsDeleteCall) RequestId(requestId string) *StoragePoolsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *StoragePoolsDeleteCall) Fields(s ...googleapi.Field) *StoragePoolsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *StoragePoolsDeleteCall) Context(ctx context.Context) *StoragePoolsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *StoragePoolsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *StoragePoolsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/storagePools/{storagePool}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "storagePool": c.storagePool, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.storagePools.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *StoragePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots.", + // "flatPath": "projects/{project}/zones/{zone}/storagePools/{storagePool}", + // "httpMethod": "DELETE", + // "id": "compute.storagePools.delete", + // "parameterOrder": [ + // "project", + // "zone", + // "storagePool" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "storagePool": { + // "description": "Name of the storage pool to delete.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/storagePools/{storagePool}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.storagePools.get": + +type StoragePoolsGetCall struct { + s *Service + project string + zone string + storagePool string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns a specified storage pool. Gets a list of available +// storage pools by making a list() request. +// +// - project: Project ID for this request. +// - storagePool: Name of the storage pool to return. +// - zone: The name of the zone for this request. +func (r *StoragePoolsService) Get(project string, zone string, storagePool string) *StoragePoolsGetCall { + c := &StoragePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.storagePool = storagePool + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *StoragePoolsGetCall) Fields(s ...googleapi.Field) *StoragePoolsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *StoragePoolsGetCall) IfNoneMatch(entityTag string) *StoragePoolsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *StoragePoolsGetCall) Context(ctx context.Context) *StoragePoolsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *StoragePoolsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *StoragePoolsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/storagePools/{storagePool}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "storagePool": c.storagePool, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.storagePools.get" call. +// Exactly one of *StoragePool or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *StoragePool.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *StoragePoolsGetCall) Do(opts ...googleapi.CallOption) (*StoragePool, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &StoragePool{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns a specified storage pool. Gets a list of available storage pools by making a list() request.", + // "flatPath": "projects/{project}/zones/{zone}/storagePools/{storagePool}", + // "httpMethod": "GET", + // "id": "compute.storagePools.get", + // "parameterOrder": [ + // "project", + // "zone", + // "storagePool" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "storagePool": { + // "description": "Name of the storage pool to return.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/storagePools/{storagePool}", + // "response": { + // "$ref": "StoragePool" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.storagePools.getIamPolicy": + +type StoragePoolsGetIamPolicyCall struct { + s *Service + project string + zone string + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. May be +// empty if no such policy or resource exists. +// +// - project: Project ID for this request. +// - resource: Name or id of the resource for this request. +// - zone: The name of the zone for this request. +func (r *StoragePoolsService) GetIamPolicy(project string, zone string, resource string) *StoragePoolsGetIamPolicyCall { + c := &StoragePoolsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "optionsRequestedPolicyVersion": Requested IAM Policy version. +func (c *StoragePoolsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *StoragePoolsGetIamPolicyCall { + c.urlParams_.Set("optionsRequestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *StoragePoolsGetIamPolicyCall) Fields(s ...googleapi.Field) *StoragePoolsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *StoragePoolsGetIamPolicyCall) IfNoneMatch(entityTag string) *StoragePoolsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *StoragePoolsGetIamPolicyCall) Context(ctx context.Context) *StoragePoolsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *StoragePoolsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *StoragePoolsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.storagePools.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *StoragePoolsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + // "flatPath": "projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy", + // "httpMethod": "GET", + // "id": "compute.storagePools.getIamPolicy", + // "parameterOrder": [ + // "project", + // "zone", + // "resource" + // ], + // "parameters": { + // "optionsRequestedPolicyVersion": { + // "description": "Requested IAM Policy version.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "resource": { + // "description": "Name or id of the resource for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/storagePools/{resource}/getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.storagePools.insert": + +type StoragePoolsInsertCall struct { + s *Service + project string + zone string + storagepool *StoragePool + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Insert: Creates a storage pool in the specified project using the +// data in the request. +// +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *StoragePoolsService) Insert(project string, zone string, storagepool *StoragePool) *StoragePoolsInsertCall { + c := &StoragePoolsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.storagepool = storagepool + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *StoragePoolsInsertCall) RequestId(requestId string) *StoragePoolsInsertCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *StoragePoolsInsertCall) Fields(s ...googleapi.Field) *StoragePoolsInsertCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *StoragePoolsInsertCall) Context(ctx context.Context) *StoragePoolsInsertCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *StoragePoolsInsertCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *StoragePoolsInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.storagepool) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/storagePools") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.storagePools.insert" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *StoragePoolsInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a storage pool in the specified project using the data in the request.", + // "flatPath": "projects/{project}/zones/{zone}/storagePools", + // "httpMethod": "POST", + // "id": "compute.storagePools.insert", + // "parameterOrder": [ + // "project", + // "zone" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/storagePools", + // "request": { + // "$ref": "StoragePool" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.storagePools.list": + +type StoragePoolsListCall struct { + s *Service + project string + zone string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieves a list of storage pools contained within the +// specified zone. +// +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *StoragePoolsService) List(project string, zone string) *StoragePoolsListCall { + c := &StoragePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most Compute resources +// support two types of filter expressions: expressions that support +// regular expressions and expressions that follow API improvement +// proposal AIP-160. If you want to use AIP-160, your expression must +// specify the field name, an operator, and the value that you want to +// use for filtering. The value must be a string, a number, or a +// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` +// or `:`. For example, if you are filtering Compute Engine instances, +// you can exclude instances named `example-instance` by specifying +// `name != example-instance`. The `:` operator can be used with string +// fields to match substrings. For non-string fields it is equivalent to +// the `=` operator. The `:*` comparison can be used to test whether a +// key has been defined. For example, to find all objects with `owner` +// label use: ``` labels.owner:* ``` You can also filter nested fields. +// For example, you could specify `scheduling.automaticRestart = false` +// to include instances only if they are not scheduled for automatic +// restarts. You can use filtering on nested fields to filter based on +// resource labels. To filter on multiple expressions, provide each +// separate expression within parentheses. For example: ``` +// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") +// ``` By default, each expression is an `AND` expression. However, you +// can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") +// AND (scheduling.automaticRestart = true) ``` If you want to use a +// regular expression, use the `eq` (equal) or `ne` (not equal) operator +// against a single un-parenthesized expression with or without quotes +// or against multiple parenthesized expressions. Examples: `fieldname +// eq unquoted literal` `fieldname eq 'single quoted literal'` +// `fieldname eq "double quoted literal" `(fieldname1 eq literal) +// (fieldname2 ne "literal")` The literal value is interpreted as a +// regular expression using Google RE2 library syntax. The literal value +// must match the entire field. For example, to filter for instances +// that do not end with name "instance", you would use `name ne +// .*instance`. +func (c *StoragePoolsListCall) Filter(filter string) *StoragePoolsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum +// number of results per page that should be returned. If the number of +// available results is larger than `maxResults`, Compute Engine returns +// a `nextPageToken` that can be used to get the next page of results in +// subsequent list requests. Acceptable values are `0` to `500`, +// inclusive. (Default: `500`) +func (c *StoragePoolsListCall) MaxResults(maxResults int64) *StoragePoolsListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sorts list results by +// a certain order. By default, results are returned in alphanumerical +// order based on the resource name. You can also sort results in +// descending order based on the creation timestamp using +// `orderBy="creationTimestamp desc". This sorts results based on the +// `creationTimestamp` field in reverse chronological order (newest +// result first). Use this to sort resources like operations so that the +// newest operation is returned first. Currently, only sorting by `name` +// or `creationTimestamp desc` is supported. +func (c *StoragePoolsListCall) OrderBy(orderBy string) *StoragePoolsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page +// token to use. Set `pageToken` to the `nextPageToken` returned by a +// previous list request to get the next page of results. +func (c *StoragePoolsListCall) PageToken(pageToken string) *StoragePoolsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter +// "returnPartialSuccess": Opt-in for partial success behavior which +// provides partial results in case of failure. The default value is +// false. +func (c *StoragePoolsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *StoragePoolsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *StoragePoolsListCall) Fields(s ...googleapi.Field) *StoragePoolsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *StoragePoolsListCall) IfNoneMatch(entityTag string) *StoragePoolsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *StoragePoolsListCall) Context(ctx context.Context) *StoragePoolsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *StoragePoolsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *StoragePoolsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/storagePools") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.storagePools.list" call. +// Exactly one of *StoragePoolList or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *StoragePoolList.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *StoragePoolsListCall) Do(opts ...googleapi.CallOption) (*StoragePoolList, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &StoragePoolList{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieves a list of storage pools contained within the specified zone.", + // "flatPath": "projects/{project}/zones/{zone}/storagePools", + // "httpMethod": "GET", + // "id": "compute.storagePools.list", + // "parameterOrder": [ + // "project", + // "zone" + // ], + // "parameters": { + // "filter": { + // "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.", + // "location": "query", + // "type": "string" + // }, + // "maxResults": { + // "default": "500", + // "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + // "format": "uint32", + // "location": "query", + // "minimum": "0", + // "type": "integer" + // }, + // "orderBy": { + // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + // "location": "query", + // "type": "string" + // }, + // "pageToken": { + // "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + // "location": "query", + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "returnPartialSuccess": { + // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", + // "location": "query", + // "type": "boolean" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/storagePools", + // "response": { + // "$ref": "StoragePoolList" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *StoragePoolsListCall) Pages(ctx context.Context, f func(*StoragePoolList) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "compute.storagePools.setIamPolicy": + +type StoragePoolsSetIamPolicyCall struct { + s *Service + project string + zone string + resource string + zonesetpolicyrequest *ZoneSetPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. +// +// - project: Project ID for this request. +// - resource: Name or id of the resource for this request. +// - zone: The name of the zone for this request. +func (r *StoragePoolsService) SetIamPolicy(project string, zone string, resource string, zonesetpolicyrequest *ZoneSetPolicyRequest) *StoragePoolsSetIamPolicyCall { + c := &StoragePoolsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.resource = resource + c.zonesetpolicyrequest = zonesetpolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *StoragePoolsSetIamPolicyCall) Fields(s ...googleapi.Field) *StoragePoolsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *StoragePoolsSetIamPolicyCall) Context(ctx context.Context) *StoragePoolsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *StoragePoolsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *StoragePoolsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.zonesetpolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.storagePools.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *StoragePoolsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy.", + // "flatPath": "projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy", + // "httpMethod": "POST", + // "id": "compute.storagePools.setIamPolicy", + // "parameterOrder": [ + // "project", + // "zone", + // "resource" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "resource": { + // "description": "Name or id of the resource for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/storagePools/{resource}/setIamPolicy", + // "request": { + // "$ref": "ZoneSetPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.storagePools.setLabels": + +type StoragePoolsSetLabelsCall struct { + s *Service + project string + zone string + resource string + zonesetlabelsrequest *ZoneSetLabelsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetLabels: Sets the labels on a storage pools. To learn more about +// labels, read the Labeling Resources documentation. +// +// - project: Project ID for this request. +// - resource: Name or id of the resource for this request. +// - zone: The name of the zone for this request. +func (r *StoragePoolsService) SetLabels(project string, zone string, resource string, zonesetlabelsrequest *ZoneSetLabelsRequest) *StoragePoolsSetLabelsCall { + c := &StoragePoolsSetLabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.resource = resource + c.zonesetlabelsrequest = zonesetlabelsrequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *StoragePoolsSetLabelsCall) RequestId(requestId string) *StoragePoolsSetLabelsCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *StoragePoolsSetLabelsCall) Fields(s ...googleapi.Field) *StoragePoolsSetLabelsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *StoragePoolsSetLabelsCall) Context(ctx context.Context) *StoragePoolsSetLabelsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *StoragePoolsSetLabelsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *StoragePoolsSetLabelsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.zonesetlabelsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/storagePools/{resource}/setLabels") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.storagePools.setLabels" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *StoragePoolsSetLabelsCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the labels on a storage pools. To learn more about labels, read the Labeling Resources documentation.", + // "flatPath": "projects/{project}/zones/{zone}/storagePools/{resource}/setLabels", + // "httpMethod": "POST", + // "id": "compute.storagePools.setLabels", + // "parameterOrder": [ + // "project", + // "zone", + // "resource" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "resource": { + // "description": "Name or id of the resource for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/storagePools/{resource}/setLabels", + // "request": { + // "$ref": "ZoneSetLabelsRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + +// method id "compute.storagePools.testIamPermissions": + +type StoragePoolsTestIamPermissionsCall struct { + s *Service + project string + zone string + resource string + testpermissionsrequest *TestPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. +// +// - project: Project ID for this request. +// - resource: Name or id of the resource for this request. +// - zone: The name of the zone for this request. +func (r *StoragePoolsService) TestIamPermissions(project string, zone string, resource string, testpermissionsrequest *TestPermissionsRequest) *StoragePoolsTestIamPermissionsCall { + c := &StoragePoolsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.resource = resource + c.testpermissionsrequest = testpermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *StoragePoolsTestIamPermissionsCall) Fields(s ...googleapi.Field) *StoragePoolsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *StoragePoolsTestIamPermissionsCall) Context(ctx context.Context) *StoragePoolsTestIamPermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *StoragePoolsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *StoragePoolsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testpermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.storagePools.testIamPermissions" call. +// Exactly one of *TestPermissionsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *TestPermissionsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *StoragePoolsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TestPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource.", + // "flatPath": "projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions", + // "httpMethod": "POST", + // "id": "compute.storagePools.testIamPermissions", + // "parameterOrder": [ + // "project", + // "zone", + // "resource" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "resource": { + // "description": "Name or id of the resource for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/storagePools/{resource}/testIamPermissions", + // "request": { + // "$ref": "TestPermissionsRequest" + // }, + // "response": { + // "$ref": "TestPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.storagePools.update": + +type StoragePoolsUpdateCall struct { + s *Service + project string + zone string + storagePool string + storagepool *StoragePool + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Updates the specified storagePool with the data included in +// the request. The update is performed only on selected fields included +// as part of update-mask. Only the following fields can be modified: +// size_tb and provisioned_iops. +// +// - project: Project ID for this request. +// - storagePool: The storagePool name for this request. +// - zone: The name of the zone for this request. +func (r *StoragePoolsService) Update(project string, zone string, storagePool string, storagepool *StoragePool) *StoragePoolsUpdateCall { + c := &StoragePoolsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.storagePool = storagePool + c.storagepool = storagepool + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *StoragePoolsUpdateCall) RequestId(requestId string) *StoragePoolsUpdateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": update_mask +// indicates fields to be updated as part of this request. +func (c *StoragePoolsUpdateCall) UpdateMask(updateMask string) *StoragePoolsUpdateCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *StoragePoolsUpdateCall) Fields(s ...googleapi.Field) *StoragePoolsUpdateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *StoragePoolsUpdateCall) Context(ctx context.Context) *StoragePoolsUpdateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *StoragePoolsUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *StoragePoolsUpdateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.storagepool) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/storagePools/{storagePool}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "storagePool": c.storagePool, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.storagePools.update" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *StoragePoolsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: size_tb and provisioned_iops.", + // "flatPath": "projects/{project}/zones/{zone}/storagePools/{storagePool}", + // "httpMethod": "PATCH", + // "id": "compute.storagePools.update", + // "parameterOrder": [ + // "project", + // "zone", + // "storagePool" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "storagePool": { + // "description": "The storagePool name for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "update_mask indicates fields to be updated as part of this request.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/storagePools/{storagePool}", + // "request": { + // "$ref": "StoragePool" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.subnetworks.aggregatedList": type SubnetworksAggregatedListCall struct { @@ -225653,6 +229112,196 @@ func (c *TargetInstancesListCall) Pages(ctx context.Context, f func(*TargetInsta } } +// method id "compute.targetInstances.setSecurityPolicy": + +type TargetInstancesSetSecurityPolicyCall struct { + s *Service + project string + zone string + targetInstance string + securitypolicyreference *SecurityPolicyReference + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetSecurityPolicy: Sets the Google Cloud Armor security policy for +// the specified target instance. For more information, see Google Cloud +// Armor Overview +// +// - project: Project ID for this request. +// - targetInstance: Name of the TargetInstance resource to which the +// security policy should be set. The name should conform to RFC1035. +// - zone: Name of the zone scoping this request. +func (r *TargetInstancesService) SetSecurityPolicy(project string, zone string, targetInstance string, securitypolicyreference *SecurityPolicyReference) *TargetInstancesSetSecurityPolicyCall { + c := &TargetInstancesSetSecurityPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.targetInstance = targetInstance + c.securitypolicyreference = securitypolicyreference + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *TargetInstancesSetSecurityPolicyCall) RequestId(requestId string) *TargetInstancesSetSecurityPolicyCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TargetInstancesSetSecurityPolicyCall) Fields(s ...googleapi.Field) *TargetInstancesSetSecurityPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TargetInstancesSetSecurityPolicyCall) Context(ctx context.Context) *TargetInstancesSetSecurityPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TargetInstancesSetSecurityPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TargetInstancesSetSecurityPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.securitypolicyreference) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "zone": c.zone, + "targetInstance": c.targetInstance, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.targetInstances.setSecurityPolicy" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *TargetInstancesSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the Google Cloud Armor security policy for the specified target instance. For more information, see Google Cloud Armor Overview", + // "flatPath": "projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy", + // "httpMethod": "POST", + // "id": "compute.targetInstances.setSecurityPolicy", + // "parameterOrder": [ + // "project", + // "zone", + // "targetInstance" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "targetInstance": { + // "description": "Name of the TargetInstance resource to which the security policy should be set. The name should conform to RFC1035.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "zone": { + // "description": "Name of the zone scoping this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy", + // "request": { + // "$ref": "SecurityPolicyReference" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.targetInstances.testIamPermissions": type TargetInstancesTestIamPermissionsCall struct { @@ -228063,6 +231712,196 @@ func (c *TargetPoolsSetBackupCall) Do(opts ...googleapi.CallOption) (*Operation, } +// method id "compute.targetPools.setSecurityPolicy": + +type TargetPoolsSetSecurityPolicyCall struct { + s *Service + project string + region string + targetPool string + securitypolicyreference *SecurityPolicyReference + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetSecurityPolicy: Sets the Google Cloud Armor security policy for +// the specified target pool. For more information, see Google Cloud +// Armor Overview +// +// - project: Project ID for this request. +// - region: Name of the region scoping this request. +// - targetPool: Name of the TargetPool resource to which the security +// policy should be set. The name should conform to RFC1035. +func (r *TargetPoolsService) SetSecurityPolicy(project string, region string, targetPool string, securitypolicyreference *SecurityPolicyReference) *TargetPoolsSetSecurityPolicyCall { + c := &TargetPoolsSetSecurityPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.targetPool = targetPool + c.securitypolicyreference = securitypolicyreference + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *TargetPoolsSetSecurityPolicyCall) RequestId(requestId string) *TargetPoolsSetSecurityPolicyCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *TargetPoolsSetSecurityPolicyCall) Fields(s ...googleapi.Field) *TargetPoolsSetSecurityPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *TargetPoolsSetSecurityPolicyCall) Context(ctx context.Context) *TargetPoolsSetSecurityPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *TargetPoolsSetSecurityPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TargetPoolsSetSecurityPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.securitypolicyreference) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "targetPool": c.targetPool, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.targetPools.setSecurityPolicy" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *TargetPoolsSetSecurityPolicyCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the Google Cloud Armor security policy for the specified target pool. For more information, see Google Cloud Armor Overview", + // "flatPath": "projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy", + // "httpMethod": "POST", + // "id": "compute.targetPools.setSecurityPolicy", + // "parameterOrder": [ + // "project", + // "region", + // "targetPool" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "Name of the region scoping this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "targetPool": { + // "description": "Name of the TargetPool resource to which the security policy should be set. The name should conform to RFC1035.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy", + // "request": { + // "$ref": "SecurityPolicyReference" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.targetPools.testIamPermissions": type TargetPoolsTestIamPermissionsCall struct { diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index e98d67b40ae..acfe247db3a 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -550,6 +550,56 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "move": { + "description": "Moves the specified address resource.", + "flatPath": "projects/{project}/regions/{region}/addresses/{address}/move", + "httpMethod": "POST", + "id": "compute.addresses.move", + "parameterOrder": [ + "project", + "region", + "address" + ], + "parameters": { + "address": { + "description": "Name of the address resource to move.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Source project ID which the Address is moved from.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/addresses/{address}/move", + "request": { + "$ref": "RegionAddressesMoveRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "setLabels": { "description": "Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation.", "flatPath": "projects/{project}/regions/{region}/addresses/{resource}/setLabels", @@ -5008,6 +5058,48 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "move": { + "description": "Moves the specified address resource from one project to another project.", + "flatPath": "projects/{project}/global/addresses/{address}/move", + "httpMethod": "POST", + "id": "compute.globalAddresses.move", + "parameterOrder": [ + "project", + "address" + ], + "parameters": { + "address": { + "description": "Name of the address resource to move.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Source project ID which the Address is moved from.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/global/addresses/{address}/move", + "request": { + "$ref": "GlobalAddressesMoveRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "setLabels": { "description": "Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation.", "flatPath": "projects/{project}/global/addresses/{resource}/setLabels", @@ -36649,7 +36741,7 @@ } } }, - "revision": "20230307", + "revision": "20230322", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -37092,11 +37184,11 @@ "id": "AccessConfig", "properties": { "externalIpv6": { - "description": "The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.", + "description": "Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.", "type": "string" }, "externalIpv6PrefixLength": { - "description": "The prefix length of the external IPv6 range.", + "description": "Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range.", "format": "int32", "type": "integer" }, @@ -37106,11 +37198,11 @@ "type": "string" }, "name": { - "description": "The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.", + "description": "The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. In ipv6AccessConfigs, the recommend name is External IPv6.", "type": "string" }, "natIP": { - "description": "An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", + "description": "Applies to accessConfigs (IPv4) only. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", "type": "string" }, "networkTier": { @@ -37138,8 +37230,7 @@ "type": "boolean" }, "type": { - "default": "ONE_TO_ONE_NAT", - "description": "The type of configuration. The default and only option is ONE_TO_ONE_NAT.", + "description": "The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.", "enum": [ "DIRECT_IPV6", "ONE_TO_ONE_NAT" @@ -44641,6 +44732,20 @@ }, "type": "object" }, + "GlobalAddressesMoveRequest": { + "id": "GlobalAddressesMoveRequest", + "properties": { + "description": { + "description": "An optional destination address description if intended to be different from the source.", + "type": "string" + }, + "destinationAddress": { + "description": "The URL of the destination address to move to. This can be a full or partial URL. For example, the following are all valid URLs to a address: - https://www.googleapis.com/compute/v1/projects/project /global/addresses/address - projects/project/global/addresses/address Note that destination project must be different from the source project. So /global/addresses/address is not valid partial url.", + "type": "string" + } + }, + "type": "object" + }, "GlobalNetworkEndpointGroupsAttachEndpointsRequest": { "id": "GlobalNetworkEndpointGroupsAttachEndpointsRequest", "properties": { @@ -44798,7 +44903,7 @@ "id": "GuestOsFeature", "properties": { "type": { - "description": "The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more information, see Enabling guest operating system features.", + "description": "The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more information, see Enabling guest operating system features.", "enum": [ "FEATURE_TYPE_UNSPECIFIED", "GVNIC", @@ -45695,7 +45800,7 @@ "type": "string" }, "healthState": { - "description": "Health state of the instance.", + "description": "Health state of the IPv4 address of the instance.", "enum": [ "HEALTHY", "UNHEALTHY" @@ -47242,7 +47347,7 @@ "TERMINATED" ], "enumDescriptions": [ - "The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -48547,7 +48652,7 @@ "id": "InstanceGroupManagersDeleteInstancesRequest", "properties": { "instances": { - "description": "The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].", + "description": "The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be deleted only by name. One cannot specify both URLs and names in a single request.", "items": { "type": "string" }, @@ -50159,7 +50264,7 @@ "TERMINATED" ], "enumDescriptions": [ - "The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -50519,7 +50624,7 @@ "type": "object" }, "Interconnect": { - "description": "Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the GCP network and your on-premises network. For more information, read the Dedicated Interconnect Overview.", + "description": "Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the Google Cloud network and your on-premises network. For more information, read the Dedicated Interconnect Overview.", "id": "Interconnect", "properties": { "adminEnabled": { @@ -50813,7 +50918,7 @@ "type": "string" }, "ipsecInternalAddresses": { - "description": "A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the VLAN attachment that has the encryption option as IPSEC. The addresses must be regional internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the attachment is configured to use a regional internal IP address, then the VPN gateway's IP address is allocated from the IP address range specified here. For example, if the HA VPN gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN attachment. If this field is not specified when creating the VLAN attachment, then later on when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is allocated from the regional external IP address pool. Not currently available publicly. ", + "description": "A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the VLAN attachment that has the encryption option as IPSEC. The addresses must be regional internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the attachment is configured to use a regional internal IP address, then the VPN gateway's IP address is allocated from the IP address range specified here. For example, if the HA VPN gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN attachment. If this field is not specified when creating the VLAN attachment, then later on when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is allocated from the regional external IP address pool.", "items": { "type": "string" }, @@ -53200,7 +53305,7 @@ "TERMINATED" ], "enumDescriptions": [ - "The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -53475,7 +53580,7 @@ "type": "string" }, "gatewayIPv4": { - "description": "[Output Only] The gateway address for default routing out of the network, selected by GCP.", + "description": "[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.", "pattern": "[0-9]{1,3}(?:\\.[0-9]{1,3}){3}", "type": "string" }, @@ -55229,7 +55334,7 @@ "type": "integer" }, "stackType": { - "description": "The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. This field can be both set at instance creation and update network interface operations.", + "description": "The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations.", "enum": [ "IPV4_IPV6", "IPV4_ONLY" @@ -60295,6 +60400,20 @@ }, "type": "object" }, + "RegionAddressesMoveRequest": { + "id": "RegionAddressesMoveRequest", + "properties": { + "description": { + "description": "An optional destination address description if intended to be different from the source.", + "type": "string" + }, + "destinationAddress": { + "description": "The URL of the destination address to move to. This can be a full or partial URL. For example, the following are all valid URLs to a address: - https://www.googleapis.com/compute/v1/projects/project/regions/region /addresses/address - projects/project/regions/region/addresses/address Note that destination project must be different from the source project. So /regions/region/addresses/address is not valid partial url.", + "type": "string" + } + }, + "type": "object" + }, "RegionAutoscalerList": { "description": "Contains a list of autoscalers.", "id": "RegionAutoscalerList", @@ -65399,6 +65518,13 @@ "" ], "type": "string" + }, + "userIpRequestHeaders": { + "description": "An optional list of case-insensitive request header names to use for resolving the callers client IP address.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -66100,7 +66226,7 @@ "type": "object" }, "ServiceAttachment": { - "description": "Represents a ServiceAttachment resource. A service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service. next tag = 20", + "description": "Represents a ServiceAttachment resource. A service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service.", "id": "ServiceAttachment", "properties": { "connectedEndpoints": { @@ -69910,7 +70036,7 @@ "type": "string" }, "serverTlsPolicy": { - "description": "Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted. Note: This field currently has no impact.", + "description": "Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are accepted with INTERNAL_SELF_MANAGED and which with EXTERNAL, EXTERNAL_MANAGED loadBalancingScheme consult ServerTlsPolicy documentation. If left blank, communications are not encrypted.", "type": "string" }, "sslCertificates": { diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index e5d74efd8ef..e301bad20da 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -1979,32 +1979,35 @@ func (s *AcceleratorTypesScopedListWarningData) MarshalJSON() ([]byte, error) { // AccessConfig: An access configuration attached to an instance's // network interface. Only one access config per instance is supported. type AccessConfig struct { - // ExternalIpv6: The first IPv6 address of the external IPv6 range - // associated with this instance, prefix length is stored in - // externalIpv6PrefixLength in ipv6AccessConfig. To use a static - // external IP address, it must be unused and in the same region as the - // instance's zone. If not specified, Google Cloud will automatically - // assign an external IPv6 address from the instance's subnetwork. + // ExternalIpv6: Applies to ipv6AccessConfigs only. The first IPv6 + // address of the external IPv6 range associated with this instance, + // prefix length is stored in externalIpv6PrefixLength in + // ipv6AccessConfig. To use a static external IP address, it must be + // unused and in the same region as the instance's zone. If not + // specified, Google Cloud will automatically assign an external IPv6 + // address from the instance's subnetwork. ExternalIpv6 string `json:"externalIpv6,omitempty"` - // ExternalIpv6PrefixLength: The prefix length of the external IPv6 - // range. + // ExternalIpv6PrefixLength: Applies to ipv6AccessConfigs only. The + // prefix length of the external IPv6 range. ExternalIpv6PrefixLength int64 `json:"externalIpv6PrefixLength,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#accessConfig // for access configs. Kind string `json:"kind,omitempty"` - // Name: The name of this access configuration. The default and - // recommended name is External NAT, but you can use any arbitrary - // string, such as My external IP or Network Access. + // Name: The name of this access configuration. In accessConfigs (IPv4), + // the default and recommended name is External NAT, but you can use any + // arbitrary string, such as My external IP or Network Access. In + // ipv6AccessConfigs, the recommend name is External IPv6. Name string `json:"name,omitempty"` - // NatIP: An external IP address associated with this instance. Specify - // an unused static external IP address available to the project or - // leave this field undefined to use an IP from a shared ephemeral IP - // address pool. If you specify a static external IP address, it must - // live in the same region as the zone of the instance. + // NatIP: Applies to accessConfigs (IPv4) only. An external IP address + // associated with this instance. Specify an unused static external IP + // address available to the project or leave this field undefined to use + // an IP from a shared ephemeral IP address pool. If you specify a + // static external IP address, it must live in the same region as the + // zone of the instance. NatIP string `json:"natIP,omitempty"` // NetworkTier: This signifies the networking tier used for configuring @@ -2040,12 +2043,13 @@ type AccessConfig struct { // associated. SetPublicPtr bool `json:"setPublicPtr,omitempty"` - // Type: The type of configuration. The default and only option is - // ONE_TO_ONE_NAT. + // Type: The type of configuration. In accessConfigs (IPv4), the default + // and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default + // and only option is DIRECT_IPV6. // // Possible values: // "DIRECT_IPV6" - // "ONE_TO_ONE_NAT" (default) + // "ONE_TO_ONE_NAT" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "ExternalIpv6") to @@ -14202,6 +14206,43 @@ func (s *GRPCHealthCheck) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type GlobalAddressesMoveRequest struct { + // Description: An optional destination address description if intended + // to be different from the source. + Description string `json:"description,omitempty"` + + // DestinationAddress: The URL of the destination address to move to. + // This can be a full or partial URL. For example, the following are all + // valid URLs to a address: - + // https://www.googleapis.com/compute/v1/projects/project + // /global/addresses/address - projects/project/global/addresses/address + // Note that destination project must be different from the source + // project. So /global/addresses/address is not valid partial url. + DestinationAddress string `json:"destinationAddress,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GlobalAddressesMoveRequest) MarshalJSON() ([]byte, error) { + type NoMethod GlobalAddressesMoveRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type GlobalNetworkEndpointGroupsAttachEndpointsRequest struct { // NetworkEndpoints: The list of network endpoints to be attached. NetworkEndpoints []*NetworkEndpoint `json:"networkEndpoints,omitempty"` @@ -14491,8 +14532,8 @@ type GuestOsFeature struct { // commas to separate values. Set to one or more of the following // values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - // UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - - // SEV_SNP_CAPABLE - TDX_CAPABLE For more information, see Enabling - // guest operating system features. + // SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more + // information, see Enabling guest operating system features. // // Possible values: // "FEATURE_TYPE_UNSPECIFIED" @@ -15921,7 +15962,7 @@ type HealthStatus struct { // instance. ForwardingRuleIp string `json:"forwardingRuleIp,omitempty"` - // HealthState: Health state of the instance. + // HealthState: Health state of the IPv4 address of the instance. // // Possible values: // "HEALTHY" @@ -18402,9 +18443,9 @@ type Instance struct { // cycle. // // Possible values: - // "DEPROVISIONING" - The Nanny is halted and we are performing tear - // down tasks like network deprogramming, releasing quota, IP, tearing - // down disks etc. + // "DEPROVISIONING" - The instance is halted and we are performing + // tear down tasks like network deprogramming, releasing quota, IP, + // tearing down disks etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. @@ -20479,7 +20520,9 @@ func (s *InstanceGroupManagersCreateInstancesRequest) MarshalJSON() ([]byte, err type InstanceGroupManagersDeleteInstancesRequest struct { // Instances: The URLs of one or more instances to delete. This can be a // full URL or a partial URL, such as - // zones/[ZONE]/instances/[INSTANCE_NAME]. + // zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have + // URL and can be deleted only by name. One cannot specify both URLs and + // names in a single request. Instances []string `json:"instances,omitempty"` // SkipInstancesOnValidationError: Specifies whether the request should @@ -23168,9 +23211,9 @@ type InstanceWithNamedPorts struct { // Status: [Output Only] The status of the instance. // // Possible values: - // "DEPROVISIONING" - The Nanny is halted and we are performing tear - // down tasks like network deprogramming, releasing quota, IP, tearing - // down disks etc. + // "DEPROVISIONING" - The instance is halted and we are performing + // tear down tasks like network deprogramming, releasing quota, IP, + // tearing down disks etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. @@ -23838,9 +23881,9 @@ func (s *Int64RangeMatch) MarshalJSON() ([]byte, error) { } // Interconnect: Represents an Interconnect resource. An Interconnect -// resource is a dedicated connection between the GCP network and your -// on-premises network. For more information, read the Dedicated -// Interconnect Overview. +// resource is a dedicated connection between the Google Cloud network +// and your on-premises network. For more information, read the +// Dedicated Interconnect Overview. type Interconnect struct { // AdminEnabled: Administrative status of the interconnect. When this is // set to true, the Interconnect is functional and can carry traffic. @@ -24187,8 +24230,7 @@ type InterconnectAttachment struct { // attachment. If this field is not specified when creating the VLAN // attachment, then later on when creating an HA VPN gateway on this // VLAN attachment, the HA VPN gateway's IP address is allocated from - // the regional external IP address pool. Not currently available - // publicly. + // the regional external IP address pool. IpsecInternalAddresses []string `json:"ipsecInternalAddresses,omitempty"` // Kind: [Output Only] Type of the resource. Always @@ -27855,9 +27897,9 @@ type ManagedInstance struct { // is empty when the instance does not exist. // // Possible values: - // "DEPROVISIONING" - The Nanny is halted and we are performing tear - // down tasks like network deprogramming, releasing quota, IP, tearing - // down disks etc. + // "DEPROVISIONING" - The instance is halted and we are performing + // tear down tasks like network deprogramming, releasing quota, IP, + // tearing down disks etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. @@ -28396,7 +28438,7 @@ type Network struct { FirewallPolicy string `json:"firewallPolicy,omitempty"` // GatewayIPv4: [Output Only] The gateway address for default routing - // out of the network, selected by GCP. + // out of the network, selected by Google Cloud. GatewayIPv4 string `json:"gatewayIPv4,omitempty"` // Id: [Output Only] The unique identifier for the resource. This @@ -31116,10 +31158,11 @@ type NetworkInterface struct { // number. It'll be empty if not specified by the users. QueueCount int64 `json:"queueCount,omitempty"` - // StackType: The stack type for this network interface to identify - // whether the IPv6 feature is enabled or not. If not specified, - // IPV4_ONLY will be used. This field can be both set at instance - // creation and update network interface operations. + // StackType: The stack type for this network interface. To assign only + // IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 + // addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This + // field can be both set at instance creation and update network + // interface operations. // // Possible values: // "IPV4_IPV6" - The network interface can have both IPv4 and IPv6 @@ -38785,6 +38828,44 @@ func (s *Region) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type RegionAddressesMoveRequest struct { + // Description: An optional destination address description if intended + // to be different from the source. + Description string `json:"description,omitempty"` + + // DestinationAddress: The URL of the destination address to move to. + // This can be a full or partial URL. For example, the following are all + // valid URLs to a address: - + // https://www.googleapis.com/compute/v1/projects/project/regions/region + // /addresses/address - + // projects/project/regions/region/addresses/address Note that + // destination project must be different from the source project. So + // /regions/region/addresses/address is not valid partial url. + DestinationAddress string `json:"destinationAddress,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Description") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RegionAddressesMoveRequest) MarshalJSON() ([]byte, error) { + type NoMethod RegionAddressesMoveRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RegionAutoscalerList: Contains a list of autoscalers. type RegionAutoscalerList struct { // Id: [Output Only] Unique identifier for the resource; defined by the @@ -46630,6 +46711,10 @@ type SecurityPolicyAdvancedOptionsConfig struct { // "VERBOSE" LogLevel string `json:"logLevel,omitempty"` + // UserIpRequestHeaders: An optional list of case-insensitive request + // header names to use for resolving the callers client IP address. + UserIpRequestHeaders []string `json:"userIpRequestHeaders,omitempty"` + // ForceSendFields is a list of field names (e.g. "JsonCustomConfig") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -47851,7 +47936,7 @@ func (s *ServiceAccount) MarshalJSON() ([]byte, error) { // attachment represents a service that a producer has exposed. It // encapsulates the load balancer which fronts the service runs and a // list of NAT IP ranges that the producers uses to represent the -// consumers connecting to the service. next tag = 20 +// consumers connecting to the service. type ServiceAttachment struct { // ConnectedEndpoints: [Output Only] An array of connections for all the // consumers connected to this service attachment. @@ -53823,9 +53908,11 @@ type TargetHttpsProxy struct { // networksecurity.ServerTlsPolicy resource that describes how the proxy // should authenticate inbound traffic. serverTlsPolicy only applies to // a global TargetHttpsProxy attached to globalForwardingRules with the - // loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, - // communications are not encrypted. Note: This field currently has no - // impact. + // loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or + // EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are + // accepted with INTERNAL_SELF_MANAGED and which with EXTERNAL, + // EXTERNAL_MANAGED loadBalancingScheme consult ServerTlsPolicy + // documentation. If left blank, communications are not encrypted. ServerTlsPolicy string `json:"serverTlsPolicy,omitempty"` // SslCertificates: URLs to SslCertificate resources that are used to @@ -63614,6 +63701,194 @@ func (c *AddressesListCall) Pages(ctx context.Context, f func(*AddressList) erro } } +// method id "compute.addresses.move": + +type AddressesMoveCall struct { + s *Service + project string + region string + address string + regionaddressesmoverequest *RegionAddressesMoveRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Move: Moves the specified address resource. +// +// - address: Name of the address resource to move. +// - project: Source project ID which the Address is moved from. +// - region: Name of the region for this request. +func (r *AddressesService) Move(project string, region string, address string, regionaddressesmoverequest *RegionAddressesMoveRequest) *AddressesMoveCall { + c := &AddressesMoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.address = address + c.regionaddressesmoverequest = regionaddressesmoverequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *AddressesMoveCall) RequestId(requestId string) *AddressesMoveCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AddressesMoveCall) Fields(s ...googleapi.Field) *AddressesMoveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AddressesMoveCall) Context(ctx context.Context) *AddressesMoveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AddressesMoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AddressesMoveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.regionaddressesmoverequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/addresses/{address}/move") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "address": c.address, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.addresses.move" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *AddressesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Moves the specified address resource.", + // "flatPath": "projects/{project}/regions/{region}/addresses/{address}/move", + // "httpMethod": "POST", + // "id": "compute.addresses.move", + // "parameterOrder": [ + // "project", + // "region", + // "address" + // ], + // "parameters": { + // "address": { + // "description": "Name of the address resource to move.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Source project ID which the Address is moved from.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "Name of the region for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/addresses/{address}/move", + // "request": { + // "$ref": "RegionAddressesMoveRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.addresses.setLabels": type AddressesSetLabelsCall struct { @@ -82889,6 +83164,183 @@ func (c *GlobalAddressesListCall) Pages(ctx context.Context, f func(*AddressList } } +// method id "compute.globalAddresses.move": + +type GlobalAddressesMoveCall struct { + s *Service + project string + address string + globaladdressesmoverequest *GlobalAddressesMoveRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Move: Moves the specified address resource from one project to +// another project. +// +// - address: Name of the address resource to move. +// - project: Source project ID which the Address is moved from. +func (r *GlobalAddressesService) Move(project string, address string, globaladdressesmoverequest *GlobalAddressesMoveRequest) *GlobalAddressesMoveCall { + c := &GlobalAddressesMoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.address = address + c.globaladdressesmoverequest = globaladdressesmoverequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *GlobalAddressesMoveCall) RequestId(requestId string) *GlobalAddressesMoveCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *GlobalAddressesMoveCall) Fields(s ...googleapi.Field) *GlobalAddressesMoveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *GlobalAddressesMoveCall) Context(ctx context.Context) *GlobalAddressesMoveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *GlobalAddressesMoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *GlobalAddressesMoveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.globaladdressesmoverequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/global/addresses/{address}/move") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "address": c.address, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.globalAddresses.move" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *GlobalAddressesMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Moves the specified address resource from one project to another project.", + // "flatPath": "projects/{project}/global/addresses/{address}/move", + // "httpMethod": "POST", + // "id": "compute.globalAddresses.move", + // "parameterOrder": [ + // "project", + // "address" + // ], + // "parameters": { + // "address": { + // "description": "Name of the address resource to move.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Source project ID which the Address is moved from.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/global/addresses/{address}/move", + // "request": { + // "$ref": "GlobalAddressesMoveRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.globalAddresses.setLabels": type GlobalAddressesSetLabelsCall struct { diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 64cae4b8183..81059f0deed 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -21237,205 +21237,6 @@ } } }, - "regionInstanceTemplates": { - "methods": { - "delete": { - "description": "Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.", - "flatPath": "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}", - "httpMethod": "DELETE", - "id": "compute.regionInstanceTemplates.delete", - "parameterOrder": [ - "project", - "region", - "instanceTemplate" - ], - "parameters": { - "instanceTemplate": { - "description": "The name of the instance template to delete.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - "required": true, - "type": "string" - }, - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "region": { - "description": "The name of the region for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - }, - "requestId": { - "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - } - }, - "path": "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "description": "Returns the specified instance template.", - "flatPath": "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}", - "httpMethod": "GET", - "id": "compute.regionInstanceTemplates.get", - "parameterOrder": [ - "project", - "region", - "instanceTemplate" - ], - "parameters": { - "instanceTemplate": { - "description": "The name of the instance template.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - "required": true, - "type": "string" - }, - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "region": { - "description": "The name of the region for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - } - }, - "path": "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}", - "response": { - "$ref": "InstanceTemplate" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "description": "Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.", - "flatPath": "projects/{project}/regions/{region}/instanceTemplates", - "httpMethod": "POST", - "id": "compute.regionInstanceTemplates.insert", - "parameterOrder": [ - "project", - "region" - ], - "parameters": { - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "region": { - "description": "The name of the region for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - }, - "requestId": { - "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", - "location": "query", - "type": "string" - } - }, - "path": "projects/{project}/regions/{region}/instanceTemplates", - "request": { - "$ref": "InstanceTemplate" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "description": "Retrieves a list of instance templates that are contained within the specified project and region.", - "flatPath": "projects/{project}/regions/{region}/instanceTemplates", - "httpMethod": "GET", - "id": "compute.regionInstanceTemplates.list", - "parameterOrder": [ - "project", - "region" - ], - "parameters": { - "filter": { - "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.", - "location": "query", - "type": "string" - }, - "maxResults": { - "default": "500", - "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", - "format": "uint32", - "location": "query", - "minimum": "0", - "type": "integer" - }, - "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", - "location": "query", - "type": "string" - }, - "pageToken": { - "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", - "location": "query", - "type": "string" - }, - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "region": { - "description": "The name of the regions for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - }, - "returnPartialSuccess": { - "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", - "location": "query", - "type": "boolean" - } - }, - "path": "projects/{project}/regions/{region}/instanceTemplates", - "response": { - "$ref": "InstanceTemplateList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, "regionInstances": { "methods": { "bulkInsert": { @@ -33173,7 +32974,7 @@ } } }, - "revision": "20230307", + "revision": "20230322", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -33593,11 +33394,11 @@ "id": "AccessConfig", "properties": { "externalIpv6": { - "description": "The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.", + "description": "Applies to ipv6AccessConfigs only. The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.", "type": "string" }, "externalIpv6PrefixLength": { - "description": "The prefix length of the external IPv6 range.", + "description": "Applies to ipv6AccessConfigs only. The prefix length of the external IPv6 range.", "format": "int32", "type": "integer" }, @@ -33607,11 +33408,11 @@ "type": "string" }, "name": { - "description": "The name of this access configuration. The default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access.", + "description": "The name of this access configuration. In accessConfigs (IPv4), the default and recommended name is External NAT, but you can use any arbitrary string, such as My external IP or Network Access. In ipv6AccessConfigs, the recommend name is External IPv6.", "type": "string" }, "natIP": { - "description": "An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", + "description": "Applies to accessConfigs (IPv4) only. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", "type": "string" }, "networkTier": { @@ -33639,8 +33440,7 @@ "type": "boolean" }, "type": { - "default": "ONE_TO_ONE_NAT", - "description": "The type of configuration. The default and only option is ONE_TO_ONE_NAT.", + "description": "The type of configuration. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.", "enum": [ "DIRECT_IPV6", "ONE_TO_ONE_NAT" @@ -40032,6 +39832,20 @@ "description": "Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.", "id": "FirewallPolicyRuleMatcher", "properties": { + "destAddressGroups": { + "description": "Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10.", + "items": { + "type": "string" + }, + "type": "array" + }, + "destFqdns": { + "description": "Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100.", + "items": { + "type": "string" + }, + "type": "array" + }, "destIpRanges": { "description": "CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.", "items": { @@ -40039,6 +39853,20 @@ }, "type": "array" }, + "destRegionCodes": { + "description": "Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex.\"US\" Maximum number of dest region codes allowed is 5000.", + "items": { + "type": "string" + }, + "type": "array" + }, + "destThreatIntelligences": { + "description": "Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic destination.", + "items": { + "type": "string" + }, + "type": "array" + }, "layer4Configs": { "description": "Pairs of IP protocols and ports that the rule should match.", "items": { @@ -40046,6 +39874,20 @@ }, "type": "array" }, + "srcAddressGroups": { + "description": "Address groups which should be matched against the traffic source. Maximum number of source address groups is 10.", + "items": { + "type": "string" + }, + "type": "array" + }, + "srcFqdns": { + "description": "Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum number of source fqdn allowed is 100.", + "items": { + "type": "string" + }, + "type": "array" + }, "srcIpRanges": { "description": "CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.", "items": { @@ -40053,12 +39895,26 @@ }, "type": "array" }, + "srcRegionCodes": { + "description": "Region codes whose IP addresses will be used to match for source of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex.\"US\" Maximum number of source region codes allowed is 5000.", + "items": { + "type": "string" + }, + "type": "array" + }, "srcSecureTags": { "description": "List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.", "items": { "$ref": "FirewallPolicyRuleSecureTag" }, "type": "array" + }, + "srcThreatIntelligences": { + "description": "Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic source.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -40924,7 +40780,7 @@ "id": "GuestOsFeature", "properties": { "type": { - "description": "The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more information, see Enabling guest operating system features.", + "description": "The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more information, see Enabling guest operating system features.", "enum": [ "FEATURE_TYPE_UNSPECIFIED", "GVNIC", @@ -41809,7 +41665,7 @@ "type": "string" }, "healthState": { - "description": "Health state of the instance.", + "description": "Health state of the IPv4 address of the instance.", "enum": [ "HEALTHY", "UNHEALTHY" @@ -43270,7 +43126,7 @@ "TERMINATED" ], "enumDescriptions": [ - "The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -44496,7 +44352,7 @@ "id": "InstanceGroupManagersDeleteInstancesRequest", "properties": { "instances": { - "description": "The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].", + "description": "The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be deleted only by name. One cannot specify both URLs and names in a single request.", "items": { "type": "string" }, @@ -46038,7 +45894,7 @@ "TERMINATED" ], "enumDescriptions": [ - "The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -46355,7 +46211,7 @@ "type": "object" }, "Interconnect": { - "description": "Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the GCP network and your on-premises network. For more information, read the Dedicated Interconnect Overview.", + "description": "Represents an Interconnect resource. An Interconnect resource is a dedicated connection between the Google Cloud network and your on-premises network. For more information, read the Dedicated Interconnect Overview.", "id": "Interconnect", "properties": { "adminEnabled": { @@ -46637,7 +46493,7 @@ "type": "string" }, "ipsecInternalAddresses": { - "description": "A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the VLAN attachment that has the encryption option as IPSEC. The addresses must be regional internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the attachment is configured to use a regional internal IP address, then the VPN gateway's IP address is allocated from the IP address range specified here. For example, if the HA VPN gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN attachment. If this field is not specified when creating the VLAN attachment, then later on when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is allocated from the regional external IP address pool. Not currently available publicly. ", + "description": "A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the VLAN attachment that has the encryption option as IPSEC. The addresses must be regional internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the attachment is configured to use a regional internal IP address, then the VPN gateway's IP address is allocated from the IP address range specified here. For example, if the HA VPN gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN attachment. If this field is not specified when creating the VLAN attachment, then later on when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is allocated from the regional external IP address pool.", "items": { "type": "string" }, @@ -49023,7 +48879,7 @@ "TERMINATED" ], "enumDescriptions": [ - "The Nanny is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", + "The instance is halted and we are performing tear down tasks like network deprogramming, releasing quota, IP, tearing down disks etc.", "Resources are being allocated for the instance.", "The instance is in repair.", "The instance is running.", @@ -49288,7 +49144,7 @@ "type": "string" }, "gatewayIPv4": { - "description": "[Output Only] The gateway address for default routing out of the network, selected by GCP.", + "description": "[Output Only] The gateway address for default routing out of the network, selected by Google Cloud.", "pattern": "[0-9]{1,3}(?:\\.[0-9]{1,3}){3}", "type": "string" }, @@ -50971,7 +50827,7 @@ "type": "integer" }, "stackType": { - "description": "The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. This field can be both set at instance creation and update network interface operations.", + "description": "The stack type for this network interface. To assign only IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This field can be both set at instance creation and update network interface operations.", "enum": [ "IPV4_IPV6", "IPV4_ONLY" @@ -61393,7 +61249,7 @@ "type": "object" }, "ServiceAttachment": { - "description": "Represents a ServiceAttachment resource. A service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service. next tag = 20", + "description": "Represents a ServiceAttachment resource. A service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service.", "id": "ServiceAttachment", "properties": { "connectedEndpoints": { @@ -64946,7 +64802,7 @@ "type": "string" }, "serverTlsPolicy": { - "description": "Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted. Note: This field currently has no impact.", + "description": "Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are accepted with INTERNAL_SELF_MANAGED and which with EXTERNAL, EXTERNAL_MANAGED loadBalancingScheme consult ServerTlsPolicy documentation. If left blank, communications are not encrypted.", "type": "string" }, "sslCertificates": { diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 71c6ef413ea..f434f3ca2bb 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -199,7 +199,6 @@ func New(client *http.Client) (*Service, error) { s.RegionHealthChecks = NewRegionHealthChecksService(s) s.RegionInstanceGroupManagers = NewRegionInstanceGroupManagersService(s) s.RegionInstanceGroups = NewRegionInstanceGroupsService(s) - s.RegionInstanceTemplates = NewRegionInstanceTemplatesService(s) s.RegionInstances = NewRegionInstancesService(s) s.RegionNetworkEndpointGroups = NewRegionNetworkEndpointGroupsService(s) s.RegionNetworkFirewallPolicies = NewRegionNetworkFirewallPoliciesService(s) @@ -352,8 +351,6 @@ type Service struct { RegionInstanceGroups *RegionInstanceGroupsService - RegionInstanceTemplates *RegionInstanceTemplatesService - RegionInstances *RegionInstancesService RegionNetworkEndpointGroups *RegionNetworkEndpointGroupsService @@ -920,15 +917,6 @@ type RegionInstanceGroupsService struct { s *Service } -func NewRegionInstanceTemplatesService(s *Service) *RegionInstanceTemplatesService { - rs := &RegionInstanceTemplatesService{s: s} - return rs -} - -type RegionInstanceTemplatesService struct { - s *Service -} - func NewRegionInstancesService(s *Service) *RegionInstancesService { rs := &RegionInstancesService{s: s} return rs @@ -1918,32 +1906,35 @@ func (s *AcceleratorTypesScopedListWarningData) MarshalJSON() ([]byte, error) { // AccessConfig: An access configuration attached to an instance's // network interface. Only one access config per instance is supported. type AccessConfig struct { - // ExternalIpv6: The first IPv6 address of the external IPv6 range - // associated with this instance, prefix length is stored in - // externalIpv6PrefixLength in ipv6AccessConfig. To use a static - // external IP address, it must be unused and in the same region as the - // instance's zone. If not specified, Google Cloud will automatically - // assign an external IPv6 address from the instance's subnetwork. + // ExternalIpv6: Applies to ipv6AccessConfigs only. The first IPv6 + // address of the external IPv6 range associated with this instance, + // prefix length is stored in externalIpv6PrefixLength in + // ipv6AccessConfig. To use a static external IP address, it must be + // unused and in the same region as the instance's zone. If not + // specified, Google Cloud will automatically assign an external IPv6 + // address from the instance's subnetwork. ExternalIpv6 string `json:"externalIpv6,omitempty"` - // ExternalIpv6PrefixLength: The prefix length of the external IPv6 - // range. + // ExternalIpv6PrefixLength: Applies to ipv6AccessConfigs only. The + // prefix length of the external IPv6 range. ExternalIpv6PrefixLength int64 `json:"externalIpv6PrefixLength,omitempty"` // Kind: [Output Only] Type of the resource. Always compute#accessConfig // for access configs. Kind string `json:"kind,omitempty"` - // Name: The name of this access configuration. The default and - // recommended name is External NAT, but you can use any arbitrary - // string, such as My external IP or Network Access. + // Name: The name of this access configuration. In accessConfigs (IPv4), + // the default and recommended name is External NAT, but you can use any + // arbitrary string, such as My external IP or Network Access. In + // ipv6AccessConfigs, the recommend name is External IPv6. Name string `json:"name,omitempty"` - // NatIP: An external IP address associated with this instance. Specify - // an unused static external IP address available to the project or - // leave this field undefined to use an IP from a shared ephemeral IP - // address pool. If you specify a static external IP address, it must - // live in the same region as the zone of the instance. + // NatIP: Applies to accessConfigs (IPv4) only. An external IP address + // associated with this instance. Specify an unused static external IP + // address available to the project or leave this field undefined to use + // an IP from a shared ephemeral IP address pool. If you specify a + // static external IP address, it must live in the same region as the + // zone of the instance. NatIP string `json:"natIP,omitempty"` // NetworkTier: This signifies the networking tier used for configuring @@ -1979,12 +1970,13 @@ type AccessConfig struct { // associated. SetPublicPtr bool `json:"setPublicPtr,omitempty"` - // Type: The type of configuration. The default and only option is - // ONE_TO_ONE_NAT. + // Type: The type of configuration. In accessConfigs (IPv4), the default + // and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default + // and only option is DIRECT_IPV6. // // Possible values: // "DIRECT_IPV6" - // "ONE_TO_ONE_NAT" (default) + // "ONE_TO_ONE_NAT" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "ExternalIpv6") to @@ -12304,38 +12296,77 @@ func (s *FirewallPolicyRule) MarshalJSON() ([]byte, error) { // FirewallPolicyRuleMatcher: Represents a match condition that incoming // traffic is evaluated against. Exactly one field must be specified. type FirewallPolicyRuleMatcher struct { + // DestAddressGroups: Address groups which should be matched against the + // traffic destination. Maximum number of destination address groups is + // 10. + DestAddressGroups []string `json:"destAddressGroups,omitempty"` + + // DestFqdns: Fully Qualified Domain Name (FQDN) which should be matched + // against traffic destination. Maximum number of destination fqdn + // allowed is 100. + DestFqdns []string `json:"destFqdns,omitempty"` + // DestIpRanges: CIDR IP address range. Maximum number of destination // CIDR IP ranges allowed is 5000. DestIpRanges []string `json:"destIpRanges,omitempty"` + // DestRegionCodes: Region codes whose IP addresses will be used to + // match for destination of traffic. Should be specified as 2 letter + // country code defined as per ISO 3166 alpha-2 country codes. ex."US" + // Maximum number of dest region codes allowed is 5000. + DestRegionCodes []string `json:"destRegionCodes,omitempty"` + + // DestThreatIntelligences: Names of Network Threat Intelligence lists. + // The IPs in these lists will be matched against traffic destination. + DestThreatIntelligences []string `json:"destThreatIntelligences,omitempty"` + // Layer4Configs: Pairs of IP protocols and ports that the rule should // match. Layer4Configs []*FirewallPolicyRuleMatcherLayer4Config `json:"layer4Configs,omitempty"` + // SrcAddressGroups: Address groups which should be matched against the + // traffic source. Maximum number of source address groups is 10. + SrcAddressGroups []string `json:"srcAddressGroups,omitempty"` + + // SrcFqdns: Fully Qualified Domain Name (FQDN) which should be matched + // against traffic source. Maximum number of source fqdn allowed is 100. + SrcFqdns []string `json:"srcFqdns,omitempty"` + // SrcIpRanges: CIDR IP address range. Maximum number of source CIDR IP // ranges allowed is 5000. SrcIpRanges []string `json:"srcIpRanges,omitempty"` + // SrcRegionCodes: Region codes whose IP addresses will be used to match + // for source of traffic. Should be specified as 2 letter country code + // defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number + // of source region codes allowed is 5000. + SrcRegionCodes []string `json:"srcRegionCodes,omitempty"` + // SrcSecureTags: List of secure tag values, which should be matched at // the source of the traffic. For INGRESS rule, if all the srcSecureTag // are INEFFECTIVE, and there is no srcIpRange, this rule will be // ignored. Maximum number of source tag values allowed is 256. SrcSecureTags []*FirewallPolicyRuleSecureTag `json:"srcSecureTags,omitempty"` - // ForceSendFields is a list of field names (e.g. "DestIpRanges") to - // unconditionally include in API requests. By default, fields with + // SrcThreatIntelligences: Names of Network Threat Intelligence lists. + // The IPs in these lists will be matched against traffic source. + SrcThreatIntelligences []string `json:"srcThreatIntelligences,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestAddressGroups") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DestIpRanges") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DestAddressGroups") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -13801,8 +13832,8 @@ type GuestOsFeature struct { // commas to separate values. Set to one or more of the following // values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - // UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - - // SEV_SNP_CAPABLE - TDX_CAPABLE For more information, see Enabling - // guest operating system features. + // SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE - TDX_CAPABLE For more + // information, see Enabling guest operating system features. // // Possible values: // "FEATURE_TYPE_UNSPECIFIED" @@ -15211,7 +15242,7 @@ type HealthStatus struct { // instance. ForwardingRuleIp string `json:"forwardingRuleIp,omitempty"` - // HealthState: Health state of the instance. + // HealthState: Health state of the IPv4 address of the instance. // // Possible values: // "HEALTHY" @@ -17522,9 +17553,9 @@ type Instance struct { // cycle. // // Possible values: - // "DEPROVISIONING" - The Nanny is halted and we are performing tear - // down tasks like network deprogramming, releasing quota, IP, tearing - // down disks etc. + // "DEPROVISIONING" - The instance is halted and we are performing + // tear down tasks like network deprogramming, releasing quota, IP, + // tearing down disks etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. @@ -19454,7 +19485,9 @@ func (s *InstanceGroupManagersCreateInstancesRequest) MarshalJSON() ([]byte, err type InstanceGroupManagersDeleteInstancesRequest struct { // Instances: The URLs of one or more instances to delete. This can be a // full URL or a partial URL, such as - // zones/[ZONE]/instances/[INSTANCE_NAME]. + // zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have + // URL and can be deleted only by name. One cannot specify both URLs and + // names in a single request. Instances []string `json:"instances,omitempty"` // SkipInstancesOnValidationError: Specifies whether the request should @@ -22012,9 +22045,9 @@ type InstanceWithNamedPorts struct { // Status: [Output Only] The status of the instance. // // Possible values: - // "DEPROVISIONING" - The Nanny is halted and we are performing tear - // down tasks like network deprogramming, releasing quota, IP, tearing - // down disks etc. + // "DEPROVISIONING" - The instance is halted and we are performing + // tear down tasks like network deprogramming, releasing quota, IP, + // tearing down disks etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. @@ -22606,9 +22639,9 @@ func (s *Int64RangeMatch) MarshalJSON() ([]byte, error) { } // Interconnect: Represents an Interconnect resource. An Interconnect -// resource is a dedicated connection between the GCP network and your -// on-premises network. For more information, read the Dedicated -// Interconnect Overview. +// resource is a dedicated connection between the Google Cloud network +// and your on-premises network. For more information, read the +// Dedicated Interconnect Overview. type Interconnect struct { // AdminEnabled: Administrative status of the interconnect. When this is // set to true, the Interconnect is functional and can carry traffic. @@ -22940,8 +22973,7 @@ type InterconnectAttachment struct { // attachment. If this field is not specified when creating the VLAN // attachment, then later on when creating an HA VPN gateway on this // VLAN attachment, the HA VPN gateway's IP address is allocated from - // the regional external IP address pool. Not currently available - // publicly. + // the regional external IP address pool. IpsecInternalAddresses []string `json:"ipsecInternalAddresses,omitempty"` // Kind: [Output Only] Type of the resource. Always @@ -26620,9 +26652,9 @@ type ManagedInstance struct { // is empty when the instance does not exist. // // Possible values: - // "DEPROVISIONING" - The Nanny is halted and we are performing tear - // down tasks like network deprogramming, releasing quota, IP, tearing - // down disks etc. + // "DEPROVISIONING" - The instance is halted and we are performing + // tear down tasks like network deprogramming, releasing quota, IP, + // tearing down disks etc. // "PROVISIONING" - Resources are being allocated for the instance. // "REPAIRING" - The instance is in repair. // "RUNNING" - The instance is running. @@ -27132,7 +27164,7 @@ type Network struct { FirewallPolicy string `json:"firewallPolicy,omitempty"` // GatewayIPv4: [Output Only] The gateway address for default routing - // out of the network, selected by GCP. + // out of the network, selected by Google Cloud. GatewayIPv4 string `json:"gatewayIPv4,omitempty"` // Id: [Output Only] The unique identifier for the resource. This @@ -29710,10 +29742,11 @@ type NetworkInterface struct { // number. It'll be empty if not specified by the users. QueueCount int64 `json:"queueCount,omitempty"` - // StackType: The stack type for this network interface to identify - // whether the IPv6 feature is enabled or not. If not specified, - // IPV4_ONLY will be used. This field can be both set at instance - // creation and update network interface operations. + // StackType: The stack type for this network interface. To assign only + // IPv4 addresses, use IPV4_ONLY. To assign both IPv4 and IPv6 + // addresses, use IPV4_IPV6. If not specified, IPV4_ONLY is used. This + // field can be both set at instance creation and update network + // interface operations. // // Possible values: // "IPV4_IPV6" - The network interface can have both IPv4 and IPv6 @@ -45667,7 +45700,7 @@ func (s *ServiceAccount) MarshalJSON() ([]byte, error) { // attachment represents a service that a producer has exposed. It // encapsulates the load balancer which fronts the service runs and a // list of NAT IP ranges that the producers uses to represent the -// consumers connecting to the service. next tag = 20 +// consumers connecting to the service. type ServiceAttachment struct { // ConnectedEndpoints: [Output Only] An array of connections for all the // consumers connected to this service attachment. @@ -51216,9 +51249,11 @@ type TargetHttpsProxy struct { // networksecurity.ServerTlsPolicy resource that describes how the proxy // should authenticate inbound traffic. serverTlsPolicy only applies to // a global TargetHttpsProxy attached to globalForwardingRules with the - // loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, - // communications are not encrypted. Note: This field currently has no - // impact. + // loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or + // EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are + // accepted with INTERNAL_SELF_MANAGED and which with EXTERNAL, + // EXTERNAL_MANAGED loadBalancingScheme consult ServerTlsPolicy + // documentation. If left blank, communications are not encrypted. ServerTlsPolicy string `json:"serverTlsPolicy,omitempty"` // SslCertificates: URLs to SslCertificate resources that are used to @@ -148378,827 +148413,6 @@ func (c *RegionInstanceGroupsSetNamedPortsCall) Do(opts ...googleapi.CallOption) } -// method id "compute.regionInstanceTemplates.delete": - -type RegionInstanceTemplatesDeleteCall struct { - s *Service - project string - region string - instanceTemplate string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes the specified instance template. Deleting an instance -// template is permanent and cannot be undone. -// -// - instanceTemplate: The name of the instance template to delete. -// - project: Project ID for this request. -// - region: The name of the region for this request. -func (r *RegionInstanceTemplatesService) Delete(project string, region string, instanceTemplate string) *RegionInstanceTemplatesDeleteCall { - c := &RegionInstanceTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.instanceTemplate = instanceTemplate - return c -} - -// RequestId sets the optional parameter "requestId": An optional -// request ID to identify requests. Specify a unique request ID so that -// if you must retry your request, the server will know to ignore the -// request if it has already been completed. For example, consider a -// situation where you make an initial request and the request times -// out. If you make the request again with the same request ID, the -// server can check if original operation with the same request ID was -// received, and if so, will ignore the second request. This prevents -// clients from accidentally creating duplicate commitments. The request -// ID must be a valid UUID with the exception that zero UUID is not -// supported ( 00000000-0000-0000-0000-000000000000). -func (c *RegionInstanceTemplatesDeleteCall) RequestId(requestId string) *RegionInstanceTemplatesDeleteCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *RegionInstanceTemplatesDeleteCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *RegionInstanceTemplatesDeleteCall) Context(ctx context.Context) *RegionInstanceTemplatesDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *RegionInstanceTemplatesDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RegionInstanceTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "instanceTemplate": c.instanceTemplate, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.regionInstanceTemplates.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *RegionInstanceTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.", - // "flatPath": "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}", - // "httpMethod": "DELETE", - // "id": "compute.regionInstanceTemplates.delete", - // "parameterOrder": [ - // "project", - // "region", - // "instanceTemplate" - // ], - // "parameters": { - // "instanceTemplate": { - // "description": "The name of the instance template to delete.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID for this request.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "The name of the region for this request.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}", - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" - // ] - // } - -} - -// method id "compute.regionInstanceTemplates.get": - -type RegionInstanceTemplatesGetCall struct { - s *Service - project string - region string - instanceTemplate string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Returns the specified instance template. -// -// - instanceTemplate: The name of the instance template. -// - project: Project ID for this request. -// - region: The name of the region for this request. -func (r *RegionInstanceTemplatesService) Get(project string, region string, instanceTemplate string) *RegionInstanceTemplatesGetCall { - c := &RegionInstanceTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.instanceTemplate = instanceTemplate - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *RegionInstanceTemplatesGetCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *RegionInstanceTemplatesGetCall) IfNoneMatch(entityTag string) *RegionInstanceTemplatesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *RegionInstanceTemplatesGetCall) Context(ctx context.Context) *RegionInstanceTemplatesGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *RegionInstanceTemplatesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RegionInstanceTemplatesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - "instanceTemplate": c.instanceTemplate, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.regionInstanceTemplates.get" call. -// Exactly one of *InstanceTemplate or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *InstanceTemplate.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *RegionInstanceTemplatesGetCall) Do(opts ...googleapi.CallOption) (*InstanceTemplate, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &InstanceTemplate{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Returns the specified instance template.", - // "flatPath": "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}", - // "httpMethod": "GET", - // "id": "compute.regionInstanceTemplates.get", - // "parameterOrder": [ - // "project", - // "region", - // "instanceTemplate" - // ], - // "parameters": { - // "instanceTemplate": { - // "description": "The name of the instance template.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - // "required": true, - // "type": "string" - // }, - // "project": { - // "description": "Project ID for this request.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "The name of the region for this request.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, - // "type": "string" - // } - // }, - // "path": "projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}", - // "response": { - // "$ref": "InstanceTemplate" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" - // ] - // } - -} - -// method id "compute.regionInstanceTemplates.insert": - -type RegionInstanceTemplatesInsertCall struct { - s *Service - project string - region string - instancetemplate *InstanceTemplate - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Creates an instance template in the specified project and -// region using the global instance template whose URL is included in -// the request. -// -// - project: Project ID for this request. -// - region: The name of the region for this request. -func (r *RegionInstanceTemplatesService) Insert(project string, region string, instancetemplate *InstanceTemplate) *RegionInstanceTemplatesInsertCall { - c := &RegionInstanceTemplatesInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.instancetemplate = instancetemplate - return c -} - -// RequestId sets the optional parameter "requestId": An optional -// request ID to identify requests. Specify a unique request ID so that -// if you must retry your request, the server will know to ignore the -// request if it has already been completed. For example, consider a -// situation where you make an initial request and the request times -// out. If you make the request again with the same request ID, the -// server can check if original operation with the same request ID was -// received, and if so, will ignore the second request. This prevents -// clients from accidentally creating duplicate commitments. The request -// ID must be a valid UUID with the exception that zero UUID is not -// supported ( 00000000-0000-0000-0000-000000000000). -func (c *RegionInstanceTemplatesInsertCall) RequestId(requestId string) *RegionInstanceTemplatesInsertCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *RegionInstanceTemplatesInsertCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesInsertCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *RegionInstanceTemplatesInsertCall) Context(ctx context.Context) *RegionInstanceTemplatesInsertCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *RegionInstanceTemplatesInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RegionInstanceTemplatesInsertCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancetemplate) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/instanceTemplates") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.regionInstanceTemplates.insert" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *RegionInstanceTemplatesInsertCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.", - // "flatPath": "projects/{project}/regions/{region}/instanceTemplates", - // "httpMethod": "POST", - // "id": "compute.regionInstanceTemplates.insert", - // "parameterOrder": [ - // "project", - // "region" - // ], - // "parameters": { - // "project": { - // "description": "Project ID for this request.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "The name of the region for this request.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, - // "type": "string" - // }, - // "requestId": { - // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "projects/{project}/regions/{region}/instanceTemplates", - // "request": { - // "$ref": "InstanceTemplate" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute" - // ] - // } - -} - -// method id "compute.regionInstanceTemplates.list": - -type RegionInstanceTemplatesListCall struct { - s *Service - project string - region string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of instance templates that are contained -// within the specified project and region. -// -// - project: Project ID for this request. -// - region: The name of the regions for this request. -func (r *RegionInstanceTemplatesService) List(project string, region string) *RegionInstanceTemplatesListCall { - c := &RegionInstanceTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - return c -} - -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most Compute resources -// support two types of filter expressions: expressions that support -// regular expressions and expressions that follow API improvement -// proposal AIP-160. If you want to use AIP-160, your expression must -// specify the field name, an operator, and the value that you want to -// use for filtering. The value must be a string, a number, or a -// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` -// or `:`. For example, if you are filtering Compute Engine instances, -// you can exclude instances named `example-instance` by specifying -// `name != example-instance`. The `:` operator can be used with string -// fields to match substrings. For non-string fields it is equivalent to -// the `=` operator. The `:*` comparison can be used to test whether a -// key has been defined. For example, to find all objects with `owner` -// label use: ``` labels.owner:* ``` You can also filter nested fields. -// For example, you could specify `scheduling.automaticRestart = false` -// to include instances only if they are not scheduled for automatic -// restarts. You can use filtering on nested fields to filter based on -// resource labels. To filter on multiple expressions, provide each -// separate expression within parentheses. For example: ``` -// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") -// ``` By default, each expression is an `AND` expression. However, you -// can include `AND` and `OR` expressions explicitly. For example: ``` -// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") -// AND (scheduling.automaticRestart = true) ``` If you want to use a -// regular expression, use the `eq` (equal) or `ne` (not equal) operator -// against a single un-parenthesized expression with or without quotes -// or against multiple parenthesized expressions. Examples: `fieldname -// eq unquoted literal` `fieldname eq 'single quoted literal'` -// `fieldname eq "double quoted literal" `(fieldname1 eq literal) -// (fieldname2 ne "literal")` The literal value is interpreted as a -// regular expression using Google RE2 library syntax. The literal value -// must match the entire field. For example, to filter for instances -// that do not end with name "instance", you would use `name ne -// .*instance`. -func (c *RegionInstanceTemplatesListCall) Filter(filter string) *RegionInstanceTemplatesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// MaxResults sets the optional parameter "maxResults": The maximum -// number of results per page that should be returned. If the number of -// available results is larger than `maxResults`, Compute Engine returns -// a `nextPageToken` that can be used to get the next page of results in -// subsequent list requests. Acceptable values are `0` to `500`, -// inclusive. (Default: `500`) -func (c *RegionInstanceTemplatesListCall) MaxResults(maxResults int64) *RegionInstanceTemplatesListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderBy sets the optional parameter "orderBy": Sorts list results by -// a certain order. By default, results are returned in alphanumerical -// order based on the resource name. You can also sort results in -// descending order based on the creation timestamp using -// `orderBy="creationTimestamp desc". This sorts results based on the -// `creationTimestamp` field in reverse chronological order (newest -// result first). Use this to sort resources like operations so that the -// newest operation is returned first. Currently, only sorting by `name` -// or `creationTimestamp desc` is supported. -func (c *RegionInstanceTemplatesListCall) OrderBy(orderBy string) *RegionInstanceTemplatesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageToken sets the optional parameter "pageToken": Specifies a page -// token to use. Set `pageToken` to the `nextPageToken` returned by a -// previous list request to get the next page of results. -func (c *RegionInstanceTemplatesListCall) PageToken(pageToken string) *RegionInstanceTemplatesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter -// "returnPartialSuccess": Opt-in for partial success behavior which -// provides partial results in case of failure. The default value is -// false. -func (c *RegionInstanceTemplatesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceTemplatesListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *RegionInstanceTemplatesListCall) Fields(s ...googleapi.Field) *RegionInstanceTemplatesListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *RegionInstanceTemplatesListCall) IfNoneMatch(entityTag string) *RegionInstanceTemplatesListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *RegionInstanceTemplatesListCall) Context(ctx context.Context) *RegionInstanceTemplatesListCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *RegionInstanceTemplatesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RegionInstanceTemplatesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/instanceTemplates") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "project": c.project, - "region": c.region, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.regionInstanceTemplates.list" call. -// Exactly one of *InstanceTemplateList or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *InstanceTemplateList.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *RegionInstanceTemplatesListCall) Do(opts ...googleapi.CallOption) (*InstanceTemplateList, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &InstanceTemplateList{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Retrieves a list of instance templates that are contained within the specified project and region.", - // "flatPath": "projects/{project}/regions/{region}/instanceTemplates", - // "httpMethod": "GET", - // "id": "compute.regionInstanceTemplates.list", - // "parameterOrder": [ - // "project", - // "region" - // ], - // "parameters": { - // "filter": { - // "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.", - // "location": "query", - // "type": "string" - // }, - // "maxResults": { - // "default": "500", - // "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", - // "format": "uint32", - // "location": "query", - // "minimum": "0", - // "type": "integer" - // }, - // "orderBy": { - // "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", - // "location": "query", - // "type": "string" - // }, - // "pageToken": { - // "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "project": { - // "description": "Project ID for this request.", - // "location": "path", - // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - // "required": true, - // "type": "string" - // }, - // "region": { - // "description": "The name of the regions for this request.", - // "location": "path", - // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - // "required": true, - // "type": "string" - // }, - // "returnPartialSuccess": { - // "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.", - // "location": "query", - // "type": "boolean" - // } - // }, - // "path": "projects/{project}/regions/{region}/instanceTemplates", - // "response": { - // "$ref": "InstanceTemplateList" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/compute", - // "https://www.googleapis.com/auth/compute.readonly" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *RegionInstanceTemplatesListCall) Pages(ctx context.Context, f func(*InstanceTemplateList) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - // method id "compute.regionInstances.bulkInsert": type RegionInstancesBulkInsertCall struct { diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index d2984d08391..1f41c669cc2 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -635,6 +635,35 @@ } } }, + "global": { + "methods": { + "getSettings": { + "description": "GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.", + "flatPath": "v1/projects/{projectsId}/locations/global/settings", + "httpMethod": "GET", + "id": "connectors.projects.locations.global.getSettings", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Settings.", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/settings$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Settings" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "operations": { "methods": { "cancel": { @@ -716,7 +745,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "connectors.projects.locations.operations.list", @@ -1079,7 +1108,7 @@ } } }, - "revision": "20230222", + "revision": "20230318", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -2946,6 +2975,27 @@ }, "type": "object" }, + "Settings": { + "description": "Global Settings details.", + "id": "Settings", + "properties": { + "name": { + "description": "Output only. Resource name of the Connection. Format: projects/{project}/locations/global/settings}", + "readOnly": true, + "type": "string" + }, + "payg": { + "description": "Output only. Flag indicates if user is in PayG model", + "readOnly": true, + "type": "boolean" + }, + "vpcsc": { + "description": "Optional. Flag indicates whether vpc-sc is enabled.", + "type": "boolean" + } + }, + "type": "object" + }, "Source": { "description": "Source to extract the backend from.", "id": "Source", diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 4bf13ae94c4..1f916e02171 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -153,6 +153,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Connections = NewProjectsLocationsConnectionsService(s) + rs.Global = NewProjectsLocationsGlobalService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.Providers = NewProjectsLocationsProvidersService(s) return rs @@ -163,6 +164,8 @@ type ProjectsLocationsService struct { Connections *ProjectsLocationsConnectionsService + Global *ProjectsLocationsGlobalService + Operations *ProjectsLocationsOperationsService Providers *ProjectsLocationsProvidersService @@ -213,6 +216,15 @@ type ProjectsLocationsConnectionsRuntimeEntitySchemasService struct { s *Service } +func NewProjectsLocationsGlobalService(s *Service) *ProjectsLocationsGlobalService { + rs := &ProjectsLocationsGlobalService{s: s} + return rs +} + +type ProjectsLocationsGlobalService struct { + s *Service +} + func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { rs := &ProjectsLocationsOperationsService{s: s} return rs @@ -2756,6 +2768,45 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Settings: Global Settings details. +type Settings struct { + // Name: Output only. Resource name of the Connection. Format: + // projects/{project}/locations/global/settings} + Name string `json:"name,omitempty"` + + // Payg: Output only. Flag indicates if user is in PayG model + Payg bool `json:"payg,omitempty"` + + // Vpcsc: Optional. Flag indicates whether vpc-sc is enabled. + Vpcsc bool `json:"vpcsc,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Settings) MarshalJSON() ([]byte, error) { + type NoMethod Settings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Source: Source to extract the backend from. type Source struct { // FieldId: Field identifier. For example config vaiable name. @@ -5689,6 +5740,153 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Pages(ctx con } } +// method id "connectors.projects.locations.global.getSettings": + +type ProjectsLocationsGlobalGetSettingsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetSettings: GetGlobalSettings gets settings of a project. +// GlobalSettings is a singleton resource. +// +// - name: The resource name of the Settings. +func (r *ProjectsLocationsGlobalService) GetSettings(name string) *ProjectsLocationsGlobalGetSettingsCall { + c := &ProjectsLocationsGlobalGetSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGlobalGetSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalGetSettingsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGlobalGetSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalGetSettingsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGlobalGetSettingsCall) Context(ctx context.Context) *ProjectsLocationsGlobalGetSettingsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGlobalGetSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalGetSettingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "connectors.projects.locations.global.getSettings" call. +// Exactly one of *Settings or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Settings.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsGlobalGetSettingsCall) Do(opts ...googleapi.CallOption) (*Settings, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Settings{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.", + // "flatPath": "v1/projects/{projectsId}/locations/global/settings", + // "httpMethod": "GET", + // "id": "connectors.projects.locations.global.getSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the Settings.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/global/settings$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Settings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "connectors.projects.locations.operations.cancel": type ProjectsLocationsOperationsCancelCall struct { @@ -6136,14 +6334,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -6272,7 +6463,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "connectors.projects.locations.operations.list", diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 2bcf2b5d2e7..6104c04e664 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -6160,7 +6160,7 @@ } } }, - "revision": "20230307", + "revision": "20230324", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -13326,7 +13326,7 @@ "type": "string" }, "lifestyleImageLinks": { - "description": "Additional URLs of lifestyle images of the item, used to explicitly identify images that showcase your item in a real-world context. See the Help Center article for more information.", + "description": "Additional URLs of lifestyle images of the item. Used to explicitly identify images that showcase your item in a real-world context. See the Help Center article for more information.", "items": { "type": "string" }, diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 36f0841c6d5..7b5dba97eca 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -12865,8 +12865,8 @@ type Product struct { // string "content#product" Kind string `json:"kind,omitempty"` - // LifestyleImageLinks: Additional URLs of lifestyle images of the item, - // used to explicitly identify images that showcase your item in a + // LifestyleImageLinks: Additional URLs of lifestyle images of the item. + // Used to explicitly identify images that showcase your item in a // real-world context. See the Help Center article for more information. LifestyleImageLinks []string `json:"lifestyleImageLinks,omitempty"` diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index b84a5edbd69..3e897e09051 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -117,7 +117,7 @@ ], "parameters": { "resource": { - "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for project: projects/{project_number}.", + "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -145,7 +145,7 @@ ], "parameters": { "resource": { - "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for project: projects/{project_number}.", + "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -194,203 +194,9 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "runPipeline": { - "description": "Run a predefined pipeline.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:runPipeline", - "httpMethod": "POST", - "id": "contentwarehouse.projects.locations.runPipeline", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name which owns the resources of the pipeline. Format: projects/{project_number}/locations/{location}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:runPipeline", - "request": { - "$ref": "GoogleCloudContentwarehouseV1RunPipelineRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } }, "resources": { - "collections": { - "methods": { - "create": { - "description": "Creates a collection.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections", - "httpMethod": "POST", - "id": "contentwarehouse.projects.locations.collections.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent name.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/collections", - "request": { - "$ref": "GoogleCloudContentwarehouseV1Collection" - }, - "response": { - "$ref": "GoogleCloudContentwarehouseV1Collection" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a collection.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}", - "httpMethod": "DELETE", - "id": "contentwarehouse.projects.locations.collections.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the collection to delete.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "fetchCollectionAcl": { - "description": "Gets the access control policy for the collection. Returns NOT_FOUND error if the collection does not exist. Returns an empty policy if the collection exists but does not have a policy set.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}:fetchCollectionAcl", - "httpMethod": "POST", - "id": "contentwarehouse.projects.locations.collections.fetchCollectionAcl", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the collection. projects/{project_number}/locations/{location}/collections/{document_id}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:fetchCollectionAcl", - "request": { - "$ref": "GoogleCloudContentwarehouseV1FetchCollectionAclRequest" - }, - "response": { - "$ref": "GoogleCloudContentwarehouseV1FetchCollectionAclResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets a collection.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}", - "httpMethod": "GET", - "id": "contentwarehouse.projects.locations.collections.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the collection to retrieve.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudContentwarehouseV1Collection" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "search": { - "description": "Searches for collections using provided SearchCollectionsRequest. This call only returns collections that the caller has permission to search against.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections:search", - "httpMethod": "POST", - "id": "contentwarehouse.projects.locations.collections.search", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent, which owns the collections. Format: projects/{project_number}/locations/{location}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/collections:search", - "request": { - "$ref": "GoogleCloudContentwarehouseV1SearchCollectionsRequest" - }, - "response": { - "$ref": "GoogleCloudContentwarehouseV1SearchCollectionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "setCollectionAcl": { - "description": "Sets the access control policy for the collection. Replaces any existing policy.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}:setCollectionAcl", - "httpMethod": "POST", - "id": "contentwarehouse.projects.locations.collections.setCollectionAcl", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the collection for which the policy is being set. projects/{project_number}/locations/{location}/collections/{document_id}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:setCollectionAcl", - "request": { - "$ref": "GoogleCloudContentwarehouseV1SetCollectionAclRequest" - }, - "response": { - "$ref": "GoogleCloudContentwarehouseV1SetCollectionAclResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "documentSchemas": { "methods": { "create": { @@ -605,7 +411,7 @@ ], "parameters": { "resource": { - "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for project: projects/{project_number}.", + "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/documents/[^/]+$", "required": true, @@ -801,7 +607,7 @@ ], "parameters": { "resource": { - "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for project: projects/{project_number}.", + "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/documents/[^/]+$", "required": true, @@ -971,122 +777,6 @@ } } }, - "links": { - "methods": { - "create": { - "description": "Creates a link.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/links", - "httpMethod": "POST", - "id": "contentwarehouse.projects.locations.links.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent name.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/links", - "request": { - "$ref": "GoogleCloudContentwarehouseV1Link" - }, - "response": { - "$ref": "GoogleCloudContentwarehouseV1Link" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a link between a collection and a document.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/links/{linksId}", - "httpMethod": "DELETE", - "id": "contentwarehouse.projects.locations.links.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the link to delete.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/links/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets a link.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/links/{linksId}", - "httpMethod": "GET", - "id": "contentwarehouse.projects.locations.links.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the link to retrieve.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/links/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudContentwarehouseV1Link" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Updates the link using provided UpdateLinkRequest.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/links/{linksId}", - "httpMethod": "PATCH", - "id": "contentwarehouse.projects.locations.links.patch", - "parameterOrder": [ - "name", - "linksId" - ], - "parameters": { - "linksId": { - "location": "path", - "required": true, - "type": "string" - }, - "name": { - "description": "The resource name of the link. Format: projects/{project_number}/locations/{location}/links/{link}. The name is ignored when creating a link.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}/links/{linksId}", - "request": { - "$ref": "GoogleCloudContentwarehouseV1Link" - }, - "response": { - "$ref": "GoogleCloudContentwarehouseV1Link" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "operations": { "methods": { "get": { @@ -1413,7 +1103,7 @@ } } }, - "revision": "20230314", + "revision": "20230324", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -5689,7 +5379,8 @@ "LOUPE", "PEOPLE_PLAYGROUND", "NEWS_360", - "DUO" + "DUO", + "MEET" ], "enumDescriptions": [ "Should never be stored in practice", @@ -5708,7 +5399,8 @@ "Aka Camera by Google Photos", "See go/people-playground-design.", "Also mdb/social-magazines", - "Aka Taychon" + "Aka Taychon", + "Aka Google Meet" ], "type": "string" }, @@ -5775,7 +5467,8 @@ "LOUPE", "PEOPLE_PLAYGROUND", "NEWS_360", - "DUO" + "DUO", + "MEET" ], "enumDescriptions": [ "Should never be stored in practice", @@ -5794,7 +5487,8 @@ "Aka Camera by Google Photos", "See go/people-playground-design.", "Also mdb/social-magazines", - "Aka Taychon" + "Aka Taychon", + "Aka Google Meet" ], "type": "string" }, @@ -5856,7 +5550,8 @@ "POMEROY", "LOUPE", "NEWS_360", - "DUO" + "DUO", + "MEET" ], "enumDescriptions": [ "should never be stored in practice", @@ -5875,7 +5570,8 @@ "aka Trusted Contacts", "Aka Camera by Google Photos", "Also mdb/social-magazines", - "aka Taychon" + "aka Taychon", + "Aka Google Meet" ], "type": "string" }, @@ -8464,6 +8160,13 @@ "profileOwnerStats": { "$ref": "AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats", "description": "Stats/counters pertaining to followers and incoming edges." + }, + "unjoinedEmailCertificates": { + "description": "Returned only when explicitly requested in the request mask as read_only_profile_info.unjoined_email_certificates. Equivalent to fetching the Emails \u0026 the Email Certificates with the acls ignored.", + "items": { + "$ref": "AppsPeopleOzExternalMergedpeopleapiEmail" + }, + "type": "array" } }, "type": "object" @@ -11026,6 +10729,80 @@ }, "type": "object" }, + "AssistantApiCoreTypesGovernedDeviceConfig": { + "description": "The identification information for third party devices that integrates with the assistant. All of these fields will be populated by the third party when the query is sent from the third party device. Next Id: 5", + "id": "AssistantApiCoreTypesGovernedDeviceConfig", + "properties": { + "agentId": { + "description": "Pantheon Project ID that uniquely identifies the consumer project ID. Required", + "type": "string" + }, + "deviceId": { + "description": "Unique identifier for the device. Example: DBCDW098234. Required", + "type": "string" + } + }, + "type": "object" + }, + "AssistantApiCoreTypesGovernedDeviceId": { + "description": "LINT.IfChange Specifies identifier of a device AKA surface. Note there may be multiple device ids for the same physical device E.g. Allo app and Assistant app on Nexus. Note: DeviceId usage is complicated. Please do not depend on it for surface specific logic. Please use google3/assistant/api/capabilities.proto instead. IMPORTANT: When checking for equality between two `DeviceId`s, you should always use an `isSameDevice{As}` function to check for equality, as deep equality between `DeviceId`'s is not guaranteed. * C++: http://google3/assistant/assistant_server/util/device_id_util.cc;l=23;rcl=421295740 * Dart: http://google3/assistant/context/util/lib/device_id.dart;l=26;rcl=442126145 * Java: http://google3/java/com/google/assistant/assistantserver/utils/DeviceIdHelper.java;l=9;rcl=390378522 See http://go/deviceid-equality for more details. Next ID: 14", + "id": "AssistantApiCoreTypesGovernedDeviceId", + "properties": { + "agsaClientInstanceId": { + "description": "The client_instance_id on devices with GSA. See 'client_instance_field' in go/androidids.", + "type": "string" + }, + "alloDeviceId": { + "description": "Allo Id. Corresponds to the GBotRequest.Sender.sender. NOTE(dychen): This may change to standard android/ios physical device ids in order to enable shared data (e.g. installed app on physical device shared between Allo and Opa apps on Nexus).", + "type": "string" + }, + "canonicalDeviceId": { + "description": "A unique device ID for Assistant devices as proposed by go/ocelot-team to solve the device id fragmentation problem. The value of this id is the HomeGraph id of the device. See go/ocelot-track-0-registry-design. New surfaces should use the canonical_device_id instead of using other ids, and the registration should utilize the DeviceDataLayer (go/ddl-v0). Please contact the assistant-state-management@ team for guidance. Note: We didn't reuse |home_graph_device_id| because in Assistant code base |home_graph_device_id| is common to associate it with 3P devices. See go/project-yellowstone for more context.", + "type": "string" + }, + "castDeviceId": { + "description": "If set, indicates that the device is a cast device, and contains the UUID of the cast device. Corresponds to the device_id field of the CastDevice proto.", + "type": "string" + }, + "clientInstanceId": { + "description": "DUSI (go/dusi) is used as the identifier here. This identifier is unique to the user and device. This will help identify which device or application the user's request originated from. This is not to be confused with the client_instance_id that android devices provide. This is currently used by surfaces that use the assistant-legacy-nexus and assistant-legacy-clockwork pipelines. DUSI is created and set in S3. This field is only filled for GAIA requests.", + "type": "string" + }, + "connectedDockId": { + "description": "A device ID produced by a connected dock, which is registered in HomeGraph.", + "type": "string" + }, + "deviceConfig": { + "$ref": "AssistantApiCoreTypesGovernedDeviceConfig", + "description": "The unique DeviceConfig to the specific third party device. It is also used by Android Auto Embedded first party device. See go/opa-ids." + }, + "deviceType": { + "description": "The device's surface type. This is the string version of surface_type. The server should use the SurfaceType value derived from this string. If the device_type isn't supported within the SurfaceType enum, it will be set as UNKNOWN. Developers should use the enum in ServerParams instead of this string.", + "type": "string" + }, + "homeGraphDeviceId": { + "description": "The unique device ID for HomeGraph devices. This is the HomeGraph ID, created when the device is registered into HomeGraph. It is immutable for the same device unless it is completely deleted and recreated. See go/home-graph for details.", + "type": "string" + }, + "libassistantDeviceId": { + "description": "The unique ID for libassistant based devices. See go/libassistant-id for details.", + "type": "string" + }, + "multiHotwordArbitrationDeviceId": { + "description": "If set, indicates that the device is participating the multi-hotword arbitration and the id is an UUID to distinguish it from other devices. It should also be consistent between requests from a single device within a session (or short duration).", + "type": "string" + }, + "opaIosDeviceId": { + "description": "The unique device ID for the Assistant App on iOS. See go/opa-ios-design for details.", + "type": "string" + }, + "quartzDeviceId": { + "description": "The unique ID of a Quartz device. See go/quartz-design-doc for more details. Quartz ID is a hash of (android_id + gaia).", + "type": "string" + } + }, + "type": "object" + }, "AssistantApiCoreTypesGovernedRingtoneTaskMetadata": { "description": "Task metadata information describing the ringtone. Next id: 11", "id": "AssistantApiCoreTypesGovernedRingtoneTaskMetadata", @@ -16490,6 +16267,204 @@ }, "type": "object" }, + "AssistantContextAppProviderId": { + "description": "LINT.IfChanged Identifier for an application provider. NOTE: AppProviderId contains surface-specific info, such as the Android package name of the application. This was necessary for supporting current use cases that rely on surface-specific info in feature code. Eventually we want to deprecate AppProviderId and fetch surface-specific info in some other way (e.g. in a surface-translation layer). But until then, we may continue extending AppProviderId with other surface-specific info.", + "id": "AssistantContextAppProviderId", + "properties": { + "activityClassName": { + "description": "The activity class name. E.g. com.google.android.gm.ui.MailActivityGmail", + "type": "string" + }, + "androidPackageName": { + "description": "Unique package name that identifies an Android app of the provider.", + "type": "string" + }, + "versionCode": { + "description": "Version code of the application.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "AssistantContextMediaProviderId": { + "description": "IMPORTANT: This proto is being migrated to ProviderId. If you are adding new field, please add to ProviderId as well.", + "id": "AssistantContextMediaProviderId", + "properties": { + "androidPackageName": { + "description": "Unique package name that identifies a Android app of the provider.", + "type": "string" + }, + "castAppId": { + "description": "Unique app id that identifies a Cast app of the provider.", + "type": "string" + }, + "chromeOsPackageName": { + "description": "Unique package name that identifies a ChromeOS app of the provider.", + "type": "string" + }, + "homeAppPackageName": { + "description": "Unique package name that identifies a Home app of the provider.", + "type": "string" + }, + "iosBundleIdentifier": { + "description": "Bundle identifier that identifies an iOS app of the provider.", + "type": "string" + }, + "kaiOsPackageName": { + "description": "Unique package name that identifies a KaiOS app of the provider.", + "type": "string" + }, + "kgProviderKey": { + "description": "Each onboarded provider has a unique provider key. KG provider keys are string identifiers used to identify a provider in some Media backends since mids, names, etc can change.", + "type": "string" + }, + "mid": { + "description": "The MID of the provider. A MID is a unique identifier issued by Knowledge Graph for all entities contained in it's graph.", + "type": "string" + }, + "providerVariant": { + "$ref": "AssistantContextProviderVariant", + "description": "Provider variant corresponding to the current MediaProviderId." + }, + "sipProviderId": { + "description": "Bundle id that identifies an Session Initiation Protocol (SIP) provider.", + "type": "string" + } + }, + "type": "object" + }, + "AssistantContextProviderId": { + "description": "Identifier used to represent a single application (a.k.a. provider). This model represents the surface-agnostic counterpart for assistant.api.core_types.Provider. E.g. it should avoid directly using package names for Android, bundle identifiers for iOS, etc. We require the transformation between assistant.context.ProviderId and assistant.api.core_types.Provider to either be lossless, or \"lossy yet retrievable\" (e.g. if package name is not available in ProviderId, it can still be retrieved using the ProviderMappingsModule). NOTE: 1. As of May 2021, verticals are highly fragmented in terms of how they represent/identify a provider, and so we may need to accommodate some vertical-specific representations. However, these should be generalized as much as possible so that they can be used by other verticals if needed. 2. If we need to differentiate between whether a provider is a media provider, app actions provider, timer provider, etc. we should capture this information in the context proto that contains a ProviderId field, rather than in the ProviderId message itself. 3. Any common fields across different provider identifier representations (e.g. ecosystem type) should be part of assistant.context.ProviderId directly.", + "id": "AssistantContextProviderId", + "properties": { + "appProviderId": { + "$ref": "AssistantContextAppProviderId", + "description": "TODO(b/241170835) Deprecate this field." + }, + "ecosystemType": { + "description": "Ecosystem type for this provider.", + "enum": [ + "ECOSYSTEM_TYPE_UNSPECIFIED", + "NATIVE", + "CAST" + ], + "enumDescriptions": [ + "", + "Represents native ecosystem. E.g. Android and iOS support the native ecosystem.", + "Represents cast ecosystem. E.g. Google Home and Dragonglass support the cast ecosystem." + ], + "type": "string" + }, + "mediaProviderId": { + "$ref": "AssistantContextMediaProviderId", + "description": "DEPRECATED. Fields in MediaProviderId have been pulled out into separate fields in ProviderId and ProviderMetadata. TODO(b/243953766) Deprecate this field." + }, + "mid": { + "description": "The MID of the provider. A MID is a unique identifier issued by Knowledge Graph for all entities contained in it's graph.", + "type": "string" + }, + "naturalProviderId": { + "$ref": "AssistantContextProviderIdNaturalProviderId", + "description": "Natural Provider Id returned from Provider Corpus. Note that feature teams should almost always use provider_corpus_id which is the canonical representation for provider. Surface-specific identiers should only be used in final surface rendering." + }, + "providerCorpusId": { + "description": "ID issued by the Provider Corpus to uniquely identify a provider entity e.g. an Android app, a Cast app or a Cloud provider. In practice, a single partner can have multiple providers entities. For more detail, see go/se-storage-provider-id. This is the preferred/ standardized ID to use for ProviderId that all use-cases should eventually migrate to.", + "format": "int64", + "type": "string" + }, + "providerVariant": { + "$ref": "AssistantContextProviderVariant", + "description": "Provider variant corresponding to the current provider. It's used together with mid to uniquely identify provider." + } + }, + "type": "object" + }, + "AssistantContextProviderIdNaturalProviderId": { + "description": "Represents how to naturally identify a provider. A copy of google3/assistant/serviceengine/proto/serving/natural_provider_id.proto.", + "id": "AssistantContextProviderIdNaturalProviderId", + "properties": { + "providerType": { + "description": "ProviderType is an enum to represent the category of where this id is from.", + "enum": [ + "UNKNOWN", + "CLOUD_PROJECT", + "APP_ACTIONS", + "WEBSITE", + "NARRATIVE_NEWS", + "IOS_BUNDLE", + "CAST_APP", + "ZEROTH_PARTY", + "ANDROID_SYSTEM_API" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "value": { + "description": "String of provider_id_value is the actual value of the id.", + "type": "string" + } + }, + "type": "object" + }, + "AssistantContextProviderVariant": { + "description": "Note: As of May 2021, multiple providers use the same mids (e.g. YouTube Main, YouTube Go, and YouTube Music all have the same mids). However, quite often we end up using surface specific identifiers (e.g. Android package names, iOS bundle identifiers, etc.) to differentiate amongst them. This field allows us to move away from surface specific identifiers towards a surface-agnostic enum representing the same information.", + "id": "AssistantContextProviderVariant", + "properties": { + "emptyMidVariant": { + "enum": [ + "UNSPECIFIED_EMPTY_MID_VARIANT", + "BACKDROP_CAST", + "CAST_RECEIVER" + ], + "enumDescriptions": [ + "", + "This app is used when cast device is idle and ready to cast. Cast app id is: E8C28D3C.", + "Cast Receiver package name. It contains Chromecast built in for Android TV. Android package name is: com.google.android.apps.mediashell." + ], + "type": "string" + }, + "spotifyVariant": { + "enum": [ + "UNSPECIFIED_SPOTIFY_VARIANT", + "SPOTIFY_MAIN", + "SPOTIFY_LITE" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, + "youtubeVariant": { + "enum": [ + "UNSPECIFIED_YOUTUBE_VARIANT", + "YOUTUBE_MAIN", + "YOUTUBE_MUSIC", + "YOUTUBE_GO" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "AssistantDeviceTargetingDeviceTargetingError": { "description": "The information associated with an error while selecting the target device. Next ID: 2", "id": "AssistantDeviceTargetingDeviceTargetingError", @@ -17406,13 +17381,27 @@ }, "type": "object" }, + "AssistantGroundingRankerDeviceGroundingProviderFeatures": { + "description": "Features to be extracted from Device GP for ranking in HGR. Next ID: 2", + "id": "AssistantGroundingRankerDeviceGroundingProviderFeatures", + "properties": { + "deviceId": { + "$ref": "AssistantApiCoreTypesGovernedDeviceId", + "description": "ID for the device. PRR specific feature." + } + }, + "type": "object" + }, "AssistantGroundingRankerGroundingProviderFeatures": { - "description": "Next ID: 4", + "description": "Next ID: 5", "id": "AssistantGroundingRankerGroundingProviderFeatures", "properties": { "contactGroundingProviderFeatures": { "$ref": "AssistantGroundingRankerContactGroundingProviderFeatures" }, + "deviceGroundingProviderFeatures": { + "$ref": "AssistantGroundingRankerDeviceGroundingProviderFeatures" + }, "mediaGroundingProviderFeatures": { "$ref": "AssistantGroundingRankerMediaGroundingProviderFeatures" }, @@ -17480,9 +17469,29 @@ "type": "object" }, "AssistantGroundingRankerMediaGroundingProviderFeatures": { - "description": "Features to be passed from Media GP to HGR. Next ID: 6", + "description": "Features to be passed from Media GP to HGR. Next ID: 9", "id": "AssistantGroundingRankerMediaGroundingProviderFeatures", "properties": { + "albumReleaseType": { + "description": "Release type for an album container.", + "enum": [ + "UNKNOWN", + "ALBUM", + "SINGLE", + "EXTENDED_PLAY" + ], + "enumDescriptions": [ + "", + "An album is a collection of audio recordings issued on a compact disc, vinyl, audio tape, or another medium.", + "A single is a type of release, typically a song recording of fewer tracks than an LP record or an album.", + "An extended play record, often referred to as an EP, is a musical recording that contains more tracks than a single, but is usually not qualified to be an album or LP." + ], + "type": "string" + }, + "hasTypeSemanticEdge": { + "description": "True if the argument's type was explicitly mentioned in the query.", + "type": "boolean" + }, "isCastVideo": { "description": "Whether the candidate is YouTube CAST_VIDEO candidate. CAST_VIDEO is a deeplink platform. This signal will be used to promote YouTube Music screenful candidates with CAST_VIDEO platform for free users because free users cannot get exact entities in screenless response and can get exact entities with ads in screenful response.", "type": "boolean" @@ -17504,14 +17513,87 @@ "description": "Scubed predicted SAI value (pSAI) for music populated by a regression model that incorporates a BERT model signal as well as other Scubed signals.", "format": "double", "type": "number" + }, + "type": { + "description": "Type of the media item.", + "enum": [ + "UNKNOWN", + "TRACK", + "ALBUM", + "ARTIST", + "PLAYLIST", + "EPISODE", + "MOVIE", + "PHOTO", + "TV_SHOW_EPISODE", + "MUSIC_GENRE", + "MUSIC_STATION", + "AUDIO_BOOK", + "CHAPTER", + "RADIO_STATION", + "MUSIC_MIX", + "SPORTS_EVENT", + "TV_CHANNEL", + "VIDEO", + "YOUTUBE_CHANNEL", + "YOUTUBE_VIDEO_PLAYLIST", + "TV_SHOW", + "NEWS", + "NARRATED_WEB", + "NEWS_CALL_TO_ACTION", + "AUDIO_STORY", + "PODCAST_SERIES", + "PODCAST_EPISODE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Representing a TV show which contains multiple TV seasons.", + "", + "", + "Repesents a Call To Action media item. See go/newsplayer-outro-gnews. Current use case is to ask users to continue their news journey in the Google News app / web app. Future cases could include asking users to adjust their news settings.", + "Representing a short audio story. go/tmas-design", + "Represent different kinds of podcast content", + "" + ], + "type": "string" } }, "type": "object" }, "AssistantGroundingRankerProviderGroundingProviderFeatures": { - "description": "Features to be extracted from Provider GP for ranking in HGR. Next ID: 2", + "description": "Features to be extracted from Provider GP for ranking in HGR. Next ID: 4", "id": "AssistantGroundingRankerProviderGroundingProviderFeatures", "properties": { + "providerClusterId": { + "description": "Cluster IDs for the provider. This field is repeated because some providers can be associated with multiple clusters. PRR specific feature.", + "items": { + "type": "string" + }, + "type": "array" + }, + "providerId": { + "$ref": "AssistantContextProviderId", + "description": "ProviderId for the provider in the binding set. PRR specific feature." + }, "pslScore": { "description": "Provider quality score in the range [0,1] that can be used for ranking providers. Incorporates both policy rules and quality considerations.", "format": "float", @@ -19324,7 +19406,7 @@ "type": "object" }, "AssistantPrefulfillmentRankerPrefulfillmentSignals": { - "description": "Signals to be used by the Prefulfillment Ranker. Derived from the ParsingSignals and GroundingSignals carried by the FunctionCall. LINT.IfChange Next ID: 44", + "description": "Signals to be used by the Prefulfillment Ranker. Derived from the ParsingSignals and GroundingSignals carried by the FunctionCall. LINT.IfChange Next ID: 47", "id": "AssistantPrefulfillmentRankerPrefulfillmentSignals", "properties": { "bindingSetAuis": { @@ -19399,6 +19481,10 @@ "description": "Whether the intent is fully grounded.", "type": "boolean" }, + "isMediaControlIntent": { + "description": "Whether the intent is a media control intent.", + "type": "boolean" + }, "isPlayGenericMusic": { "description": "Whether the intent is a PlayGenericMusic-type intent.", "type": "boolean" @@ -19425,6 +19511,11 @@ "format": "double", "type": "number" }, + "nspRank": { + "description": "Rank of the intent as reported by NSP.", + "format": "int32", + "type": "integer" + }, "numAlternativeHypothesis": { "description": "Number of alternative hypotheses from speech recognition(S3).", "format": "float", @@ -19480,6 +19571,32 @@ "format": "float", "type": "number" }, + "rankerName": { + "description": "Used in HGR to modify the ranker based on input experimental flag and intent name.", + "enum": [ + "RANKER_NAME_UNSPECIFIED", + "RANKER_NAME_PREFULFILLMENT_RANKER", + "RANKER_NAME_GROUNDING_RANKER", + "RANKER_NAME_TEST_PFR_DUMMY", + "RANKER_NAME_DEFER_TO_VERTICAL_SCORES", + "RANKER_NAME_GROUNDING_RANKER_V2", + "RANKER_NAME_GROUNDING_RANKER_MEDIA_EXP", + "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP", + "RANKER_NAME_CONSOLIDATED_PFR_HGR" + ], + "enumDescriptions": [ + "Default value, when there is no ranker specified.", + "Name for the ranker as used by PFR.", + "Name for HGR v1 model.", + "Name for a dummy PFR model used for testing purposes.", + "Used for deferring to confidence scores produced by upstream GPs instead of using HGR's scorer.", + "Name for HGR v2 model.", + "Name for experimental HGR model for Media, build on top of HGR v2.", + "Name for experimental HGR model for Comms.", + "Name for consolidated PFR and HGR ranker." + ], + "type": "string" + }, "searchDispatch": { "description": "The determination made by the SearchDispatchingConfig as to whether and how this interpretation should be dispatched to Search.", "enum": [ @@ -20910,7 +21027,7 @@ "Bot for answering FAQ about COVID-19 (go/bg-covid-faq).", "", "go/meenaplex-dd", - "Was: ON_DEMAND_OPENING_HOURS.", + "Was: .", "UC ID for testing ideas around a partial call delegation bot.", "UC ID for hardware setup prototype", "Experimental use case for a form of Meena+Duplex.", @@ -29262,7 +29379,8 @@ "PROVIDER_AMPUP", "PROVIDER_LOOP", "PROVIDER_ZEST", - "PROVIDER_EZVOLT" + "PROVIDER_EZVOLT", + "PROVIDER_JOLT" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -29976,7 +30094,8 @@ "", "", "", - "Note: Next available value is 0x1270C." + "", + "Note: Next available value is 0x1270D." ], "type": "string" }, @@ -33304,7 +33423,7 @@ "type": "object" }, "GeostoreInferredGeometryProto": { - "description": "Inferred geometry defines the geometry of a feature through the geometry of other features. For instance, the geometry of a timezone can be specified as the union of all the countries it applies to. See: go/inferred-geometry and go/geo-schema:composite-geometry-editor for more details.", + "description": "Inferred geometry defines the geometry of a feature as the union or exclusion of the geometry of other features. For instance, the geometry of a timezone can be specified as the union of all the countries it applies to. In this scenario, the timezone will can be considered a \"composite feature\", while the countries are its \"composing features\". A composite feature must have a bidirectional reference between itself and all its composing features. A composite feature refers to its composing features via `geometry_composition`, while the composing features must refer back to the composing feature via `defines_geometry_for`. See: go/inferred-geometry and go/geo-schema:composite-geometry-editor for more details.", "id": "GeostoreInferredGeometryProto", "properties": { "definesGeometryFor": { @@ -33316,7 +33435,7 @@ }, "geometryComposition": { "$ref": "GeostoreGeometryComposition", - "description": "Features whose geometry defines the geometry of this feature." + "description": "Features whose geometry defines the geometry of this feature (i.e. \"composing features\")." } }, "type": "object" @@ -34101,7 +34220,8 @@ "PROVIDER_AMPUP", "PROVIDER_LOOP", "PROVIDER_ZEST", - "PROVIDER_EZVOLT" + "PROVIDER_EZVOLT", + "PROVIDER_JOLT" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -34815,7 +34935,8 @@ "", "", "", - "Note: Next available value is 0x1270C." + "", + "Note: Next available value is 0x1270D." ], "type": "string" } @@ -35226,6 +35347,10 @@ "segment": { "$ref": "GeostoreFeatureIdProto", "description": "This reference to the other segment is weak, since strong would blow up bounds of all segments." + }, + "yieldToOtherConnections": { + "description": "The inverse of the primary connection bit that provides a hint that this connection is part of a merge and a vehicle following this connection should yield to vehicles following other incoming connections.", + "type": "boolean" } }, "type": "object" @@ -36256,7 +36381,8 @@ "PROVIDER_AMPUP", "PROVIDER_LOOP", "PROVIDER_ZEST", - "PROVIDER_EZVOLT" + "PROVIDER_EZVOLT", + "PROVIDER_JOLT" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -36970,7 +37096,8 @@ "", "", "", - "Note: Next available value is 0x1270C." + "", + "Note: Next available value is 0x1270D." ], "type": "string" }, @@ -38719,7 +38846,8 @@ "PROVIDER_AMPUP", "PROVIDER_LOOP", "PROVIDER_ZEST", - "PROVIDER_EZVOLT" + "PROVIDER_EZVOLT", + "PROVIDER_JOLT" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -39433,7 +39561,8 @@ "", "", "", - "Note: Next available value is 0x1270C." + "", + "Note: Next available value is 0x1270D." ], "type": "string" } @@ -41176,7 +41305,7 @@ "type": "array" }, "sourceType": { - "description": "RESERVED", + "description": "The source of the speed limit.", "enum": [ "SPEED_LIMIT_SOURCE_TYPE_UNKNOWN", "EXPLICIT", @@ -41209,10 +41338,12 @@ "id": "GeostoreSpeedProto", "properties": { "speed": { + "description": "All speed values are stored in kilometers per hour.", "format": "float", "type": "number" }, "unit": { + "description": "Mapfacts only allows unit to be KILOMETERS_PER_HOUR.", "enum": [ "UNIT_UNKNOWN", "MILES_PER_HOUR", @@ -44511,79 +44642,6 @@ }, "type": "object" }, - "GoogleCloudContentwarehouseV1Collection": { - "description": "Defines the structure for content warehouse collection proto.", - "id": "GoogleCloudContentwarehouseV1Collection", - "properties": { - "allowLinkDocuments": { - "description": "Whether allow the collection to link to documents. Cannot be updated after the collection is created.", - "type": "boolean" - }, - "attributes": { - "additionalProperties": { - "description": "Properties of the object.", - "type": "any" - }, - "description": "Other collection attributes for the use cases.", - "type": "object" - }, - "collectionType": { - "description": "Indicate this collection’s type.", - "enum": [ - "COLLECTION_TYPE_UNSPECIFIED", - "DATASET", - "RECORD_SET", - "WORK_QUEUE", - "WORKFLOW", - "LEGAL_HOLD" - ], - "enumDescriptions": [ - "Not specified.", - "Dataset collection.", - "Record set collection.", - "Queue collection. E.g. a queue for human review.", - "The working collection for a workflow. One workflow has one collection.", - "Legal hold collection." - ], - "type": "string" - }, - "createTime": { - "description": "Output only. The time when the document is created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "displayName": { - "description": "Required. Display name of the collection given by the user.", - "type": "string" - }, - "name": { - "description": "The resource name of the collection. Format: projects/{project_number}/locations/{location}/collections/{collection}. The name is ignored when creating a collection.", - "type": "string" - }, - "parentCollectionId": { - "description": "The parent collection ID of the collection. One collection only can have one parent collection, and they should be in the same project and location.", - "type": "string" - }, - "revokeDocEditPermission": { - "description": "If it is true, after adding the document to the collection, the users with document edit permission will only have view permission. Can not be updated after the collection is created.", - "type": "boolean" - }, - "updateTime": { - "description": "Output only. The time when the document is last updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudContentwarehouseV1CollectionQuery": { - "description": "The query string that matches against the collections.", - "id": "GoogleCloudContentwarehouseV1CollectionQuery", - "properties": {}, - "type": "object" - }, "GoogleCloudContentwarehouseV1CreateDocumentLinkRequest": { "description": "Request message for DocumentLinkService.CreateDocumentLink.", "id": "GoogleCloudContentwarehouseV1CreateDocumentLinkRequest", @@ -45115,33 +45173,6 @@ }, "type": "object" }, - "GoogleCloudContentwarehouseV1ExportToCdwPipeline": { - "description": "The configuration of exporting documents from the Document Warehouse to CDW pipeline.", - "id": "GoogleCloudContentwarehouseV1ExportToCdwPipeline", - "properties": { - "docAiDataset": { - "description": "The CDW dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset", - "type": "string" - }, - "documents": { - "description": "The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}.", - "items": { - "type": "string" - }, - "type": "array" - }, - "exportFolderPath": { - "description": "The Cloud Storage folder path used to store the exported documents before being sent to CDW. Format: gs:///.", - "type": "string" - }, - "trainingSplitRatio": { - "description": "Ratio of training dataset split. When importing into Document AI Workbench, documents will be automatically split into training and test split category with the specified ratio.", - "format": "float", - "type": "number" - } - }, - "type": "object" - }, "GoogleCloudContentwarehouseV1FetchAclRequest": { "description": "Request message for DocumentService.FetchAcl", "id": "GoogleCloudContentwarehouseV1FetchAclRequest", @@ -45172,32 +45203,6 @@ }, "type": "object" }, - "GoogleCloudContentwarehouseV1FetchCollectionAclRequest": { - "description": "Request message for CollectionService.FetchAcl", - "id": "GoogleCloudContentwarehouseV1FetchCollectionAclRequest", - "properties": { - "requestMetadata": { - "$ref": "GoogleCloudContentwarehouseV1RequestMetadata", - "description": "The meta information collected about the end user, used to enforce access control for the service." - } - }, - "type": "object" - }, - "GoogleCloudContentwarehouseV1FetchCollectionAclResponse": { - "description": "Response message for CollectionService.FetchAcl.", - "id": "GoogleCloudContentwarehouseV1FetchCollectionAclResponse", - "properties": { - "metadata": { - "$ref": "GoogleCloudContentwarehouseV1ResponseMetadata", - "description": "Additional information for the API invocation." - }, - "policy": { - "$ref": "GoogleIamV1Policy", - "description": "The IAM policy." - } - }, - "type": "object" - }, "GoogleCloudContentwarehouseV1FileTypeFilter": { "description": "Filter for the specific types of documents returned.", "id": "GoogleCloudContentwarehouseV1FileTypeFilter", @@ -45242,51 +45247,6 @@ "properties": {}, "type": "object" }, - "GoogleCloudContentwarehouseV1GcsIngestPipeline": { - "description": "The configuration of the Cloud Storage ingestion pipeline.", - "id": "GoogleCloudContentwarehouseV1GcsIngestPipeline", - "properties": { - "inputPath": { - "description": "The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: gs:///.", - "type": "string" - }, - "processorType": { - "description": "The Doc AI processor type name. Only used when the format of ingested files is Doc AI Document proto format. Reference: https://source.corp.google.com/piper///depot/google3/cloud/ai/documentai/core/c/proto/processor.proto;l=21", - "type": "string" - }, - "schemaName": { - "description": "The Document Warehouse schema resource name. All documents processed by this pipeline will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline": { - "description": "The configuration of the document classify/split and entity/kvp extraction pipeline.", - "id": "GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline", - "properties": { - "extractProcessorInfos": { - "description": "The extract processors information. One matched extract processor will be used to process documents based on the classify processor result. If no classify processor is specificied, the first extract processor will be used.", - "items": { - "$ref": "GoogleCloudContentwarehouseV1ProcessorInfo" - }, - "type": "array" - }, - "inputPath": { - "description": "The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: gs:///.", - "type": "string" - }, - "processorResultsFolderPath": { - "description": "The Cloud Storage folder path used to store the raw results from processors. Format: gs:///.", - "type": "string" - }, - "splitClassifyProcessorInfo": { - "$ref": "GoogleCloudContentwarehouseV1ProcessorInfo", - "description": "The split and classify processor information. The split and classify result will be used to find a matched extract processor." - } - }, - "type": "object" - }, "GoogleCloudContentwarehouseV1GetDocumentRequest": { "description": "Request message for DocumentService.GetDocument.", "id": "GoogleCloudContentwarehouseV1GetDocumentRequest", @@ -45490,44 +45450,6 @@ }, "type": "object" }, - "GoogleCloudContentwarehouseV1Link": { - "description": "Defines the structure for content warehouse link proto.", - "id": "GoogleCloudContentwarehouseV1Link", - "properties": { - "attributes": { - "additionalProperties": { - "description": "Properties of the object.", - "type": "any" - }, - "description": "Other link attributes.", - "type": "object" - }, - "collectionId": { - "description": "The collection the link connects to. Should have the same project and location with the link.", - "type": "string" - }, - "createTime": { - "description": "Output only. The create timestamp.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "creator": { - "description": "Output only. Indicates who created this link.", - "readOnly": true, - "type": "string" - }, - "documentId": { - "description": "The document the link connects to. Should have the same project and location with the link.", - "type": "string" - }, - "name": { - "description": "The resource name of the link. Format: projects/{project_number}/locations/{location}/links/{link}. The name is ignored when creating a link.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudContentwarehouseV1ListDocumentSchemasResponse": { "description": "Response message for DocumentSchemaService.ListDocumentSchemas.", "id": "GoogleCloudContentwarehouseV1ListDocumentSchemasResponse", @@ -45699,51 +45621,6 @@ }, "type": "object" }, - "GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline": { - "description": "The configuration of processing documents in Document Warehouse with DocAi processors pipeline.", - "id": "GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline", - "properties": { - "documents": { - "description": "The list of all the resource names of the documents to be processed. Format: projects/{project_number}/locations/{location}/documents/{document_id}.", - "items": { - "type": "string" - }, - "type": "array" - }, - "exportFolderPath": { - "description": "The Cloud Storage folder path used to store the exported documents before being sent to CDW. Format: gs:///.", - "type": "string" - }, - "processorInfo": { - "$ref": "GoogleCloudContentwarehouseV1ProcessorInfo", - "description": "The CDW processor information." - }, - "processorResultsFolderPath": { - "description": "The Cloud Storage folder path used to store the raw results from processors. Format: gs:///.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudContentwarehouseV1ProcessorInfo": { - "description": "The DocAI processor information.", - "id": "GoogleCloudContentwarehouseV1ProcessorInfo", - "properties": { - "documentType": { - "description": "The processor will process the documents with this document type.", - "type": "string" - }, - "processorName": { - "description": "The processor resource name. Format is `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`", - "type": "string" - }, - "schemaName": { - "description": "The Document schema resource name. All documents processed by this processor will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudContentwarehouseV1Property": { "description": "Property of a document.", "id": "GoogleCloudContentwarehouseV1Property", @@ -46162,82 +46039,42 @@ }, "type": "object" }, - "GoogleCloudContentwarehouseV1RunPipelineRequest": { - "description": "Request message for DocumentService.RunPipeline.", - "id": "GoogleCloudContentwarehouseV1RunPipelineRequest", + "GoogleCloudContentwarehouseV1RunPipelineMetadata": { + "description": "Metadata message of RunPipeline method.", + "id": "GoogleCloudContentwarehouseV1RunPipelineMetadata", "properties": { - "exportCdwPipeline": { - "$ref": "GoogleCloudContentwarehouseV1ExportToCdwPipeline", - "description": "Export docuemnts from Document Warehouse to CDW for training purpose." - }, - "gcsIngestPipeline": { - "$ref": "GoogleCloudContentwarehouseV1GcsIngestPipeline", - "description": "Cloud Storage ingestion pipeline." - }, - "gcsIngestWithDocAiProcessorsPipeline": { - "$ref": "GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline", - "description": "Use DocAI processors to process documents in Cloud Storage and ingest them to Document Warehouse." + "failedFileCount": { + "description": "Number of files that have failed at some point in the pipeline.", + "format": "int32", + "type": "integer" }, - "processWithDocAiPipeline": { - "$ref": "GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline", - "description": "Use a DocAI processor to process documents in Document Warehouse, and re-ingest the updated results into Document Warehouse." + "gcsIngestPipelineMetadata": { + "$ref": "GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata", + "description": "The pipeline metadata for GcsIngest pipeline." }, - "requestMetadata": { - "$ref": "GoogleCloudContentwarehouseV1RequestMetadata", - "description": "The meta information collected about the end user, used to enforce access control for the service." - } - }, - "type": "object" - }, - "GoogleCloudContentwarehouseV1SearchCollectionsRequest": { - "description": "Request message for CollectionService.SearchCollections.", - "id": "GoogleCloudContentwarehouseV1SearchCollectionsRequest", - "properties": { - "pageSize": { - "description": "A limit on the number of collections returned in the search results. Increasing this value above the default value of 10 can increase search response time. The value can be between 1 and 100.", + "totalFileCount": { + "description": "Number of files that were processed by the pipeline.", "format": "int32", "type": "integer" }, - "pageToken": { - "description": "The token specifying the current offset within search results. See SearchCollectionsResponse.next_page_token for an explanation of how to obtain the next set of query results.", - "type": "string" - }, - "query": { - "$ref": "GoogleCloudContentwarehouseV1CollectionQuery", - "description": "Query used to search against collections." + "userInfo": { + "$ref": "GoogleCloudContentwarehouseV1UserInfo", + "description": "User unique identification and groups information." } }, "type": "object" }, - "GoogleCloudContentwarehouseV1SearchCollectionsResponse": { - "description": "Response message for CollectionService.SearchCollections.", - "id": "GoogleCloudContentwarehouseV1SearchCollectionsResponse", + "GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata": { + "description": "The metadata message for GcsIngest pipeline.", + "id": "GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata", "properties": { - "matchingCollections": { - "description": "The collection entities that match the specified SearchCollectionsRequest.", - "items": { - "$ref": "GoogleCloudContentwarehouseV1SearchCollectionsResponseMatchingCollection" - }, - "type": "array" - }, - "nextPageToken": { - "description": "The token that specifies the starting position of the next page of results. This field is empty if there are no more results.", + "inputPath": { + "description": "The input Cloud Storage folder in this pipeline. Format: `gs:///`.", "type": "string" } }, "type": "object" }, - "GoogleCloudContentwarehouseV1SearchCollectionsResponseMatchingCollection": { - "description": "Collection entry with metadata inside SearchCollectionsResponse", - "id": "GoogleCloudContentwarehouseV1SearchCollectionsResponseMatchingCollection", - "properties": { - "collection": { - "$ref": "GoogleCloudContentwarehouseV1Collection", - "description": "Collection that matches the specified SearchCollectionsRequest." - } - }, - "type": "object" - }, "GoogleCloudContentwarehouseV1SearchDocumentsRequest": { "description": "Request message for DocumentService.SearchDocuments.", "id": "GoogleCloudContentwarehouseV1SearchDocumentsRequest", @@ -46388,36 +46225,6 @@ }, "type": "object" }, - "GoogleCloudContentwarehouseV1SetCollectionAclRequest": { - "description": "Request message for CollectionService.SetAcl.", - "id": "GoogleCloudContentwarehouseV1SetCollectionAclRequest", - "properties": { - "policy": { - "$ref": "GoogleIamV1Policy", - "description": "Required. REQUIRED: The complete policy to be applied to the collection. The size of the policy is limited to a few 10s of KB." - }, - "requestMetadata": { - "$ref": "GoogleCloudContentwarehouseV1RequestMetadata", - "description": "The meta information collected about the end user, used to enforce access control for the service." - } - }, - "type": "object" - }, - "GoogleCloudContentwarehouseV1SetCollectionAclResponse": { - "description": "Response message for CollectionService.SetAcl.", - "id": "GoogleCloudContentwarehouseV1SetCollectionAclResponse", - "properties": { - "metadata": { - "$ref": "GoogleCloudContentwarehouseV1ResponseMetadata", - "description": "Additional information for the API invocation, such as the request tracking id." - }, - "policy": { - "$ref": "GoogleIamV1Policy", - "description": "The policy created for the Collection." - } - }, - "type": "object" - }, "GoogleCloudContentwarehouseV1SynonymSet": { "description": "Represents a list of synonyms for a given context. For example a context \"sales\" could contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, credit, finance, payment Synonym 3: shipping, freight, transport Each SynonymSets should be disjoint", "id": "GoogleCloudContentwarehouseV1SynonymSet", @@ -48041,10 +47848,6 @@ "format": "google-datetime", "type": "string" }, - "committedUntilIsMixed": { - "description": "TODO(b/265939748) To be removed, always false.", - "type": "boolean" - }, "eventSummary": { "description": "The summary of the corresponding event in Calendar.", "type": "string" @@ -48090,10 +47893,6 @@ "format": "google-datetime", "type": "string" }, - "committedUntilIsMixed": { - "description": "TODO(b/265939748) To be removed, always false.", - "type": "boolean" - }, "nextAvailable": { "description": "The next time when the user will be available, i.e., when their status will be neither InMeeting, CalendarBusy, DoNotDisturb, OutsideWorkingHours, nor OutOfOffice.", "format": "google-datetime", @@ -48122,10 +47921,6 @@ "format": "google-datetime", "type": "string" }, - "committedUntilIsMixed": { - "description": "TODO(b/265939748) To be removed, always false.", - "type": "boolean" - }, "eventSummary": { "description": "The summary of the corresponding event in Calendar.", "type": "string" @@ -48202,10 +47997,6 @@ "format": "google-datetime", "type": "string" }, - "committedUntilIsMixed": { - "description": "TODO(b/265939748) To be removed, always false.", - "type": "boolean" - }, "eventSummary": { "description": "The summary of the corresponding OOO block in Calendar. This is entered by the user, so we return it \"as is\" - no i18n.", "type": "string" @@ -60999,7 +60790,8 @@ "ATTENTIONAL_ENTITY", "AUDIO_MESSAGE_METADATA_ID", "BROADCAST", - "MESSAGE_CONTENT" + "MESSAGE_CONTENT", + "INLINE_INVENTORY" ], "enumDescriptions": [ "", @@ -61030,7 +60822,8 @@ "", "A secondary speech id for Audio Message Metadata go/audio-message-gp.", "Broadcast feature identifier go/routines-broadcast-device-gp", - "Message content identifier for send/reply message go/message-content-grounding" + "Message content identifier for send/reply message go/message-content-grounding", + "go/aigp" ], "type": "string" } @@ -82669,7 +82462,7 @@ "type": "object" }, "QualityActionsReminder": { - "description": "Next id: 32", + "description": "Next id: 33", "id": "QualityActionsReminder", "properties": { "archived": { @@ -83096,6 +82889,7 @@ "PROACTIVE_API_FASTTRACK", "PERSONAL_RESULTS_OPTIN", "HEADPHONE_PERSONAL_RESULTS_OPTIN", + "DISCOVERY_SPARKS", "UNIT_TESTING" ], "enumDescriptions": [ @@ -83507,6 +83301,7 @@ "Notification configured through FastTrack UI: http://fasttrack.", "Notification for Personal Response (PR) opt-in: go/migrate-pr-notifs-tng-ma-prd", "Notification for Headphone Personal Response (HPR) opt-in: go/migrate-pr-notifs-tng-ma-prd", + "go/habits-sparks-design", "NOTE: This should always stay at the bottom of the list." ], "type": "string" @@ -83564,6 +83359,10 @@ "dynamiteGroupAssignmentSource": { "$ref": "QualityActionsReminderDynamiteGroup" }, + "extraNotificationDeviceId": { + "description": "OPTIONAL. Device ID for home notification which should have loud notification. See go/device-id-storage-in-tasks", + "type": "string" + }, "id": { "description": "DEPRECATED. Use `client_id` or `server_id` instead.", "type": "string" @@ -85917,19 +85716,19 @@ "$ref": "QualityNsrNsrChunksProto" }, "siteChunkSource": { - "description": "These are annotated in the Goldmine NSR annotator.", + "description": "Annotated in the SitechunksAnnotator and copied over in NsrAnnotator.", "enum": [ - "UNKNOWN", - "HOST_LEVEL_V3", - "MARKUP_BREADCRUMBS", - "MARKUP_AUTHOR", - "COOKBOOK", - "CRAWLED_SELLER_DATA", - "FALLBACK" + "SITE_CHUNK_SOURCE_UNKNOWN", + "SITE_CHUNK_SOURCE_WEBUTIL", + "SITE_CHUNK_SOURCE_BREADCRUMBS", + "SITE_CHUNK_SOURCE_AUTHOR", + "SITE_CHUNK_SOURCE_COOKBOOK", + "SITE_CHUNK_SOURCE_CRAWLED_SELLER_DATA", + "SITE_CHUNK_SOURCE_FALLBACK" ], "enumDescriptions": [ "", - "", + "As of June 2021 this corresponds to HOST_LEVEL_V3 granularity.", "", "", "", @@ -86385,8 +86184,337 @@ "type": "object" }, "QualityOrbitAsteroidBeltDocumentIntentScores": { + "description": "Next ID: 7", "id": "QualityOrbitAsteroidBeltDocumentIntentScores", "properties": { + "belowThresholdIntents": { + "description": "Same as above, but for intents below triggering threshold. It can be assumed that any intent in this list has trigger=false. Most intents do not have below-threshold annotations.", + "items": { + "enum": [ + "NONE", + "TUTORIAL", + "MAP", + "TRANSLATE", + "LISTEN", + "PROMOTION", + "GIF", + "REGISTER", + "EVENT_LISTING", + "RANKING", + "DISCOGRAPHY", + "DIRECTIONS", + "NEWS", + "SOCIAL_MEDIA", + "FAN_FICTION", + "RECIPES", + "HOURS_OF_OPERATION", + "DEFINITION", + "REAL_ESTATE_LISTING", + "PREVIEW", + "PURCHASE", + "MENU", + "UNBOXING", + "NUTRITION_FACTS", + "TRAVEL_GUIDE", + "SPECS", + "CALCULATOR", + "DOWNLOAD", + "SCORES", + "QUOTES", + "SHOWTIMES", + "CATALOG", + "CALENDAR", + "LOCATION_FINDER", + "RENT", + "STUDY_GUIDE", + "REVIEW", + "SHEET_MUSIC", + "LOGIN", + "TRIVIA", + "CONTACT_PAGE", + "RESERVATION", + "CUSTOMER_SUPPORT", + "INTERVIEW", + "COUPON", + "FLIGHT_TRACKER", + "COMPANY_FINANCIALS", + "FORUM", + "THESAURUS", + "MANUAL", + "JOB_POSTING", + "LYRICS", + "SYMPTOMS", + "REPAIR", + "BUYING_GUIDE", + "PRODUCT_EDITORIAL_REVIEW", + "SHOPPING_MERCHANT_PRODUCT", + "SHOPPING_REVIEW_OR_BUYING_GUIDE", + "PRODUCT_REVIEW", + "PRODUCT_COMPARISON", + "PRODUCT_BUYING_GUIDE", + "SHOPAHOLIC", + "GOOGLE_SCREENSHOT", + "MUGSHOT", + "CRIME", + "SHOPPING_TOPN", + "AUTHENTICITY", + "TANGRAM_INFORMATION_OTHER", + "TANGRAM_NEWS_PUBLISHER", + "TANGRAM_ENCYCLOPEDIA", + "TANGRAM_MERCHANT", + "TANGRAM_GOVERNMENT", + "TANGRAM_UGC", + "TANGRAM_RESEARCH_INSTITUTE", + "RESERVED_FOR_NEW_ENUM_135", + "RESERVED_FOR_NEW_ENUM_136", + "RESERVED_FOR_NEW_ENUM_137", + "RESERVED_FOR_NEW_ENUM_138", + "RESERVED_FOR_NEW_ENUM_139", + "RESERVED_FOR_NEW_ENUM_140", + "RESERVED_FOR_NEW_ENUM_141", + "RESERVED_FOR_NEW_ENUM_142", + "RESERVED_FOR_NEW_ENUM_143", + "RESERVED_FOR_NEW_ENUM_144", + "RESERVED_FOR_NEW_ENUM_145", + "RESERVED_FOR_NEW_ENUM_146", + "RESERVED_FOR_NEW_ENUM_147", + "RESERVED_FOR_NEW_ENUM_148", + "RESERVED_FOR_NEW_ENUM_149", + "RESERVED_FOR_NEW_ENUM_150", + "RESERVED_FOR_NEW_ENUM_151", + "RESERVED_FOR_NEW_ENUM_152", + "RESERVED_FOR_NEW_ENUM_153", + "RESERVED_FOR_NEW_ENUM_154", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_103", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_104", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_105", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_106", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_107", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_108", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_109", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_110", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_111", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_112", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_113", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_114", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_115", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_116", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_117", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_118", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_119", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_120", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_121", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_122", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_123", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_124", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_125", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_126", + "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_127", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_2", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_5", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_8", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_10", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_17", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_18", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_21", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_23", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_24", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_28", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_29", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_31", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_34", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_36", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_38", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_39", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_40", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_46", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_50", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_52", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_54", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_56", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_57", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_59", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_60", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_63", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_67", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_71", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_75", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_78", + "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_81" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "This is specifically for the buying guides carousel (go/oshop-buying-guides). Consider using PRODUCT_BUYING_GUIDE instead.", + "", + "", + "This is basically an \"or\" of PRODUCT_REVIEW, PRODUCT_COMPARISON, and PRODUCT_BUYING_GUIDE. Use those three intents instead.", + "", + "", + "", + "This is the unmodified http://go/shopaholic score \"forwarded\" through Orbit. Note that scores less than 0.4 are not written to cdoc and will show up as 0.0.", + "This is an image intent", + "Image intent representing whether there is a mugshot in the image (or if the image is itself a mugshot).", + "Document intent representing whether a page is crime-related (go/crime-demotion-in-image-search-dd)", + "Document intent representing whether a page is recommending best shopping products fulfilling certain application (e.g. \"best laptops for students\"). See go/shopping_topn_orbit.", + "AuthenticityScore for document. see go/astar-dd.", + "Document intents for various information sources. They are used in Tangram Diversity. see tangram_diversity_annotation.proto.", + "", + "", + "", + "", + "", + "", + "========== Enums for new intents ========== Instructions: When adding a new intent, use the reserved enum number from the start of this list, and add a new reserved enum number to the end for the next person. There is a unit test that checks there are at least 20 reserved enums. See go/new-intentkeyenum for details.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "========== Enums for new large intents ========== Please ask orbit@ before using these.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "========== Enums for deleted intents ==========", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + }, + "belowThresholdScores": { + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, "imageIntentScores": { "additionalProperties": { "$ref": "QualityOrbitAsteroidBeltImageIntentScores" @@ -86465,13 +86593,13 @@ "CRIME", "SHOPPING_TOPN", "AUTHENTICITY", - "RESERVED_FOR_NEW_ENUM_128", - "RESERVED_FOR_NEW_ENUM_129", - "RESERVED_FOR_NEW_ENUM_130", - "RESERVED_FOR_NEW_ENUM_131", - "RESERVED_FOR_NEW_ENUM_132", - "RESERVED_FOR_NEW_ENUM_133", - "RESERVED_FOR_NEW_ENUM_134", + "TANGRAM_INFORMATION_OTHER", + "TANGRAM_NEWS_PUBLISHER", + "TANGRAM_ENCYCLOPEDIA", + "TANGRAM_MERCHANT", + "TANGRAM_GOVERNMENT", + "TANGRAM_UGC", + "TANGRAM_RESEARCH_INSTITUTE", "RESERVED_FOR_NEW_ENUM_135", "RESERVED_FOR_NEW_ENUM_136", "RESERVED_FOR_NEW_ENUM_137", @@ -86485,6 +86613,13 @@ "RESERVED_FOR_NEW_ENUM_145", "RESERVED_FOR_NEW_ENUM_146", "RESERVED_FOR_NEW_ENUM_147", + "RESERVED_FOR_NEW_ENUM_148", + "RESERVED_FOR_NEW_ENUM_149", + "RESERVED_FOR_NEW_ENUM_150", + "RESERVED_FOR_NEW_ENUM_151", + "RESERVED_FOR_NEW_ENUM_152", + "RESERVED_FOR_NEW_ENUM_153", + "RESERVED_FOR_NEW_ENUM_154", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100", @@ -86615,6 +86750,13 @@ "Document intent representing whether a page is crime-related (go/crime-demotion-in-image-search-dd)", "Document intent representing whether a page is recommending best shopping products fulfilling certain application (e.g. \"best laptops for students\"). See go/shopping_topn_orbit.", "AuthenticityScore for document. see go/astar-dd.", + "Document intents for various information sources. They are used in Tangram Diversity. see tangram_diversity_annotation.proto.", + "", + "", + "", + "", + "", + "", "========== Enums for new intents ========== Instructions: When adding a new intent, use the reserved enum number from the start of this list, and add a new reserved enum number to the end for the next person. There is a unit test that checks there are at least 20 reserved enums. See go/new-intentkeyenum for details.", "", "", @@ -86710,7 +86852,7 @@ "type": "array" }, "version": { - "description": "Version 0: Presence of an intent label in the 'intents' field represents our best-effort classification. The 'scores' field is not meaningful. Version 1: Values in the 'scores' field represent the estimated precision of the classifier for a threshold at that score.", + "description": "DEPRECATED. DO NOT USE IT FOR ANY REASON! contact orbit@ if necessary.", "format": "int32", "type": "integer" } @@ -86791,13 +86933,13 @@ "CRIME", "SHOPPING_TOPN", "AUTHENTICITY", - "RESERVED_FOR_NEW_ENUM_128", - "RESERVED_FOR_NEW_ENUM_129", - "RESERVED_FOR_NEW_ENUM_130", - "RESERVED_FOR_NEW_ENUM_131", - "RESERVED_FOR_NEW_ENUM_132", - "RESERVED_FOR_NEW_ENUM_133", - "RESERVED_FOR_NEW_ENUM_134", + "TANGRAM_INFORMATION_OTHER", + "TANGRAM_NEWS_PUBLISHER", + "TANGRAM_ENCYCLOPEDIA", + "TANGRAM_MERCHANT", + "TANGRAM_GOVERNMENT", + "TANGRAM_UGC", + "TANGRAM_RESEARCH_INSTITUTE", "RESERVED_FOR_NEW_ENUM_135", "RESERVED_FOR_NEW_ENUM_136", "RESERVED_FOR_NEW_ENUM_137", @@ -86811,6 +86953,13 @@ "RESERVED_FOR_NEW_ENUM_145", "RESERVED_FOR_NEW_ENUM_146", "RESERVED_FOR_NEW_ENUM_147", + "RESERVED_FOR_NEW_ENUM_148", + "RESERVED_FOR_NEW_ENUM_149", + "RESERVED_FOR_NEW_ENUM_150", + "RESERVED_FOR_NEW_ENUM_151", + "RESERVED_FOR_NEW_ENUM_152", + "RESERVED_FOR_NEW_ENUM_153", + "RESERVED_FOR_NEW_ENUM_154", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99", "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100", @@ -86941,6 +87090,13 @@ "Document intent representing whether a page is crime-related (go/crime-demotion-in-image-search-dd)", "Document intent representing whether a page is recommending best shopping products fulfilling certain application (e.g. \"best laptops for students\"). See go/shopping_topn_orbit.", "AuthenticityScore for document. see go/astar-dd.", + "Document intents for various information sources. They are used in Tangram Diversity. see tangram_diversity_annotation.proto.", + "", + "", + "", + "", + "", + "", "========== Enums for new intents ========== Instructions: When adding a new intent, use the reserved enum number from the start of this list, and add a new reserved enum number to the end for the next person. There is a unit test that checks there are at least 20 reserved enums. See go/new-intentkeyenum for details.", "", "", @@ -89616,6 +89772,13 @@ }, "type": "array" }, + "gtinValue": { + "description": "Global trade item number (GTIN).", + "items": { + "type": "string" + }, + "type": "array" + }, "imageId": { "description": "image_id is sorted and distinct for efficient search during serving.", "items": { @@ -89816,6 +89979,14 @@ "$ref": "QualityShoppingShoppingAttachmentPBlock", "description": "Client needs to make decision on which field to use when both non_displayable_title and pblock.final_title are present." }, + "productBrowseonomyIds": { + "description": "Product level Browseonomy ids from shopping_annotation.product.browseonomy.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, "productClusterMid": { "format": "uint64", "type": "string" @@ -90244,10 +90415,10 @@ ], "enumDescriptions": [ "", - "", - "", - "", - "" + "Query term matched terms.", + "Radish bolded terms.", + "Snippet brain bolded terms.", + "User quoted query terms." ], "type": "string" } @@ -98699,6 +98870,49 @@ }, "type": "object" }, + "ResearchScamNumericRestrictNamespace": { + "id": "ResearchScamNumericRestrictNamespace", + "properties": { + "namespace": { + "description": "The name of this namespace.", + "type": "string" + }, + "op": { + "description": "This MUST be specified for queries and must NOT be specified for database points.", + "enum": [ + "OP_UNSPECIFIED", + "LESS", + "LESS_EQUAL", + "EQUAL", + "GREATER_EQUAL", + "GREATER" + ], + "enumDescriptions": [ + "", + "Database points are eligible iff their value is \u003c the query's.", + "Database points are eligible iff their value is \u003c= the query's.", + "Database points are eligible iff their value is == the query's.", + "Database points are eligible iff their value is \u003e= the query's.", + "Database points are eligible iff their value is \u003e the query's." + ], + "type": "string" + }, + "valueDouble": { + "format": "double", + "type": "number" + }, + "valueFloat": { + "format": "float", + "type": "number" + }, + "valueInt": { + "description": "NOTE: Integers are represented in 64 bits here, but if all integer values for a given namespace fit in a narrower integer type (e.g. int8), we use the narrower integer type internally, increasing performance.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "ResearchScamOnlineSearchLatencyStats": { "description": "Structure to hold the response time for a node. Last used: 3", "id": "ResearchScamOnlineSearchLatencyStats", @@ -98847,6 +99061,13 @@ "$ref": "ResearchScamTokenNamespace" }, "type": "array" + }, + "numericNamespaces": { + "description": "This field allows restricts to be based on numeric comparisons rather than categorical tokens. HINT: To allow a range of values in a namespace (e.g. 42 \u003c= x \u003c 128), specify the same namespace twice in the query, e.g.: {namespace: \"x\" op: LESS value_int: 128 } {namespace: \"x\" op: GREATER_EQUAL value_int: 42 }", + "items": { + "$ref": "ResearchScamNumericRestrictNamespace" + }, + "type": "array" } }, "type": "object" @@ -100546,13 +100767,15 @@ "UNKNOWN_ABSTRACT_DISPLAY", "MAIN_ABSTRACT_DISPLAY", "GRAPHICAL_ABSTRACT_DISPLAY", - "SUMMARY_ABSTRACT_DISPLAY" + "SUMMARY_ABSTRACT_DISPLAY", + "HIGHLIGHTS_ABSTRACT_DISPLAY" ], "enumDescriptions": [ "", - "", - "", - "" + "Main author written abstract.", + "Abstract in form of image or graphic explanation.", + "Summary for the paper. Usually not the main author written abstract.", + "Highlights for a paper, often bulletized." ], "type": "string" }, @@ -101108,13 +101331,15 @@ "UNKNOWN_ABSTRACT_DISPLAY", "MAIN_ABSTRACT_DISPLAY", "GRAPHICAL_ABSTRACT_DISPLAY", - "SUMMARY_ABSTRACT_DISPLAY" + "SUMMARY_ABSTRACT_DISPLAY", + "HIGHLIGHTS_ABSTRACT_DISPLAY" ], "enumDescriptions": [ "", - "", - "", - "" + "Main author written abstract.", + "Abstract in form of image or graphic explanation.", + "Summary for the paper. Usually not the main author written abstract.", + "Highlights for a paper, often bulletized." ], "type": "string" }, @@ -101495,6 +101720,18 @@ "description": "Holds information about the source of the funding entry.", "id": "ScienceCitationFundingExtractionInfo", "properties": { + "ClearedFunding": { + "description": "Set when we clear all extracted funding from this citation in the parser.", + "enum": [ + "UNSPECIFIED_REASON", + "SHORT_ARTICLE" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + }, "DebugFundingTextBlock": { "description": "Text block context from which the funding entry was extracted. Optionally filled and intended to be used for offline analysis.", "type": "string" @@ -102891,7 +103128,8 @@ "INFERRED_IMAGE_TYPE_PRODUCT_BLOCKS", "INFERRED_IMAGE_TYPE_SCHEMA_DOT_ORG", "INFERRED_IMAGE_TYPE_CRAWZALL", - "INFERRED_IMAGE_TYPE_OPEN_GRAPH" + "INFERRED_IMAGE_TYPE_OPEN_GRAPH", + "INFERRED_IMAGE_TYPE_NEARDUP_STARBURST_V5" ], "enumDescriptions": [ "", @@ -102903,6 +103141,7 @@ "", "", "", + "", "" ], "type": "string" @@ -102946,7 +103185,8 @@ "INFERRED_IMAGE_TYPE_PRODUCT_BLOCKS", "INFERRED_IMAGE_TYPE_SCHEMA_DOT_ORG", "INFERRED_IMAGE_TYPE_CRAWZALL", - "INFERRED_IMAGE_TYPE_OPEN_GRAPH" + "INFERRED_IMAGE_TYPE_OPEN_GRAPH", + "INFERRED_IMAGE_TYPE_NEARDUP_STARBURST_V5" ], "enumDescriptions": [ "", @@ -102958,6 +103198,7 @@ "", "", "", + "", "" ], "type": "string" @@ -106445,8 +106686,8 @@ ], "enumDescriptions": [ "", - "", - "not used in KE infra", + "WARNING for data providers: the REQUIRES_PCOUNSEL_REVIEW mechanism is outdated and has many drawbacks. Please prefer other data governance solutions (go/ke-data-governance for details) before deciding to use this field for new data onboarding. Feel free to reach out to g/ke-data-governance for any questions.", + "Not used in KE infra.", "" ], "type": "string" @@ -109627,6 +109868,8 @@ "PGSS_SHORT_DESCRIPTION_DIFF_EVENT_LEVEL", "SECOND_PASS_QUALITY_REWEIGTHING_EVENT_LEVEL", "SECOND_PASS_QUALITY_REWEIGTHING_MDP_EVENT_LEVEL", + "PLAY_STORE_IAP_SALES_MINI_DETAILS_PAGE_EVENT_LEVEL", + "UNACK_IN_APP_SUBSCRIPTION_WARNING_DETAIL_PAGE_EVENT_LEVEL", "EVENT_LEVEL_TEST_CODE_LIMIT", "ENTERTAINMENT_CLUSTER_TRIGGERING_AT_SESSION_LEVEL", "BEST_SELLER_CART_TAG_AT_SESSION_LEVEL", @@ -110133,6 +110376,8 @@ "KIDS_LAUNCHER_USER_FEATURES_MISSING", "SECOND_PASS_QUALITY_REWEIGTHING_SESSION_LEVEL", "SECOND_PASS_QUALITY_REWEIGTHING_MDP_SESSION_LEVEL", + "UNACK_IN_APP_SUBSCRIPTION_WARNING_DETAIL_PAGE_SESSION_LEVEL", + "ELIGIBLE_FOR_FORM_FACTOR_FILTER_ON_TOP_CHARTS", "SESSION_LEVEL_TEST_CODE_LIMIT", "CART_ABANDONMENT_USER_LEVEL", "IN_APP_PRODUCTS_IN_DETAILS_PAGE_USER_LEVEL", @@ -110251,6 +110496,7 @@ "GE_USER_VALUE_SEGMENT_MEDIUM", "GE_USER_VALUE_SEGMENT_HIGH", "GE_USER_VALUE_SEGMENT_NEVER", + "GE_POINTS_BOOSTER_MODEL_LAUNCH", "GE_IS_SCHEDULED_UNKNOWN_SURFACE", "GE_IS_SCHEDULED_LEON", "GE_IS_SCHEDULED_NOTIFICATION", @@ -110292,6 +110538,7 @@ "FOP_STEERING_PROMOTION_CART_CHANGE_FOP_USER_LEVEL_V2", "FOP_STEERING_PROMOTION_CART_APPLY_PROMOTION_USER_LEVEL_V2", "FOP_STEERING_PROMOTION_USER_LEVEL", + "FOP_STEERING_PROMOTION_EXCLUDE_CUJ4_USER_LEVEL", "LOYALTY_STAMP_CARD_IN_PURCHASE_FLOW_USER_LEVEL", "HAS_MONETIZATION_BEHAVIOR_USER_LEVEL", "HAS_MONETIZATION_BEHAVIOR_LAST_180D_USER_LEVEL", @@ -110363,6 +110610,10 @@ "PREPERIOD_PAGE_VISIT_28D_FREQUENCY_27_USER_LEVEL_V2", "PREPERIOD_PAGE_VISIT_28D_FREQUENCY_28_USER_LEVEL_V2", "HAS_REINSTALL_APP_PASSING_FILTERING_USER_LEVEL", + "HAS_RECOMMENDED_APP_WITH_OOP_REINSTALL_ELIGIBILITY_USER_LEVEL", + "NOTIFICATION_PREDICTED_REV_GAIN_FILTERING_USER_LEVEL", + "NOTIFICATION_PUBLICITY_GAIN_DISABLED_USER_LEVEL", + "UNACK_IN_APP_SUBSCRIPTION_WARNING_DETAIL_PAGE_USER_LEVEL", "USER_LEVEL_TEST_CODE_LIMIT" ], "enumDescriptions": [ @@ -110562,6 +110813,8 @@ "Event level test code when Short Description fetched in PGSS is different from that fetched in Superroot.", "Event level test code that indicates second pass quality reweigthing is triggered.", "Event level test code that indicates second pass quality reweigthing is triggered.", + "IAP Sales MDP user-level test code. Design: go/play-store-iap-sales-integration-dd", + "Unack Warning Message event-level test code. Design: go/unack-warning-message-on-dp-dd", "", "", "", @@ -110760,7 +111013,7 @@ "", "Test codes for the feature and each early-access partners for the Play Store IAP sales project. go/play-store-iap-sales-dd", "", - "", + "IAP Sales MDP user-level test code. Design: go/play-store-iap-sales-integration-dd", "Test codes for cross-device features. See go/play-cross-device.", "", "Test code for other devices subnav. Logged for eligible users when home subnavs are fetched.", @@ -111068,6 +111321,8 @@ "", "Session level test code that indicates second pass quality reweigthing is triggered.", "Session level test code that indicates second pass quality reweigthing is triggered.", + "Unack Warning Message session-level test code. Design: go/unack-warning-message-on-dp-dd", + "Session level test code that indicates this user is eligible to be shown form factor filters on top charts.", "", "Cart abandonment flow for purchase flow.", "User saw/would have seen the in app products section in App", @@ -111149,7 +111404,7 @@ "", "Test codes for the feature and each early-access partners for the Play Store IAP sales project. go/play-store-iap-sales-dd", "", - "", + "IAP Sales MDP user-level test code. Design: go/play-store-iap-sales-integration-dd", "", "Test code for when a user was eligible for visual preview while in motion. E.g. received a notification and had visual preview setting enabled.", "", @@ -111186,6 +111441,7 @@ "Test code GE ranker service medium user value segment.", "Test code GE ranker service high user value segment.", "Test code GE ranker service never user value segment.", + "Test code GE points booster model launch.", "Test codes for GE surfaces.", "", "", @@ -111227,6 +111483,7 @@ "", "", "User level test code for Fop Steering Promotion in all user journeys; Users are tagged on unredeemed fop steering promotion impression.", + "User level test code for Fop Steering Promotion in CUJ 1~3; excluding CUJ4. Users are tagged on unredeemed fop steering promotion impression.", "User level test code for Quest Platform Loyalty Stamp Card in Purchase flow.", "User level test code for users who have made any monetization behavior(sub, iap) before (controlled by fsUlyssesBuyerState), used for AH/GH monetization experiments.", "User level test code for users who have made any monetization behavior(sub, iap) for the last 180 days (controlled by ULYSSES_OOP_SPEND_PER_PURCHASE_180D), used for AH/GH monetization experiments.", @@ -111298,6 +111555,10 @@ "", "", "User level test code for reinstall enablement. If user has any eligible reinstall passing the per user filtering logic, testcode will be logged. Note that the filtering logics are controlled by gcl flags. Ex. Play Games Home: http://shortn/_2aGCRQqToq. This test code only knows if any app passes the filtering but not which filtering params are applied.", + "User level test code for tagging users who have any app which is recommended by PRS and has reinstall eligibility when is_app_with_historical_oop_purchase restriction is turned on.", + "User level test code for notification campaign gain filtering experiments. If GE decision changed after applying predicted revenue gain filtering on notification campaigns, log test code.", + "User level test code for notification campaign gain filtering experiments. If GE decision changed after disabling publicity gain in notification campaign benefit calculation, log test code.", + "Unack Warning Message user-level test code. Design: go/unack-warning-message-on-dp-dd Add new user-level TestCode here.", "" ], "type": "string" @@ -117161,11 +117422,15 @@ "MODEL_RACY_WATCHPAGE_2021_05_04_FLAGGED_HOME", "MODEL_RACY_WATCHPAGE_2021_05_04_FLAGGED_WATCHNEXT", "MODEL_RACY_WATCHPAGE_V4", + "MODEL_RACY_WATCHPAGE_V5", + "MODEL_RACY_WATCHPAGE_V5_FLAGGED", "MODEL_RACY_WATCHPAGE_RELEASE", "MODEL_RACY_SHORTS_WATCHPAGE_V1", "MODEL_RACY_SHORTS_WATCHPAGE_V1_FLAGGED", "MODEL_RACY_SHORTS_WATCHPAGE_V2", "MODEL_RACY_SHORTS_WATCHPAGE_V2_FLAGGED", + "MODEL_RACY_SHORTS_WATCHPAGE_V3", + "MODEL_RACY_SHORTS_WATCHPAGE_V3_FLAGGED", "MODEL_RACY_SHORTS_WATCHPAGE_RELEASE", "MODEL_RACY_THUMB_2019_04_02", "MODEL_RACY_THUMB_2019_08_12", @@ -117213,11 +117478,15 @@ "Flagged racy watchpage score v6 using racy watchpage model v3 calibrated for home.", "Flagged racy watchpage score v6 using racy watchpage model v3 calibrated for watchnext.", "Racy watchpage model v4 (go/racy-watchpage-v4).", + "Racy watchpage model v5.", + "", "Racy watchpage release version.", "LINT.IfChange Racy shorts watchpage model v1.", "", "Racy shorts watchpage model v2.", "", + "Racy shorts watchpage model v3.", + "", "Racy shorts watchpage release version.", "LINT.ThenChange(//depot/google3/video/thumbnails/features/util/consts.h) Racy thumb model which corresponds to https://mldash.corp.google.com/experiments/156747527161891342", "Racy thumb model V3 based on cotraining. https://mldash.corp.google.com/experiments/2626243069925683800", diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index 34e0ad3dcc1..eb25540e084 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -152,10 +152,8 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} - rs.Collections = NewProjectsLocationsCollectionsService(s) rs.DocumentSchemas = NewProjectsLocationsDocumentSchemasService(s) rs.Documents = NewProjectsLocationsDocumentsService(s) - rs.Links = NewProjectsLocationsLinksService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.RuleSets = NewProjectsLocationsRuleSetsService(s) rs.SynonymSets = NewProjectsLocationsSynonymSetsService(s) @@ -165,14 +163,10 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service - Collections *ProjectsLocationsCollectionsService - DocumentSchemas *ProjectsLocationsDocumentSchemasService Documents *ProjectsLocationsDocumentsService - Links *ProjectsLocationsLinksService - Operations *ProjectsLocationsOperationsService RuleSets *ProjectsLocationsRuleSetsService @@ -180,15 +174,6 @@ type ProjectsLocationsService struct { SynonymSets *ProjectsLocationsSynonymSetsService } -func NewProjectsLocationsCollectionsService(s *Service) *ProjectsLocationsCollectionsService { - rs := &ProjectsLocationsCollectionsService{s: s} - return rs -} - -type ProjectsLocationsCollectionsService struct { - s *Service -} - func NewProjectsLocationsDocumentSchemasService(s *Service) *ProjectsLocationsDocumentSchemasService { rs := &ProjectsLocationsDocumentSchemasService{s: s} return rs @@ -231,15 +216,6 @@ type ProjectsLocationsDocumentsReferenceIdService struct { s *Service } -func NewProjectsLocationsLinksService(s *Service) *ProjectsLocationsLinksService { - rs := &ProjectsLocationsLinksService{s: s} - return rs -} - -type ProjectsLocationsLinksService struct { - s *Service -} - func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { rs := &ProjectsLocationsOperationsService{s: s} return rs @@ -5847,6 +5823,7 @@ type AppsPeopleOzExternalMergedpeopleapiInAppNotificationTarget struct { // "PEOPLE_PLAYGROUND" - See go/people-playground-design. // "NEWS_360" - Also mdb/social-magazines // "DUO" - Aka Taychon + // "MEET" - Aka Google Meet App []string `json:"app,omitempty"` ClientData []*AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData `json:"clientData,omitempty"` @@ -5915,6 +5892,7 @@ type AppsPeopleOzExternalMergedpeopleapiInAppNotificationTargetClientData struct // "PEOPLE_PLAYGROUND" - See go/people-playground-design. // "NEWS_360" - Also mdb/social-magazines // "DUO" - Aka Taychon + // "MEET" - Aka Google Meet App string `json:"app,omitempty"` ByteValue string `json:"byteValue,omitempty"` @@ -6009,6 +5987,7 @@ type AppsPeopleOzExternalMergedpeopleapiInAppReachability struct { // "LOUPE" - Aka Camera by Google Photos // "NEWS_360" - Also mdb/social-magazines // "DUO" - aka Taychon + // "MEET" - Aka Google Meet AppType string `json:"appType,omitempty"` Metadata *AppsPeopleOzExternalMergedpeopleapiPersonFieldMetadata `json:"metadata,omitempty"` @@ -9236,6 +9215,12 @@ type AppsPeopleOzExternalMergedpeopleapiReadOnlyProfileInfo struct { // incoming edges. ProfileOwnerStats *AppsPeopleOzExternalMergedpeopleapiProfileOwnerStats `json:"profileOwnerStats,omitempty"` + // UnjoinedEmailCertificates: Returned only when explicitly requested in + // the request mask as + // read_only_profile_info.unjoined_email_certificates. Equivalent to + // fetching the Emails & the Email Certificates with the acls ignored. + UnjoinedEmailCertificates []*AppsPeopleOzExternalMergedpeopleapiEmail `json:"unjoinedEmailCertificates,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccountEmail") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -12853,6 +12838,162 @@ func (s *AssistantApiCoreTypesGovernedColor) UnmarshalJSON(data []byte) error { return nil } +// AssistantApiCoreTypesGovernedDeviceConfig: The identification +// information for third party devices that integrates with the +// assistant. All of these fields will be populated by the third party +// when the query is sent from the third party device. Next Id: 5 +type AssistantApiCoreTypesGovernedDeviceConfig struct { + // AgentId: Pantheon Project ID that uniquely identifies the consumer + // project ID. Required + AgentId string `json:"agentId,omitempty"` + + // DeviceId: Unique identifier for the device. Example: DBCDW098234. + // Required + DeviceId string `json:"deviceId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgentId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgentId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AssistantApiCoreTypesGovernedDeviceConfig) MarshalJSON() ([]byte, error) { + type NoMethod AssistantApiCoreTypesGovernedDeviceConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AssistantApiCoreTypesGovernedDeviceId: LINT.IfChange Specifies +// identifier of a device AKA surface. Note there may be multiple device +// ids for the same physical device E.g. Allo app and Assistant app on +// Nexus. Note: DeviceId usage is complicated. Please do not depend on +// it for surface specific logic. Please use +// google3/assistant/api/capabilities.proto instead. IMPORTANT: When +// checking for equality between two `DeviceId`s, you should always use +// an `isSameDevice{As}` function to check for equality, as deep +// equality between `DeviceId`'s is not guaranteed. * C++: +// http://google3/assistant/assistant_server/util/device_id_util.cc;l=23;rcl=421295740 +// * Dart: +// http://google3/assistant/context/util/lib/device_id.dart;l=26;rcl=442126145 +// * Java: +// http://google3/java/com/google/assistant/assistantserver/utils/DeviceIdHelper.java;l=9;rcl=390378522 +// See http://go/deviceid-equality for more details. Next ID: 14 +type AssistantApiCoreTypesGovernedDeviceId struct { + // AgsaClientInstanceId: The client_instance_id on devices with GSA. See + // 'client_instance_field' in go/androidids. + AgsaClientInstanceId string `json:"agsaClientInstanceId,omitempty"` + + // AlloDeviceId: Allo Id. Corresponds to the GBotRequest.Sender.sender. + // NOTE(dychen): This may change to standard android/ios physical device + // ids in order to enable shared data (e.g. installed app on physical + // device shared between Allo and Opa apps on Nexus). + AlloDeviceId string `json:"alloDeviceId,omitempty"` + + // CanonicalDeviceId: A unique device ID for Assistant devices as + // proposed by go/ocelot-team to solve the device id fragmentation + // problem. The value of this id is the HomeGraph id of the device. See + // go/ocelot-track-0-registry-design. New surfaces should use the + // canonical_device_id instead of using other ids, and the registration + // should utilize the DeviceDataLayer (go/ddl-v0). Please contact the + // assistant-state-management@ team for guidance. Note: We didn't reuse + // |home_graph_device_id| because in Assistant code base + // |home_graph_device_id| is common to associate it with 3P devices. See + // go/project-yellowstone for more context. + CanonicalDeviceId string `json:"canonicalDeviceId,omitempty"` + + // CastDeviceId: If set, indicates that the device is a cast device, and + // contains the UUID of the cast device. Corresponds to the device_id + // field of the CastDevice proto. + CastDeviceId string `json:"castDeviceId,omitempty"` + + // ClientInstanceId: DUSI (go/dusi) is used as the identifier here. This + // identifier is unique to the user and device. This will help identify + // which device or application the user's request originated from. This + // is not to be confused with the client_instance_id that android + // devices provide. This is currently used by surfaces that use the + // assistant-legacy-nexus and assistant-legacy-clockwork pipelines. DUSI + // is created and set in S3. This field is only filled for GAIA + // requests. + ClientInstanceId string `json:"clientInstanceId,omitempty"` + + // ConnectedDockId: A device ID produced by a connected dock, which is + // registered in HomeGraph. + ConnectedDockId string `json:"connectedDockId,omitempty"` + + // DeviceConfig: The unique DeviceConfig to the specific third party + // device. It is also used by Android Auto Embedded first party device. + // See go/opa-ids. + DeviceConfig *AssistantApiCoreTypesGovernedDeviceConfig `json:"deviceConfig,omitempty"` + + // DeviceType: The device's surface type. This is the string version of + // surface_type. The server should use the SurfaceType value derived + // from this string. If the device_type isn't supported within the + // SurfaceType enum, it will be set as UNKNOWN. Developers should use + // the enum in ServerParams instead of this string. + DeviceType string `json:"deviceType,omitempty"` + + // HomeGraphDeviceId: The unique device ID for HomeGraph devices. This + // is the HomeGraph ID, created when the device is registered into + // HomeGraph. It is immutable for the same device unless it is + // completely deleted and recreated. See go/home-graph for details. + HomeGraphDeviceId string `json:"homeGraphDeviceId,omitempty"` + + // LibassistantDeviceId: The unique ID for libassistant based devices. + // See go/libassistant-id for details. + LibassistantDeviceId string `json:"libassistantDeviceId,omitempty"` + + // MultiHotwordArbitrationDeviceId: If set, indicates that the device is + // participating the multi-hotword arbitration and the id is an UUID to + // distinguish it from other devices. It should also be consistent + // between requests from a single device within a session (or short + // duration). + MultiHotwordArbitrationDeviceId string `json:"multiHotwordArbitrationDeviceId,omitempty"` + + // OpaIosDeviceId: The unique device ID for the Assistant App on iOS. + // See go/opa-ios-design for details. + OpaIosDeviceId string `json:"opaIosDeviceId,omitempty"` + + // QuartzDeviceId: The unique ID of a Quartz device. See + // go/quartz-design-doc for more details. Quartz ID is a hash of + // (android_id + gaia). + QuartzDeviceId string `json:"quartzDeviceId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AgsaClientInstanceId") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AgsaClientInstanceId") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AssistantApiCoreTypesGovernedDeviceId) MarshalJSON() ([]byte, error) { + type NoMethod AssistantApiCoreTypesGovernedDeviceId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AssistantApiCoreTypesGovernedRingtoneTaskMetadata: Task metadata // information describing the ringtone. Next id: 11 type AssistantApiCoreTypesGovernedRingtoneTaskMetadata struct { @@ -20666,6 +20807,302 @@ func (s *AssistantApiVolumeProperties) UnmarshalJSON(data []byte) error { return nil } +// AssistantContextAppProviderId: LINT.IfChanged Identifier for an +// application provider. NOTE: AppProviderId contains surface-specific +// info, such as the Android package name of the application. This was +// necessary for supporting current use cases that rely on +// surface-specific info in feature code. Eventually we want to +// deprecate AppProviderId and fetch surface-specific info in some other +// way (e.g. in a surface-translation layer). But until then, we may +// continue extending AppProviderId with other surface-specific info. +type AssistantContextAppProviderId struct { + // ActivityClassName: The activity class name. E.g. + // com.google.android.gm.ui.MailActivityGmail + ActivityClassName string `json:"activityClassName,omitempty"` + + // AndroidPackageName: Unique package name that identifies an Android + // app of the provider. + AndroidPackageName string `json:"androidPackageName,omitempty"` + + // VersionCode: Version code of the application. + VersionCode int64 `json:"versionCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ActivityClassName") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ActivityClassName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AssistantContextAppProviderId) MarshalJSON() ([]byte, error) { + type NoMethod AssistantContextAppProviderId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AssistantContextMediaProviderId: IMPORTANT: This proto is being +// migrated to ProviderId. If you are adding new field, please add to +// ProviderId as well. +type AssistantContextMediaProviderId struct { + // AndroidPackageName: Unique package name that identifies a Android app + // of the provider. + AndroidPackageName string `json:"androidPackageName,omitempty"` + + // CastAppId: Unique app id that identifies a Cast app of the provider. + CastAppId string `json:"castAppId,omitempty"` + + // ChromeOsPackageName: Unique package name that identifies a ChromeOS + // app of the provider. + ChromeOsPackageName string `json:"chromeOsPackageName,omitempty"` + + // HomeAppPackageName: Unique package name that identifies a Home app of + // the provider. + HomeAppPackageName string `json:"homeAppPackageName,omitempty"` + + // IosBundleIdentifier: Bundle identifier that identifies an iOS app of + // the provider. + IosBundleIdentifier string `json:"iosBundleIdentifier,omitempty"` + + // KaiOsPackageName: Unique package name that identifies a KaiOS app of + // the provider. + KaiOsPackageName string `json:"kaiOsPackageName,omitempty"` + + // KgProviderKey: Each onboarded provider has a unique provider key. KG + // provider keys are string identifiers used to identify a provider in + // some Media backends since mids, names, etc can change. + KgProviderKey string `json:"kgProviderKey,omitempty"` + + // Mid: The MID of the provider. A MID is a unique identifier issued by + // Knowledge Graph for all entities contained in it's graph. + Mid string `json:"mid,omitempty"` + + // ProviderVariant: Provider variant corresponding to the current + // MediaProviderId. + ProviderVariant *AssistantContextProviderVariant `json:"providerVariant,omitempty"` + + // SipProviderId: Bundle id that identifies an Session Initiation + // Protocol (SIP) provider. + SipProviderId string `json:"sipProviderId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AndroidPackageName") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AndroidPackageName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AssistantContextMediaProviderId) MarshalJSON() ([]byte, error) { + type NoMethod AssistantContextMediaProviderId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AssistantContextProviderId: Identifier used to represent a single +// application (a.k.a. provider). This model represents the +// surface-agnostic counterpart for assistant.api.core_types.Provider. +// E.g. it should avoid directly using package names for Android, bundle +// identifiers for iOS, etc. We require the transformation between +// assistant.context.ProviderId and assistant.api.core_types.Provider to +// either be lossless, or "lossy yet retrievable" (e.g. if package name +// is not available in ProviderId, it can still be retrieved using the +// ProviderMappingsModule). NOTE: 1. As of May 2021, verticals are +// highly fragmented in terms of how they represent/identify a provider, +// and so we may need to accommodate some vertical-specific +// representations. However, these should be generalized as much as +// possible so that they can be used by other verticals if needed. 2. If +// we need to differentiate between whether a provider is a media +// provider, app actions provider, timer provider, etc. we should +// capture this information in the context proto that contains a +// ProviderId field, rather than in the ProviderId message itself. 3. +// Any common fields across different provider identifier +// representations (e.g. ecosystem type) should be part of +// assistant.context.ProviderId directly. +type AssistantContextProviderId struct { + // AppProviderId: TODO(b/241170835) Deprecate this field. + AppProviderId *AssistantContextAppProviderId `json:"appProviderId,omitempty"` + + // EcosystemType: Ecosystem type for this provider. + // + // Possible values: + // "ECOSYSTEM_TYPE_UNSPECIFIED" + // "NATIVE" - Represents native ecosystem. E.g. Android and iOS + // support the native ecosystem. + // "CAST" - Represents cast ecosystem. E.g. Google Home and + // Dragonglass support the cast ecosystem. + EcosystemType string `json:"ecosystemType,omitempty"` + + // MediaProviderId: DEPRECATED. Fields in MediaProviderId have been + // pulled out into separate fields in ProviderId and ProviderMetadata. + // TODO(b/243953766) Deprecate this field. + MediaProviderId *AssistantContextMediaProviderId `json:"mediaProviderId,omitempty"` + + // Mid: The MID of the provider. A MID is a unique identifier issued by + // Knowledge Graph for all entities contained in it's graph. + Mid string `json:"mid,omitempty"` + + // NaturalProviderId: Natural Provider Id returned from Provider Corpus. + // Note that feature teams should almost always use provider_corpus_id + // which is the canonical representation for provider. Surface-specific + // identiers should only be used in final surface rendering. + NaturalProviderId *AssistantContextProviderIdNaturalProviderId `json:"naturalProviderId,omitempty"` + + // ProviderCorpusId: ID issued by the Provider Corpus to uniquely + // identify a provider entity e.g. an Android app, a Cast app or a Cloud + // provider. In practice, a single partner can have multiple providers + // entities. For more detail, see go/se-storage-provider-id. This is the + // preferred/ standardized ID to use for ProviderId that all use-cases + // should eventually migrate to. + ProviderCorpusId int64 `json:"providerCorpusId,omitempty,string"` + + // ProviderVariant: Provider variant corresponding to the current + // provider. It's used together with mid to uniquely identify provider. + ProviderVariant *AssistantContextProviderVariant `json:"providerVariant,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppProviderId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AppProviderId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AssistantContextProviderId) MarshalJSON() ([]byte, error) { + type NoMethod AssistantContextProviderId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AssistantContextProviderIdNaturalProviderId: Represents how to +// naturally identify a provider. A copy of +// google3/assistant/serviceengine/proto/serving/natural_provider_id.prot +// o. +type AssistantContextProviderIdNaturalProviderId struct { + // ProviderType: ProviderType is an enum to represent the category of + // where this id is from. + // + // Possible values: + // "UNKNOWN" + // "CLOUD_PROJECT" + // "APP_ACTIONS" + // "WEBSITE" + // "NARRATIVE_NEWS" + // "IOS_BUNDLE" + // "CAST_APP" + // "ZEROTH_PARTY" + // "ANDROID_SYSTEM_API" + ProviderType string `json:"providerType,omitempty"` + + // Value: String of provider_id_value is the actual value of the id. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProviderType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ProviderType") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AssistantContextProviderIdNaturalProviderId) MarshalJSON() ([]byte, error) { + type NoMethod AssistantContextProviderIdNaturalProviderId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AssistantContextProviderVariant: Note: As of May 2021, multiple +// providers use the same mids (e.g. YouTube Main, YouTube Go, and +// YouTube Music all have the same mids). However, quite often we end up +// using surface specific identifiers (e.g. Android package names, iOS +// bundle identifiers, etc.) to differentiate amongst them. This field +// allows us to move away from surface specific identifiers towards a +// surface-agnostic enum representing the same information. +type AssistantContextProviderVariant struct { + // Possible values: + // "UNSPECIFIED_EMPTY_MID_VARIANT" + // "BACKDROP_CAST" - This app is used when cast device is idle and + // ready to cast. Cast app id is: E8C28D3C. + // "CAST_RECEIVER" - Cast Receiver package name. It contains + // Chromecast built in for Android TV. Android package name is: + // com.google.android.apps.mediashell. + EmptyMidVariant string `json:"emptyMidVariant,omitempty"` + + // Possible values: + // "UNSPECIFIED_SPOTIFY_VARIANT" + // "SPOTIFY_MAIN" + // "SPOTIFY_LITE" + SpotifyVariant string `json:"spotifyVariant,omitempty"` + + // Possible values: + // "UNSPECIFIED_YOUTUBE_VARIANT" + // "YOUTUBE_MAIN" + // "YOUTUBE_MUSIC" + // "YOUTUBE_GO" + YoutubeVariant string `json:"youtubeVariant,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EmptyMidVariant") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EmptyMidVariant") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AssistantContextProviderVariant) MarshalJSON() ([]byte, error) { + type NoMethod AssistantContextProviderVariant + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AssistantDeviceTargetingDeviceTargetingError: The information // associated with an error while selecting the target device. Next ID: // 2 @@ -22128,10 +22565,41 @@ func (s *AssistantGroundingRankerDeviceContactAffinityFeatures) UnmarshalJSON(da return nil } -// AssistantGroundingRankerGroundingProviderFeatures: Next ID: 4 +// AssistantGroundingRankerDeviceGroundingProviderFeatures: Features to +// be extracted from Device GP for ranking in HGR. Next ID: 2 +type AssistantGroundingRankerDeviceGroundingProviderFeatures struct { + // DeviceId: ID for the device. PRR specific feature. + DeviceId *AssistantApiCoreTypesGovernedDeviceId `json:"deviceId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeviceId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeviceId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AssistantGroundingRankerDeviceGroundingProviderFeatures) MarshalJSON() ([]byte, error) { + type NoMethod AssistantGroundingRankerDeviceGroundingProviderFeatures + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AssistantGroundingRankerGroundingProviderFeatures: Next ID: 5 type AssistantGroundingRankerGroundingProviderFeatures struct { ContactGroundingProviderFeatures *AssistantGroundingRankerContactGroundingProviderFeatures `json:"contactGroundingProviderFeatures,omitempty"` + DeviceGroundingProviderFeatures *AssistantGroundingRankerDeviceGroundingProviderFeatures `json:"deviceGroundingProviderFeatures,omitempty"` + MediaGroundingProviderFeatures *AssistantGroundingRankerMediaGroundingProviderFeatures `json:"mediaGroundingProviderFeatures,omitempty"` ProviderGroundingProviderFeatures *AssistantGroundingRankerProviderGroundingProviderFeatures `json:"providerGroundingProviderFeatures,omitempty"` @@ -22308,8 +22776,25 @@ func (s *AssistantGroundingRankerLaaFeaturesProvider) MarshalJSON() ([]byte, err } // AssistantGroundingRankerMediaGroundingProviderFeatures: Features to -// be passed from Media GP to HGR. Next ID: 6 +// be passed from Media GP to HGR. Next ID: 9 type AssistantGroundingRankerMediaGroundingProviderFeatures struct { + // AlbumReleaseType: Release type for an album container. + // + // Possible values: + // "UNKNOWN" + // "ALBUM" - An album is a collection of audio recordings issued on a + // compact disc, vinyl, audio tape, or another medium. + // "SINGLE" - A single is a type of release, typically a song + // recording of fewer tracks than an LP record or an album. + // "EXTENDED_PLAY" - An extended play record, often referred to as an + // EP, is a musical recording that contains more tracks than a single, + // but is usually not qualified to be an album or LP. + AlbumReleaseType string `json:"albumReleaseType,omitempty"` + + // HasTypeSemanticEdge: True if the argument's type was explicitly + // mentioned in the query. + HasTypeSemanticEdge bool `json:"hasTypeSemanticEdge,omitempty"` + // IsCastVideo: Whether the candidate is YouTube CAST_VIDEO candidate. // CAST_VIDEO is a deeplink platform. This signal will be used to // promote YouTube Music screenful candidates with CAST_VIDEO platform @@ -22340,7 +22825,43 @@ type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // as well as other Scubed signals. ScubedPSaiMusic float64 `json:"scubedPSaiMusic,omitempty"` - // ForceSendFields is a list of field names (e.g. "IsCastVideo") to + // Type: Type of the media item. + // + // Possible values: + // "UNKNOWN" + // "TRACK" + // "ALBUM" + // "ARTIST" + // "PLAYLIST" + // "EPISODE" + // "MOVIE" + // "PHOTO" + // "TV_SHOW_EPISODE" + // "MUSIC_GENRE" + // "MUSIC_STATION" + // "AUDIO_BOOK" + // "CHAPTER" + // "RADIO_STATION" + // "MUSIC_MIX" + // "SPORTS_EVENT" + // "TV_CHANNEL" + // "VIDEO" + // "YOUTUBE_CHANNEL" + // "YOUTUBE_VIDEO_PLAYLIST" + // "TV_SHOW" - Representing a TV show which contains multiple TV + // seasons. + // "NEWS" + // "NARRATED_WEB" + // "NEWS_CALL_TO_ACTION" - Repesents a Call To Action media item. See + // go/newsplayer-outro-gnews. Current use case is to ask users to + // continue their news journey in the Google News app / web app. Future + // cases could include asking users to adjust their news settings. + // "AUDIO_STORY" - Representing a short audio story. go/tmas-design + // "PODCAST_SERIES" - Represent different kinds of podcast content + // "PODCAST_EPISODE" + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AlbumReleaseType") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -22348,12 +22869,13 @@ type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IsCastVideo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AlbumReleaseType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -22380,27 +22902,37 @@ func (s *AssistantGroundingRankerMediaGroundingProviderFeatures) UnmarshalJSON(d } // AssistantGroundingRankerProviderGroundingProviderFeatures: Features -// to be extracted from Provider GP for ranking in HGR. Next ID: 2 +// to be extracted from Provider GP for ranking in HGR. Next ID: 4 type AssistantGroundingRankerProviderGroundingProviderFeatures struct { + // ProviderClusterId: Cluster IDs for the provider. This field is + // repeated because some providers can be associated with multiple + // clusters. PRR specific feature. + ProviderClusterId []string `json:"providerClusterId,omitempty"` + + // ProviderId: ProviderId for the provider in the binding set. PRR + // specific feature. + ProviderId *AssistantContextProviderId `json:"providerId,omitempty"` + // PslScore: Provider quality score in the range [0,1] that can be used // for ranking providers. Incorporates both policy rules and quality // considerations. PslScore float64 `json:"pslScore,omitempty"` - // ForceSendFields is a list of field names (e.g. "PslScore") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ProviderClusterId") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PslScore") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ProviderClusterId") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -24644,7 +25176,7 @@ func (s *AssistantLogsTargetDeviceLog) MarshalJSON() ([]byte, error) { // AssistantPrefulfillmentRankerPrefulfillmentSignals: Signals to be // used by the Prefulfillment Ranker. Derived from the ParsingSignals // and GroundingSignals carried by the FunctionCall. LINT.IfChange Next -// ID: 44 +// ID: 47 type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // BindingSetAuis: Assistant User Interaction Score for binding set. BindingSetAuis float64 `json:"bindingSetAuis,omitempty"` @@ -24715,6 +25247,9 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // IsFullyGrounded: Whether the intent is fully grounded. IsFullyGrounded bool `json:"isFullyGrounded,omitempty"` + // IsMediaControlIntent: Whether the intent is a media control intent. + IsMediaControlIntent bool `json:"isMediaControlIntent,omitempty"` + // IsPlayGenericMusic: Whether the intent is a PlayGenericMusic-type // intent. IsPlayGenericMusic bool `json:"isPlayGenericMusic,omitempty"` @@ -24744,6 +25279,9 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // sets. MaxHgrScoreAcrossBindingSets float64 `json:"maxHgrScoreAcrossBindingSets,omitempty"` + // NspRank: Rank of the intent as reported by NSP. + NspRank int64 `json:"nspRank,omitempty"` + // NumAlternativeHypothesis: Number of alternative hypotheses from // speech recognition(S3). NumAlternativeHypothesis float64 `json:"numAlternativeHypothesis,omitempty"` @@ -24795,6 +25333,29 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // AssistantVerticalClassifier QRewrite servlet. PredictedIntentConfidence float64 `json:"predictedIntentConfidence,omitempty"` + // RankerName: Used in HGR to modify the ranker based on input + // experimental flag and intent name. + // + // Possible values: + // "RANKER_NAME_UNSPECIFIED" - Default value, when there is no ranker + // specified. + // "RANKER_NAME_PREFULFILLMENT_RANKER" - Name for the ranker as used + // by PFR. + // "RANKER_NAME_GROUNDING_RANKER" - Name for HGR v1 model. + // "RANKER_NAME_TEST_PFR_DUMMY" - Name for a dummy PFR model used for + // testing purposes. + // "RANKER_NAME_DEFER_TO_VERTICAL_SCORES" - Used for deferring to + // confidence scores produced by upstream GPs instead of using HGR's + // scorer. + // "RANKER_NAME_GROUNDING_RANKER_V2" - Name for HGR v2 model. + // "RANKER_NAME_GROUNDING_RANKER_MEDIA_EXP" - Name for experimental + // HGR model for Media, build on top of HGR v2. + // "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP" - Name for experimental + // HGR model for Comms. + // "RANKER_NAME_CONSOLIDATED_PFR_HGR" - Name for consolidated PFR and + // HGR ranker. + RankerName string `json:"rankerName,omitempty"` + // SearchDispatch: The determination made by the SearchDispatchingConfig // as to whether and how this interpretation should be dispatched to // Search. @@ -27060,7 +27621,7 @@ type BlueGingerClientVisibleProtoBlueGingerSupportedServicesBlueGingerModule str // (go/bg-covid-faq). // "VANCOUVER" // "MEENAPLEX" - go/meenaplex-dd - // "REMOVED_USE_CASE_6" - Was: ON_DEMAND_OPENING_HOURS. + // "REMOVED_USE_CASE_6" - Was: . // "SEMI_DELEGATED_CALLING" - UC ID for testing ideas around a partial // call delegation bot. // "HARDWARE_SETUP" - UC ID for hardware setup prototype @@ -37855,7 +38416,8 @@ type GeostoreDataSourceProto struct { // "PROVIDER_AMPUP" // "PROVIDER_LOOP" // "PROVIDER_ZEST" - // "PROVIDER_EZVOLT" - Note: Next available value is 0x1270C. + // "PROVIDER_EZVOLT" + // "PROVIDER_JOLT" - Note: Next available value is 0x1270D. Provider string `json:"provider,omitempty"` // RawMetadata: For every key that is used in raw_data from this source, @@ -41385,17 +41947,24 @@ func (s *GeostoreHtmlTextProto) MarshalJSON() ([]byte, error) { } // GeostoreInferredGeometryProto: Inferred geometry defines the geometry -// of a feature through the geometry of other features. For instance, -// the geometry of a timezone can be specified as the union of all the -// countries it applies to. See: go/inferred-geometry and -// go/geo-schema:composite-geometry-editor for more details. +// of a feature as the union or exclusion of the geometry of other +// features. For instance, the geometry of a timezone can be specified +// as the union of all the countries it applies to. In this scenario, +// the timezone will can be considered a "composite feature", while the +// countries are its "composing features". A composite feature must have +// a bidirectional reference between itself and all its composing +// features. A composite feature refers to its composing features via +// `geometry_composition`, while the composing features must refer back +// to the composing feature via `defines_geometry_for`. See: +// go/inferred-geometry and go/geo-schema:composite-geometry-editor for +// more details. type GeostoreInferredGeometryProto struct { // DefinesGeometryFor: Features whose geometry depends on this feature's // geometry. DefinesGeometryFor []*GeostoreFeatureIdProto `json:"definesGeometryFor,omitempty"` // GeometryComposition: Features whose geometry defines the geometry of - // this feature. + // this feature (i.e. "composing features"). GeometryComposition *GeostoreGeometryComposition `json:"geometryComposition,omitempty"` // ForceSendFields is a list of field names (e.g. "DefinesGeometryFor") @@ -42314,7 +42883,8 @@ type GeostoreInternalSourceSummaryProto struct { // "PROVIDER_AMPUP" // "PROVIDER_LOOP" // "PROVIDER_ZEST" - // "PROVIDER_EZVOLT" - Note: Next available value is 0x1270C. + // "PROVIDER_EZVOLT" + // "PROVIDER_JOLT" - Note: Next available value is 0x1270D. Provider string `json:"provider,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to @@ -43023,6 +43593,12 @@ type GeostoreLaneProtoLaneConnection struct { // would blow up bounds of all segments. Segment *GeostoreFeatureIdProto `json:"segment,omitempty"` + // YieldToOtherConnections: The inverse of the primary connection bit + // that provides a hint that this connection is part of a merge and a + // vehicle following this connection should yield to vehicles following + // other incoming connections. + YieldToOtherConnections bool `json:"yieldToOtherConnections,omitempty"` + // ForceSendFields is a list of field names (e.g. "BoundingMarker") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -44487,7 +45063,8 @@ type GeostoreOntologyRawGConceptInstanceProto struct { // "PROVIDER_AMPUP" // "PROVIDER_LOOP" // "PROVIDER_ZEST" - // "PROVIDER_EZVOLT" - Note: Next available value is 0x1270C. + // "PROVIDER_EZVOLT" + // "PROVIDER_JOLT" - Note: Next available value is 0x1270D. Provider string `json:"provider,omitempty"` SourceDataset string `json:"sourceDataset,omitempty"` @@ -46963,7 +47540,8 @@ type GeostoreProvenanceProto struct { // "PROVIDER_AMPUP" // "PROVIDER_LOOP" // "PROVIDER_ZEST" - // "PROVIDER_EZVOLT" - Note: Next available value is 0x1270C. + // "PROVIDER_EZVOLT" + // "PROVIDER_JOLT" - Note: Next available value is 0x1270D. Provider string `json:"provider,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to @@ -49547,7 +50125,7 @@ type GeostoreSpeedLimitProto struct { // If multiple conditions are set, at least one of them must be true. Condition []*GeostoreRoadConditionalProto `json:"condition,omitempty"` - // SourceType: RESERVED + // SourceType: The source of the speed limit. // // Possible values: // "SPEED_LIMIT_SOURCE_TYPE_UNKNOWN" - Speed limit source is unknown @@ -49595,8 +50173,11 @@ func (s *GeostoreSpeedLimitProto) MarshalJSON() ([]byte, error) { // GeostoreSpeedProto: A speed value and unit. type GeostoreSpeedProto struct { + // Speed: All speed values are stored in kilometers per hour. Speed float64 `json:"speed,omitempty"` + // Unit: Mapfacts only allows unit to be KILOMETERS_PER_HOUR. + // // Possible values: // "UNIT_UNKNOWN" - Default proto value, this value will never be set // in MapFacts. @@ -54401,87 +54982,6 @@ func (s *GoogleCloudContentwarehouseV1CloudAIDocumentOption) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContentwarehouseV1Collection: Defines the structure for -// content warehouse collection proto. -type GoogleCloudContentwarehouseV1Collection struct { - // AllowLinkDocuments: Whether allow the collection to link to - // documents. Cannot be updated after the collection is created. - AllowLinkDocuments bool `json:"allowLinkDocuments,omitempty"` - - // Attributes: Other collection attributes for the use cases. - Attributes googleapi.RawMessage `json:"attributes,omitempty"` - - // CollectionType: Indicate this collection’s type. - // - // Possible values: - // "COLLECTION_TYPE_UNSPECIFIED" - Not specified. - // "DATASET" - Dataset collection. - // "RECORD_SET" - Record set collection. - // "WORK_QUEUE" - Queue collection. E.g. a queue for human review. - // "WORKFLOW" - The working collection for a workflow. One workflow - // has one collection. - // "LEGAL_HOLD" - Legal hold collection. - CollectionType string `json:"collectionType,omitempty"` - - // CreateTime: Output only. The time when the document is created. - CreateTime string `json:"createTime,omitempty"` - - // DisplayName: Required. Display name of the collection given by the - // user. - DisplayName string `json:"displayName,omitempty"` - - // Name: The resource name of the collection. Format: - // projects/{project_number}/locations/{location}/collections/{collection - // }. The name is ignored when creating a collection. - Name string `json:"name,omitempty"` - - // ParentCollectionId: The parent collection ID of the collection. One - // collection only can have one parent collection, and they should be in - // the same project and location. - ParentCollectionId string `json:"parentCollectionId,omitempty"` - - // RevokeDocEditPermission: If it is true, after adding the document to - // the collection, the users with document edit permission will only - // have view permission. Can not be updated after the collection is - // created. - RevokeDocEditPermission bool `json:"revokeDocEditPermission,omitempty"` - - // UpdateTime: Output only. The time when the document is last updated. - UpdateTime string `json:"updateTime,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "AllowLinkDocuments") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AllowLinkDocuments") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1Collection) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1Collection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContentwarehouseV1CollectionQuery: The query string that -// matches against the collections. -type GoogleCloudContentwarehouseV1CollectionQuery struct { -} - // GoogleCloudContentwarehouseV1CreateDocumentLinkRequest: Request // message for DocumentLinkService.CreateDocumentLink. type GoogleCloudContentwarehouseV1CreateDocumentLinkRequest struct { @@ -55365,65 +55865,6 @@ func (s *GoogleCloudContentwarehouseV1EnumValue) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContentwarehouseV1ExportToCdwPipeline: The configuration -// of exporting documents from the Document Warehouse to CDW pipeline. -type GoogleCloudContentwarehouseV1ExportToCdwPipeline struct { - // DocAiDataset: The CDW dataset resource name. Format: - // projects/{project}/locations/{location}/processors/{processor}/dataset - DocAiDataset string `json:"docAiDataset,omitempty"` - - // Documents: The list of all the resource names of the documents to be - // processed. Format: - // projects/{project_number}/locations/{location}/documents/{document_id} - // . - Documents []string `json:"documents,omitempty"` - - // ExportFolderPath: The Cloud Storage folder path used to store the - // exported documents before being sent to CDW. Format: gs:///. - ExportFolderPath string `json:"exportFolderPath,omitempty"` - - // TrainingSplitRatio: Ratio of training dataset split. When importing - // into Document AI Workbench, documents will be automatically split - // into training and test split category with the specified ratio. - TrainingSplitRatio float64 `json:"trainingSplitRatio,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DocAiDataset") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DocAiDataset") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1ExportToCdwPipeline) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1ExportToCdwPipeline - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudContentwarehouseV1ExportToCdwPipeline) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudContentwarehouseV1ExportToCdwPipeline - var s1 struct { - TrainingSplitRatio gensupport.JSONFloat64 `json:"trainingSplitRatio"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.TrainingSplitRatio = float64(s1.TrainingSplitRatio) - return nil -} - // GoogleCloudContentwarehouseV1FetchAclRequest: Request message for // DocumentService.FetchAcl type GoogleCloudContentwarehouseV1FetchAclRequest struct { @@ -55495,73 +55936,6 @@ func (s *GoogleCloudContentwarehouseV1FetchAclResponse) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContentwarehouseV1FetchCollectionAclRequest: Request -// message for CollectionService.FetchAcl -type GoogleCloudContentwarehouseV1FetchCollectionAclRequest struct { - // RequestMetadata: The meta information collected about the end user, - // used to enforce access control for the service. - RequestMetadata *GoogleCloudContentwarehouseV1RequestMetadata `json:"requestMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "RequestMetadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "RequestMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1FetchCollectionAclRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1FetchCollectionAclRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContentwarehouseV1FetchCollectionAclResponse: Response -// message for CollectionService.FetchAcl. -type GoogleCloudContentwarehouseV1FetchCollectionAclResponse struct { - // Metadata: Additional information for the API invocation. - Metadata *GoogleCloudContentwarehouseV1ResponseMetadata `json:"metadata,omitempty"` - - // Policy: The IAM policy. - Policy *GoogleIamV1Policy `json:"policy,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Metadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Metadata") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1FetchCollectionAclResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1FetchCollectionAclResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudContentwarehouseV1FileTypeFilter: Filter for the specific // types of documents returned. type GoogleCloudContentwarehouseV1FileTypeFilter struct { @@ -55631,95 +56005,6 @@ func (s *GoogleCloudContentwarehouseV1FloatArray) MarshalJSON() ([]byte, error) type GoogleCloudContentwarehouseV1FloatTypeOptions struct { } -// GoogleCloudContentwarehouseV1GcsIngestPipeline: The configuration of -// the Cloud Storage ingestion pipeline. -type GoogleCloudContentwarehouseV1GcsIngestPipeline struct { - // InputPath: The input Cloud Storage folder. All files under this - // folder will be imported to Document Warehouse. Format: gs:///. - InputPath string `json:"inputPath,omitempty"` - - // ProcessorType: The Doc AI processor type name. Only used when the - // format of ingested files is Doc AI Document proto format. Reference: - // https://source.corp.google.com/piper///depot/google3/cloud/ai/documentai/core/c/proto/processor.proto;l=21 - ProcessorType string `json:"processorType,omitempty"` - - // SchemaName: The Document Warehouse schema resource name. All - // documents processed by this pipeline will use this schema. Format: - // projects/{project_number}/locations/{location}/documentSchemas/{docume - // nt_schema_id}. - SchemaName string `json:"schemaName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "InputPath") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "InputPath") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1GcsIngestPipeline) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1GcsIngestPipeline - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline: -// The configuration of the document classify/split and entity/kvp -// extraction pipeline. -type GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline struct { - // ExtractProcessorInfos: The extract processors information. One - // matched extract processor will be used to process documents based on - // the classify processor result. If no classify processor is - // specificied, the first extract processor will be used. - ExtractProcessorInfos []*GoogleCloudContentwarehouseV1ProcessorInfo `json:"extractProcessorInfos,omitempty"` - - // InputPath: The input Cloud Storage folder. All files under this - // folder will be imported to Document Warehouse. Format: gs:///. - InputPath string `json:"inputPath,omitempty"` - - // ProcessorResultsFolderPath: The Cloud Storage folder path used to - // store the raw results from processors. Format: gs:///. - ProcessorResultsFolderPath string `json:"processorResultsFolderPath,omitempty"` - - // SplitClassifyProcessorInfo: The split and classify processor - // information. The split and classify result will be used to find a - // matched extract processor. - SplitClassifyProcessorInfo *GoogleCloudContentwarehouseV1ProcessorInfo `json:"splitClassifyProcessorInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "ExtractProcessorInfos") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExtractProcessorInfos") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudContentwarehouseV1GetDocumentRequest: Request message for // DocumentService.GetDocument. type GoogleCloudContentwarehouseV1GetDocumentRequest struct { @@ -56055,58 +56340,6 @@ func (s *GoogleCloudContentwarehouseV1InvalidRule) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContentwarehouseV1Link: Defines the structure for content -// warehouse link proto. -type GoogleCloudContentwarehouseV1Link struct { - // Attributes: Other link attributes. - Attributes googleapi.RawMessage `json:"attributes,omitempty"` - - // CollectionId: The collection the link connects to. Should have the - // same project and location with the link. - CollectionId string `json:"collectionId,omitempty"` - - // CreateTime: Output only. The create timestamp. - CreateTime string `json:"createTime,omitempty"` - - // Creator: Output only. Indicates who created this link. - Creator string `json:"creator,omitempty"` - - // DocumentId: The document the link connects to. Should have the same - // project and location with the link. - DocumentId string `json:"documentId,omitempty"` - - // Name: The resource name of the link. Format: - // projects/{project_number}/locations/{location}/links/{link}. The name - // is ignored when creating a link. - Name string `json:"name,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Attributes") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Attributes") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1Link) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1Link - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudContentwarehouseV1ListDocumentSchemasResponse: Response // message for DocumentSchemaService.ListDocumentSchemas. type GoogleCloudContentwarehouseV1ListDocumentSchemasResponse struct { @@ -56483,92 +56716,6 @@ func (s *GoogleCloudContentwarehouseV1MergeFieldsOptions) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline: The -// configuration of processing documents in Document Warehouse with -// DocAi processors pipeline. -type GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline struct { - // Documents: The list of all the resource names of the documents to be - // processed. Format: - // projects/{project_number}/locations/{location}/documents/{document_id} - // . - Documents []string `json:"documents,omitempty"` - - // ExportFolderPath: The Cloud Storage folder path used to store the - // exported documents before being sent to CDW. Format: gs:///. - ExportFolderPath string `json:"exportFolderPath,omitempty"` - - // ProcessorInfo: The CDW processor information. - ProcessorInfo *GoogleCloudContentwarehouseV1ProcessorInfo `json:"processorInfo,omitempty"` - - // ProcessorResultsFolderPath: The Cloud Storage folder path used to - // store the raw results from processors. Format: gs:///. - ProcessorResultsFolderPath string `json:"processorResultsFolderPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Documents") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Documents") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContentwarehouseV1ProcessorInfo: The DocAI processor -// information. -type GoogleCloudContentwarehouseV1ProcessorInfo struct { - // DocumentType: The processor will process the documents with this - // document type. - DocumentType string `json:"documentType,omitempty"` - - // ProcessorName: The processor resource name. Format is - // `projects/{project}/locations/{location}/processors/{processor}`, or - // `projects/{project}/locations/{location}/processors/{processor}/proces - // sorVersions/{processorVersion}` - ProcessorName string `json:"processorName,omitempty"` - - // SchemaName: The Document schema resource name. All documents - // processed by this processor will use this schema. Format: - // projects/{project_number}/locations/{location}/documentSchemas/{docume - // nt_schema_id}. - SchemaName string `json:"schemaName,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DocumentType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DocumentType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1ProcessorInfo) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1ProcessorInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudContentwarehouseV1Property: Property of a document. type GoogleCloudContentwarehouseV1Property struct { // DateTimeValues: Date time property values. It is not supported by @@ -57292,70 +57439,24 @@ func (s *GoogleCloudContentwarehouseV1RuleSet) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContentwarehouseV1RunPipelineRequest: Request message for -// DocumentService.RunPipeline. -type GoogleCloudContentwarehouseV1RunPipelineRequest struct { - // ExportCdwPipeline: Export docuemnts from Document Warehouse to CDW - // for training purpose. - ExportCdwPipeline *GoogleCloudContentwarehouseV1ExportToCdwPipeline `json:"exportCdwPipeline,omitempty"` - - // GcsIngestPipeline: Cloud Storage ingestion pipeline. - GcsIngestPipeline *GoogleCloudContentwarehouseV1GcsIngestPipeline `json:"gcsIngestPipeline,omitempty"` +// GoogleCloudContentwarehouseV1RunPipelineMetadata: Metadata message of +// RunPipeline method. +type GoogleCloudContentwarehouseV1RunPipelineMetadata struct { + // FailedFileCount: Number of files that have failed at some point in + // the pipeline. + FailedFileCount int64 `json:"failedFileCount,omitempty"` - // GcsIngestWithDocAiProcessorsPipeline: Use DocAI processors to process - // documents in Cloud Storage and ingest them to Document Warehouse. - GcsIngestWithDocAiProcessorsPipeline *GoogleCloudContentwarehouseV1GcsIngestWithDocAiProcessorsPipeline `json:"gcsIngestWithDocAiProcessorsPipeline,omitempty"` - - // ProcessWithDocAiPipeline: Use a DocAI processor to process documents - // in Document Warehouse, and re-ingest the updated results into - // Document Warehouse. - ProcessWithDocAiPipeline *GoogleCloudContentwarehouseV1ProcessWithDocAiPipeline `json:"processWithDocAiPipeline,omitempty"` - - // RequestMetadata: The meta information collected about the end user, - // used to enforce access control for the service. - RequestMetadata *GoogleCloudContentwarehouseV1RequestMetadata `json:"requestMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ExportCdwPipeline") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExportCdwPipeline") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1RunPipelineRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1RunPipelineRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContentwarehouseV1SearchCollectionsRequest: Request -// message for CollectionService.SearchCollections. -type GoogleCloudContentwarehouseV1SearchCollectionsRequest struct { - // PageSize: A limit on the number of collections returned in the search - // results. Increasing this value above the default value of 10 can - // increase search response time. The value can be between 1 and 100. - PageSize int64 `json:"pageSize,omitempty"` + // GcsIngestPipelineMetadata: The pipeline metadata for GcsIngest + // pipeline. + GcsIngestPipelineMetadata *GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata `json:"gcsIngestPipelineMetadata,omitempty"` - // PageToken: The token specifying the current offset within search - // results. See SearchCollectionsResponse.next_page_token for an - // explanation of how to obtain the next set of query results. - PageToken string `json:"pageToken,omitempty"` + // TotalFileCount: Number of files that were processed by the pipeline. + TotalFileCount int64 `json:"totalFileCount,omitempty"` - // Query: Query used to search against collections. - Query *GoogleCloudContentwarehouseV1CollectionQuery `json:"query,omitempty"` + // UserInfo: User unique identification and groups information. + UserInfo *GoogleCloudContentwarehouseV1UserInfo `json:"userInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "PageSize") to + // ForceSendFields is a list of field names (e.g. "FailedFileCount") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -57363,46 +57464,7 @@ type GoogleCloudContentwarehouseV1SearchCollectionsRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PageSize") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1SearchCollectionsRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1SearchCollectionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContentwarehouseV1SearchCollectionsResponse: Response -// message for CollectionService.SearchCollections. -type GoogleCloudContentwarehouseV1SearchCollectionsResponse struct { - // MatchingCollections: The collection entities that match the specified - // SearchCollectionsRequest. - MatchingCollections []*GoogleCloudContentwarehouseV1SearchCollectionsResponseMatchingCollection `json:"matchingCollections,omitempty"` - - // NextPageToken: The token that specifies the starting position of the - // next page of results. This field is empty if there are no more - // results. - NextPageToken string `json:"nextPageToken,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "MatchingCollections") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MatchingCollections") to + // NullFields is a list of field names (e.g. "FailedFileCount") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -57412,20 +57474,20 @@ type GoogleCloudContentwarehouseV1SearchCollectionsResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudContentwarehouseV1SearchCollectionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1SearchCollectionsResponse +func (s *GoogleCloudContentwarehouseV1RunPipelineMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1RunPipelineMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContentwarehouseV1SearchCollectionsResponseMatchingCollecti -// on: Collection entry with metadata inside SearchCollectionsResponse -type GoogleCloudContentwarehouseV1SearchCollectionsResponseMatchingCollection struct { - // Collection: Collection that matches the specified - // SearchCollectionsRequest. - Collection *GoogleCloudContentwarehouseV1Collection `json:"collection,omitempty"` +// GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetad +// ata: The metadata message for GcsIngest pipeline. +type GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata struct { + // InputPath: The input Cloud Storage folder in this pipeline. Format: + // `gs:///`. + InputPath string `json:"inputPath,omitempty"` - // ForceSendFields is a list of field names (e.g. "Collection") to + // ForceSendFields is a list of field names (e.g. "InputPath") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -57433,7 +57495,7 @@ type GoogleCloudContentwarehouseV1SearchCollectionsResponseMatchingCollection st // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Collection") to include in + // NullFields is a list of field names (e.g. "InputPath") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -57442,8 +57504,8 @@ type GoogleCloudContentwarehouseV1SearchCollectionsResponseMatchingCollection st NullFields []string `json:"-"` } -func (s *GoogleCloudContentwarehouseV1SearchCollectionsResponseMatchingCollection) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1SearchCollectionsResponseMatchingCollection +func (s *GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1RunPipelineMetadataGcsIngestPipelineMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -57751,77 +57813,6 @@ func (s *GoogleCloudContentwarehouseV1SetAclResponse) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudContentwarehouseV1SetCollectionAclRequest: Request message -// for CollectionService.SetAcl. -type GoogleCloudContentwarehouseV1SetCollectionAclRequest struct { - // Policy: Required. REQUIRED: The complete policy to be applied to the - // collection. The size of the policy is limited to a few 10s of KB. - Policy *GoogleIamV1Policy `json:"policy,omitempty"` - - // RequestMetadata: The meta information collected about the end user, - // used to enforce access control for the service. - RequestMetadata *GoogleCloudContentwarehouseV1RequestMetadata `json:"requestMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Policy") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Policy") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1SetCollectionAclRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1SetCollectionAclRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudContentwarehouseV1SetCollectionAclResponse: Response -// message for CollectionService.SetAcl. -type GoogleCloudContentwarehouseV1SetCollectionAclResponse struct { - // Metadata: Additional information for the API invocation, such as the - // request tracking id. - Metadata *GoogleCloudContentwarehouseV1ResponseMetadata `json:"metadata,omitempty"` - - // Policy: The policy created for the Collection. - Policy *GoogleIamV1Policy `json:"policy,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Metadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Metadata") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudContentwarehouseV1SetCollectionAclResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudContentwarehouseV1SetCollectionAclResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudContentwarehouseV1SynonymSet: Represents a list of // synonyms for a given context. For example a context "sales" could // contain: Synonym 1: sale, invoice, bill, order Synonym 2: money, @@ -60614,9 +60605,6 @@ type GoogleInternalAppsWaldoV1alphaCalendarBusy struct { // user (see also http://shortn/_wXYXtZScgh). CommittedUntil string `json:"committedUntil,omitempty"` - // CommittedUntilIsMixed: TODO(b/265939748) To be removed, always false. - CommittedUntilIsMixed bool `json:"committedUntilIsMixed,omitempty"` - // EventSummary: The summary of the corresponding event in Calendar. EventSummary string `json:"eventSummary,omitempty"` @@ -60700,9 +60688,6 @@ type GoogleInternalAppsWaldoV1alphaDoNotDisturb struct { // user (see also http://shortn/_wXYXtZScgh). CommittedUntil string `json:"committedUntil,omitempty"` - // CommittedUntilIsMixed: TODO(b/265939748) To be removed, always false. - CommittedUntilIsMixed bool `json:"committedUntilIsMixed,omitempty"` - // NextAvailable: The next time when the user will be available, i.e., // when their status will be neither InMeeting, CalendarBusy, // DoNotDisturb, OutsideWorkingHours, nor OutOfOffice. @@ -60750,9 +60735,6 @@ type GoogleInternalAppsWaldoV1alphaInMeeting struct { // user (see also http://shortn/_wXYXtZScgh). CommittedUntil string `json:"committedUntil,omitempty"` - // CommittedUntilIsMixed: TODO(b/265939748) To be removed, always false. - CommittedUntilIsMixed bool `json:"committedUntilIsMixed,omitempty"` - // EventSummary: The summary of the corresponding event in Calendar. EventSummary string `json:"eventSummary,omitempty"` @@ -60890,9 +60872,6 @@ type GoogleInternalAppsWaldoV1alphaOutOfOffice struct { // block is large (>=Xh), committed_until is not set. CommittedUntil string `json:"committedUntil,omitempty"` - // CommittedUntilIsMixed: TODO(b/265939748) To be removed, always false. - CommittedUntilIsMixed bool `json:"committedUntilIsMixed,omitempty"` - // EventSummary: The summary of the corresponding OOO block in Calendar. // This is entered by the user, so we return it "as is" - no i18n. EventSummary string `json:"eventSummary,omitempty"` @@ -77344,6 +77323,7 @@ type KnowledgeAnswersIntentQueryIdentifier struct { // go/routines-broadcast-device-gp // "MESSAGE_CONTENT" - Message content identifier for send/reply // message go/message-content-grounding + // "INLINE_INVENTORY" - go/aigp IdType string `json:"idType,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -104493,7 +104473,7 @@ func (s *QualityActionsNewsProviderAnnotationDataProvider) UnmarshalJSON(data [] return nil } -// QualityActionsReminder: Next id: 32 +// QualityActionsReminder: Next id: 33 type QualityActionsReminder struct { // Archived: OPTIONAL. True if the reminder is archived. Not present // implies false. @@ -105034,6 +105014,7 @@ type QualityActionsReminder struct { // opt-in: go/migrate-pr-notifs-tng-ma-prd // "HEADPHONE_PERSONAL_RESULTS_OPTIN" - Notification for Headphone // Personal Response (HPR) opt-in: go/migrate-pr-notifs-tng-ma-prd + // "DISCOVERY_SPARKS" - go/habits-sparks-design // "UNIT_TESTING" - NOTE: This should always stay at the bottom of the // list. AsyncInteractionType string `json:"asyncInteractionType,omitempty"` @@ -105090,6 +105071,11 @@ type QualityActionsReminder struct { DynamiteGroupAssignmentSource *QualityActionsReminderDynamiteGroup `json:"dynamiteGroupAssignmentSource,omitempty"` + // ExtraNotificationDeviceId: OPTIONAL. Device ID for home notification + // which should have loud notification. See + // go/device-id-storage-in-tasks + ExtraNotificationDeviceId string `json:"extraNotificationDeviceId,omitempty"` + // Id: DEPRECATED. Use `client_id` or `server_id` instead. Id string `json:"id,omitempty"` @@ -107903,16 +107889,18 @@ func (s *QualityNsrNsrChunksProto) MarshalJSON() ([]byte, error) { type QualityNsrNsrChunksWithSourceInfo struct { NsrChunks *QualityNsrNsrChunksProto `json:"nsrChunks,omitempty"` - // SiteChunkSource: These are annotated in the Goldmine NSR annotator. + // SiteChunkSource: Annotated in the SitechunksAnnotator and copied over + // in NsrAnnotator. // // Possible values: - // "UNKNOWN" - // "HOST_LEVEL_V3" - // "MARKUP_BREADCRUMBS" - // "MARKUP_AUTHOR" - // "COOKBOOK" - // "CRAWLED_SELLER_DATA" - // "FALLBACK" + // "SITE_CHUNK_SOURCE_UNKNOWN" + // "SITE_CHUNK_SOURCE_WEBUTIL" - As of June 2021 this corresponds to + // HOST_LEVEL_V3 granularity. + // "SITE_CHUNK_SOURCE_BREADCRUMBS" + // "SITE_CHUNK_SOURCE_AUTHOR" + // "SITE_CHUNK_SOURCE_COOKBOOK" + // "SITE_CHUNK_SOURCE_CRAWLED_SELLER_DATA" + // "SITE_CHUNK_SOURCE_FALLBACK" SiteChunkSource string `json:"siteChunkSource,omitempty"` // ForceSendFields is a list of field names (e.g. "NsrChunks") to @@ -108542,15 +108530,12 @@ func (s *QualityNsrVersionedFloatSignal) UnmarshalJSON(data []byte) error { return nil } +// QualityOrbitAsteroidBeltDocumentIntentScores: Next ID: 7 type QualityOrbitAsteroidBeltDocumentIntentScores struct { - // ImageIntentScores: Map of imageid key to ImageIntentScores, for - // images on cdoc.doc_images - ImageIntentScores map[string]QualityOrbitAsteroidBeltImageIntentScores `json:"imageIntentScores,omitempty"` - - // Intents: The 'intents' and 'scores' fields are stored as parallel - // lists for compactness. The 'scores' field should not be accessed - // directly, but instead through the functions in - // document_intent_scores_utils. + // BelowThresholdIntents: Same as above, but for intents below + // triggering threshold. It can be assumed that any intent in this list + // has trigger=false. Most intents do not have below-threshold + // annotations. // // Possible values: // "NONE" @@ -108630,19 +108615,21 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // recommending best shopping products fulfilling certain application // (e.g. "best laptops for students"). See go/shopping_topn_orbit. // "AUTHENTICITY" - AuthenticityScore for document. see go/astar-dd. - // "RESERVED_FOR_NEW_ENUM_128" - ========== Enums for new intents + // "TANGRAM_INFORMATION_OTHER" - Document intents for various + // information sources. They are used in Tangram Diversity. see + // tangram_diversity_annotation.proto. + // "TANGRAM_NEWS_PUBLISHER" + // "TANGRAM_ENCYCLOPEDIA" + // "TANGRAM_MERCHANT" + // "TANGRAM_GOVERNMENT" + // "TANGRAM_UGC" + // "TANGRAM_RESEARCH_INSTITUTE" + // "RESERVED_FOR_NEW_ENUM_135" - ========== Enums for new intents // ========== Instructions: When adding a new intent, use the reserved // enum number from the start of this list, and add a new reserved enum // number to the end for the next person. There is a unit test that // checks there are at least 20 reserved enums. See go/new-intentkeyenum // for details. - // "RESERVED_FOR_NEW_ENUM_129" - // "RESERVED_FOR_NEW_ENUM_130" - // "RESERVED_FOR_NEW_ENUM_131" - // "RESERVED_FOR_NEW_ENUM_132" - // "RESERVED_FOR_NEW_ENUM_133" - // "RESERVED_FOR_NEW_ENUM_134" - // "RESERVED_FOR_NEW_ENUM_135" // "RESERVED_FOR_NEW_ENUM_136" // "RESERVED_FOR_NEW_ENUM_137" // "RESERVED_FOR_NEW_ENUM_138" @@ -108655,6 +108642,13 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // "RESERVED_FOR_NEW_ENUM_145" // "RESERVED_FOR_NEW_ENUM_146" // "RESERVED_FOR_NEW_ENUM_147" + // "RESERVED_FOR_NEW_ENUM_148" + // "RESERVED_FOR_NEW_ENUM_149" + // "RESERVED_FOR_NEW_ENUM_150" + // "RESERVED_FOR_NEW_ENUM_151" + // "RESERVED_FOR_NEW_ENUM_152" + // "RESERVED_FOR_NEW_ENUM_153" + // "RESERVED_FOR_NEW_ENUM_154" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98" - ========== // Enums for new large intents ========== Please ask orbit@ before using // these. @@ -108719,46 +108713,18 @@ type QualityOrbitAsteroidBeltDocumentIntentScores struct { // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_75" // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_78" // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_81" - Intents []string `json:"intents,omitempty"` - - // Scores: The intent scores, scaled to integers between 0 and 100 for - // compactness. - Scores []int64 `json:"scores,omitempty"` + BelowThresholdIntents []string `json:"belowThresholdIntents,omitempty"` - // Version: Version 0: Presence of an intent label in the 'intents' - // field represents our best-effort classification. The 'scores' field - // is not meaningful. Version 1: Values in the 'scores' field represent - // the estimated precision of the classifier for a threshold at that - // score. - Version int64 `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ImageIntentScores") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageIntentScores") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} + BelowThresholdScores []int64 `json:"belowThresholdScores,omitempty"` -func (s *QualityOrbitAsteroidBeltDocumentIntentScores) MarshalJSON() ([]byte, error) { - type NoMethod QualityOrbitAsteroidBeltDocumentIntentScores - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // ImageIntentScores: Map of imageid key to ImageIntentScores, for + // images on cdoc.doc_images + ImageIntentScores map[string]QualityOrbitAsteroidBeltImageIntentScores `json:"imageIntentScores,omitempty"` -type QualityOrbitAsteroidBeltImageIntentScores struct { - // Intents: The unique identifier for an Asteroid Belt document intent - // is being reused here + // Intents: The 'intents' and 'scores' fields are stored as parallel + // lists for compactness. The 'scores' field should not be accessed + // directly, but instead through the functions in + // document_intent_scores_utils. // // Possible values: // "NONE" @@ -108838,19 +108804,21 @@ type QualityOrbitAsteroidBeltImageIntentScores struct { // recommending best shopping products fulfilling certain application // (e.g. "best laptops for students"). See go/shopping_topn_orbit. // "AUTHENTICITY" - AuthenticityScore for document. see go/astar-dd. - // "RESERVED_FOR_NEW_ENUM_128" - ========== Enums for new intents + // "TANGRAM_INFORMATION_OTHER" - Document intents for various + // information sources. They are used in Tangram Diversity. see + // tangram_diversity_annotation.proto. + // "TANGRAM_NEWS_PUBLISHER" + // "TANGRAM_ENCYCLOPEDIA" + // "TANGRAM_MERCHANT" + // "TANGRAM_GOVERNMENT" + // "TANGRAM_UGC" + // "TANGRAM_RESEARCH_INSTITUTE" + // "RESERVED_FOR_NEW_ENUM_135" - ========== Enums for new intents // ========== Instructions: When adding a new intent, use the reserved // enum number from the start of this list, and add a new reserved enum // number to the end for the next person. There is a unit test that // checks there are at least 20 reserved enums. See go/new-intentkeyenum // for details. - // "RESERVED_FOR_NEW_ENUM_129" - // "RESERVED_FOR_NEW_ENUM_130" - // "RESERVED_FOR_NEW_ENUM_131" - // "RESERVED_FOR_NEW_ENUM_132" - // "RESERVED_FOR_NEW_ENUM_133" - // "RESERVED_FOR_NEW_ENUM_134" - // "RESERVED_FOR_NEW_ENUM_135" // "RESERVED_FOR_NEW_ENUM_136" // "RESERVED_FOR_NEW_ENUM_137" // "RESERVED_FOR_NEW_ENUM_138" @@ -108863,6 +108831,228 @@ type QualityOrbitAsteroidBeltImageIntentScores struct { // "RESERVED_FOR_NEW_ENUM_145" // "RESERVED_FOR_NEW_ENUM_146" // "RESERVED_FOR_NEW_ENUM_147" + // "RESERVED_FOR_NEW_ENUM_148" + // "RESERVED_FOR_NEW_ENUM_149" + // "RESERVED_FOR_NEW_ENUM_150" + // "RESERVED_FOR_NEW_ENUM_151" + // "RESERVED_FOR_NEW_ENUM_152" + // "RESERVED_FOR_NEW_ENUM_153" + // "RESERVED_FOR_NEW_ENUM_154" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98" - ========== + // Enums for new large intents ========== Please ask orbit@ before using + // these. + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_99" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_100" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_101" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_102" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_103" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_104" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_105" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_106" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_107" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_108" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_109" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_110" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_111" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_112" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_113" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_114" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_115" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_116" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_117" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_118" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_119" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_120" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_121" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_122" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_123" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_124" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_125" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_126" + // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_127" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_2" - ========== Enums for + // deleted intents ========== + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_5" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_8" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_10" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_17" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_18" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_21" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_23" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_24" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_28" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_29" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_31" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_34" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_36" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_38" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_39" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_40" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_46" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_50" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_52" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_54" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_56" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_57" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_59" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_60" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_63" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_67" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_71" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_75" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_78" + // "RESERVED_FOR_DELETED_ENUM_DO_NOT_REUSE_81" + Intents []string `json:"intents,omitempty"` + + // Scores: The intent scores, scaled to integers between 0 and 100 for + // compactness. + Scores []int64 `json:"scores,omitempty"` + + // Version: DEPRECATED. DO NOT USE IT FOR ANY REASON! contact orbit@ if + // necessary. + Version int64 `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BelowThresholdIntents") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BelowThresholdIntents") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *QualityOrbitAsteroidBeltDocumentIntentScores) MarshalJSON() ([]byte, error) { + type NoMethod QualityOrbitAsteroidBeltDocumentIntentScores + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type QualityOrbitAsteroidBeltImageIntentScores struct { + // Intents: The unique identifier for an Asteroid Belt document intent + // is being reused here + // + // Possible values: + // "NONE" + // "TUTORIAL" + // "MAP" + // "TRANSLATE" + // "LISTEN" + // "PROMOTION" + // "GIF" + // "REGISTER" + // "EVENT_LISTING" + // "RANKING" + // "DISCOGRAPHY" + // "DIRECTIONS" + // "NEWS" + // "SOCIAL_MEDIA" + // "FAN_FICTION" + // "RECIPES" + // "HOURS_OF_OPERATION" + // "DEFINITION" + // "REAL_ESTATE_LISTING" + // "PREVIEW" + // "PURCHASE" + // "MENU" + // "UNBOXING" + // "NUTRITION_FACTS" + // "TRAVEL_GUIDE" + // "SPECS" + // "CALCULATOR" + // "DOWNLOAD" + // "SCORES" + // "QUOTES" + // "SHOWTIMES" + // "CATALOG" + // "CALENDAR" + // "LOCATION_FINDER" + // "RENT" + // "STUDY_GUIDE" + // "REVIEW" + // "SHEET_MUSIC" + // "LOGIN" + // "TRIVIA" + // "CONTACT_PAGE" + // "RESERVATION" + // "CUSTOMER_SUPPORT" + // "INTERVIEW" + // "COUPON" + // "FLIGHT_TRACKER" + // "COMPANY_FINANCIALS" + // "FORUM" + // "THESAURUS" + // "MANUAL" + // "JOB_POSTING" + // "LYRICS" + // "SYMPTOMS" + // "REPAIR" + // "BUYING_GUIDE" - This is specifically for the buying guides + // carousel (go/oshop-buying-guides). Consider using + // PRODUCT_BUYING_GUIDE instead. + // "PRODUCT_EDITORIAL_REVIEW" + // "SHOPPING_MERCHANT_PRODUCT" + // "SHOPPING_REVIEW_OR_BUYING_GUIDE" - This is basically an "or" of + // PRODUCT_REVIEW, PRODUCT_COMPARISON, and PRODUCT_BUYING_GUIDE. Use + // those three intents instead. + // "PRODUCT_REVIEW" + // "PRODUCT_COMPARISON" + // "PRODUCT_BUYING_GUIDE" + // "SHOPAHOLIC" - This is the unmodified http://go/shopaholic score + // "forwarded" through Orbit. Note that scores less than 0.4 are not + // written to cdoc and will show up as 0.0. + // "GOOGLE_SCREENSHOT" - This is an image intent + // "MUGSHOT" - Image intent representing whether there is a mugshot in + // the image (or if the image is itself a mugshot). + // "CRIME" - Document intent representing whether a page is + // crime-related (go/crime-demotion-in-image-search-dd) + // "SHOPPING_TOPN" - Document intent representing whether a page is + // recommending best shopping products fulfilling certain application + // (e.g. "best laptops for students"). See go/shopping_topn_orbit. + // "AUTHENTICITY" - AuthenticityScore for document. see go/astar-dd. + // "TANGRAM_INFORMATION_OTHER" - Document intents for various + // information sources. They are used in Tangram Diversity. see + // tangram_diversity_annotation.proto. + // "TANGRAM_NEWS_PUBLISHER" + // "TANGRAM_ENCYCLOPEDIA" + // "TANGRAM_MERCHANT" + // "TANGRAM_GOVERNMENT" + // "TANGRAM_UGC" + // "TANGRAM_RESEARCH_INSTITUTE" + // "RESERVED_FOR_NEW_ENUM_135" - ========== Enums for new intents + // ========== Instructions: When adding a new intent, use the reserved + // enum number from the start of this list, and add a new reserved enum + // number to the end for the next person. There is a unit test that + // checks there are at least 20 reserved enums. See go/new-intentkeyenum + // for details. + // "RESERVED_FOR_NEW_ENUM_136" + // "RESERVED_FOR_NEW_ENUM_137" + // "RESERVED_FOR_NEW_ENUM_138" + // "RESERVED_FOR_NEW_ENUM_139" + // "RESERVED_FOR_NEW_ENUM_140" + // "RESERVED_FOR_NEW_ENUM_141" + // "RESERVED_FOR_NEW_ENUM_142" + // "RESERVED_FOR_NEW_ENUM_143" + // "RESERVED_FOR_NEW_ENUM_144" + // "RESERVED_FOR_NEW_ENUM_145" + // "RESERVED_FOR_NEW_ENUM_146" + // "RESERVED_FOR_NEW_ENUM_147" + // "RESERVED_FOR_NEW_ENUM_148" + // "RESERVED_FOR_NEW_ENUM_149" + // "RESERVED_FOR_NEW_ENUM_150" + // "RESERVED_FOR_NEW_ENUM_151" + // "RESERVED_FOR_NEW_ENUM_152" + // "RESERVED_FOR_NEW_ENUM_153" + // "RESERVED_FOR_NEW_ENUM_154" // "RESERVED_FOR_NEW_ENUM_LARGE_PLEASE_ASK_ORBIT_98" - ========== // Enums for new large intents ========== Please ask orbit@ before using // these. @@ -112056,6 +112246,9 @@ type QualityShoppingShoppingAttachmentOffer struct { // came from different url. FingerprintOfOfferUrls googleapi.Uint64s `json:"fingerprintOfOfferUrls,omitempty"` + // GtinValue: Global trade item number (GTIN). + GtinValue []string `json:"gtinValue,omitempty"` + // ImageId: image_id is sorted and distinct for efficient search during // serving. ImageId googleapi.Uint64s `json:"imageId,omitempty"` @@ -112271,6 +112464,10 @@ type QualityShoppingShoppingAttachmentProduct struct { // non_displayable_title and pblock.final_title are present. Pblock *QualityShoppingShoppingAttachmentPBlock `json:"pblock,omitempty"` + // ProductBrowseonomyIds: Product level Browseonomy ids from + // shopping_annotation.product.browseonomy. + ProductBrowseonomyIds []int64 `json:"productBrowseonomyIds,omitempty"` + ProductClusterMid uint64 `json:"productClusterMid,omitempty,string"` // ProductPopularity: Organic product popularity. @@ -112902,10 +113099,10 @@ type QualitySnippetsTruncationSnippetBoldedRange struct { // Possible values: // "TYPE_UNSPECIFIED" - // "QUERY_TERM_MATCH" - // "RADISH" - // "BRAIN" - // "QUOTED_TERM" + // "QUERY_TERM_MATCH" - Query term matched terms. + // "RADISH" - Radish bolded terms. + // "BRAIN" - Snippet brain bolded terms. + // "QUOTED_TERM" - User quoted query terms. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Begin") to @@ -124540,6 +124737,76 @@ func (s *ResearchScamNeighborSelectionOverride) UnmarshalJSON(data []byte) error return nil } +type ResearchScamNumericRestrictNamespace struct { + // Namespace: The name of this namespace. + Namespace string `json:"namespace,omitempty"` + + // Op: This MUST be specified for queries and must NOT be specified for + // database points. + // + // Possible values: + // "OP_UNSPECIFIED" + // "LESS" - Database points are eligible iff their value is < the + // query's. + // "LESS_EQUAL" - Database points are eligible iff their value is <= + // the query's. + // "EQUAL" - Database points are eligible iff their value is == the + // query's. + // "GREATER_EQUAL" - Database points are eligible iff their value is + // >= the query's. + // "GREATER" - Database points are eligible iff their value is > the + // query's. + Op string `json:"op,omitempty"` + + ValueDouble float64 `json:"valueDouble,omitempty"` + + ValueFloat float64 `json:"valueFloat,omitempty"` + + // ValueInt: NOTE: Integers are represented in 64 bits here, but if all + // integer values for a given namespace fit in a narrower integer type + // (e.g. int8), we use the narrower integer type internally, increasing + // performance. + ValueInt int64 `json:"valueInt,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "Namespace") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Namespace") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ResearchScamNumericRestrictNamespace) MarshalJSON() ([]byte, error) { + type NoMethod ResearchScamNumericRestrictNamespace + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *ResearchScamNumericRestrictNamespace) UnmarshalJSON(data []byte) error { + type NoMethod ResearchScamNumericRestrictNamespace + var s1 struct { + ValueDouble gensupport.JSONFloat64 `json:"valueDouble"` + ValueFloat gensupport.JSONFloat64 `json:"valueFloat"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ValueDouble = float64(s1.ValueDouble) + s.ValueFloat = float64(s1.ValueFloat) + return nil +} + // ResearchScamOnlineSearchLatencyStats: Structure to hold the response // time for a node. Last used: 3 type ResearchScamOnlineSearchLatencyStats struct { @@ -124872,6 +125139,13 @@ type ResearchScamV3Restrict struct { // namespace more than once per instance of the V3Restrict proto. Namespaces []*ResearchScamTokenNamespace `json:"namespaces,omitempty"` + // NumericNamespaces: This field allows restricts to be based on numeric + // comparisons rather than categorical tokens. HINT: To allow a range of + // values in a namespace (e.g. 42 <= x < 128), specify the same + // namespace twice in the query, e.g.: {namespace: "x" op: LESS + // value_int: 128 } {namespace: "x" op: GREATER_EQUAL value_int: 42 } + NumericNamespaces []*ResearchScamNumericRestrictNamespace `json:"numericNamespaces,omitempty"` + // ForceSendFields is a list of field names (e.g. "Namespaces") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -126621,9 +126895,13 @@ type ScienceCitation struct { // Possible values: // "UNKNOWN_ABSTRACT_DISPLAY" - // "MAIN_ABSTRACT_DISPLAY" - // "GRAPHICAL_ABSTRACT_DISPLAY" - // "SUMMARY_ABSTRACT_DISPLAY" + // "MAIN_ABSTRACT_DISPLAY" - Main author written abstract. + // "GRAPHICAL_ABSTRACT_DISPLAY" - Abstract in form of image or graphic + // explanation. + // "SUMMARY_ABSTRACT_DISPLAY" - Summary for the paper. Usually not the + // main author written abstract. + // "HIGHLIGHTS_ABSTRACT_DISPLAY" - Highlights for a paper, often + // bulletized. AbstractDisplay string `json:"AbstractDisplay,omitempty"` // AbstractHtml: Version of abstract field for display. Contains @@ -127035,9 +127313,13 @@ func (s *ScienceCitationAccessURL) MarshalJSON() ([]byte, error) { type ScienceCitationAlternateAbstract struct { // Possible values: // "UNKNOWN_ABSTRACT_DISPLAY" - // "MAIN_ABSTRACT_DISPLAY" - // "GRAPHICAL_ABSTRACT_DISPLAY" - // "SUMMARY_ABSTRACT_DISPLAY" + // "MAIN_ABSTRACT_DISPLAY" - Main author written abstract. + // "GRAPHICAL_ABSTRACT_DISPLAY" - Abstract in form of image or graphic + // explanation. + // "SUMMARY_ABSTRACT_DISPLAY" - Summary for the paper. Usually not the + // main author written abstract. + // "HIGHLIGHTS_ABSTRACT_DISPLAY" - Highlights for a paper, often + // bulletized. AbstractDisplay string `json:"AbstractDisplay,omitempty"` // AbstractHtml: Version of abstract field for display. This may contain @@ -127467,6 +127749,14 @@ func (s *ScienceCitationFunding) MarshalJSON() ([]byte, error) { // ScienceCitationFundingExtractionInfo: Holds information about the // source of the funding entry. type ScienceCitationFundingExtractionInfo struct { + // ClearedFunding: Set when we clear all extracted funding from this + // citation in the parser. + // + // Possible values: + // "UNSPECIFIED_REASON" + // "SHORT_ARTICLE" + ClearedFunding string `json:"ClearedFunding,omitempty"` + // DebugFundingTextBlock: Text block context from which the funding // entry was extracted. Optionally filled and intended to be used for // offline analysis. @@ -127499,16 +127789,15 @@ type ScienceCitationFundingExtractionInfo struct { // "URL_BASED_FUNDING" Source string `json:"Source,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "DebugFundingTextBlock") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "ClearedFunding") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DebugFundingTextBlock") to + // NullFields is a list of field names (e.g. "ClearedFunding") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -129819,6 +130108,7 @@ type ShoppingWebentityShoppingAnnotationInferredImage struct { // "INFERRED_IMAGE_TYPE_SCHEMA_DOT_ORG" // "INFERRED_IMAGE_TYPE_CRAWZALL" // "INFERRED_IMAGE_TYPE_OPEN_GRAPH" + // "INFERRED_IMAGE_TYPE_NEARDUP_STARBURST_V5" InferredImageType string `json:"inferredImageType,omitempty"` // NeardupInfo: This field will only be populated if the inferred image @@ -129882,6 +130172,7 @@ type ShoppingWebentityShoppingAnnotationInferredImageNeardupInfo struct { // "INFERRED_IMAGE_TYPE_SCHEMA_DOT_ORG" // "INFERRED_IMAGE_TYPE_CRAWZALL" // "INFERRED_IMAGE_TYPE_OPEN_GRAPH" + // "INFERRED_IMAGE_TYPE_NEARDUP_STARBURST_V5" InferredImageType string `json:"inferredImageType,omitempty"` // ForceSendFields is a list of field names (e.g. "InferredImageSource") @@ -135673,8 +135964,13 @@ type StorageGraphBfgTripleProvenance struct { // Possible values: // "REQUIRES_CITATION" - // "REQUIRES_PCOUNSEL_REVIEW" - // "REQUIRES_ACCESS_CONTROL" - not used in KE infra + // "REQUIRES_PCOUNSEL_REVIEW" - WARNING for data providers: the + // REQUIRES_PCOUNSEL_REVIEW mechanism is outdated and has many + // drawbacks. Please prefer other data governance solutions + // (go/ke-data-governance for details) before deciding to use this field + // for new data onboarding. Feel free to reach out to + // g/ke-data-governance for any questions. + // "REQUIRES_ACCESS_CONTROL" - Not used in KE infra. // "UNRESTRICTED_WITHIN_GOOGLE_NO_3P_USE" Restrictions []string `json:"restrictions,omitempty"` @@ -139672,6 +139968,12 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SECOND_PASS_QUALITY_REWEIGTHING_MDP_EVENT_LEVEL" - Event level // test code that indicates second pass quality reweigthing is // triggered. + // "PLAY_STORE_IAP_SALES_MINI_DETAILS_PAGE_EVENT_LEVEL" - IAP Sales + // MDP user-level test code. Design: + // go/play-store-iap-sales-integration-dd + // "UNACK_IN_APP_SUBSCRIPTION_WARNING_DETAIL_PAGE_EVENT_LEVEL" - Unack + // Warning Message event-level test code. Design: + // go/unack-warning-message-on-dp-dd // "EVENT_LEVEL_TEST_CODE_LIMIT" // "ENTERTAINMENT_CLUSTER_TRIGGERING_AT_SESSION_LEVEL" // "BEST_SELLER_CART_TAG_AT_SESSION_LEVEL" @@ -139901,7 +140203,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // early-access partners for the Play Store IAP sales project. // go/play-store-iap-sales-dd // "PLAY_STORE_IAP_SALES_APP_1" - // "PLAY_STORE_IAP_SALES_MINI_DETAILS_PAGE" + // "PLAY_STORE_IAP_SALES_MINI_DETAILS_PAGE" - IAP Sales MDP user-level + // test code. Design: go/play-store-iap-sales-integration-dd // "CROSS_DEVICE_INSTALL_OPTIONS_FETCHED_IN_SESSION" - Test codes for // cross-device features. See go/play-cross-device. // "CROSS_DEVICE_INSTALL_OPTIONS_ITEM_FIELDS_TRIGGERED" @@ -140430,6 +140733,12 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "SECOND_PASS_QUALITY_REWEIGTHING_MDP_SESSION_LEVEL" - Session level // test code that indicates second pass quality reweigthing is // triggered. + // "UNACK_IN_APP_SUBSCRIPTION_WARNING_DETAIL_PAGE_SESSION_LEVEL" - + // Unack Warning Message session-level test code. Design: + // go/unack-warning-message-on-dp-dd + // "ELIGIBLE_FOR_FORM_FACTOR_FILTER_ON_TOP_CHARTS" - Session level + // test code that indicates this user is eligible to be shown form + // factor filters on top charts. // "SESSION_LEVEL_TEST_CODE_LIMIT" // "CART_ABANDONMENT_USER_LEVEL" - Cart abandonment flow for purchase // flow. @@ -140540,7 +140849,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // each early-access partners for the Play Store IAP sales project. // go/play-store-iap-sales-dd // "PLAY_STORE_IAP_SALES_APP_1_USER_LEVEL" - // "PLAY_STORE_IAP_SALES_MINI_DETAILS_PAGE_USER_LEVEL" + // "PLAY_STORE_IAP_SALES_MINI_DETAILS_PAGE_USER_LEVEL" - IAP Sales MDP + // user-level test code. Design: go/play-store-iap-sales-integration-dd // "PLAY_GROWTH_IS_SCHEDULED" // "GEARHEAD_VISUAL_PREVIEW_UNCHAINED_ELIGIBLE" - Test code for when a // user was eligible for visual preview while in motion. E.g. received a @@ -140602,6 +140912,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // user value segment. // "GE_USER_VALUE_SEGMENT_NEVER" - Test code GE ranker service never // user value segment. + // "GE_POINTS_BOOSTER_MODEL_LAUNCH" - Test code GE points booster + // model launch. // "GE_IS_SCHEDULED_UNKNOWN_SURFACE" - Test codes for GE surfaces. // "GE_IS_SCHEDULED_LEON" // "GE_IS_SCHEDULED_NOTIFICATION" @@ -140690,6 +141002,9 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "FOP_STEERING_PROMOTION_USER_LEVEL" - User level test code for Fop // Steering Promotion in all user journeys; Users are tagged on // unredeemed fop steering promotion impression. + // "FOP_STEERING_PROMOTION_EXCLUDE_CUJ4_USER_LEVEL" - User level test + // code for Fop Steering Promotion in CUJ 1~3; excluding CUJ4. Users are + // tagged on unredeemed fop steering promotion impression. // "LOYALTY_STAMP_CARD_IN_PURCHASE_FLOW_USER_LEVEL" - User level test // code for Quest Platform Loyalty Stamp Card in Purchase flow. // "HAS_MONETIZATION_BEHAVIOR_USER_LEVEL" - User level test code for @@ -140829,6 +141144,21 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // that the filtering logics are controlled by gcl flags. Ex. Play Games // Home: http://shortn/_2aGCRQqToq. This test code only knows if any app // passes the filtering but not which filtering params are applied. + // "HAS_RECOMMENDED_APP_WITH_OOP_REINSTALL_ELIGIBILITY_USER_LEVEL" - + // User level test code for tagging users who have any app which is + // recommended by PRS and has reinstall eligibility when + // is_app_with_historical_oop_purchase restriction is turned on. + // "NOTIFICATION_PREDICTED_REV_GAIN_FILTERING_USER_LEVEL" - User level + // test code for notification campaign gain filtering experiments. If GE + // decision changed after applying predicted revenue gain filtering on + // notification campaigns, log test code. + // "NOTIFICATION_PUBLICITY_GAIN_DISABLED_USER_LEVEL" - User level test + // code for notification campaign gain filtering experiments. If GE + // decision changed after disabling publicity gain in notification + // campaign benefit calculation, log test code. + // "UNACK_IN_APP_SUBSCRIPTION_WARNING_DETAIL_PAGE_USER_LEVEL" - Unack + // Warning Message user-level test code. Design: + // go/unack-warning-message-on-dp-dd Add new user-level TestCode here. // "USER_LEVEL_TEST_CODE_LIMIT" TestCode []string `json:"testCode,omitempty"` @@ -149100,12 +149430,16 @@ type VideoThumbnailsThumbnailScore struct { // watchnext. // "MODEL_RACY_WATCHPAGE_V4" - Racy watchpage model v4 // (go/racy-watchpage-v4). + // "MODEL_RACY_WATCHPAGE_V5" - Racy watchpage model v5. + // "MODEL_RACY_WATCHPAGE_V5_FLAGGED" // "MODEL_RACY_WATCHPAGE_RELEASE" - Racy watchpage release version. // "MODEL_RACY_SHORTS_WATCHPAGE_V1" - LINT.IfChange Racy shorts // watchpage model v1. // "MODEL_RACY_SHORTS_WATCHPAGE_V1_FLAGGED" // "MODEL_RACY_SHORTS_WATCHPAGE_V2" - Racy shorts watchpage model v2. // "MODEL_RACY_SHORTS_WATCHPAGE_V2_FLAGGED" + // "MODEL_RACY_SHORTS_WATCHPAGE_V3" - Racy shorts watchpage model v3. + // "MODEL_RACY_SHORTS_WATCHPAGE_V3_FLAGGED" // "MODEL_RACY_SHORTS_WATCHPAGE_RELEASE" - Racy shorts watchpage // release version. // "MODEL_RACY_THUMB_2019_04_02" - @@ -157494,7 +157828,9 @@ type ProjectsFetchAclCall struct { // - resource: REQUIRED: The resource for which the policy is being // requested. Format for document: // projects/{project_number}/locations/{location}/documents/{document_i -// d}. Format for project: projects/{project_number}. +// d}. Format for collection: +// projects/{project_number}/locations/{location}/collections/{collecti +// on_id}. Format for project: projects/{project_number}. func (r *ProjectsService) FetchAcl(resource string, googlecloudcontentwarehousev1fetchaclrequest *GoogleCloudContentwarehouseV1FetchAclRequest) *ProjectsFetchAclCall { c := &ProjectsFetchAclCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -157604,7 +157940,7 @@ func (c *ProjectsFetchAclCall) Do(opts ...googleapi.CallOption) (*GoogleCloudCon // ], // "parameters": { // "resource": { - // "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for project: projects/{project_number}.", + // "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, @@ -157642,7 +157978,9 @@ type ProjectsSetAclCall struct { // - resource: REQUIRED: The resource for which the policy is being // requested. Format for document: // projects/{project_number}/locations/{location}/documents/{document_i -// d}. Format for project: projects/{project_number}. +// d}. Format for collection: +// projects/{project_number}/locations/{location}/collections/{collecti +// on_id}. Format for project: projects/{project_number}. func (r *ProjectsService) SetAcl(resource string, googlecloudcontentwarehousev1setaclrequest *GoogleCloudContentwarehouseV1SetAclRequest) *ProjectsSetAclCall { c := &ProjectsSetAclCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -157752,7 +158090,7 @@ func (c *ProjectsSetAclCall) Do(opts ...googleapi.CallOption) (*GoogleCloudConte // ], // "parameters": { // "resource": { - // "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for project: projects/{project_number}.", + // "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.", // "location": "path", // "pattern": "^projects/[^/]+$", // "required": true, @@ -157917,174 +158255,31 @@ func (c *ProjectsLocationsInitializeCall) Do(opts ...googleapi.CallOption) (*Goo } -// method id "contentwarehouse.projects.locations.runPipeline": - -type ProjectsLocationsRunPipelineCall struct { - s *Service - name string - googlecloudcontentwarehousev1runpipelinerequest *GoogleCloudContentwarehouseV1RunPipelineRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// RunPipeline: Run a predefined pipeline. -// -// - name: The resource name which owns the resources of the pipeline. -// Format: projects/{project_number}/locations/{location}. -func (r *ProjectsLocationsService) RunPipeline(name string, googlecloudcontentwarehousev1runpipelinerequest *GoogleCloudContentwarehouseV1RunPipelineRequest) *ProjectsLocationsRunPipelineCall { - c := &ProjectsLocationsRunPipelineCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudcontentwarehousev1runpipelinerequest = googlecloudcontentwarehousev1runpipelinerequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsRunPipelineCall) Fields(s ...googleapi.Field) *ProjectsLocationsRunPipelineCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsRunPipelineCall) Context(ctx context.Context) *ProjectsLocationsRunPipelineCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsRunPipelineCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsRunPipelineCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontentwarehousev1runpipelinerequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:runPipeline") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contentwarehouse.projects.locations.runPipeline" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsRunPipelineCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Run a predefined pipeline.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:runPipeline", - // "httpMethod": "POST", - // "id": "contentwarehouse.projects.locations.runPipeline", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name which owns the resources of the pipeline. Format: projects/{project_number}/locations/{location}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:runPipeline", - // "request": { - // "$ref": "GoogleCloudContentwarehouseV1RunPipelineRequest" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "contentwarehouse.projects.locations.collections.create": +// method id "contentwarehouse.projects.locations.documentSchemas.create": -type ProjectsLocationsCollectionsCreateCall struct { - s *Service - parent string - googlecloudcontentwarehousev1collection *GoogleCloudContentwarehouseV1Collection - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDocumentSchemasCreateCall struct { + s *Service + parent string + googlecloudcontentwarehousev1documentschema *GoogleCloudContentwarehouseV1DocumentSchema + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a collection. +// Create: Creates a document schema. // // - parent: The parent name. -func (r *ProjectsLocationsCollectionsService) Create(parent string, googlecloudcontentwarehousev1collection *GoogleCloudContentwarehouseV1Collection) *ProjectsLocationsCollectionsCreateCall { - c := &ProjectsLocationsCollectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDocumentSchemasService) Create(parent string, googlecloudcontentwarehousev1documentschema *GoogleCloudContentwarehouseV1DocumentSchema) *ProjectsLocationsDocumentSchemasCreateCall { + c := &ProjectsLocationsDocumentSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudcontentwarehousev1collection = googlecloudcontentwarehousev1collection + c.googlecloudcontentwarehousev1documentschema = googlecloudcontentwarehousev1documentschema return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCollectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsCreateCall { +func (c *ProjectsLocationsDocumentSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDocumentSchemasCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -158092,21 +158287,21 @@ func (c *ProjectsLocationsCollectionsCreateCall) Fields(s ...googleapi.Field) *P // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsCollectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsCreateCall { +func (c *ProjectsLocationsDocumentSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsDocumentSchemasCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsCollectionsCreateCall) Header() http.Header { +func (c *ProjectsLocationsDocumentSchemasCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCollectionsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDocumentSchemasCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -158114,14 +158309,14 @@ func (c *ProjectsLocationsCollectionsCreateCall) doRequest(alt string) (*http.Re } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontentwarehousev1collection) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontentwarehousev1documentschema) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/collections") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documentSchemas") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -158134,15 +158329,16 @@ func (c *ProjectsLocationsCollectionsCreateCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contentwarehouse.projects.locations.collections.create" call. -// Exactly one of *GoogleCloudContentwarehouseV1Collection or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudContentwarehouseV1Collection.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsCollectionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContentwarehouseV1Collection, error) { +// Do executes the "contentwarehouse.projects.locations.documentSchemas.create" call. +// Exactly one of *GoogleCloudContentwarehouseV1DocumentSchema or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudContentwarehouseV1DocumentSchema.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDocumentSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContentwarehouseV1DocumentSchema, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -158161,7 +158357,7 @@ func (c *ProjectsLocationsCollectionsCreateCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudContentwarehouseV1Collection{ + ret := &GoogleCloudContentwarehouseV1DocumentSchema{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -158173,10 +158369,10 @@ func (c *ProjectsLocationsCollectionsCreateCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Creates a collection.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections", + // "description": "Creates a document schema.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/documentSchemas", // "httpMethod": "POST", - // "id": "contentwarehouse.projects.locations.collections.create", + // "id": "contentwarehouse.projects.locations.documentSchemas.create", // "parameterOrder": [ // "parent" // ], @@ -158189,12 +158385,12 @@ func (c *ProjectsLocationsCollectionsCreateCall) Do(opts ...googleapi.CallOption // "type": "string" // } // }, - // "path": "v1/{+parent}/collections", + // "path": "v1/{+parent}/documentSchemas", // "request": { - // "$ref": "GoogleCloudContentwarehouseV1Collection" + // "$ref": "GoogleCloudContentwarehouseV1DocumentSchema" // }, // "response": { - // "$ref": "GoogleCloudContentwarehouseV1Collection" + // "$ref": "GoogleCloudContentwarehouseV1DocumentSchema" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -158203,9 +158399,9 @@ func (c *ProjectsLocationsCollectionsCreateCall) Do(opts ...googleapi.CallOption } -// method id "contentwarehouse.projects.locations.collections.delete": +// method id "contentwarehouse.projects.locations.documentSchemas.delete": -type ProjectsLocationsCollectionsDeleteCall struct { +type ProjectsLocationsDocumentSchemasDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -158213,11 +158409,13 @@ type ProjectsLocationsCollectionsDeleteCall struct { header_ http.Header } -// Delete: Deletes a collection. +// Delete: Deletes a document schema. Returns NOT_FOUND if the document +// schema does not exist. Returns BAD_REQUEST if the document schema has +// documents depending on it. // -// - name: The name of the collection to delete. -func (r *ProjectsLocationsCollectionsService) Delete(name string) *ProjectsLocationsCollectionsDeleteCall { - c := &ProjectsLocationsCollectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the document schema to delete. +func (r *ProjectsLocationsDocumentSchemasService) Delete(name string) *ProjectsLocationsDocumentSchemasDeleteCall { + c := &ProjectsLocationsDocumentSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -158225,7 +158423,7 @@ func (r *ProjectsLocationsCollectionsService) Delete(name string) *ProjectsLocat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCollectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDeleteCall { +func (c *ProjectsLocationsDocumentSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDocumentSchemasDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -158233,21 +158431,21 @@ func (c *ProjectsLocationsCollectionsDeleteCall) Fields(s ...googleapi.Field) *P // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsCollectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDeleteCall { +func (c *ProjectsLocationsDocumentSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsDocumentSchemasDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsCollectionsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDocumentSchemasDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCollectionsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDocumentSchemasDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -158270,14 +158468,14 @@ func (c *ProjectsLocationsCollectionsDeleteCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "contentwarehouse.projects.locations.collections.delete" call. +// Do executes the "contentwarehouse.projects.locations.documentSchemas.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsCollectionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDocumentSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -158308,18 +158506,18 @@ func (c *ProjectsLocationsCollectionsDeleteCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Deletes a collection.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}", + // "description": "Deletes a document schema. Returns NOT_FOUND if the document schema does not exist. Returns BAD_REQUEST if the document schema has documents depending on it.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/documentSchemas/{documentSchemasId}", // "httpMethod": "DELETE", - // "id": "contentwarehouse.projects.locations.collections.delete", + // "id": "contentwarehouse.projects.locations.documentSchemas.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the collection to delete.", + // "description": "Required. The name of the document schema to delete.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/documentSchemas/[^/]+$", // "required": true, // "type": "string" // } @@ -158335,159 +158533,9 @@ func (c *ProjectsLocationsCollectionsDeleteCall) Do(opts ...googleapi.CallOption } -// method id "contentwarehouse.projects.locations.collections.fetchCollectionAcl": - -type ProjectsLocationsCollectionsFetchCollectionAclCall struct { - s *Service - name string - googlecloudcontentwarehousev1fetchcollectionaclrequest *GoogleCloudContentwarehouseV1FetchCollectionAclRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// FetchCollectionAcl: Gets the access control policy for the -// collection. Returns NOT_FOUND error if the collection does not exist. -// Returns an empty policy if the collection exists but does not have a -// policy set. -// -// - name: The name of the collection. -// projects/{project_number}/locations/{location}/collections/{document -// _id}. -func (r *ProjectsLocationsCollectionsService) FetchCollectionAcl(name string, googlecloudcontentwarehousev1fetchcollectionaclrequest *GoogleCloudContentwarehouseV1FetchCollectionAclRequest) *ProjectsLocationsCollectionsFetchCollectionAclCall { - c := &ProjectsLocationsCollectionsFetchCollectionAclCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudcontentwarehousev1fetchcollectionaclrequest = googlecloudcontentwarehousev1fetchcollectionaclrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsCollectionsFetchCollectionAclCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsFetchCollectionAclCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsCollectionsFetchCollectionAclCall) Context(ctx context.Context) *ProjectsLocationsCollectionsFetchCollectionAclCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsCollectionsFetchCollectionAclCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCollectionsFetchCollectionAclCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontentwarehousev1fetchcollectionaclrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:fetchCollectionAcl") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contentwarehouse.projects.locations.collections.fetchCollectionAcl" call. -// Exactly one of -// *GoogleCloudContentwarehouseV1FetchCollectionAclResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudContentwarehouseV1FetchCollectionAclResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsCollectionsFetchCollectionAclCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContentwarehouseV1FetchCollectionAclResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudContentwarehouseV1FetchCollectionAclResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets the access control policy for the collection. Returns NOT_FOUND error if the collection does not exist. Returns an empty policy if the collection exists but does not have a policy set.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}:fetchCollectionAcl", - // "httpMethod": "POST", - // "id": "contentwarehouse.projects.locations.collections.fetchCollectionAcl", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the collection. projects/{project_number}/locations/{location}/collections/{document_id}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:fetchCollectionAcl", - // "request": { - // "$ref": "GoogleCloudContentwarehouseV1FetchCollectionAclRequest" - // }, - // "response": { - // "$ref": "GoogleCloudContentwarehouseV1FetchCollectionAclResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "contentwarehouse.projects.locations.collections.get": +// method id "contentwarehouse.projects.locations.documentSchemas.get": -type ProjectsLocationsCollectionsGetCall struct { +type ProjectsLocationsDocumentSchemasGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -158496,11 +158544,12 @@ type ProjectsLocationsCollectionsGetCall struct { header_ http.Header } -// Get: Gets a collection. +// Get: Gets a document schema. Returns NOT_FOUND if the document schema +// does not exist. // -// - name: The name of the collection to retrieve. -func (r *ProjectsLocationsCollectionsService) Get(name string) *ProjectsLocationsCollectionsGetCall { - c := &ProjectsLocationsCollectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the document schema to retrieve. +func (r *ProjectsLocationsDocumentSchemasService) Get(name string) *ProjectsLocationsDocumentSchemasGetCall { + c := &ProjectsLocationsDocumentSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -158508,7 +158557,7 @@ func (r *ProjectsLocationsCollectionsService) Get(name string) *ProjectsLocation // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCollectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsGetCall { +func (c *ProjectsLocationsDocumentSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDocumentSchemasGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -158518,7 +158567,7 @@ func (c *ProjectsLocationsCollectionsGetCall) Fields(s ...googleapi.Field) *Proj // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsCollectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsGetCall { +func (c *ProjectsLocationsDocumentSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDocumentSchemasGetCall { c.ifNoneMatch_ = entityTag return c } @@ -158526,763 +158575,21 @@ func (c *ProjectsLocationsCollectionsGetCall) IfNoneMatch(entityTag string) *Pro // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsCollectionsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsGetCall { +func (c *ProjectsLocationsDocumentSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsDocumentSchemasGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsCollectionsGetCall) Header() http.Header { +func (c *ProjectsLocationsDocumentSchemasGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCollectionsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contentwarehouse.projects.locations.collections.get" call. -// Exactly one of *GoogleCloudContentwarehouseV1Collection or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudContentwarehouseV1Collection.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsCollectionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContentwarehouseV1Collection, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudContentwarehouseV1Collection{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets a collection.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}", - // "httpMethod": "GET", - // "id": "contentwarehouse.projects.locations.collections.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the collection to retrieve.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudContentwarehouseV1Collection" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "contentwarehouse.projects.locations.collections.search": - -type ProjectsLocationsCollectionsSearchCall struct { - s *Service - parent string - googlecloudcontentwarehousev1searchcollectionsrequest *GoogleCloudContentwarehouseV1SearchCollectionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Search: Searches for collections using provided -// SearchCollectionsRequest. This call only returns collections that the -// caller has permission to search against. -// -// - parent: The parent, which owns the collections. Format: -// projects/{project_number}/locations/{location}. -func (r *ProjectsLocationsCollectionsService) Search(parent string, googlecloudcontentwarehousev1searchcollectionsrequest *GoogleCloudContentwarehouseV1SearchCollectionsRequest) *ProjectsLocationsCollectionsSearchCall { - c := &ProjectsLocationsCollectionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontentwarehousev1searchcollectionsrequest = googlecloudcontentwarehousev1searchcollectionsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsCollectionsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsSearchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsCollectionsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsSearchCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsCollectionsSearchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCollectionsSearchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontentwarehousev1searchcollectionsrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/collections:search") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contentwarehouse.projects.locations.collections.search" call. -// Exactly one of -// *GoogleCloudContentwarehouseV1SearchCollectionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudContentwarehouseV1SearchCollectionsResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsCollectionsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContentwarehouseV1SearchCollectionsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudContentwarehouseV1SearchCollectionsResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Searches for collections using provided SearchCollectionsRequest. This call only returns collections that the caller has permission to search against.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections:search", - // "httpMethod": "POST", - // "id": "contentwarehouse.projects.locations.collections.search", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent, which owns the collections. Format: projects/{project_number}/locations/{location}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/collections:search", - // "request": { - // "$ref": "GoogleCloudContentwarehouseV1SearchCollectionsRequest" - // }, - // "response": { - // "$ref": "GoogleCloudContentwarehouseV1SearchCollectionsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsCollectionsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudContentwarehouseV1SearchCollectionsResponse) error) error { - c.ctx_ = ctx - defer func(pt string) { c.googlecloudcontentwarehousev1searchcollectionsrequest.PageToken = pt }(c.googlecloudcontentwarehousev1searchcollectionsrequest.PageToken) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.googlecloudcontentwarehousev1searchcollectionsrequest.PageToken = x.NextPageToken - } -} - -// method id "contentwarehouse.projects.locations.collections.setCollectionAcl": - -type ProjectsLocationsCollectionsSetCollectionAclCall struct { - s *Service - name string - googlecloudcontentwarehousev1setcollectionaclrequest *GoogleCloudContentwarehouseV1SetCollectionAclRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// SetCollectionAcl: Sets the access control policy for the collection. -// Replaces any existing policy. -// -// - name: The name of the collection for which the policy is being set. -// projects/{project_number}/locations/{location}/collections/{document -// _id}. -func (r *ProjectsLocationsCollectionsService) SetCollectionAcl(name string, googlecloudcontentwarehousev1setcollectionaclrequest *GoogleCloudContentwarehouseV1SetCollectionAclRequest) *ProjectsLocationsCollectionsSetCollectionAclCall { - c := &ProjectsLocationsCollectionsSetCollectionAclCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudcontentwarehousev1setcollectionaclrequest = googlecloudcontentwarehousev1setcollectionaclrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsCollectionsSetCollectionAclCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsSetCollectionAclCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsCollectionsSetCollectionAclCall) Context(ctx context.Context) *ProjectsLocationsCollectionsSetCollectionAclCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsCollectionsSetCollectionAclCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCollectionsSetCollectionAclCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontentwarehousev1setcollectionaclrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setCollectionAcl") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contentwarehouse.projects.locations.collections.setCollectionAcl" call. -// Exactly one of *GoogleCloudContentwarehouseV1SetCollectionAclResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudContentwarehouseV1SetCollectionAclResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsCollectionsSetCollectionAclCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContentwarehouseV1SetCollectionAclResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudContentwarehouseV1SetCollectionAclResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Sets the access control policy for the collection. Replaces any existing policy.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}:setCollectionAcl", - // "httpMethod": "POST", - // "id": "contentwarehouse.projects.locations.collections.setCollectionAcl", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the collection for which the policy is being set. projects/{project_number}/locations/{location}/collections/{document_id}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/collections/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}:setCollectionAcl", - // "request": { - // "$ref": "GoogleCloudContentwarehouseV1SetCollectionAclRequest" - // }, - // "response": { - // "$ref": "GoogleCloudContentwarehouseV1SetCollectionAclResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "contentwarehouse.projects.locations.documentSchemas.create": - -type ProjectsLocationsDocumentSchemasCreateCall struct { - s *Service - parent string - googlecloudcontentwarehousev1documentschema *GoogleCloudContentwarehouseV1DocumentSchema - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a document schema. -// -// - parent: The parent name. -func (r *ProjectsLocationsDocumentSchemasService) Create(parent string, googlecloudcontentwarehousev1documentschema *GoogleCloudContentwarehouseV1DocumentSchema) *ProjectsLocationsDocumentSchemasCreateCall { - c := &ProjectsLocationsDocumentSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontentwarehousev1documentschema = googlecloudcontentwarehousev1documentschema - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsDocumentSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDocumentSchemasCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsDocumentSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsDocumentSchemasCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsDocumentSchemasCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsDocumentSchemasCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontentwarehousev1documentschema) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documentSchemas") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contentwarehouse.projects.locations.documentSchemas.create" call. -// Exactly one of *GoogleCloudContentwarehouseV1DocumentSchema or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudContentwarehouseV1DocumentSchema.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDocumentSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContentwarehouseV1DocumentSchema, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudContentwarehouseV1DocumentSchema{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Creates a document schema.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/documentSchemas", - // "httpMethod": "POST", - // "id": "contentwarehouse.projects.locations.documentSchemas.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/documentSchemas", - // "request": { - // "$ref": "GoogleCloudContentwarehouseV1DocumentSchema" - // }, - // "response": { - // "$ref": "GoogleCloudContentwarehouseV1DocumentSchema" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "contentwarehouse.projects.locations.documentSchemas.delete": - -type ProjectsLocationsDocumentSchemasDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a document schema. Returns NOT_FOUND if the document -// schema does not exist. Returns BAD_REQUEST if the document schema has -// documents depending on it. -// -// - name: The name of the document schema to delete. -func (r *ProjectsLocationsDocumentSchemasService) Delete(name string) *ProjectsLocationsDocumentSchemasDeleteCall { - c := &ProjectsLocationsDocumentSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsDocumentSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDocumentSchemasDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsDocumentSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsDocumentSchemasDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsDocumentSchemasDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsDocumentSchemasDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contentwarehouse.projects.locations.documentSchemas.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsDocumentSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes a document schema. Returns NOT_FOUND if the document schema does not exist. Returns BAD_REQUEST if the document schema has documents depending on it.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/documentSchemas/{documentSchemasId}", - // "httpMethod": "DELETE", - // "id": "contentwarehouse.projects.locations.documentSchemas.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the document schema to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/documentSchemas/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "contentwarehouse.projects.locations.documentSchemas.get": - -type ProjectsLocationsDocumentSchemasGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets a document schema. Returns NOT_FOUND if the document schema -// does not exist. -// -// - name: The name of the document schema to retrieve. -func (r *ProjectsLocationsDocumentSchemasService) Get(name string) *ProjectsLocationsDocumentSchemasGetCall { - c := &ProjectsLocationsDocumentSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsDocumentSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDocumentSchemasGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsDocumentSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDocumentSchemasGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsDocumentSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsDocumentSchemasGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsDocumentSchemasGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsDocumentSchemasGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDocumentSchemasGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -160038,7 +159345,9 @@ type ProjectsLocationsDocumentsFetchAclCall struct { // - resource: REQUIRED: The resource for which the policy is being // requested. Format for document: // projects/{project_number}/locations/{location}/documents/{document_i -// d}. Format for project: projects/{project_number}. +// d}. Format for collection: +// projects/{project_number}/locations/{location}/collections/{collecti +// on_id}. Format for project: projects/{project_number}. func (r *ProjectsLocationsDocumentsService) FetchAcl(resource string, googlecloudcontentwarehousev1fetchaclrequest *GoogleCloudContentwarehouseV1FetchAclRequest) *ProjectsLocationsDocumentsFetchAclCall { c := &ProjectsLocationsDocumentsFetchAclCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -160148,7 +159457,7 @@ func (c *ProjectsLocationsDocumentsFetchAclCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "resource": { - // "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for project: projects/{project_number}.", + // "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/documents/[^/]+$", // "required": true, @@ -161113,7 +160422,9 @@ type ProjectsLocationsDocumentsSetAclCall struct { // - resource: REQUIRED: The resource for which the policy is being // requested. Format for document: // projects/{project_number}/locations/{location}/documents/{document_i -// d}. Format for project: projects/{project_number}. +// d}. Format for collection: +// projects/{project_number}/locations/{location}/collections/{collecti +// on_id}. Format for project: projects/{project_number}. func (r *ProjectsLocationsDocumentsService) SetAcl(resource string, googlecloudcontentwarehousev1setaclrequest *GoogleCloudContentwarehouseV1SetAclRequest) *ProjectsLocationsDocumentsSetAclCall { c := &ProjectsLocationsDocumentsSetAclCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -161223,7 +160534,7 @@ func (c *ProjectsLocationsDocumentsSetAclCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "resource": { - // "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for project: projects/{project_number}.", + // "description": "Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/documents/[^/]+$", // "required": true, @@ -161980,583 +161291,6 @@ func (c *ProjectsLocationsDocumentsReferenceIdPatchCall) Do(opts ...googleapi.Ca } -// method id "contentwarehouse.projects.locations.links.create": - -type ProjectsLocationsLinksCreateCall struct { - s *Service - parent string - googlecloudcontentwarehousev1link *GoogleCloudContentwarehouseV1Link - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a link. -// -// - parent: The parent name. -func (r *ProjectsLocationsLinksService) Create(parent string, googlecloudcontentwarehousev1link *GoogleCloudContentwarehouseV1Link) *ProjectsLocationsLinksCreateCall { - c := &ProjectsLocationsLinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudcontentwarehousev1link = googlecloudcontentwarehousev1link - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsLinksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLinksCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsLinksCreateCall) Context(ctx context.Context) *ProjectsLocationsLinksCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsLinksCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsLinksCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontentwarehousev1link) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/links") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contentwarehouse.projects.locations.links.create" call. -// Exactly one of *GoogleCloudContentwarehouseV1Link or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudContentwarehouseV1Link.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContentwarehouseV1Link, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudContentwarehouseV1Link{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Creates a link.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/links", - // "httpMethod": "POST", - // "id": "contentwarehouse.projects.locations.links.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent name.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/links", - // "request": { - // "$ref": "GoogleCloudContentwarehouseV1Link" - // }, - // "response": { - // "$ref": "GoogleCloudContentwarehouseV1Link" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "contentwarehouse.projects.locations.links.delete": - -type ProjectsLocationsLinksDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a link between a collection and a document. -// -// - name: The name of the link to delete. -func (r *ProjectsLocationsLinksService) Delete(name string) *ProjectsLocationsLinksDeleteCall { - c := &ProjectsLocationsLinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsLinksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLinksDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsLinksDeleteCall) Context(ctx context.Context) *ProjectsLocationsLinksDeleteCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsLinksDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsLinksDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contentwarehouse.projects.locations.links.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsLinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Deletes a link between a collection and a document.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/links/{linksId}", - // "httpMethod": "DELETE", - // "id": "contentwarehouse.projects.locations.links.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the link to delete.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/links/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "contentwarehouse.projects.locations.links.get": - -type ProjectsLocationsLinksGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets a link. -// -// - name: The name of the link to retrieve. -func (r *ProjectsLocationsLinksService) Get(name string) *ProjectsLocationsLinksGetCall { - c := &ProjectsLocationsLinksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsLinksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLinksGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsLinksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLinksGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsLinksGetCall) Context(ctx context.Context) *ProjectsLocationsLinksGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsLinksGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsLinksGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contentwarehouse.projects.locations.links.get" call. -// Exactly one of *GoogleCloudContentwarehouseV1Link or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudContentwarehouseV1Link.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsLinksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContentwarehouseV1Link, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudContentwarehouseV1Link{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets a link.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/links/{linksId}", - // "httpMethod": "GET", - // "id": "contentwarehouse.projects.locations.links.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the link to retrieve.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/links/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudContentwarehouseV1Link" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "contentwarehouse.projects.locations.links.patch": - -type ProjectsLocationsLinksPatchCall struct { - s *Service - name string - linksId string - googlecloudcontentwarehousev1link *GoogleCloudContentwarehouseV1Link - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates the link using provided UpdateLinkRequest. -// -// - linksId: . -// - name: The resource name of the link. Format: -// projects/{project_number}/locations/{location}/links/{link}. The -// name is ignored when creating a link. -func (r *ProjectsLocationsLinksService) Patch(name string, linksId string, googlecloudcontentwarehousev1link *GoogleCloudContentwarehouseV1Link) *ProjectsLocationsLinksPatchCall { - c := &ProjectsLocationsLinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.linksId = linksId - c.googlecloudcontentwarehousev1link = googlecloudcontentwarehousev1link - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsLinksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLinksPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsLinksPatchCall) Context(ctx context.Context) *ProjectsLocationsLinksPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsLinksPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsLinksPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontentwarehousev1link) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/links/{linksId}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - "linksId": c.linksId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "contentwarehouse.projects.locations.links.patch" call. -// Exactly one of *GoogleCloudContentwarehouseV1Link or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudContentwarehouseV1Link.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsLinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContentwarehouseV1Link, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudContentwarehouseV1Link{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Updates the link using provided UpdateLinkRequest.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/links/{linksId}", - // "httpMethod": "PATCH", - // "id": "contentwarehouse.projects.locations.links.patch", - // "parameterOrder": [ - // "name", - // "linksId" - // ], - // "parameters": { - // "linksId": { - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "name": { - // "description": "The resource name of the link. Format: projects/{project_number}/locations/{location}/links/{link}. The name is ignored when creating a link.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}/links/{linksId}", - // "request": { - // "$ref": "GoogleCloudContentwarehouseV1Link" - // }, - // "response": { - // "$ref": "GoogleCloudContentwarehouseV1Link" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "contentwarehouse.projects.locations.operations.get": type ProjectsLocationsOperationsGetCall struct { diff --git a/customsearch/v1/customsearch-api.json b/customsearch/v1/customsearch-api.json index 166f1474cf7..a838db84823 100644 --- a/customsearch/v1/customsearch-api.json +++ b/customsearch/v1/customsearch-api.json @@ -674,7 +674,7 @@ } } }, - "revision": "20210918", + "revision": "20230329", "rootUrl": "https://customsearch.googleapis.com/", "schemas": { "Promotion": { @@ -782,7 +782,7 @@ "description": "Image belonging to a custom search result.", "properties": { "byteSize": { - "description": "The size of the image, in pixels.", + "description": "The size of the image, in bytes.", "format": "int32", "type": "integer" }, diff --git a/customsearch/v1/customsearch-gen.go b/customsearch/v1/customsearch-gen.go index 3c510212b26..0063aa212ac 100644 --- a/customsearch/v1/customsearch-gen.go +++ b/customsearch/v1/customsearch-gen.go @@ -342,7 +342,7 @@ func (s *Result) MarshalJSON() ([]byte, error) { // ResultImage: Image belonging to a custom search result. type ResultImage struct { - // ByteSize: The size of the image, in pixels. + // ByteSize: The size of the image, in bytes. ByteSize int64 `json:"byteSize,omitempty"` // ContextLink: A URL pointing to the webpage hosting the image. diff --git a/datacatalog/v1/datacatalog-api.json b/datacatalog/v1/datacatalog-api.json index d0324f7c64c..b3f6a6c764f 100644 --- a/datacatalog/v1/datacatalog-api.json +++ b/datacatalog/v1/datacatalog-api.json @@ -2134,7 +2134,7 @@ } } }, - "revision": "20230313", + "revision": "20230317", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -2327,6 +2327,54 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1CloudBigtableInstanceSpec": { + "description": "Specification that applies to Instance entries that are part of `CLOUD_BIGTABLE` system. (user_specified_type)", + "id": "GoogleCloudDatacatalogV1CloudBigtableInstanceSpec", + "properties": { + "cloudBigtableClusterSpecs": { + "description": "The list of clusters for the Instance.", + "items": { + "$ref": "GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec": { + "description": "Spec that applies to clusters of an Instance of Cloud Bigtable.", + "id": "GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec", + "properties": { + "displayName": { + "description": "Name of the cluster.", + "type": "string" + }, + "linkedResource": { + "description": "A link back to the parent resource, in this case Instance.", + "type": "string" + }, + "location": { + "description": "Location of the cluster, typically a Cloud zone.", + "type": "string" + }, + "type": { + "description": "Type of the resource. For a cluster this would be \"CLUSTER\".", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1CloudBigtableSystemSpec": { + "description": "Specification that applies to all entries that are part of `CLOUD_BIGTABLE` system (user_specified_type)", + "id": "GoogleCloudDatacatalogV1CloudBigtableSystemSpec", + "properties": { + "instanceDisplayName": { + "description": "Display name of the Instance. This is user specified and different from the resource name.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec": { "description": "Specification for the BigQuery connection to a Cloud SQL instance.", "id": "GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec", @@ -2433,7 +2481,7 @@ "DIMENSION_GROUP", "FILTER", "MEASURE", - "PAREMETER" + "PARAMETER" ], "enumDescriptions": [ "Unspecified.", @@ -2629,6 +2677,7 @@ "DATAPROC_METASTORE", "DATAPLEX", "CLOUD_SPANNER", + "CLOUD_BIGTABLE", "CLOUD_SQL", "LOOKER" ], @@ -2639,6 +2688,7 @@ "Dataproc Metastore.", "Dataplex.", "Cloud Spanner", + "Cloud Bigtable", "Cloud Sql", "Looker" ], @@ -2732,6 +2782,10 @@ "$ref": "GoogleCloudDatacatalogV1BusinessContext", "description": "Business Context of the entry. Not supported for BigQuery datasets" }, + "cloudBigtableSystemSpec": { + "$ref": "GoogleCloudDatacatalogV1CloudBigtableSystemSpec", + "description": "Specification that applies to Cloud Bigtable system. Only settable when `integrated_system` is equal to `CLOUD_BIGTABLE`" + }, "dataSource": { "$ref": "GoogleCloudDatacatalogV1DataSource", "description": "Output only. Physical location of the entry.", @@ -2774,6 +2828,7 @@ "DATAPROC_METASTORE", "DATAPLEX", "CLOUD_SPANNER", + "CLOUD_BIGTABLE", "CLOUD_SQL", "LOOKER" ], @@ -2784,6 +2839,7 @@ "Dataproc Metastore.", "Dataplex.", "Cloud Spanner", + "Cloud Bigtable", "Cloud Sql", "Looker" ], @@ -2823,6 +2879,10 @@ "$ref": "GoogleCloudDatacatalogV1Schema", "description": "Schema of the entry. An entry might not have any schema attached to it." }, + "serviceSpec": { + "$ref": "GoogleCloudDatacatalogV1ServiceSpec", + "description": "Specification that applies to a Service resource." + }, "sourceSystemTimestamps": { "$ref": "GoogleCloudDatacatalogV1SystemTimestamps", "description": "Timestamps from the underlying resource, not from the Data Catalog entry. Output only when the entry has a system listed in the `IntegratedSystem` enum. For entries with `user_specified_system`, this field is optional and defaults to an empty timestamp." @@ -3733,6 +3793,7 @@ "DATAPROC_METASTORE", "DATAPLEX", "CLOUD_SPANNER", + "CLOUD_BIGTABLE", "CLOUD_SQL", "LOOKER" ], @@ -3743,6 +3804,7 @@ "Dataproc Metastore.", "Dataplex.", "Cloud Spanner", + "Cloud Bigtable", "Cloud Sql", "Looker" ], @@ -3852,6 +3914,17 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1ServiceSpec": { + "description": "Specification that applies to a Service resource. Valid only for entries with the `SERVICE` type.", + "id": "GoogleCloudDatacatalogV1ServiceSpec", + "properties": { + "cloudBigtableInstanceSpec": { + "$ref": "GoogleCloudDatacatalogV1CloudBigtableInstanceSpec", + "description": "Specification that applies to Instance entries of `CLOUD_BIGTABLE` system." + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1SqlDatabaseSystemSpec": { "description": "Specification that applies to entries that are part `SQL_DATABASE` system (user_specified_type)", "id": "GoogleCloudDatacatalogV1SqlDatabaseSystemSpec", diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index 7351fb1aee0..53041027125 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -716,6 +716,109 @@ func (s *GoogleCloudDatacatalogV1BusinessContext) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1CloudBigtableInstanceSpec: Specification that +// applies to Instance entries that are part of `CLOUD_BIGTABLE` system. +// (user_specified_type) +type GoogleCloudDatacatalogV1CloudBigtableInstanceSpec struct { + // CloudBigtableClusterSpecs: The list of clusters for the Instance. + CloudBigtableClusterSpecs []*GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec `json:"cloudBigtableClusterSpecs,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CloudBigtableClusterSpecs") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "CloudBigtableClusterSpecs") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1CloudBigtableInstanceSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1CloudBigtableInstanceSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterS +// pec: Spec that applies to clusters of an Instance of Cloud Bigtable. +type GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec struct { + // DisplayName: Name of the cluster. + DisplayName string `json:"displayName,omitempty"` + + // LinkedResource: A link back to the parent resource, in this case + // Instance. + LinkedResource string `json:"linkedResource,omitempty"` + + // Location: Location of the cluster, typically a Cloud zone. + Location string `json:"location,omitempty"` + + // Type: Type of the resource. For a cluster this would be "CLUSTER". + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1CloudBigtableSystemSpec: Specification that +// applies to all entries that are part of `CLOUD_BIGTABLE` system +// (user_specified_type) +type GoogleCloudDatacatalogV1CloudBigtableSystemSpec struct { + // InstanceDisplayName: Display name of the Instance. This is user + // specified and different from the resource name. + InstanceDisplayName string `json:"instanceDisplayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InstanceDisplayName") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InstanceDisplayName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1CloudBigtableSystemSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1CloudBigtableSystemSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec: Specification // for the BigQuery connection to a Cloud SQL instance. type GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec struct { @@ -841,7 +944,7 @@ type GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec struct { // "DIMENSION_GROUP" - Dimension group - parent for Dimension. // "FILTER" - Filter. // "MEASURE" - Measure. - // "PAREMETER" - Parameter. + // "PARAMETER" - Parameter. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") to @@ -1181,6 +1284,7 @@ type GoogleCloudDatacatalogV1DataplexExternalTable struct { // "DATAPROC_METASTORE" - Dataproc Metastore. // "DATAPLEX" - Dataplex. // "CLOUD_SPANNER" - Cloud Spanner + // "CLOUD_BIGTABLE" - Cloud Bigtable // "CLOUD_SQL" - Cloud Sql // "LOOKER" - Looker System string `json:"system,omitempty"` @@ -1369,6 +1473,11 @@ type GoogleCloudDatacatalogV1Entry struct { // BigQuery datasets BusinessContext *GoogleCloudDatacatalogV1BusinessContext `json:"businessContext,omitempty"` + // CloudBigtableSystemSpec: Specification that applies to Cloud Bigtable + // system. Only settable when `integrated_system` is equal to + // `CLOUD_BIGTABLE` + CloudBigtableSystemSpec *GoogleCloudDatacatalogV1CloudBigtableSystemSpec `json:"cloudBigtableSystemSpec,omitempty"` + // DataSource: Output only. Physical location of the entry. DataSource *GoogleCloudDatacatalogV1DataSource `json:"dataSource,omitempty"` @@ -1425,6 +1534,7 @@ type GoogleCloudDatacatalogV1Entry struct { // "DATAPROC_METASTORE" - Dataproc Metastore. // "DATAPLEX" - Dataplex. // "CLOUD_SPANNER" - Cloud Spanner + // "CLOUD_BIGTABLE" - Cloud Bigtable // "CLOUD_SQL" - Cloud Sql // "LOOKER" - Looker IntegratedSystem string `json:"integratedSystem,omitempty"` @@ -1470,6 +1580,9 @@ type GoogleCloudDatacatalogV1Entry struct { // attached to it. Schema *GoogleCloudDatacatalogV1Schema `json:"schema,omitempty"` + // ServiceSpec: Specification that applies to a Service resource. + ServiceSpec *GoogleCloudDatacatalogV1ServiceSpec `json:"serviceSpec,omitempty"` + // SourceSystemTimestamps: Timestamps from the underlying resource, not // from the Data Catalog entry. Output only when the entry has a system // listed in the `IntegratedSystem` enum. For entries with @@ -3185,6 +3298,7 @@ type GoogleCloudDatacatalogV1SearchCatalogResult struct { // "DATAPROC_METASTORE" - Dataproc Metastore. // "DATAPLEX" - Dataplex. // "CLOUD_SPANNER" - Cloud Spanner + // "CLOUD_BIGTABLE" - Cloud Bigtable // "CLOUD_SQL" - Cloud Sql // "LOOKER" - Looker IntegratedSystem string `json:"integratedSystem,omitempty"` @@ -3344,6 +3458,38 @@ func (s *GoogleCloudDatacatalogV1SerializedTaxonomy) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1ServiceSpec: Specification that applies to a +// Service resource. Valid only for entries with the `SERVICE` type. +type GoogleCloudDatacatalogV1ServiceSpec struct { + // CloudBigtableInstanceSpec: Specification that applies to Instance + // entries of `CLOUD_BIGTABLE` system. + CloudBigtableInstanceSpec *GoogleCloudDatacatalogV1CloudBigtableInstanceSpec `json:"cloudBigtableInstanceSpec,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CloudBigtableInstanceSpec") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "CloudBigtableInstanceSpec") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ServiceSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ServiceSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1SqlDatabaseSystemSpec: Specification that // applies to entries that are part `SQL_DATABASE` system // (user_specified_type) diff --git a/datacatalog/v1beta1/datacatalog-api.json b/datacatalog/v1beta1/datacatalog-api.json index 3185b290f3c..c4868ac6d11 100644 --- a/datacatalog/v1beta1/datacatalog-api.json +++ b/datacatalog/v1beta1/datacatalog-api.json @@ -1813,7 +1813,7 @@ } } }, - "revision": "20230313", + "revision": "20230324", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -2006,6 +2006,54 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1CloudBigtableInstanceSpec": { + "description": "Specification that applies to Instance entries that are part of `CLOUD_BIGTABLE` system. (user_specified_type)", + "id": "GoogleCloudDatacatalogV1CloudBigtableInstanceSpec", + "properties": { + "cloudBigtableClusterSpecs": { + "description": "The list of clusters for the Instance.", + "items": { + "$ref": "GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec": { + "description": "Spec that applies to clusters of an Instance of Cloud Bigtable.", + "id": "GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec", + "properties": { + "displayName": { + "description": "Name of the cluster.", + "type": "string" + }, + "linkedResource": { + "description": "A link back to the parent resource, in this case Instance.", + "type": "string" + }, + "location": { + "description": "Location of the cluster, typically a Cloud zone.", + "type": "string" + }, + "type": { + "description": "Type of the resource. For a cluster this would be \"CLUSTER\".", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1CloudBigtableSystemSpec": { + "description": "Specification that applies to all entries that are part of `CLOUD_BIGTABLE` system (user_specified_type)", + "id": "GoogleCloudDatacatalogV1CloudBigtableSystemSpec", + "properties": { + "instanceDisplayName": { + "description": "Display name of the Instance. This is user specified and different from the resource name.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec": { "description": "Specification for the BigQuery connection to a Cloud SQL instance.", "id": "GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec", @@ -2112,7 +2160,7 @@ "DIMENSION_GROUP", "FILTER", "MEASURE", - "PAREMETER" + "PARAMETER" ], "enumDescriptions": [ "Unspecified.", @@ -2297,6 +2345,7 @@ "DATAPROC_METASTORE", "DATAPLEX", "CLOUD_SPANNER", + "CLOUD_BIGTABLE", "CLOUD_SQL", "LOOKER" ], @@ -2307,6 +2356,7 @@ "Dataproc Metastore.", "Dataplex.", "Cloud Spanner", + "Cloud Bigtable", "Cloud Sql", "Looker" ], @@ -2400,6 +2450,10 @@ "$ref": "GoogleCloudDatacatalogV1BusinessContext", "description": "Business Context of the entry. Not supported for BigQuery datasets" }, + "cloudBigtableSystemSpec": { + "$ref": "GoogleCloudDatacatalogV1CloudBigtableSystemSpec", + "description": "Specification that applies to Cloud Bigtable system. Only settable when `integrated_system` is equal to `CLOUD_BIGTABLE`" + }, "dataSource": { "$ref": "GoogleCloudDatacatalogV1DataSource", "description": "Output only. Physical location of the entry.", @@ -2442,6 +2496,7 @@ "DATAPROC_METASTORE", "DATAPLEX", "CLOUD_SPANNER", + "CLOUD_BIGTABLE", "CLOUD_SQL", "LOOKER" ], @@ -2452,6 +2507,7 @@ "Dataproc Metastore.", "Dataplex.", "Cloud Spanner", + "Cloud Bigtable", "Cloud Sql", "Looker" ], @@ -2491,6 +2547,10 @@ "$ref": "GoogleCloudDatacatalogV1Schema", "description": "Schema of the entry. An entry might not have any schema attached to it." }, + "serviceSpec": { + "$ref": "GoogleCloudDatacatalogV1ServiceSpec", + "description": "Specification that applies to a Service resource." + }, "sourceSystemTimestamps": { "$ref": "GoogleCloudDatacatalogV1SystemTimestamps", "description": "Timestamps from the underlying resource, not from the Data Catalog entry. Output only when the entry has a system listed in the `IntegratedSystem` enum. For entries with `user_specified_system`, this field is optional and defaults to an empty timestamp." @@ -2939,6 +2999,17 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1ServiceSpec": { + "description": "Specification that applies to a Service resource. Valid only for entries with the `SERVICE` type.", + "id": "GoogleCloudDatacatalogV1ServiceSpec", + "properties": { + "cloudBigtableInstanceSpec": { + "$ref": "GoogleCloudDatacatalogV1CloudBigtableInstanceSpec", + "description": "Specification that applies to Instance entries of `CLOUD_BIGTABLE` system." + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1SqlDatabaseSystemSpec": { "description": "Specification that applies to entries that are part `SQL_DATABASE` system (user_specified_type)", "id": "GoogleCloudDatacatalogV1SqlDatabaseSystemSpec", diff --git a/datacatalog/v1beta1/datacatalog-gen.go b/datacatalog/v1beta1/datacatalog-gen.go index 3800b3023db..1e979ab02a1 100644 --- a/datacatalog/v1beta1/datacatalog-gen.go +++ b/datacatalog/v1beta1/datacatalog-gen.go @@ -704,6 +704,109 @@ func (s *GoogleCloudDatacatalogV1BusinessContext) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1CloudBigtableInstanceSpec: Specification that +// applies to Instance entries that are part of `CLOUD_BIGTABLE` system. +// (user_specified_type) +type GoogleCloudDatacatalogV1CloudBigtableInstanceSpec struct { + // CloudBigtableClusterSpecs: The list of clusters for the Instance. + CloudBigtableClusterSpecs []*GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec `json:"cloudBigtableClusterSpecs,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CloudBigtableClusterSpecs") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "CloudBigtableClusterSpecs") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1CloudBigtableInstanceSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1CloudBigtableInstanceSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterS +// pec: Spec that applies to clusters of an Instance of Cloud Bigtable. +type GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec struct { + // DisplayName: Name of the cluster. + DisplayName string `json:"displayName,omitempty"` + + // LinkedResource: A link back to the parent resource, in this case + // Instance. + LinkedResource string `json:"linkedResource,omitempty"` + + // Location: Location of the cluster, typically a Cloud zone. + Location string `json:"location,omitempty"` + + // Type: Type of the resource. For a cluster this would be "CLUSTER". + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1CloudBigtableInstanceSpecCloudBigtableClusterSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1CloudBigtableSystemSpec: Specification that +// applies to all entries that are part of `CLOUD_BIGTABLE` system +// (user_specified_type) +type GoogleCloudDatacatalogV1CloudBigtableSystemSpec struct { + // InstanceDisplayName: Display name of the Instance. This is user + // specified and different from the resource name. + InstanceDisplayName string `json:"instanceDisplayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InstanceDisplayName") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InstanceDisplayName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1CloudBigtableSystemSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1CloudBigtableSystemSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec: Specification // for the BigQuery connection to a Cloud SQL instance. type GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec struct { @@ -829,7 +932,7 @@ type GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec struct { // "DIMENSION_GROUP" - Dimension group - parent for Dimension. // "FILTER" - Filter. // "MEASURE" - Measure. - // "PAREMETER" - Parameter. + // "PARAMETER" - Parameter. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") to @@ -1135,6 +1238,7 @@ type GoogleCloudDatacatalogV1DataplexExternalTable struct { // "DATAPROC_METASTORE" - Dataproc Metastore. // "DATAPLEX" - Dataplex. // "CLOUD_SPANNER" - Cloud Spanner + // "CLOUD_BIGTABLE" - Cloud Bigtable // "CLOUD_SQL" - Cloud Sql // "LOOKER" - Looker System string `json:"system,omitempty"` @@ -1323,6 +1427,11 @@ type GoogleCloudDatacatalogV1Entry struct { // BigQuery datasets BusinessContext *GoogleCloudDatacatalogV1BusinessContext `json:"businessContext,omitempty"` + // CloudBigtableSystemSpec: Specification that applies to Cloud Bigtable + // system. Only settable when `integrated_system` is equal to + // `CLOUD_BIGTABLE` + CloudBigtableSystemSpec *GoogleCloudDatacatalogV1CloudBigtableSystemSpec `json:"cloudBigtableSystemSpec,omitempty"` + // DataSource: Output only. Physical location of the entry. DataSource *GoogleCloudDatacatalogV1DataSource `json:"dataSource,omitempty"` @@ -1379,6 +1488,7 @@ type GoogleCloudDatacatalogV1Entry struct { // "DATAPROC_METASTORE" - Dataproc Metastore. // "DATAPLEX" - Dataplex. // "CLOUD_SPANNER" - Cloud Spanner + // "CLOUD_BIGTABLE" - Cloud Bigtable // "CLOUD_SQL" - Cloud Sql // "LOOKER" - Looker IntegratedSystem string `json:"integratedSystem,omitempty"` @@ -1424,6 +1534,9 @@ type GoogleCloudDatacatalogV1Entry struct { // attached to it. Schema *GoogleCloudDatacatalogV1Schema `json:"schema,omitempty"` + // ServiceSpec: Specification that applies to a Service resource. + ServiceSpec *GoogleCloudDatacatalogV1ServiceSpec `json:"serviceSpec,omitempty"` + // SourceSystemTimestamps: Timestamps from the underlying resource, not // from the Data Catalog entry. Output only when the entry has a system // listed in the `IntegratedSystem` enum. For entries with @@ -2181,6 +2294,38 @@ func (s *GoogleCloudDatacatalogV1Schema) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1ServiceSpec: Specification that applies to a +// Service resource. Valid only for entries with the `SERVICE` type. +type GoogleCloudDatacatalogV1ServiceSpec struct { + // CloudBigtableInstanceSpec: Specification that applies to Instance + // entries of `CLOUD_BIGTABLE` system. + CloudBigtableInstanceSpec *GoogleCloudDatacatalogV1CloudBigtableInstanceSpec `json:"cloudBigtableInstanceSpec,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CloudBigtableInstanceSpec") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "CloudBigtableInstanceSpec") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ServiceSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ServiceSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1SqlDatabaseSystemSpec: Specification that // applies to entries that are part `SQL_DATABASE` system // (user_specified_type) diff --git a/dataflow/v1b3/dataflow-api.json b/dataflow/v1b3/dataflow-api.json index 3f289ceae7f..318e6747374 100644 --- a/dataflow/v1b3/dataflow-api.json +++ b/dataflow/v1b3/dataflow-api.json @@ -572,6 +572,12 @@ "location": "path", "required": true, "type": "string" + }, + "updateMask": { + "description": "The list of fields to update relative to Job. If empty, only RequestedJobState will be considered for update. If the FieldMask is not empty and RequestedJobState is none/empty, The fields specified in the update mask will be the only ones considered for update. If both RequestedJobState and update_mask are specified, we will first handle RequestedJobState and then the update_mask fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" } }, "path": "v1b3/projects/{projectId}/jobs/{jobId}", @@ -1291,6 +1297,12 @@ "location": "path", "required": true, "type": "string" + }, + "updateMask": { + "description": "The list of fields to update relative to Job. If empty, only RequestedJobState will be considered for update. If the FieldMask is not empty and RequestedJobState is none/empty, The fields specified in the update mask will be the only ones considered for update. If both RequestedJobState and update_mask are specified, we will first handle RequestedJobState and then the update_mask fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" } }, "path": "v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}", @@ -2199,7 +2211,7 @@ } } }, - "revision": "20230119", + "revision": "20230321", "rootUrl": "https://dataflow.googleapis.com/", "schemas": { "ApproximateProgress": { @@ -4019,6 +4031,13 @@ "$ref": "SpannerIODetails" }, "type": "array" + }, + "userDisplayProperties": { + "additionalProperties": { + "type": "string" + }, + "description": "List of display properties to help UI filter jobs.", + "type": "object" } }, "type": "object" @@ -4674,6 +4693,10 @@ "description": "Optional. Additional metadata for describing this parameter.", "type": "object" }, + "groupName": { + "description": "Optional. Specifies a group name for this parameter to be rendered under. Group header text will be rendered exactly as specified in this field. Only considered when parent_name is NOT provided.", + "type": "string" + }, "helpText": { "description": "Required. The help text to display for the parameter.", "type": "string" @@ -4722,6 +4745,17 @@ ], "type": "string" }, + "parentName": { + "description": "Optional. Specifies the name of the parent parameter. Used in conjunction with 'parent_trigger_values' to make this parameter conditional (will only be rendered conditionally). Should be mappable to a ParameterMetadata.name field.", + "type": "string" + }, + "parentTriggerValues": { + "description": "Optional. The value(s) of the 'parent_name' parameter which will trigger this parameter to be shown. If left empty, ANY non-empty value in parent_name will trigger this parameter to be shown. Only considered when this parameter is conditional (when 'parent_name' has been provided).", + "items": { + "type": "string" + }, + "type": "array" + }, "regexes": { "description": "Optional. Regexes that the parameter must match.", "items": { diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index 14ed5143082..2c7a4c05146 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -3229,6 +3229,10 @@ type JobMetadata struct { // Dataflow job. SpannerDetails []*SpannerIODetails `json:"spannerDetails,omitempty"` + // UserDisplayProperties: List of display properties to help UI filter + // jobs. + UserDisplayProperties map[string]string `json:"userDisplayProperties,omitempty"` + // ForceSendFields is a list of field names (e.g. "BigTableDetails") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -4322,6 +4326,12 @@ type ParameterMetadata struct { // parameter. CustomMetadata map[string]string `json:"customMetadata,omitempty"` + // GroupName: Optional. Specifies a group name for this parameter to be + // rendered under. Group header text will be rendered exactly as + // specified in this field. Only considered when parent_name is NOT + // provided. + GroupName string `json:"groupName,omitempty"` + // HelpText: Required. The help text to display for the parameter. HelpText string `json:"helpText,omitempty"` @@ -4361,6 +4371,19 @@ type ParameterMetadata struct { // Cloud Storage. ParamType string `json:"paramType,omitempty"` + // ParentName: Optional. Specifies the name of the parent parameter. + // Used in conjunction with 'parent_trigger_values' to make this + // parameter conditional (will only be rendered conditionally). Should + // be mappable to a ParameterMetadata.name field. + ParentName string `json:"parentName,omitempty"` + + // ParentTriggerValues: Optional. The value(s) of the 'parent_name' + // parameter which will trigger this parameter to be shown. If left + // empty, ANY non-empty value in parent_name will trigger this parameter + // to be shown. Only considered when this parameter is conditional (when + // 'parent_name' has been provided). + ParentTriggerValues []string `json:"parentTriggerValues,omitempty"` + // Regexes: Optional. Regexes that the parameter must match. Regexes []string `json:"regexes,omitempty"` @@ -10025,6 +10048,18 @@ func (c *ProjectsJobsUpdateCall) Location(location string) *ProjectsJobsUpdateCa return c } +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update relative to Job. If empty, only RequestedJobState +// will be considered for update. If the FieldMask is not empty and +// RequestedJobState is none/empty, The fields specified in the update +// mask will be the only ones considered for update. If both +// RequestedJobState and update_mask are specified, we will first handle +// RequestedJobState and then the update_mask fields. +func (c *ProjectsJobsUpdateCall) UpdateMask(updateMask string) *ProjectsJobsUpdateCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -10142,6 +10177,12 @@ func (c *ProjectsJobsUpdateCall) Do(opts ...googleapi.CallOption) (*Job, error) // "location": "path", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update relative to Job. If empty, only RequestedJobState will be considered for update. If the FieldMask is not empty and RequestedJobState is none/empty, The fields specified in the update mask will be the only ones considered for update. If both RequestedJobState and update_mask are specified, we will first handle RequestedJobState and then the update_mask fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1b3/projects/{projectId}/jobs/{jobId}", @@ -12784,6 +12825,18 @@ func (r *ProjectsLocationsJobsService) Update(projectId string, location string, return c } +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update relative to Job. If empty, only RequestedJobState +// will be considered for update. If the FieldMask is not empty and +// RequestedJobState is none/empty, The fields specified in the update +// mask will be the only ones considered for update. If both +// RequestedJobState and update_mask are specified, we will first handle +// RequestedJobState and then the update_mask fields. +func (c *ProjectsLocationsJobsUpdateCall) UpdateMask(updateMask string) *ProjectsLocationsJobsUpdateCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -12904,6 +12957,12 @@ func (c *ProjectsLocationsJobsUpdateCall) Do(opts ...googleapi.CallOption) (*Job // "location": "path", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update relative to Job. If empty, only RequestedJobState will be considered for update. If the FieldMask is not empty and RequestedJobState is none/empty, The fields specified in the update mask will be the only ones considered for update. If both RequestedJobState and update_mask are specified, we will first handle RequestedJobState and then the update_mask fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}", diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index 1e6184a017b..e23bbde1b4d 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -211,6 +211,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "computeAccessTokenStatus": { + "description": "Computes a Repository's Git access token status.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:computeAccessTokenStatus", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.computeAccessTokenStatus", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The repository's name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:computeAccessTokenStatus", + "response": { + "$ref": "ComputeRepositoryAccessTokenStatusResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "create": { "description": "Creates a new Repository in a given project and location.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories", @@ -275,7 +300,7 @@ ] }, "fetchHistory": { - "description": "Fetches a Repository's history of changes. The Repository must not have a value for `git_remote_settings.url`.", + "description": "Fetches a Repository's history of commits. The Repository must not have a value for `git_remote_settings.url`.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:fetchHistory", "httpMethod": "GET", "id": "dataform.projects.locations.repositories.fetchHistory", @@ -291,7 +316,7 @@ "type": "string" }, "pageSize": { - "description": "Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + "description": "Optional. Maximum number of commits to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", "format": "int32", "location": "query", "type": "integer" @@ -1941,7 +1966,7 @@ } } }, - "revision": "20230304", + "revision": "20230318", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "Assertion": { @@ -2290,6 +2315,29 @@ }, "type": "object" }, + "ComputeRepositoryAccessTokenStatusResponse": { + "description": "`ComputeRepositoryAccessTokenStatus` response message.", + "id": "ComputeRepositoryAccessTokenStatusResponse", + "properties": { + "tokenStatus": { + "description": "Indicates the status of the Git access token.", + "enum": [ + "TOKEN_STATUS_UNSPECIFIED", + "NOT_FOUND", + "INVALID", + "VALID" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The token could not be found in Secret Manager (or the Dataform Service Account did not have permission to access it).", + "The token could not be used to authenticate against the Git remote.", + "The token was used successfully to authenticate against the Git remote." + ], + "type": "string" + } + }, + "type": "object" + }, "Declaration": { "description": "Represents a relation which is not managed by Dataform but which may be referenced by Dataform actions.", "id": "Declaration", diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index e0299d4238f..bdf0793ef7b 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -817,6 +817,48 @@ func (s *CompilationResultAction) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ComputeRepositoryAccessTokenStatusResponse: +// `ComputeRepositoryAccessTokenStatus` response message. +type ComputeRepositoryAccessTokenStatusResponse struct { + // TokenStatus: Indicates the status of the Git access token. + // + // Possible values: + // "TOKEN_STATUS_UNSPECIFIED" - Default value. This value is unused. + // "NOT_FOUND" - The token could not be found in Secret Manager (or + // the Dataform Service Account did not have permission to access it). + // "INVALID" - The token could not be used to authenticate against the + // Git remote. + // "VALID" - The token was used successfully to authenticate against + // the Git remote. + TokenStatus string `json:"tokenStatus,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "TokenStatus") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TokenStatus") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ComputeRepositoryAccessTokenStatusResponse) MarshalJSON() ([]byte, error) { + type NoMethod ComputeRepositoryAccessTokenStatusResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Declaration: Represents a relation which is not managed by Dataform // but which may be referenced by Dataform actions. type Declaration struct { @@ -3784,6 +3826,155 @@ func (c *ProjectsLocationsRepositoriesCommitCall) Do(opts ...googleapi.CallOptio } +// method id "dataform.projects.locations.repositories.computeAccessTokenStatus": + +type ProjectsLocationsRepositoriesComputeAccessTokenStatusCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ComputeAccessTokenStatus: Computes a Repository's Git access token +// status. +// +// - name: The repository's name. +func (r *ProjectsLocationsRepositoriesService) ComputeAccessTokenStatus(name string) *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall { + c := &ProjectsLocationsRepositoriesComputeAccessTokenStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:computeAccessTokenStatus") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.computeAccessTokenStatus" call. +// Exactly one of *ComputeRepositoryAccessTokenStatusResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *ComputeRepositoryAccessTokenStatusResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsRepositoriesComputeAccessTokenStatusCall) Do(opts ...googleapi.CallOption) (*ComputeRepositoryAccessTokenStatusResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ComputeRepositoryAccessTokenStatusResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Computes a Repository's Git access token status.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:computeAccessTokenStatus", + // "httpMethod": "GET", + // "id": "dataform.projects.locations.repositories.computeAccessTokenStatus", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The repository's name.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:computeAccessTokenStatus", + // "response": { + // "$ref": "ComputeRepositoryAccessTokenStatusResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "dataform.projects.locations.repositories.create": type ProjectsLocationsRepositoriesCreateCall struct { @@ -4096,7 +4287,7 @@ type ProjectsLocationsRepositoriesFetchHistoryCall struct { header_ http.Header } -// FetchHistory: Fetches a Repository's history of changes. The +// FetchHistory: Fetches a Repository's history of commits. The // Repository must not have a value for `git_remote_settings.url`. // // - name: The repository's name. @@ -4107,8 +4298,8 @@ func (r *ProjectsLocationsRepositoriesService) FetchHistory(name string) *Projec } // PageSize sets the optional parameter "pageSize": Maximum number of -// paths to return. The server may return fewer items than requested. If -// unspecified, the server will pick an appropriate default. +// commits to return. The server may return fewer items than requested. +// If unspecified, the server will pick an appropriate default. func (c *ProjectsLocationsRepositoriesFetchHistoryCall) PageSize(pageSize int64) *ProjectsLocationsRepositoriesFetchHistoryCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -4223,7 +4414,7 @@ func (c *ProjectsLocationsRepositoriesFetchHistoryCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Fetches a Repository's history of changes. The Repository must not have a value for `git_remote_settings.url`.", + // "description": "Fetches a Repository's history of commits. The Repository must not have a value for `git_remote_settings.url`.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:fetchHistory", // "httpMethod": "GET", // "id": "dataform.projects.locations.repositories.fetchHistory", @@ -4239,7 +4430,7 @@ func (c *ProjectsLocationsRepositoriesFetchHistoryCall) Do(opts ...googleapi.Cal // "type": "string" // }, // "pageSize": { - // "description": "Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", + // "description": "Optional. Maximum number of commits to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.", // "format": "int32", // "location": "query", // "type": "integer" diff --git a/datafusion/v1/datafusion-api.json b/datafusion/v1/datafusion-api.json index 0fb75d2858e..b2835fc8914 100644 --- a/datafusion/v1/datafusion-api.json +++ b/datafusion/v1/datafusion-api.json @@ -645,7 +645,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "datafusion.projects.locations.operations.list", @@ -737,7 +737,7 @@ } } }, - "revision": "20221213", + "revision": "20230320", "rootUrl": "https://datafusion.googleapis.com/", "schemas": { "Accelerator": { @@ -750,13 +750,15 @@ "ACCELERATOR_TYPE_UNSPECIFIED", "CDC", "HEALTHCARE", - "CCAI_INSIGHTS" + "CCAI_INSIGHTS", + "CLOUDSEARCH" ], "enumDescriptions": [ "Default value, if unspecified.", "Change Data Capture accelerator for CDF.", "Cloud Healthcare accelerator for CDF. This accelerator is to enable Cloud Healthcare specific CDF plugins developed by Healthcare team.", - "Contact Center AI Insights This accelerator is used to enable import and export pipelines custom built to streamline CCAI Insights processing." + "Contact Center AI Insights This accelerator is used to enable import and export pipelines custom built to streamline CCAI Insights processing.", + "Cloud search accelerator for CDF. This accelerator is to enable Cloud search specific CDF plugins developed by Cloudsearch team." ], "type": "string" }, @@ -836,7 +838,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -942,10 +944,11 @@ "id": "Instance", "properties": { "accelerators": { - "description": "List of accelerators enabled for this CDF instance.", + "description": "Output only. List of accelerators enabled for this CDF instance.", "items": { "$ref": "Accelerator" }, + "readOnly": true, "type": "array" }, "apiEndpoint": { @@ -954,10 +957,11 @@ "type": "string" }, "availableVersion": { - "description": "Available versions that the instance can be upgraded to using UpdateInstanceRequest.", + "description": "Output only. Available versions that the instance can be upgraded to using UpdateInstanceRequest.", "items": { "$ref": "Version" }, + "readOnly": true, "type": "array" }, "createTime": { diff --git a/datafusion/v1/datafusion-gen.go b/datafusion/v1/datafusion-gen.go index a1bb841d181..503f5ff301d 100644 --- a/datafusion/v1/datafusion-gen.go +++ b/datafusion/v1/datafusion-gen.go @@ -220,6 +220,9 @@ type Accelerator struct { // "CCAI_INSIGHTS" - Contact Center AI Insights This accelerator is // used to enable import and export pipelines custom built to streamline // CCAI Insights processing. + // "CLOUDSEARCH" - Cloud search accelerator for CDF. This accelerator + // is to enable Cloud search specific CDF plugins developed by + // Cloudsearch team. AcceleratorType string `json:"acceleratorType,omitempty"` // State: The state of the accelerator. @@ -384,7 +387,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -401,9 +406,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -623,15 +626,16 @@ func (s *Expr) MarshalJSON() ([]byte, error) { // Instance: Represents a Data Fusion instance. type Instance struct { - // Accelerators: List of accelerators enabled for this CDF instance. + // Accelerators: Output only. List of accelerators enabled for this CDF + // instance. Accelerators []*Accelerator `json:"accelerators,omitempty"` // ApiEndpoint: Output only. Endpoint on which the REST APIs is // accessible. ApiEndpoint string `json:"apiEndpoint,omitempty"` - // AvailableVersion: Available versions that the instance can be - // upgraded to using UpdateInstanceRequest. + // AvailableVersion: Output only. Available versions that the instance + // can be upgraded to using UpdateInstanceRequest. AvailableVersion []*Version `json:"availableVersion,omitempty"` // CreateTime: Output only. The time the instance was created. @@ -4245,14 +4249,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -4381,7 +4378,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "datafusion.projects.locations.operations.list", diff --git a/datafusion/v1beta1/datafusion-api.json b/datafusion/v1beta1/datafusion-api.json index d771588e8d6..24a90baf023 100644 --- a/datafusion/v1beta1/datafusion-api.json +++ b/datafusion/v1beta1/datafusion-api.json @@ -843,7 +843,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "datafusion.projects.locations.operations.list", @@ -935,7 +935,7 @@ } } }, - "revision": "20221213", + "revision": "20230320", "rootUrl": "https://datafusion.googleapis.com/", "schemas": { "Accelerator": { @@ -948,13 +948,15 @@ "ACCELERATOR_TYPE_UNSPECIFIED", "CDC", "HEALTHCARE", - "CCAI_INSIGHTS" + "CCAI_INSIGHTS", + "CLOUDSEARCH" ], "enumDescriptions": [ "Default value, if unspecified.", "Change Data Capture accelerator for CDF.", "Cloud Healthcare accelerator for CDF. This accelerator is to enable Cloud Healthcare specific CDF plugins developed by Healthcare team.", - "Contact Center AI Insights This accelerator is used to enable import and export pipelines custom built to streamline CCAI Insights processing." + "Contact Center AI Insights This accelerator is used to enable import and export pipelines custom built to streamline CCAI Insights processing.", + "Cloud search accelerator for CDF. This accelerator is to enable Cloud search specific CDF plugins developed by Cloudsearch team." ], "type": "string" }, @@ -1034,7 +1036,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", "items": { "type": "string" }, @@ -1155,10 +1157,11 @@ "id": "Instance", "properties": { "accelerators": { - "description": "List of accelerators enabled for this CDF instance.", + "description": "Output only. List of accelerators enabled for this CDF instance.", "items": { "$ref": "Accelerator" }, + "readOnly": true, "type": "array" }, "apiEndpoint": { @@ -1167,10 +1170,11 @@ "type": "string" }, "availableVersion": { - "description": "Available versions that the instance can be upgraded to using UpdateInstanceRequest.", + "description": "Output only. Available versions that the instance can be upgraded to using UpdateInstanceRequest.", "items": { "$ref": "Version" }, + "readOnly": true, "type": "array" }, "createTime": { diff --git a/datafusion/v1beta1/datafusion-gen.go b/datafusion/v1beta1/datafusion-gen.go index a044139cd08..8d2e9f6e678 100644 --- a/datafusion/v1beta1/datafusion-gen.go +++ b/datafusion/v1beta1/datafusion-gen.go @@ -232,6 +232,9 @@ type Accelerator struct { // "CCAI_INSIGHTS" - Contact Center AI Insights This accelerator is // used to enable import and export pipelines custom built to streamline // CCAI Insights processing. + // "CLOUDSEARCH" - Cloud search accelerator for CDF. This accelerator + // is to enable Cloud search specific CDF plugins developed by + // Cloudsearch team. AcceleratorType string `json:"acceleratorType,omitempty"` // State: The state of the accelerator. @@ -396,7 +399,9 @@ type Binding struct { // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus // unique identifier) representing a user that has been recently // deleted. For example, `alice@example.com?uid=123456789012345678901`. @@ -413,9 +418,7 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. * `domain:{domain}`: The G - // Suite domain (primary) that represents all the users of that domain. - // For example, `google.com` or `example.com`. + // group retains the role in the binding. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -668,15 +671,16 @@ func (s *IAMPolicy) MarshalJSON() ([]byte, error) { // Instance: Represents a Data Fusion instance. type Instance struct { - // Accelerators: List of accelerators enabled for this CDF instance. + // Accelerators: Output only. List of accelerators enabled for this CDF + // instance. Accelerators []*Accelerator `json:"accelerators,omitempty"` // ApiEndpoint: Output only. Endpoint on which the REST APIs is // accessible. ApiEndpoint string `json:"apiEndpoint,omitempty"` - // AvailableVersion: Available versions that the instance can be - // upgraded to using UpdateInstanceRequest. + // AvailableVersion: Output only. Available versions that the instance + // can be upgraded to using UpdateInstanceRequest. AvailableVersion []*Version `json:"availableVersion,omitempty"` // CreateTime: Output only. The time the instance was created. @@ -5364,14 +5368,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -5500,7 +5497,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "datafusion.projects.locations.operations.list", diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 11c1df830d0..50997fe10b4 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -1636,7 +1636,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "datamigration.projects.locations.operations.list", @@ -1831,7 +1831,7 @@ } } }, - "revision": "20230301", + "revision": "20230308", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index d3ce0444030..55d5bf4d90d 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -11779,14 +11779,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -11915,7 +11908,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "datamigration.projects.locations.operations.list", diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index 3354d198d7a..4aebebc61c9 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -3943,7 +3943,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "dataplex.projects.locations.operations.list", @@ -3990,7 +3990,7 @@ } } }, - "revision": "20230220", + "revision": "20230313", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -4795,7 +4795,7 @@ "type": "string" }, "paths": { - "description": "Optional. The list of paths for items within the associated resource (eg. columns within a table) along with attribute bindings.", + "description": "Optional. The list of paths for items within the associated resource (eg. columns and partitions within a table) along with attribute bindings.", "items": { "$ref": "GoogleCloudDataplexV1DataAttributeBindingPath" }, @@ -4820,7 +4820,7 @@ "type": "object" }, "GoogleCloudDataplexV1DataAttributeBindingPath": { - "description": "Represents a subresource of a given resource, and associated bindings with it.", + "description": "Represents a subresource of the given resource, and associated bindings with it. Currently supported subresources are column and partition schema fields within a table.", "id": "GoogleCloudDataplexV1DataAttributeBindingPath", "properties": { "attributes": { @@ -4831,7 +4831,7 @@ "type": "array" }, "name": { - "description": "Required. The name identifier of the path. Nested columns should be of the form: 'country.state.city'.", + "description": "Required. The name identifier of the path. Nested columns should be of the form: 'address.city'.", "type": "string" } }, @@ -5694,6 +5694,10 @@ "entity": { "description": "Immutable. The Dataplex entity that represents the data source (e.g. BigQuery table) for DataScan, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.", "type": "string" + }, + "resource": { + "description": "Immutable. The service-qualified full resource name of the cloud resource for a DataScan job to scan against. The field could be: BigQuery table of type \"TABLE\" for DataProfileScan/DataQualityScan Format: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID", + "type": "string" } }, "type": "object" diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 7c901085ac5..ff3362de36b 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1494,7 +1494,8 @@ type GoogleCloudDataplexV1DataAttributeBinding struct { Name string `json:"name,omitempty"` // Paths: Optional. The list of paths for items within the associated - // resource (eg. columns within a table) along with attribute bindings. + // resource (eg. columns and partitions within a table) along with + // attribute bindings. Paths []*GoogleCloudDataplexV1DataAttributeBindingPath `json:"paths,omitempty"` // Resource: Optional. Immutable. The resource name of the resource that @@ -1543,7 +1544,9 @@ func (s *GoogleCloudDataplexV1DataAttributeBinding) MarshalJSON() ([]byte, error } // GoogleCloudDataplexV1DataAttributeBindingPath: Represents a -// subresource of a given resource, and associated bindings with it. +// subresource of the given resource, and associated bindings with it. +// Currently supported subresources are column and partition schema +// fields within a table. type GoogleCloudDataplexV1DataAttributeBindingPath struct { // Attributes: Optional. List of attributes to be associated with the // path of the resource, provided in the form: @@ -1552,7 +1555,7 @@ type GoogleCloudDataplexV1DataAttributeBindingPath struct { Attributes []string `json:"attributes,omitempty"` // Name: Required. The name identifier of the path. Nested columns - // should be of the form: 'country.state.city'. + // should be of the form: 'address.city'. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Attributes") to @@ -2899,6 +2902,14 @@ type GoogleCloudDataplexV1DataSource struct { // s/{zone_id}/entities/{entity_id}. Entity string `json:"entity,omitempty"` + // Resource: Immutable. The service-qualified full resource name of the + // cloud resource for a DataScan job to scan against. The field could + // be: BigQuery table of type "TABLE" for + // DataProfileScan/DataQualityScan Format: + // //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tabl + // es/TABLE_ID + Resource string `json:"resource,omitempty"` + // ForceSendFields is a list of field names (e.g. "Entity") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -25985,14 +25996,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// UNIMPLEMENTED.NOTE: the name binding allows API services to override -// the binding to use different resource name schemes, such as -// users/*/operations. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// UNIMPLEMENTED. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -26122,7 +26126,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "dataplex.projects.locations.operations.list", diff --git a/dataproc/v1/dataproc-api.json b/dataproc/v1/dataproc-api.json index a6f3e830f04..1d756604ebe 100644 --- a/dataproc/v1/dataproc-api.json +++ b/dataproc/v1/dataproc-api.json @@ -555,7 +555,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "dataproc.projects.locations.operations.list", @@ -2265,7 +2265,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.", "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations", "httpMethod": "GET", "id": "dataproc.projects.regions.operations.list", @@ -2671,7 +2671,7 @@ } } }, - "revision": "20230220", + "revision": "20230309", "rootUrl": "https://dataproc.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3413,9 +3413,23 @@ "description": "Optional. DEPRECATED Specifies the job on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}", "type": "string" }, + "jobs": { + "description": "Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job}", + "items": { + "type": "string" + }, + "type": "array" + }, "yarnApplicationId": { "description": "Optional. DEPRECATED Specifies the yarn application on which diagnosis is to be performed.", "type": "string" + }, + "yarnApplicationIds": { + "description": "Optional. Specifies a list of yarn applications on which diagnosis is to be performed.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -3534,7 +3548,7 @@ "id": "ExecutionConfig", "properties": { "idleTtl": { - "description": "Optional. The duration to keep the session alive while it's idling. Passing this threshold will cause the session to be terminated. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not set. If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first.", + "description": "Optional. The duration to keep the session alive while it's idling. Exceeding this threshold causes the session to terminate. This field cannot be set on a batch workload. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not set. If both ttl and idle_ttl are specified, the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceed, whichever occurs first.", "format": "google-duration", "type": "string" }, @@ -3566,7 +3580,7 @@ "type": "string" }, "ttl": { - "description": "Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.", + "description": "Optional. The duration after which the workload will be terminated. When the workload exceeds this duration, it will be unconditionally terminated without waiting for ongoing work to finish. If ttl is not specified for a batch workload, the workload will be allowed to run until it exits naturally (or runs forever without exiting). If ttl is not specified for an interactive session, it defaults to 24h. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and idle_ttl are specified (for an interactive session), the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.", "format": "google-duration", "type": "string" } diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index eb92ea2298f..b3bb1b55a8e 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -1416,10 +1416,18 @@ type DiagnoseClusterRequest struct { // be performed. Format: projects/{project}/regions/{region}/jobs/{job} Job string `json:"job,omitempty"` + // Jobs: Optional. Specifies a list of jobs on which diagnosis is to be + // performed. Format: projects/{project}/regions/{region}/jobs/{job} + Jobs []string `json:"jobs,omitempty"` + // YarnApplicationId: Optional. DEPRECATED Specifies the yarn // application on which diagnosis is to be performed. YarnApplicationId string `json:"yarnApplicationId,omitempty"` + // YarnApplicationIds: Optional. Specifies a list of yarn applications + // on which diagnosis is to be performed. + YarnApplicationIds []string `json:"yarnApplicationIds,omitempty"` + // ForceSendFields is a list of field names (e.g. "DiagnosisInterval") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1678,14 +1686,15 @@ func (s *EnvironmentConfig) MarshalJSON() ([]byte, error) { // ExecutionConfig: Execution configuration for a workload. type ExecutionConfig struct { // IdleTtl: Optional. The duration to keep the session alive while it's - // idling. Passing this threshold will cause the session to be - // terminated. Minimum value is 10 minutes; maximum value is 14 days - // (see JSON representation of Duration + // idling. Exceeding this threshold causes the session to terminate. + // This field cannot be set on a batch workload. Minimum value is 10 + // minutes; maximum value is 14 days (see JSON representation of + // Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)). // Defaults to 4 hours if not set. If both ttl and idle_ttl are - // specified, the conditions are treated as and OR: the workload will be - // terminated when it has been idle for idle_ttl or when the ttl has - // passed, whichever comes first. + // specified, the conditions are treated as OR conditions: the workload + // will be terminated when it has been idle for idle_ttl or when ttl has + // been exceed, whichever occurs first. IdleTtl string `json:"idleTtl,omitempty"` // KmsKey: Optional. The Cloud KMS key to use for encryption. @@ -1715,15 +1724,18 @@ type ExecutionConfig struct { SubnetworkUri string `json:"subnetworkUri,omitempty"` // Ttl: Optional. The duration after which the workload will be - // terminated. When the workload passes this ttl, it will be - // unconditionally killed without waiting for ongoing work to finish. - // Minimum value is 10 minutes; maximum value is 14 days (see JSON - // representation of Duration + // terminated. When the workload exceeds this duration, it will be + // unconditionally terminated without waiting for ongoing work to + // finish. If ttl is not specified for a batch workload, the workload + // will be allowed to run until it exits naturally (or runs forever + // without exiting). If ttl is not specified for an interactive session, + // it defaults to 24h. Minimum value is 10 minutes; maximum value is 14 + // days (see JSON representation of Duration // (https://developers.google.com/protocol-buffers/docs/proto3#json)). - // If both ttl and idle_ttl are specified, the conditions are treated as - // and OR: the workload will be terminated when it has been idle for - // idle_ttl or when the ttl has passed, whichever comes first. If ttl is - // not specified for a session, it defaults to 24h. + // If both ttl and idle_ttl are specified (for an interactive session), + // the conditions are treated as OR conditions: the workload will be + // terminated when it has been idle for idle_ttl or when ttl has been + // exceeded, whichever occurs first. Ttl string `json:"ttl,omitempty"` // ForceSendFields is a list of field names (e.g. "IdleTtl") to @@ -8843,14 +8855,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// UNIMPLEMENTED.NOTE: the name binding allows API services to override -// the binding to use different resource name schemes, such as -// users/*/operations. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// UNIMPLEMENTED. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -8979,7 +8984,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "dataproc.projects.locations.operations.list", @@ -16939,14 +16944,7 @@ type ProjectsRegionsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// UNIMPLEMENTED.NOTE: the name binding allows API services to override -// the binding to use different resource name schemes, such as -// users/*/operations. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// UNIMPLEMENTED. // // - name: The name of the operation's parent resource. func (r *ProjectsRegionsOperationsService) List(name string) *ProjectsRegionsOperationsListCall { @@ -17075,7 +17073,7 @@ func (c *ProjectsRegionsOperationsListCall) Do(opts ...googleapi.CallOption) (*L } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.", // "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/operations", // "httpMethod": "GET", // "id": "dataproc.projects.regions.operations.list", diff --git a/dfareporting/v3.5/dfareporting-api.json b/dfareporting/v3.5/dfareporting-api.json index aa4c93baee7..be1a8c0f6f0 100644 --- a/dfareporting/v3.5/dfareporting-api.json +++ b/dfareporting/v3.5/dfareporting-api.json @@ -9659,7 +9659,7 @@ } } }, - "revision": "20220815", + "revision": "20230323", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { @@ -18887,6 +18887,10 @@ "startDate": { "format": "date", "type": "string" + }, + "timezone": { + "description": "The timezone when the report will run.", + "type": "string" } }, "type": "object" diff --git a/dfareporting/v3.5/dfareporting-gen.go b/dfareporting/v3.5/dfareporting-gen.go index 7b1a0873f0c..ffba77d74e2 100644 --- a/dfareporting/v3.5/dfareporting-gen.go +++ b/dfareporting/v3.5/dfareporting-gen.go @@ -12440,6 +12440,9 @@ type ReportSchedule struct { StartDate string `json:"startDate,omitempty"` + // Timezone: The timezone when the report will run. + Timezone string `json:"timezone,omitempty"` + // ForceSendFields is a list of field names (e.g. "Active") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/dfareporting/v4/dfareporting-api.json b/dfareporting/v4/dfareporting-api.json index 9071949db32..3ca483af357 100644 --- a/dfareporting/v4/dfareporting-api.json +++ b/dfareporting/v4/dfareporting-api.json @@ -10032,7 +10032,7 @@ } } }, - "revision": "20220921", + "revision": "20230323", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { @@ -19755,6 +19755,10 @@ "startDate": { "format": "date", "type": "string" + }, + "timezone": { + "description": "The timezone when the report will run.", + "type": "string" } }, "type": "object" diff --git a/dfareporting/v4/dfareporting-gen.go b/dfareporting/v4/dfareporting-gen.go index e4cd1813a83..11f16f3e99f 100644 --- a/dfareporting/v4/dfareporting-gen.go +++ b/dfareporting/v4/dfareporting-gen.go @@ -13092,6 +13092,9 @@ type ReportSchedule struct { StartDate string `json:"startDate,omitempty"` + // Timezone: The timezone when the report will run. + Timezone string `json:"timezone,omitempty"` + // ForceSendFields is a list of field names (e.g. "Active") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index abf94551fc6..e6c128797f8 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8143,7 +8143,7 @@ } } }, - "revision": "20230314", + "revision": "20230328", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -8877,7 +8877,7 @@ "type": "boolean" }, "model": { - "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands)", "type": "string" }, "modelVariant": { @@ -10738,7 +10738,7 @@ "type": "boolean" }, "model": { - "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands)", "type": "string" }, "modelVariant": { @@ -14198,7 +14198,7 @@ "type": "string" }, "model": { - "description": "Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "description": "Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands)", "type": "string" }, "modelVariant": { diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 8a0a555f7be..60b9deba299 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -2273,7 +2273,11 @@ type GoogleCloudDialogflowCxV3InputAudioConfig struct { // using the standard version of the specified model. Refer to Cloud // Speech API documentation // (https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. + // for more details. If you specify a model, the following models + // typically have the best performance: - phone_call (best for Agent + // Assist and telephony) - latest_short (best for Dialogflow + // non-telephony) - command_and_search (best for very short utterances + // and commands) Model string `json:"model,omitempty"` // ModelVariant: Optional. Which variant of the Speech model to use. @@ -5777,7 +5781,11 @@ type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct { // using the standard version of the specified model. Refer to Cloud // Speech API documentation // (https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. + // for more details. If you specify a model, the following models + // typically have the best performance: - phone_call (best for Agent + // Assist and telephony) - latest_short (best for Dialogflow + // non-telephony) - command_and_search (best for very short utterances + // and commands) Model string `json:"model,omitempty"` // ModelVariant: Optional. Which variant of the Speech model to use. @@ -12064,7 +12072,11 @@ type GoogleCloudDialogflowV2InputAudioConfig struct { // the standard version of the specified model. Refer to Cloud Speech // API documentation // (https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. + // for more details. If you specify a model, the following models + // typically have the best performance: - phone_call (best for Agent + // Assist and telephony) - latest_short (best for Dialogflow + // non-telephony) - command_and_search (best for very short utterances + // and commands) Model string `json:"model,omitempty"` // ModelVariant: Which variant of the Speech model to use. diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index 77d4fc7ed92..c0456c1bbd2 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7507,7 +7507,7 @@ } } }, - "revision": "20230314", + "revision": "20230328", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -8241,7 +8241,7 @@ "type": "boolean" }, "model": { - "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands)", "type": "string" }, "modelVariant": { @@ -10102,7 +10102,7 @@ "type": "boolean" }, "model": { - "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands)", "type": "string" }, "modelVariant": { @@ -15439,7 +15439,7 @@ "type": "string" }, "model": { - "description": "Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "description": "Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands)", "type": "string" }, "modelVariant": { diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 3fb8f286546..3f04e009741 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -2201,7 +2201,11 @@ type GoogleCloudDialogflowCxV3InputAudioConfig struct { // using the standard version of the specified model. Refer to Cloud // Speech API documentation // (https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. + // for more details. If you specify a model, the following models + // typically have the best performance: - phone_call (best for Agent + // Assist and telephony) - latest_short (best for Dialogflow + // non-telephony) - command_and_search (best for very short utterances + // and commands) Model string `json:"model,omitempty"` // ModelVariant: Optional. Which variant of the Speech model to use. @@ -5705,7 +5709,11 @@ type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct { // using the standard version of the specified model. Refer to Cloud // Speech API documentation // (https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. + // for more details. If you specify a model, the following models + // typically have the best performance: - phone_call (best for Agent + // Assist and telephony) - latest_short (best for Dialogflow + // non-telephony) - command_and_search (best for very short utterances + // and commands) Model string `json:"model,omitempty"` // ModelVariant: Optional. Which variant of the Speech model to use. @@ -15185,7 +15193,11 @@ type GoogleCloudDialogflowV2beta1InputAudioConfig struct { // the standard version of the specified model. Refer to Cloud Speech // API documentation // (https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. + // for more details. If you specify a model, the following models + // typically have the best performance: - phone_call (best for Agent + // Assist and telephony) - latest_short (best for Dialogflow + // non-telephony) - command_and_search (best for very short utterances + // and commands) Model string `json:"model,omitempty"` // ModelVariant: Which variant of the Speech model to use. diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index 097e71960d8..96fb198eb7d 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20230314", + "revision": "20230328", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -5497,7 +5497,7 @@ "type": "boolean" }, "model": { - "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands)", "type": "string" }, "modelVariant": { @@ -8811,7 +8811,7 @@ "type": "boolean" }, "model": { - "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands)", "type": "string" }, "modelVariant": { diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 4bcdfa68a0d..5b8d6142d0d 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -3573,7 +3573,11 @@ type GoogleCloudDialogflowCxV3InputAudioConfig struct { // using the standard version of the specified model. Refer to Cloud // Speech API documentation // (https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. + // for more details. If you specify a model, the following models + // typically have the best performance: - phone_call (best for Agent + // Assist and telephony) - latest_short (best for Dialogflow + // non-telephony) - command_and_search (best for very short utterances + // and commands) Model string `json:"model,omitempty"` // ModelVariant: Optional. Which variant of the Speech model to use. @@ -9832,7 +9836,11 @@ type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct { // using the standard version of the specified model. Refer to Cloud // Speech API documentation // (https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. + // for more details. If you specify a model, the following models + // typically have the best performance: - phone_call (best for Agent + // Assist and telephony) - latest_short (best for Dialogflow + // non-telephony) - command_and_search (best for very short utterances + // and commands) Model string `json:"model,omitempty"` // ModelVariant: Optional. Which variant of the Speech model to use. diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 9f51b4d336c..39f9a4ec3f3 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20230314", + "revision": "20230328", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -4554,7 +4554,7 @@ "type": "boolean" }, "model": { - "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands)", "type": "string" }, "modelVariant": { @@ -7358,7 +7358,7 @@ "type": "boolean" }, "model": { - "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details.", + "description": "Optional. Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search (best for very short utterances and commands)", "type": "string" }, "modelVariant": { diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 2beb8224929..bbba84e0e5e 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -1865,7 +1865,11 @@ type GoogleCloudDialogflowCxV3InputAudioConfig struct { // using the standard version of the specified model. Refer to Cloud // Speech API documentation // (https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. + // for more details. If you specify a model, the following models + // typically have the best performance: - phone_call (best for Agent + // Assist and telephony) - latest_short (best for Dialogflow + // non-telephony) - command_and_search (best for very short utterances + // and commands) Model string `json:"model,omitempty"` // ModelVariant: Optional. Which variant of the Speech model to use. @@ -7079,7 +7083,11 @@ type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct { // using the standard version of the specified model. Refer to Cloud // Speech API documentation // (https://cloud.google.com/speech-to-text/docs/basics#select-model) - // for more details. + // for more details. If you specify a model, the following models + // typically have the best performance: - phone_call (best for Agent + // Assist and telephony) - latest_short (best for Dialogflow + // non-telephony) - command_and_search (best for very short utterances + // and commands) Model string `json:"model,omitempty"` // ModelVariant: Optional. Which variant of the Speech model to use. diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index ba8931c5ac8..9fecbcf4294 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -1406,7 +1406,7 @@ } } }, - "revision": "20230310", + "revision": "20230329", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -1544,7 +1544,7 @@ "id": "GoogleCloudDiscoveryengineV1alphaBigQuerySource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for imports: * `user_event` (default): One JSON UserEvent per line. * `document` (default): One JSON Document per line. Each document must have a valid document.id.", + "description": "The schema to use when parsing the data from the source. Supported values for user event imports: * `user_event` (default): One UserEvent per row. Supported values for document imports: * `document` (default): One Document format per row. Each document must have a valid Document.id and one of Document.json_data or Document.struct_data. * `custom`: One custom data per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical.", "type": "string" }, "datasetId": { @@ -1586,155 +1586,6 @@ }, "type": "object" }, - "GoogleCloudDiscoveryengineV1alphaCondition": { - "description": "Defines circumstances to be checked before allowing a behavior", - "id": "GoogleCloudDiscoveryengineV1alphaCondition", - "properties": { - "activeTimeRange": { - "description": "Optional. Range of time(s) specifying when condition is active. Maximum of 10 time ranges.", - "items": { - "$ref": "GoogleCloudDiscoveryengineV1alphaConditionTimeRange" - }, - "type": "array" - }, - "queryTerms": { - "description": "Optional. Search only A list of terms to match the query on. Maximum of 10 query terms.", - "items": { - "$ref": "GoogleCloudDiscoveryengineV1alphaConditionQueryTerm" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDiscoveryengineV1alphaConditionQueryTerm": { - "description": "Matcher for search request query", - "id": "GoogleCloudDiscoveryengineV1alphaConditionQueryTerm", - "properties": { - "fullMatch": { - "description": "Whether the search query needs to exactly match the query term.", - "type": "boolean" - }, - "value": { - "description": "The specific query value to match against Must be lowercase, must be UTF-8. Can have at most 3 space separated terms if full_match is true. Cannot be an empty string. Maximum length of 5000 characters.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDiscoveryengineV1alphaConditionTimeRange": { - "description": "Used for time-dependent conditions.", - "id": "GoogleCloudDiscoveryengineV1alphaConditionTimeRange", - "properties": { - "endTime": { - "description": "End of time range. Range is inclusive. Must be in the future.", - "format": "google-datetime", - "type": "string" - }, - "startTime": { - "description": "Start of time range. Range is inclusive.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDiscoveryengineV1alphaControl": { - "description": "Defines a conditioned behavior to employ during serving. Must be attached to a [ServingConfig] to be considered at serving time. Permitted actions dependent on Solution Type.", - "id": "GoogleCloudDiscoveryengineV1alphaControl", - "properties": { - "associatedServingConfigIds": { - "description": "Output only. List of all [ServingConfig] ids this control is attached to. May take up to 10 minutes to update after changes.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, - "boostAction": { - "$ref": "GoogleCloudDiscoveryengineV1alphaControlBoostAction", - "description": "Defines a boost-type control" - }, - "conditions": { - "description": "Determines when the associated action will trigger. Omit to always apply the action. Currently only a single condition may be specified. Otherwise an INVALID ARGUMENT error is thrown.", - "items": { - "$ref": "GoogleCloudDiscoveryengineV1alphaCondition" - }, - "type": "array" - }, - "displayName": { - "description": "Required. Human readable name. The identifier used in UI views. Must be UTF-8 encoded string. Length limit is 128 characters. Otherwise an INVALID ARGUMENT error is thrown.", - "type": "string" - }, - "filterAction": { - "$ref": "GoogleCloudDiscoveryengineV1alphaControlFilterAction", - "description": "Defines a filter-type control Currently not supported by Recommendation" - }, - "name": { - "description": "Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*`", - "type": "string" - }, - "solutionType": { - "description": "Required. What solution the control belongs to. Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown.", - "enum": [ - "SOLUTION_TYPE_UNSPECIFIED", - "SOLUTION_TYPE_RECOMMENDATION", - "SOLUTION_TYPE_SEARCH" - ], - "enumDescriptions": [ - "Default value.", - "Used for Recommendations AI.", - "Used for Discovery Search." - ], - "type": "string" - }, - "useCases": { - "description": "Specifies the use case for the control. Affects what condition fields can be set. Only applies to SOLUTION_TYPE_SEARCH. Currently only allow one use case per control. Must be set when solution_type is SolutionType.SOLUTION_TYPE_SEARCH.", - "items": { - "enum": [ - "SEARCH_USE_CASE_UNSPECIFIED", - "SEARCH_USE_CASE_SEARCH", - "SEARCH_USE_CASE_BROWSE" - ], - "enumDescriptions": [ - "Value used when unset. Will not occur in CSS.", - "Search use case. Expects the traffic has a non-empty query.", - "Browse use case. Expects the traffic has an empty query." - ], - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDiscoveryengineV1alphaControlBoostAction": { - "description": "Adjusts order of products in returned list.", - "id": "GoogleCloudDiscoveryengineV1alphaControlBoostAction", - "properties": { - "boost": { - "description": "Required. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).", - "format": "float", - "type": "number" - }, - "filter": { - "description": "Required. Specifies which products to apply the boost to. If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDiscoveryengineV1alphaControlFilterAction": { - "description": "Specified which products may be included in results. Uses same filter as boost.", - "id": "GoogleCloudDiscoveryengineV1alphaControlFilterAction", - "properties": { - "filter": { - "description": "Required. A filter to apply on the matching condition results. Required Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDiscoveryengineV1alphaCustomAttribute": { "description": "A custom attribute that is not explicitly modeled in a resource, e.g. UserEvent.", "id": "GoogleCloudDiscoveryengineV1alphaCustomAttribute", @@ -1778,7 +1629,7 @@ "type": "string" }, "schemaId": { - "description": "Required. The identifier of the schema located in the same data store.", + "description": "The identifier of the schema located in the same data store.", "type": "string" }, "structData": { @@ -1824,11 +1675,11 @@ "id": "GoogleCloudDiscoveryengineV1alphaGcsSource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON Document per line. Each document must have a valid Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` will become a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.", + "description": "The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON Document per line. Each document must have a valid Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` will become a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.", "type": "string" }, "inputUris": { - "description": "Required. Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files or 100000 files if the data_schema is `content`. And each file can be up to 2 GB.", + "description": "Required. Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`).", "items": { "type": "string" }, @@ -2208,6 +2059,29 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaSchema": { + "description": "Defines the structure and layout of a type of document data.", + "id": "GoogleCloudDiscoveryengineV1alphaSchema", + "properties": { + "jsonSchema": { + "description": "The JSON representation of the schema.", + "type": "string" + }, + "name": { + "description": "Immutable. The full resource name of the schema, in the format of `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.", + "type": "string" + }, + "structSchema": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The structured representation of the schema.", + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaSearchInfo": { "description": "Detailed search information.", "id": "GoogleCloudDiscoveryengineV1alphaSearchInfo", @@ -2481,6 +2355,29 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaSchema": { + "description": "Defines the structure and layout of a type of document data.", + "id": "GoogleCloudDiscoveryengineV1betaSchema", + "properties": { + "jsonSchema": { + "description": "The JSON representation of the schema.", + "type": "string" + }, + "name": { + "description": "Immutable. The full resource name of the schema, in the format of `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.", + "type": "string" + }, + "structSchema": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The structured representation of the schema.", + "type": "object" + } + }, + "type": "object" + }, "GoogleLongrunningListOperationsResponse": { "description": "The response message for Operations.ListOperations.", "id": "GoogleLongrunningListOperationsResponse", diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index effcac6134c..ac4fc569101 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -704,9 +704,13 @@ func (s *GoogleCloudDiscoveryengineLoggingSourceLocation) MarshalJSON() ([]byte, // import data from. type GoogleCloudDiscoveryengineV1alphaBigQuerySource struct { // DataSchema: The schema to use when parsing the data from the source. - // Supported values for imports: * `user_event` (default): One JSON - // UserEvent per line. * `document` (default): One JSON Document per - // line. Each document must have a valid document.id. + // Supported values for user event imports: * `user_event` (default): + // One UserEvent per row. Supported values for document imports: * + // `document` (default): One Document format per row. Each document must + // have a valid Document.id and one of Document.json_data or + // Document.struct_data. * `custom`: One custom data per row in + // arbitrary format that conforms the defined Schema of the data store. + // This can only be used by the GENERIC Data Store vertical. DataSchema string `json:"dataSchema,omitempty"` // DatasetId: Required. The BigQuery data set to copy the data from with @@ -792,273 +796,6 @@ func (s *GoogleCloudDiscoveryengineV1alphaCompletionInfo) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDiscoveryengineV1alphaCondition: Defines circumstances to -// be checked before allowing a behavior -type GoogleCloudDiscoveryengineV1alphaCondition struct { - // ActiveTimeRange: Optional. Range of time(s) specifying when condition - // is active. Maximum of 10 time ranges. - ActiveTimeRange []*GoogleCloudDiscoveryengineV1alphaConditionTimeRange `json:"activeTimeRange,omitempty"` - - // QueryTerms: Optional. Search only A list of terms to match the query - // on. Maximum of 10 query terms. - QueryTerms []*GoogleCloudDiscoveryengineV1alphaConditionQueryTerm `json:"queryTerms,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActiveTimeRange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveTimeRange") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaCondition) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaCondition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDiscoveryengineV1alphaConditionQueryTerm: Matcher for -// search request query -type GoogleCloudDiscoveryengineV1alphaConditionQueryTerm struct { - // FullMatch: Whether the search query needs to exactly match the query - // term. - FullMatch bool `json:"fullMatch,omitempty"` - - // Value: The specific query value to match against Must be lowercase, - // must be UTF-8. Can have at most 3 space separated terms if full_match - // is true. Cannot be an empty string. Maximum length of 5000 - // characters. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FullMatch") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FullMatch") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaConditionQueryTerm) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaConditionQueryTerm - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDiscoveryengineV1alphaConditionTimeRange: Used for -// time-dependent conditions. -type GoogleCloudDiscoveryengineV1alphaConditionTimeRange struct { - // EndTime: End of time range. Range is inclusive. Must be in the - // future. - EndTime string `json:"endTime,omitempty"` - - // StartTime: Start of time range. Range is inclusive. - StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaConditionTimeRange) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaConditionTimeRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDiscoveryengineV1alphaControl: Defines a conditioned -// behavior to employ during serving. Must be attached to a -// [ServingConfig] to be considered at serving time. Permitted actions -// dependent on Solution Type. -type GoogleCloudDiscoveryengineV1alphaControl struct { - // AssociatedServingConfigIds: Output only. List of all [ServingConfig] - // ids this control is attached to. May take up to 10 minutes to update - // after changes. - AssociatedServingConfigIds []string `json:"associatedServingConfigIds,omitempty"` - - // BoostAction: Defines a boost-type control - BoostAction *GoogleCloudDiscoveryengineV1alphaControlBoostAction `json:"boostAction,omitempty"` - - // Conditions: Determines when the associated action will trigger. Omit - // to always apply the action. Currently only a single condition may be - // specified. Otherwise an INVALID ARGUMENT error is thrown. - Conditions []*GoogleCloudDiscoveryengineV1alphaCondition `json:"conditions,omitempty"` - - // DisplayName: Required. Human readable name. The identifier used in UI - // views. Must be UTF-8 encoded string. Length limit is 128 characters. - // Otherwise an INVALID ARGUMENT error is thrown. - DisplayName string `json:"displayName,omitempty"` - - // FilterAction: Defines a filter-type control Currently not supported - // by Recommendation - FilterAction *GoogleCloudDiscoveryengineV1alphaControlFilterAction `json:"filterAction,omitempty"` - - // Name: Immutable. Fully qualified name - // `projects/*/locations/global/dataStore/*/controls/*` - Name string `json:"name,omitempty"` - - // SolutionType: Required. What solution the control belongs to. Must be - // compatible with vertical of resource. Otherwise an INVALID ARGUMENT - // error is thrown. - // - // Possible values: - // "SOLUTION_TYPE_UNSPECIFIED" - Default value. - // "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI. - // "SOLUTION_TYPE_SEARCH" - Used for Discovery Search. - SolutionType string `json:"solutionType,omitempty"` - - // UseCases: Specifies the use case for the control. Affects what - // condition fields can be set. Only applies to SOLUTION_TYPE_SEARCH. - // Currently only allow one use case per control. Must be set when - // solution_type is SolutionType.SOLUTION_TYPE_SEARCH. - // - // Possible values: - // "SEARCH_USE_CASE_UNSPECIFIED" - Value used when unset. Will not - // occur in CSS. - // "SEARCH_USE_CASE_SEARCH" - Search use case. Expects the traffic has - // a non-empty query. - // "SEARCH_USE_CASE_BROWSE" - Browse use case. Expects the traffic has - // an empty query. - UseCases []string `json:"useCases,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AssociatedServingConfigIds") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AssociatedServingConfigIds") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaControl) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaControl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDiscoveryengineV1alphaControlBoostAction: Adjusts order of -// products in returned list. -type GoogleCloudDiscoveryengineV1alphaControlBoostAction struct { - // Boost: Required. Strength of the boost, which should be in [-1, 1]. - // Negative boost means demotion. Default is 0.0 (No-op). - Boost float64 `json:"boost,omitempty"` - - // Filter: Required. Specifies which products to apply the boost to. If - // no filter is provided all products will be boosted (No-op). Syntax - // documentation: https://cloud.google.com/retail/docs/filter-and-order - // Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT - // error is thrown. - Filter string `json:"filter,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Boost") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Boost") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaControlBoostAction) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaControlBoostAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudDiscoveryengineV1alphaControlBoostAction) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudDiscoveryengineV1alphaControlBoostAction - var s1 struct { - Boost gensupport.JSONFloat64 `json:"boost"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Boost = float64(s1.Boost) - return nil -} - -// GoogleCloudDiscoveryengineV1alphaControlFilterAction: Specified which -// products may be included in results. Uses same filter as boost. -type GoogleCloudDiscoveryengineV1alphaControlFilterAction struct { - // Filter: Required. A filter to apply on the matching condition - // results. Required Syntax documentation: - // https://cloud.google.com/retail/docs/filter-and-order Maximum length - // is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown. - Filter string `json:"filter,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaControlFilterAction) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaControlFilterAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDiscoveryengineV1alphaCustomAttribute: A custom attribute // that is not explicitly modeled in a resource, e.g. UserEvent. type GoogleCloudDiscoveryengineV1alphaCustomAttribute struct { @@ -1124,8 +861,8 @@ type GoogleCloudDiscoveryengineV1alphaDocument struct { // limit of 63 characters. ParentDocumentId string `json:"parentDocumentId,omitempty"` - // SchemaId: Required. The identifier of the schema located in the same - // data store. + // SchemaId: The identifier of the schema located in the same data + // store. SchemaId string `json:"schemaId,omitempty"` // StructData: The structured JSON data for the document. It should @@ -1213,17 +950,20 @@ type GoogleCloudDiscoveryengineV1alphaGcsSource struct { // JSON Document per line. Each document must have a valid Document.id. // * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by // `input_uris` will become a document, with the ID set to the first 128 - // bits of SHA256(URI) encoded as a hex string. Supported values for - // user even imports: * `user_event` (default): One JSON UserEvent per - // line. + // bits of SHA256(URI) encoded as a hex string. * `custom`: One custom + // data JSON per row in arbitrary format that conforms the defined + // Schema of the data store. This can only be used by the GENERIC Data + // Store vertical. Supported values for user even imports: * + // `user_event` (default): One JSON UserEvent per line. DataSchema string `json:"dataSchema,omitempty"` // InputUris: Required. Cloud Storage URIs to input files. URI can be up // to 2000 characters long. URIs can match the full object path (for // example, `gs://bucket/directory/object.json`) or a pattern matching // one or more files, such as `gs://bucket/directory/*.json`. A request - // can contain at most 100 files or 100000 files if the data_schema is - // `content`. And each file can be up to 2 GB. + // can contain at most 100 files (or 100,000 files if `data_schema` is + // `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` + // is `content`). InputUris []string `json:"inputUris,omitempty"` // ForceSendFields is a list of field names (e.g. "DataSchema") to @@ -1972,6 +1712,45 @@ func (s *GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaSchema: Defines the structure and +// layout of a type of document data. +type GoogleCloudDiscoveryengineV1alphaSchema struct { + // JsonSchema: The JSON representation of the schema. + JsonSchema string `json:"jsonSchema,omitempty"` + + // Name: Immutable. The full resource name of the schema, in the format + // of + // `projects/{project}/locations/{location}/collections/{collection}/data + // Stores/{data_store}/schemas/{schema}`. This field must be a UTF-8 + // encoded string with a length limit of 1024 characters. + Name string `json:"name,omitempty"` + + // StructSchema: The structured representation of the schema. + StructSchema googleapi.RawMessage `json:"structSchema,omitempty"` + + // ForceSendFields is a list of field names (e.g. "JsonSchema") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "JsonSchema") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1alphaSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaSchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaSearchInfo: Detailed search // information. type GoogleCloudDiscoveryengineV1alphaSearchInfo struct { @@ -2514,6 +2293,45 @@ func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsResponse) MarshalJSON() return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaSchema: Defines the structure and +// layout of a type of document data. +type GoogleCloudDiscoveryengineV1betaSchema struct { + // JsonSchema: The JSON representation of the schema. + JsonSchema string `json:"jsonSchema,omitempty"` + + // Name: Immutable. The full resource name of the schema, in the format + // of + // `projects/{project}/locations/{location}/collections/{collection}/data + // Stores/{data_store}/schemas/{schema}`. This field must be a UTF-8 + // encoded string with a length limit of 1024 characters. + Name string `json:"name,omitempty"` + + // StructSchema: The structured representation of the schema. + StructSchema googleapi.RawMessage `json:"structSchema,omitempty"` + + // ForceSendFields is a list of field names (e.g. "JsonSchema") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "JsonSchema") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1betaSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaSchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleLongrunningListOperationsResponse: The response message for // Operations.ListOperations. type GoogleLongrunningListOperationsResponse struct { diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index 2c16c95f986..ce7e8d3af3c 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -1406,7 +1406,7 @@ } } }, - "revision": "20230310", + "revision": "20230329", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -1539,155 +1539,6 @@ }, "type": "object" }, - "GoogleCloudDiscoveryengineV1alphaCondition": { - "description": "Defines circumstances to be checked before allowing a behavior", - "id": "GoogleCloudDiscoveryengineV1alphaCondition", - "properties": { - "activeTimeRange": { - "description": "Optional. Range of time(s) specifying when condition is active. Maximum of 10 time ranges.", - "items": { - "$ref": "GoogleCloudDiscoveryengineV1alphaConditionTimeRange" - }, - "type": "array" - }, - "queryTerms": { - "description": "Optional. Search only A list of terms to match the query on. Maximum of 10 query terms.", - "items": { - "$ref": "GoogleCloudDiscoveryengineV1alphaConditionQueryTerm" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDiscoveryengineV1alphaConditionQueryTerm": { - "description": "Matcher for search request query", - "id": "GoogleCloudDiscoveryengineV1alphaConditionQueryTerm", - "properties": { - "fullMatch": { - "description": "Whether the search query needs to exactly match the query term.", - "type": "boolean" - }, - "value": { - "description": "The specific query value to match against Must be lowercase, must be UTF-8. Can have at most 3 space separated terms if full_match is true. Cannot be an empty string. Maximum length of 5000 characters.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDiscoveryengineV1alphaConditionTimeRange": { - "description": "Used for time-dependent conditions.", - "id": "GoogleCloudDiscoveryengineV1alphaConditionTimeRange", - "properties": { - "endTime": { - "description": "End of time range. Range is inclusive. Must be in the future.", - "format": "google-datetime", - "type": "string" - }, - "startTime": { - "description": "Start of time range. Range is inclusive.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDiscoveryengineV1alphaControl": { - "description": "Defines a conditioned behavior to employ during serving. Must be attached to a [ServingConfig] to be considered at serving time. Permitted actions dependent on Solution Type.", - "id": "GoogleCloudDiscoveryengineV1alphaControl", - "properties": { - "associatedServingConfigIds": { - "description": "Output only. List of all [ServingConfig] ids this control is attached to. May take up to 10 minutes to update after changes.", - "items": { - "type": "string" - }, - "readOnly": true, - "type": "array" - }, - "boostAction": { - "$ref": "GoogleCloudDiscoveryengineV1alphaControlBoostAction", - "description": "Defines a boost-type control" - }, - "conditions": { - "description": "Determines when the associated action will trigger. Omit to always apply the action. Currently only a single condition may be specified. Otherwise an INVALID ARGUMENT error is thrown.", - "items": { - "$ref": "GoogleCloudDiscoveryengineV1alphaCondition" - }, - "type": "array" - }, - "displayName": { - "description": "Required. Human readable name. The identifier used in UI views. Must be UTF-8 encoded string. Length limit is 128 characters. Otherwise an INVALID ARGUMENT error is thrown.", - "type": "string" - }, - "filterAction": { - "$ref": "GoogleCloudDiscoveryengineV1alphaControlFilterAction", - "description": "Defines a filter-type control Currently not supported by Recommendation" - }, - "name": { - "description": "Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*`", - "type": "string" - }, - "solutionType": { - "description": "Required. What solution the control belongs to. Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown.", - "enum": [ - "SOLUTION_TYPE_UNSPECIFIED", - "SOLUTION_TYPE_RECOMMENDATION", - "SOLUTION_TYPE_SEARCH" - ], - "enumDescriptions": [ - "Default value.", - "Used for Recommendations AI.", - "Used for Discovery Search." - ], - "type": "string" - }, - "useCases": { - "description": "Specifies the use case for the control. Affects what condition fields can be set. Only applies to SOLUTION_TYPE_SEARCH. Currently only allow one use case per control. Must be set when solution_type is SolutionType.SOLUTION_TYPE_SEARCH.", - "items": { - "enum": [ - "SEARCH_USE_CASE_UNSPECIFIED", - "SEARCH_USE_CASE_SEARCH", - "SEARCH_USE_CASE_BROWSE" - ], - "enumDescriptions": [ - "Value used when unset. Will not occur in CSS.", - "Search use case. Expects the traffic has a non-empty query.", - "Browse use case. Expects the traffic has an empty query." - ], - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDiscoveryengineV1alphaControlBoostAction": { - "description": "Adjusts order of products in returned list.", - "id": "GoogleCloudDiscoveryengineV1alphaControlBoostAction", - "properties": { - "boost": { - "description": "Required. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).", - "format": "float", - "type": "number" - }, - "filter": { - "description": "Required. Specifies which products to apply the boost to. If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDiscoveryengineV1alphaControlFilterAction": { - "description": "Specified which products may be included in results. Uses same filter as boost.", - "id": "GoogleCloudDiscoveryengineV1alphaControlFilterAction", - "properties": { - "filter": { - "description": "Required. A filter to apply on the matching condition results. Required Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata": { "description": "Metadata related to the progress of the ImportDocuments operation. This will be returned by the google.longrunning.Operation.metadata field.", "id": "GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata", @@ -1799,12 +1650,35 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaSchema": { + "description": "Defines the structure and layout of a type of document data.", + "id": "GoogleCloudDiscoveryengineV1alphaSchema", + "properties": { + "jsonSchema": { + "description": "The JSON representation of the schema.", + "type": "string" + }, + "name": { + "description": "Immutable. The full resource name of the schema, in the format of `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.", + "type": "string" + }, + "structSchema": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The structured representation of the schema.", + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaBigQuerySource": { "description": "BigQuery source import data from.", "id": "GoogleCloudDiscoveryengineV1betaBigQuerySource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for imports: * `user_event` (default): One JSON UserEvent per line. * `document` (default): One JSON Document per line. Each document must have a valid document.id.", + "description": "The schema to use when parsing the data from the source. Supported values for user event imports: * `user_event` (default): One UserEvent per row. Supported values for document imports: * `document` (default): One Document format per row. Each document must have a valid Document.id and one of Document.json_data or Document.struct_data. * `custom`: One custom data per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical.", "type": "string" }, "datasetId": { @@ -1889,7 +1763,7 @@ "type": "string" }, "schemaId": { - "description": "Required. The identifier of the schema located in the same data store.", + "description": "The identifier of the schema located in the same data store.", "type": "string" }, "structData": { @@ -1935,11 +1809,11 @@ "id": "GoogleCloudDiscoveryengineV1betaGcsSource", "properties": { "dataSchema": { - "description": "The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON Document per line. Each document must have a valid Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` will become a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.", + "description": "The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON Document per line. Each document must have a valid Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` will become a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.", "type": "string" }, "inputUris": { - "description": "Required. Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files or 100000 files if the data_schema is `content`. And each file can be up to 2 GB.", + "description": "Required. Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`).", "items": { "type": "string" }, @@ -2319,6 +2193,29 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaSchema": { + "description": "Defines the structure and layout of a type of document data.", + "id": "GoogleCloudDiscoveryengineV1betaSchema", + "properties": { + "jsonSchema": { + "description": "The JSON representation of the schema.", + "type": "string" + }, + "name": { + "description": "Immutable. The full resource name of the schema, in the format of `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.", + "type": "string" + }, + "structSchema": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The structured representation of the schema.", + "type": "object" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaSearchInfo": { "description": "Detailed search information.", "id": "GoogleCloudDiscoveryengineV1betaSearchInfo", diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index 67527ad9d3c..94d840dfd06 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -700,273 +700,6 @@ func (s *GoogleCloudDiscoveryengineLoggingSourceLocation) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDiscoveryengineV1alphaCondition: Defines circumstances to -// be checked before allowing a behavior -type GoogleCloudDiscoveryengineV1alphaCondition struct { - // ActiveTimeRange: Optional. Range of time(s) specifying when condition - // is active. Maximum of 10 time ranges. - ActiveTimeRange []*GoogleCloudDiscoveryengineV1alphaConditionTimeRange `json:"activeTimeRange,omitempty"` - - // QueryTerms: Optional. Search only A list of terms to match the query - // on. Maximum of 10 query terms. - QueryTerms []*GoogleCloudDiscoveryengineV1alphaConditionQueryTerm `json:"queryTerms,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActiveTimeRange") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActiveTimeRange") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaCondition) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaCondition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDiscoveryengineV1alphaConditionQueryTerm: Matcher for -// search request query -type GoogleCloudDiscoveryengineV1alphaConditionQueryTerm struct { - // FullMatch: Whether the search query needs to exactly match the query - // term. - FullMatch bool `json:"fullMatch,omitempty"` - - // Value: The specific query value to match against Must be lowercase, - // must be UTF-8. Can have at most 3 space separated terms if full_match - // is true. Cannot be an empty string. Maximum length of 5000 - // characters. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "FullMatch") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "FullMatch") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaConditionQueryTerm) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaConditionQueryTerm - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDiscoveryengineV1alphaConditionTimeRange: Used for -// time-dependent conditions. -type GoogleCloudDiscoveryengineV1alphaConditionTimeRange struct { - // EndTime: End of time range. Range is inclusive. Must be in the - // future. - EndTime string `json:"endTime,omitempty"` - - // StartTime: Start of time range. Range is inclusive. - StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EndTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaConditionTimeRange) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaConditionTimeRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDiscoveryengineV1alphaControl: Defines a conditioned -// behavior to employ during serving. Must be attached to a -// [ServingConfig] to be considered at serving time. Permitted actions -// dependent on Solution Type. -type GoogleCloudDiscoveryengineV1alphaControl struct { - // AssociatedServingConfigIds: Output only. List of all [ServingConfig] - // ids this control is attached to. May take up to 10 minutes to update - // after changes. - AssociatedServingConfigIds []string `json:"associatedServingConfigIds,omitempty"` - - // BoostAction: Defines a boost-type control - BoostAction *GoogleCloudDiscoveryengineV1alphaControlBoostAction `json:"boostAction,omitempty"` - - // Conditions: Determines when the associated action will trigger. Omit - // to always apply the action. Currently only a single condition may be - // specified. Otherwise an INVALID ARGUMENT error is thrown. - Conditions []*GoogleCloudDiscoveryengineV1alphaCondition `json:"conditions,omitempty"` - - // DisplayName: Required. Human readable name. The identifier used in UI - // views. Must be UTF-8 encoded string. Length limit is 128 characters. - // Otherwise an INVALID ARGUMENT error is thrown. - DisplayName string `json:"displayName,omitempty"` - - // FilterAction: Defines a filter-type control Currently not supported - // by Recommendation - FilterAction *GoogleCloudDiscoveryengineV1alphaControlFilterAction `json:"filterAction,omitempty"` - - // Name: Immutable. Fully qualified name - // `projects/*/locations/global/dataStore/*/controls/*` - Name string `json:"name,omitempty"` - - // SolutionType: Required. What solution the control belongs to. Must be - // compatible with vertical of resource. Otherwise an INVALID ARGUMENT - // error is thrown. - // - // Possible values: - // "SOLUTION_TYPE_UNSPECIFIED" - Default value. - // "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI. - // "SOLUTION_TYPE_SEARCH" - Used for Discovery Search. - SolutionType string `json:"solutionType,omitempty"` - - // UseCases: Specifies the use case for the control. Affects what - // condition fields can be set. Only applies to SOLUTION_TYPE_SEARCH. - // Currently only allow one use case per control. Must be set when - // solution_type is SolutionType.SOLUTION_TYPE_SEARCH. - // - // Possible values: - // "SEARCH_USE_CASE_UNSPECIFIED" - Value used when unset. Will not - // occur in CSS. - // "SEARCH_USE_CASE_SEARCH" - Search use case. Expects the traffic has - // a non-empty query. - // "SEARCH_USE_CASE_BROWSE" - Browse use case. Expects the traffic has - // an empty query. - UseCases []string `json:"useCases,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AssociatedServingConfigIds") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AssociatedServingConfigIds") to include in API requests with the - // JSON null value. By default, fields with empty values are omitted - // from API requests. However, any field with an empty value appearing - // in NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaControl) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaControl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDiscoveryengineV1alphaControlBoostAction: Adjusts order of -// products in returned list. -type GoogleCloudDiscoveryengineV1alphaControlBoostAction struct { - // Boost: Required. Strength of the boost, which should be in [-1, 1]. - // Negative boost means demotion. Default is 0.0 (No-op). - Boost float64 `json:"boost,omitempty"` - - // Filter: Required. Specifies which products to apply the boost to. If - // no filter is provided all products will be boosted (No-op). Syntax - // documentation: https://cloud.google.com/retail/docs/filter-and-order - // Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT - // error is thrown. - Filter string `json:"filter,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Boost") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Boost") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaControlBoostAction) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaControlBoostAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudDiscoveryengineV1alphaControlBoostAction) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudDiscoveryengineV1alphaControlBoostAction - var s1 struct { - Boost gensupport.JSONFloat64 `json:"boost"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Boost = float64(s1.Boost) - return nil -} - -// GoogleCloudDiscoveryengineV1alphaControlFilterAction: Specified which -// products may be included in results. Uses same filter as boost. -type GoogleCloudDiscoveryengineV1alphaControlFilterAction struct { - // Filter: Required. A filter to apply on the matching condition - // results. Required Syntax documentation: - // https://cloud.google.com/retail/docs/filter-and-order Maximum length - // is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown. - Filter string `json:"filter,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Filter") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Filter") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDiscoveryengineV1alphaControlFilterAction) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDiscoveryengineV1alphaControlFilterAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata: Metadata // related to the progress of the ImportDocuments operation. This will // be returned by the google.longrunning.Operation.metadata field. @@ -1163,13 +896,56 @@ func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse) MarshalJSON( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaSchema: Defines the structure and +// layout of a type of document data. +type GoogleCloudDiscoveryengineV1alphaSchema struct { + // JsonSchema: The JSON representation of the schema. + JsonSchema string `json:"jsonSchema,omitempty"` + + // Name: Immutable. The full resource name of the schema, in the format + // of + // `projects/{project}/locations/{location}/collections/{collection}/data + // Stores/{data_store}/schemas/{schema}`. This field must be a UTF-8 + // encoded string with a length limit of 1024 characters. + Name string `json:"name,omitempty"` + + // StructSchema: The structured representation of the schema. + StructSchema googleapi.RawMessage `json:"structSchema,omitempty"` + + // ForceSendFields is a list of field names (e.g. "JsonSchema") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "JsonSchema") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1alphaSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaSchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaBigQuerySource: BigQuery source // import data from. type GoogleCloudDiscoveryengineV1betaBigQuerySource struct { // DataSchema: The schema to use when parsing the data from the source. - // Supported values for imports: * `user_event` (default): One JSON - // UserEvent per line. * `document` (default): One JSON Document per - // line. Each document must have a valid document.id. + // Supported values for user event imports: * `user_event` (default): + // One UserEvent per row. Supported values for document imports: * + // `document` (default): One Document format per row. Each document must + // have a valid Document.id and one of Document.json_data or + // Document.struct_data. * `custom`: One custom data per row in + // arbitrary format that conforms the defined Schema of the data store. + // This can only be used by the GENERIC Data Store vertical. DataSchema string `json:"dataSchema,omitempty"` // DatasetId: Required. The BigQuery data set to copy the data from with @@ -1320,8 +1096,8 @@ type GoogleCloudDiscoveryengineV1betaDocument struct { // limit of 63 characters. ParentDocumentId string `json:"parentDocumentId,omitempty"` - // SchemaId: Required. The identifier of the schema located in the same - // data store. + // SchemaId: The identifier of the schema located in the same data + // store. SchemaId string `json:"schemaId,omitempty"` // StructData: The structured JSON data for the document. It should @@ -1409,17 +1185,20 @@ type GoogleCloudDiscoveryengineV1betaGcsSource struct { // JSON Document per line. Each document must have a valid Document.id. // * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by // `input_uris` will become a document, with the ID set to the first 128 - // bits of SHA256(URI) encoded as a hex string. Supported values for - // user even imports: * `user_event` (default): One JSON UserEvent per - // line. + // bits of SHA256(URI) encoded as a hex string. * `custom`: One custom + // data JSON per row in arbitrary format that conforms the defined + // Schema of the data store. This can only be used by the GENERIC Data + // Store vertical. Supported values for user even imports: * + // `user_event` (default): One JSON UserEvent per line. DataSchema string `json:"dataSchema,omitempty"` // InputUris: Required. Cloud Storage URIs to input files. URI can be up // to 2000 characters long. URIs can match the full object path (for // example, `gs://bucket/directory/object.json`) or a pattern matching // one or more files, such as `gs://bucket/directory/*.json`. A request - // can contain at most 100 files or 100000 files if the data_schema is - // `content`. And each file can be up to 2 GB. + // can contain at most 100 files (or 100,000 files if `data_schema` is + // `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` + // is `content`). InputUris []string `json:"inputUris,omitempty"` // ForceSendFields is a list of field names (e.g. "DataSchema") to @@ -2170,6 +1949,45 @@ func (s *GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaSchema: Defines the structure and +// layout of a type of document data. +type GoogleCloudDiscoveryengineV1betaSchema struct { + // JsonSchema: The JSON representation of the schema. + JsonSchema string `json:"jsonSchema,omitempty"` + + // Name: Immutable. The full resource name of the schema, in the format + // of + // `projects/{project}/locations/{location}/collections/{collection}/data + // Stores/{data_store}/schemas/{schema}`. This field must be a UTF-8 + // encoded string with a length limit of 1024 characters. + Name string `json:"name,omitempty"` + + // StructSchema: The structured representation of the schema. + StructSchema googleapi.RawMessage `json:"structSchema,omitempty"` + + // ForceSendFields is a list of field names (e.g. "JsonSchema") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "JsonSchema") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1betaSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaSchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaSearchInfo: Detailed search // information. type GoogleCloudDiscoveryengineV1betaSearchInfo struct { diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 84956570eb5..f12a59eb7dc 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -3412,7 +3412,7 @@ } } }, - "revision": "20230304", + "revision": "20230326", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -3450,6 +3450,17 @@ }, "type": "object" }, + "GooglePrivacyDlpV2ActionDetails": { + "description": "The results of an Action.", + "id": "GooglePrivacyDlpV2ActionDetails", + "properties": { + "deidentifyDetails": { + "$ref": "GooglePrivacyDlpV2DeidentifyDataSourceDetails", + "description": "Outcome of a de-identification action." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2ActivateJobTriggerRequest": { "description": "Request message for ActivateJobTrigger.", "id": "GooglePrivacyDlpV2ActivateJobTriggerRequest", @@ -4767,6 +4778,43 @@ }, "type": "object" }, + "GooglePrivacyDlpV2DeidentifyDataSourceDetails": { + "description": "The results of a Deidentify action from an Inspect job.", + "id": "GooglePrivacyDlpV2DeidentifyDataSourceDetails", + "properties": { + "deidentifyStats": { + "$ref": "GooglePrivacyDlpV2DeidentifyDataSourceStats", + "description": "Stats about de-identification." + }, + "requestedOptions": { + "$ref": "GooglePrivacyDlpV2RequestedDeidentifyOptions", + "description": "De-identification config used for the request." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DeidentifyDataSourceStats": { + "description": "Summary of what was modified during a transformation.", + "id": "GooglePrivacyDlpV2DeidentifyDataSourceStats", + "properties": { + "transformationCount": { + "description": "Number of successfully applied transformations.", + "format": "int64", + "type": "string" + }, + "transformationErrorCount": { + "description": "Number of errors encountered while trying to apply transformations.", + "format": "int64", + "type": "string" + }, + "transformedBytes": { + "description": "Total size in bytes that were transformed in some way.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2DeidentifyTemplate": { "description": "DeidentifyTemplates contains instructions on how to de-identify content. See https://cloud.google.com/dlp/docs/concepts-templates to learn more.", "id": "GooglePrivacyDlpV2DeidentifyTemplate", @@ -4925,6 +4973,13 @@ "description": "Combines all of the information about a DLP job.", "id": "GooglePrivacyDlpV2DlpJob", "properties": { + "actionDetails": { + "description": "Events that should occur after the job has completed.", + "items": { + "$ref": "GooglePrivacyDlpV2ActionDetails" + }, + "type": "array" + }, "createTime": { "description": "Time when the job was created.", "format": "google-datetime", @@ -7402,6 +7457,25 @@ "properties": {}, "type": "object" }, + "GooglePrivacyDlpV2RequestedDeidentifyOptions": { + "description": "De-id options.", + "id": "GooglePrivacyDlpV2RequestedDeidentifyOptions", + "properties": { + "snapshotDeidentifyTemplate": { + "$ref": "GooglePrivacyDlpV2DeidentifyTemplate", + "description": "Snapshot of the state of the DeidentifyTemplate from the Deidentify action at the time this job was run." + }, + "snapshotImageRedactTemplate": { + "$ref": "GooglePrivacyDlpV2DeidentifyTemplate", + "description": "Snapshot of the state of the image redact DeidentifyTemplate from the Deidentify action at the time this job was run." + }, + "snapshotStructuredDeidentifyTemplate": { + "$ref": "GooglePrivacyDlpV2DeidentifyTemplate", + "description": "Snapshot of the state of the structured DeidentifyTemplate from the Deidentify action at the time this job was run." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2RequestedOptions": { "description": "Snapshot of the inspection configuration.", "id": "GooglePrivacyDlpV2RequestedOptions", diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 221a599e77c..524daf251ce 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -73,6 +73,7 @@ var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version const apiId = "dlp:v2" const apiName = "dlp" @@ -536,6 +537,35 @@ func (s *GooglePrivacyDlpV2Action) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2ActionDetails: The results of an Action. +type GooglePrivacyDlpV2ActionDetails struct { + // DeidentifyDetails: Outcome of a de-identification action. + DeidentifyDetails *GooglePrivacyDlpV2DeidentifyDataSourceDetails `json:"deidentifyDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeidentifyDetails") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeidentifyDetails") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2ActionDetails) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2ActionDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2ActivateJobTriggerRequest: Request message for // ActivateJobTrigger. type GooglePrivacyDlpV2ActivateJobTriggerRequest struct { @@ -2931,6 +2961,77 @@ func (s *GooglePrivacyDlpV2DeidentifyContentResponse) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2DeidentifyDataSourceDetails: The results of a +// Deidentify action from an Inspect job. +type GooglePrivacyDlpV2DeidentifyDataSourceDetails struct { + // DeidentifyStats: Stats about de-identification. + DeidentifyStats *GooglePrivacyDlpV2DeidentifyDataSourceStats `json:"deidentifyStats,omitempty"` + + // RequestedOptions: De-identification config used for the request. + RequestedOptions *GooglePrivacyDlpV2RequestedDeidentifyOptions `json:"requestedOptions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeidentifyStats") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeidentifyStats") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2DeidentifyDataSourceDetails) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DeidentifyDataSourceDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2DeidentifyDataSourceStats: Summary of what was +// modified during a transformation. +type GooglePrivacyDlpV2DeidentifyDataSourceStats struct { + // TransformationCount: Number of successfully applied transformations. + TransformationCount int64 `json:"transformationCount,omitempty,string"` + + // TransformationErrorCount: Number of errors encountered while trying + // to apply transformations. + TransformationErrorCount int64 `json:"transformationErrorCount,omitempty,string"` + + // TransformedBytes: Total size in bytes that were transformed in some + // way. + TransformedBytes int64 `json:"transformedBytes,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "TransformationCount") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TransformationCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2DeidentifyDataSourceStats) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DeidentifyDataSourceStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2DeidentifyTemplate: DeidentifyTemplates contains // instructions on how to de-identify content. See // https://cloud.google.com/dlp/docs/concepts-templates to learn more. @@ -3275,6 +3376,9 @@ func (s *GooglePrivacyDlpV2Dictionary) MarshalJSON() ([]byte, error) { // GooglePrivacyDlpV2DlpJob: Combines all of the information about a DLP // job. type GooglePrivacyDlpV2DlpJob struct { + // ActionDetails: Events that should occur after the job has completed. + ActionDetails []*GooglePrivacyDlpV2ActionDetails `json:"actionDetails,omitempty"` + // CreateTime: Time when the job was created. CreateTime string `json:"createTime,omitempty"` @@ -3329,7 +3433,7 @@ type GooglePrivacyDlpV2DlpJob struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "ActionDetails") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3337,10 +3441,10 @@ type GooglePrivacyDlpV2DlpJob struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "ActionDetails") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -7621,6 +7725,48 @@ func (s *GooglePrivacyDlpV2ReplaceValueConfig) MarshalJSON() ([]byte, error) { type GooglePrivacyDlpV2ReplaceWithInfoTypeConfig struct { } +// GooglePrivacyDlpV2RequestedDeidentifyOptions: De-id options. +type GooglePrivacyDlpV2RequestedDeidentifyOptions struct { + // SnapshotDeidentifyTemplate: Snapshot of the state of the + // DeidentifyTemplate from the Deidentify action at the time this job + // was run. + SnapshotDeidentifyTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"snapshotDeidentifyTemplate,omitempty"` + + // SnapshotImageRedactTemplate: Snapshot of the state of the image + // redact DeidentifyTemplate from the Deidentify action at the time this + // job was run. + SnapshotImageRedactTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"snapshotImageRedactTemplate,omitempty"` + + // SnapshotStructuredDeidentifyTemplate: Snapshot of the state of the + // structured DeidentifyTemplate from the Deidentify action at the time + // this job was run. + SnapshotStructuredDeidentifyTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"snapshotStructuredDeidentifyTemplate,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "SnapshotDeidentifyTemplate") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "SnapshotDeidentifyTemplate") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePrivacyDlpV2RequestedDeidentifyOptions) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2RequestedDeidentifyOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2RequestedOptions: Snapshot of the inspection // configuration. type GooglePrivacyDlpV2RequestedOptions struct { diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index a7fcface9c0..045e8828099 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1042,7 +1042,7 @@ } } }, - "revision": "20230310", + "revision": "20230323", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -4032,7 +4032,8 @@ "UNDEPLOYING", "CREATING", "DELETING", - "FAILED" + "FAILED", + "IMPORTING" ], "enumDescriptions": [ "The processor version is in an unspecified state.", @@ -4042,7 +4043,8 @@ "The processor version is being undeployed.", "The processor version is being created.", "The processor version is being deleted.", - "The processor version failed and is in an indeterminate state." + "The processor version failed and is in an indeterminate state.", + "The processor version is being imported." ], "type": "string" } diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index e0826259fb2..5296d170b10 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -5379,6 +5379,7 @@ type GoogleCloudDocumentaiV1ProcessorVersion struct { // "DELETING" - The processor version is being deleted. // "FAILED" - The processor version failed and is in an indeterminate // state. + // "IMPORTING" - The processor version is being imported. State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index 52fbb6f7045..02a6c6dff52 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -1012,7 +1012,7 @@ } } }, - "revision": "20230310", + "revision": "20230323", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -6724,7 +6724,7 @@ "id": "GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest", "properties": { "processorVersionSource": { - "description": "Required. The source processor version to import from.", + "description": "The source processor version to import from.", "type": "string" } }, @@ -6835,7 +6835,7 @@ "id": "GoogleCloudDocumentaiV1beta3OcrConfig", "properties": { "advancedOcrOptions": { - "description": "A list of advanced OCR options to further fine-tune OCR behavior.", + "description": "A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - \"legacy_layout\": a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.", "items": { "type": "string" }, @@ -7122,7 +7122,8 @@ "UNDEPLOYING", "CREATING", "DELETING", - "FAILED" + "FAILED", + "IMPORTING" ], "enumDescriptions": [ "The processor version is in an unspecified state.", @@ -7132,7 +7133,8 @@ "The processor version is being undeployed.", "The processor version is being created.", "The processor version is being deleted.", - "The processor version failed and is in an indeterminate state." + "The processor version failed and is in an indeterminate state.", + "The processor version is being imported." ], "type": "string" } diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index c7163f9a182..2da72faffc1 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -9936,8 +9936,7 @@ func (s *GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata) MarshalJSON // Service Agent for Document AI can be found in // https://cloud.google.com/iam/docs/service-agents. type GoogleCloudDocumentaiV1beta3ImportProcessorVersionRequest struct { - // ProcessorVersionSource: Required. The source processor version to - // import from. + // ProcessorVersionSource: The source processor version to import from. ProcessorVersionSource string `json:"processorVersionSource,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -10193,7 +10192,11 @@ func (s *GoogleCloudDocumentaiV1beta3NormalizedVertex) UnmarshalJSON(data []byte // GoogleCloudDocumentaiV1beta3OcrConfig: Config for Document OCR. type GoogleCloudDocumentaiV1beta3OcrConfig struct { // AdvancedOcrOptions: A list of advanced OCR options to further - // fine-tune OCR behavior. + // fine-tune OCR behavior. Current valid values are: - "legacy_layout": + // a heuristics layout detection algorithm, which serves as an + // alternative to the current ML-based layout detection algorithm. + // Customers can choose the best suitable layout algorithm based on + // their situation. AdvancedOcrOptions []string `json:"advancedOcrOptions,omitempty"` // EnableImageQualityScores: Enables intelligent document quality scores @@ -10652,6 +10655,7 @@ type GoogleCloudDocumentaiV1beta3ProcessorVersion struct { // "DELETING" - The processor version is being deleted. // "FAILED" - The processor version failed and is in an indeterminate // state. + // "IMPORTING" - The processor version is being imported. State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/domains/v1/domains-api.json b/domains/v1/domains-api.json index ab2ba6254b6..a9e1a8bcb7b 100644 --- a/domains/v1/domains-api.json +++ b/domains/v1/domains-api.json @@ -205,7 +205,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "domains.projects.locations.operations.list", @@ -843,7 +843,7 @@ } } }, - "revision": "20230123", + "revision": "20230315", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/domains/v1/domains-gen.go b/domains/v1/domains-gen.go index 316a22c63d8..49ec0636b88 100644 --- a/domains/v1/domains-gen.go +++ b/domains/v1/domains-gen.go @@ -2900,14 +2900,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -3036,7 +3029,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "domains.projects.locations.operations.list", diff --git a/domains/v1alpha2/domains-api.json b/domains/v1alpha2/domains-api.json index 04660c6b7ba..8bca7ffe29d 100644 --- a/domains/v1alpha2/domains-api.json +++ b/domains/v1alpha2/domains-api.json @@ -205,7 +205,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "domains.projects.locations.operations.list", @@ -843,7 +843,7 @@ } } }, - "revision": "20230123", + "revision": "20230315", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/domains/v1alpha2/domains-gen.go b/domains/v1alpha2/domains-gen.go index 68d11be9b9f..573085ece69 100644 --- a/domains/v1alpha2/domains-gen.go +++ b/domains/v1alpha2/domains-gen.go @@ -2900,14 +2900,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -3036,7 +3029,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "domains.projects.locations.operations.list", diff --git a/domains/v1beta1/domains-api.json b/domains/v1beta1/domains-api.json index e2f86d7eae8..ef667ffb870 100644 --- a/domains/v1beta1/domains-api.json +++ b/domains/v1beta1/domains-api.json @@ -205,7 +205,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "domains.projects.locations.operations.list", @@ -843,7 +843,7 @@ } } }, - "revision": "20230123", + "revision": "20230315", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/domains/v1beta1/domains-gen.go b/domains/v1beta1/domains-gen.go index 1d9b1c9d4bb..4b5fa7c8476 100644 --- a/domains/v1beta1/domains-gen.go +++ b/domains/v1beta1/domains-gen.go @@ -2900,14 +2900,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -3036,7 +3029,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "domains.projects.locations.operations.list", diff --git a/drivelabels/v2/drivelabels-api.json b/drivelabels/v2/drivelabels-api.json index 13d08695dbf..102234e4efd 100644 --- a/drivelabels/v2/drivelabels-api.json +++ b/drivelabels/v2/drivelabels-api.json @@ -283,6 +283,11 @@ "id": "drivelabels.labels.list", "parameterOrder": [], "parameters": { + "customer": { + "description": "The customer to scope this list request to. For example: \"customers/abcd1234\". If unset, will return all labels within the current customer.", + "location": "query", + "type": "string" + }, "languageCode": { "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.", "location": "query", @@ -872,6 +877,11 @@ "name" ], "parameters": { + "customer": { + "description": "The customer to scope this request to. For example: \"customers/abcd1234\". If unset, will return settings within the current customer.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. The resource name of the user. Only \"users/me/capabilities\" is supported.", "location": "path", @@ -888,7 +898,7 @@ } } }, - "revision": "20230228", + "revision": "20230327", "rootUrl": "https://drivelabels.googleapis.com/", "schemas": { "GoogleAppsDriveLabelsV2BadgeColors": { @@ -2138,6 +2148,11 @@ "description": "Output only. The user who created this label.", "readOnly": true }, + "customer": { + "description": "Output only. The customer this label belongs to. For example: \"customers/123abc789.\"", + "readOnly": true, + "type": "string" + }, "disableTime": { "description": "Output only. The time this label was disabled. This value has no meaning when the label is not disabled.", "format": "google-datetime", diff --git a/drivelabels/v2/drivelabels-gen.go b/drivelabels/v2/drivelabels-gen.go index 6dbdcc8106c..e78b39f919d 100644 --- a/drivelabels/v2/drivelabels-gen.go +++ b/drivelabels/v2/drivelabels-gen.go @@ -2225,6 +2225,10 @@ type GoogleAppsDriveLabelsV2Label struct { // Creator: Output only. The user who created this label. Creator *GoogleAppsDriveLabelsV2UserInfo `json:"creator,omitempty"` + // Customer: Output only. The customer this label belongs to. For + // example: "customers/123abc789." + Customer string `json:"customer,omitempty"` + // DisableTime: Output only. The time this label was disabled. This // value has no meaning when the label is not disabled. DisableTime string `json:"disableTime,omitempty"` @@ -4529,6 +4533,14 @@ func (r *LabelsService) List() *LabelsListCall { return c } +// Customer sets the optional parameter "customer": The customer to +// scope this list request to. For example: "customers/abcd1234". If +// unset, will return all labels within the current customer. +func (c *LabelsListCall) Customer(customer string) *LabelsListCall { + c.urlParams_.Set("customer", customer) + return c +} + // LanguageCode sets the optional parameter "languageCode": The BCP-47 // language code to use for evaluating localized field labels. When not // specified, values in the default configured language are used. @@ -4719,6 +4731,11 @@ func (c *LabelsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabel // "id": "drivelabels.labels.list", // "parameterOrder": [], // "parameters": { + // "customer": { + // "description": "The customer to scope this list request to. For example: \"customers/abcd1234\". If unset, will return all labels within the current customer.", + // "location": "query", + // "type": "string" + // }, // "languageCode": { // "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.", // "location": "query", @@ -7559,6 +7576,14 @@ func (r *UsersService) GetCapabilities(name string) *UsersGetCapabilitiesCall { return c } +// Customer sets the optional parameter "customer": The customer to +// scope this request to. For example: "customers/abcd1234". If unset, +// will return settings within the current customer. +func (c *UsersGetCapabilitiesCall) Customer(customer string) *UsersGetCapabilitiesCall { + c.urlParams_.Set("customer", customer) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -7667,6 +7692,11 @@ func (c *UsersGetCapabilitiesCall) Do(opts ...googleapi.CallOption) (*GoogleApps // "name" // ], // "parameters": { + // "customer": { + // "description": "The customer to scope this request to. For example: \"customers/abcd1234\". If unset, will return settings within the current customer.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. The resource name of the user. Only \"users/me/capabilities\" is supported.", // "location": "path", diff --git a/drivelabels/v2beta/drivelabels-api.json b/drivelabels/v2beta/drivelabels-api.json index e189a996abd..87f02fb1c8c 100644 --- a/drivelabels/v2beta/drivelabels-api.json +++ b/drivelabels/v2beta/drivelabels-api.json @@ -283,6 +283,11 @@ "id": "drivelabels.labels.list", "parameterOrder": [], "parameters": { + "customer": { + "description": "The customer to scope this list request to. For example: \"customers/abcd1234\". If unset, will return all labels within the current customer.", + "location": "query", + "type": "string" + }, "languageCode": { "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.", "location": "query", @@ -872,6 +877,11 @@ "name" ], "parameters": { + "customer": { + "description": "The customer to scope this request to. For example: \"customers/abcd1234\". If unset, will return settings within the current customer.", + "location": "query", + "type": "string" + }, "name": { "description": "Required. The resource name of the user. Only \"users/me/capabilities\" is supported.", "location": "path", @@ -888,7 +898,7 @@ } } }, - "revision": "20221031", + "revision": "20230327", "rootUrl": "https://drivelabels.googleapis.com/", "schemas": { "GoogleAppsDriveLabelsV2betaBadgeColors": { @@ -2138,6 +2148,11 @@ "description": "Output only. The user who created this label.", "readOnly": true }, + "customer": { + "description": "Output only. The customer this label belongs to. For example: \"customers/123abc789.\"", + "readOnly": true, + "type": "string" + }, "disableTime": { "description": "Output only. The time this label was disabled. This value has no meaning when the label is not disabled.", "format": "google-datetime", diff --git a/drivelabels/v2beta/drivelabels-gen.go b/drivelabels/v2beta/drivelabels-gen.go index d51eb9661b2..75094ee11f2 100644 --- a/drivelabels/v2beta/drivelabels-gen.go +++ b/drivelabels/v2beta/drivelabels-gen.go @@ -2227,6 +2227,10 @@ type GoogleAppsDriveLabelsV2betaLabel struct { // Creator: Output only. The user who created this label. Creator *GoogleAppsDriveLabelsV2betaUserInfo `json:"creator,omitempty"` + // Customer: Output only. The customer this label belongs to. For + // example: "customers/123abc789." + Customer string `json:"customer,omitempty"` + // DisableTime: Output only. The time this label was disabled. This // value has no meaning when the label is not disabled. DisableTime string `json:"disableTime,omitempty"` @@ -4531,6 +4535,14 @@ func (r *LabelsService) List() *LabelsListCall { return c } +// Customer sets the optional parameter "customer": The customer to +// scope this list request to. For example: "customers/abcd1234". If +// unset, will return all labels within the current customer. +func (c *LabelsListCall) Customer(customer string) *LabelsListCall { + c.urlParams_.Set("customer", customer) + return c +} + // LanguageCode sets the optional parameter "languageCode": The BCP-47 // language code to use for evaluating localized field labels. When not // specified, values in the default configured language are used. @@ -4721,6 +4733,11 @@ func (c *LabelsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabel // "id": "drivelabels.labels.list", // "parameterOrder": [], // "parameters": { + // "customer": { + // "description": "The customer to scope this list request to. For example: \"customers/abcd1234\". If unset, will return all labels within the current customer.", + // "location": "query", + // "type": "string" + // }, // "languageCode": { // "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.", // "location": "query", @@ -7567,6 +7584,14 @@ func (r *UsersService) GetCapabilities(name string) *UsersGetCapabilitiesCall { return c } +// Customer sets the optional parameter "customer": The customer to +// scope this request to. For example: "customers/abcd1234". If unset, +// will return settings within the current customer. +func (c *UsersGetCapabilitiesCall) Customer(customer string) *UsersGetCapabilitiesCall { + c.urlParams_.Set("customer", customer) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -7676,6 +7701,11 @@ func (c *UsersGetCapabilitiesCall) Do(opts ...googleapi.CallOption) (*GoogleApps // "name" // ], // "parameters": { + // "customer": { + // "description": "The customer to scope this request to. For example: \"customers/abcd1234\". If unset, will return settings within the current customer.", + // "location": "query", + // "type": "string" + // }, // "name": { // "description": "Required. The resource name of the user. Only \"users/me/capabilities\" is supported.", // "location": "path", diff --git a/eventarc/v1/eventarc-api.json b/eventarc/v1/eventarc-api.json index 73eb604faeb..e8a1e857883 100644 --- a/eventarc/v1/eventarc-api.json +++ b/eventarc/v1/eventarc-api.json @@ -1197,7 +1197,7 @@ } } }, - "revision": "20230307", + "revision": "20230321", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { @@ -2057,6 +2057,10 @@ "readOnly": true, "type": "string" }, + "eventDataContentType": { + "description": "Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This will be set to `application/json` if the value is not defined.", + "type": "string" + }, "eventFilters": { "description": "Required. Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.", "items": { diff --git a/eventarc/v1/eventarc-gen.go b/eventarc/v1/eventarc-gen.go index c29f00517a1..8311700bd05 100644 --- a/eventarc/v1/eventarc-gen.go +++ b/eventarc/v1/eventarc-gen.go @@ -1850,6 +1850,12 @@ type Trigger struct { // to ensure that the client has an up-to-date value before proceeding. Etag string `json:"etag,omitempty"` + // EventDataContentType: Optional. EventDataContentType specifies the + // type of payload in MIME format that is expected from the CloudEvent + // data field. This will be set to `application/json` if the value is + // not defined. + EventDataContentType string `json:"eventDataContentType,omitempty"` + // EventFilters: Required. Unordered list. The list of filters that // applies to event attributes. Only events that match all the provided // filters are sent to the destination. diff --git a/firebaseappdistribution/v1/firebaseappdistribution-api.json b/firebaseappdistribution/v1/firebaseappdistribution-api.json new file mode 100644 index 00000000000..38506229478 --- /dev/null +++ b/firebaseappdistribution/v1/firebaseappdistribution-api.json @@ -0,0 +1,1947 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://firebaseappdistribution.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Firebase App Distribution", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://firebase.google.com/products/app-distribution", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "firebaseappdistribution:v1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://firebaseappdistribution.mtls.googleapis.com/", + "name": "firebaseappdistribution", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "media": { + "methods": { + "upload": { + "description": "Uploads a binary. Uploading a binary can result in a new release being created, an update to an existing release, or a no-op if a release with the same binary already exists.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases:upload", + "httpMethod": "POST", + "id": "firebaseappdistribution.media.upload", + "mediaUpload": { + "accept": [ + "*/*" + ], + "protocols": { + "simple": { + "multipart": true, + "path": "/upload/v1/{+app}/releases:upload" + } + } + }, + "parameterOrder": [ + "app" + ], + "parameters": { + "app": { + "description": "The name of the app resource. Format: `projects/{project_number}/apps/{app_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+app}/releases:upload", + "request": { + "$ref": "GoogleFirebaseAppdistroV1UploadReleaseRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ], + "supportsMediaUpload": true + } + } + }, + "projects": { + "resources": { + "apps": { + "methods": { + "getAabInfo": { + "description": "Gets Android App Bundle (AAB) information for a Firebase app.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/aabInfo", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.apps.getAabInfo", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the `AabInfo` resource to retrieve. Format: `projects/{project_number}/apps/{app_id}/aabInfo`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/aabInfo$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleFirebaseAppdistroV1AabInfo" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "releases": { + "methods": { + "batchDelete": { + "description": "Deletes releases. A maximum of 100 releases can be deleted per request.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases:batchDelete", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.apps.releases.batchDelete", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the app resource, which is the parent of the release resources. Format: `projects/{project_number}/apps/{app_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/releases:batchDelete", + "request": { + "$ref": "GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "distribute": { + "description": "Distributes a release to testers. This call does the following: 1. Creates testers for the specified emails, if none exist. 2. Adds the testers and groups to the release. 3. Sends new testers an invitation email. 4. Sends existing testers a new release email. The request will fail with a `INVALID_ARGUMENT` if it contains a group that doesn't exist.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}:distribute", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.apps.releases.distribute", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the release resource to distribute. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:distribute", + "request": { + "$ref": "GoogleFirebaseAppdistroV1DistributeReleaseRequest" + }, + "response": { + "$ref": "GoogleFirebaseAppdistroV1DistributeReleaseResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a release.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.apps.releases.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the release resource to retrieve. Format: projects/{project_number}/apps/{app_id}/releases/{release_id}", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleFirebaseAppdistroV1Release" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists releases. By default, sorts by `createTime` in descending order.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.apps.releases.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "The expression to filter releases listed in the response. To learn more about filtering, refer to [Google's AIP-160 standard](http://aip.dev/160). Supported fields: - `releaseNotes.text` supports `=` (can contain a wildcard character (`*`) at the beginning or end of the string) - `createTime` supports `\u003c`, `\u003c=`, `\u003e` and `\u003e=`, and expects an RFC-3339 formatted string Examples: - `createTime \u003c= \"2021-09-08T00:00:00+04:00\"` - `releaseNotes.text=\"fixes\" AND createTime \u003e= \"2021-09-08T00:00:00.0Z\"` - `releaseNotes.text=\"*v1.0.0-rc*\"`", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "The fields used to order releases. Supported fields: - `createTime` To specify descending order for a field, append a \"desc\" suffix, for example, `createTime desc`. If this parameter is not set, releases are ordered by `createTime` in descending order.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of releases to return. The service may return fewer than this value. The valid range is [1-100]; If unspecified (0), at most 25 releases are returned. Values above 100 are coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListReleases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleases` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the app resource, which is the parent of the release resources. Format: `projects/{project_number}/apps/{app_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/releases", + "response": { + "$ref": "GoogleFirebaseAppdistroV1ListReleasesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a release.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}", + "httpMethod": "PATCH", + "id": "firebaseappdistribution.projects.apps.releases.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the release resource. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleFirebaseAppdistroV1Release" + }, + "response": { + "$ref": "GoogleFirebaseAppdistroV1Release" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "feedbackReports": { + "methods": { + "delete": { + "description": "Deletes a feedback report.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/feedbackReports/{feedbackReportsId}", + "httpMethod": "DELETE", + "id": "firebaseappdistribution.projects.apps.releases.feedbackReports.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the feedback report to delete. Format: projects/{project_number}/apps/{app}/releases/{release}/feedbackReports/{feedback_report}", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/feedbackReports/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a feedback report.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/feedbackReports/{feedbackReportsId}", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.apps.releases.feedbackReports.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the feedback report to retrieve. Format: projects/{project_number}/apps/{app}/releases/{release}/feedbackReports/{feedback_report}", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/feedbackReports/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleFirebaseAppdistroV1FeedbackReport" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists feedback reports. By default, sorts by `createTime` in descending order.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/feedbackReports", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.apps.releases.feedbackReports.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "The expression to filter feedback reports listed in the response. To learn more about filtering, refer to [Google's AIP-160 standard](http://aip.dev/160). Supported fields: - `tester` - `createTime` supports `\u003c`, `\u003c=`, `\u003e` and `\u003e=`, and expects an RFC-3339 formatted string Example: - `createTime \u003c= \"2023-03-10T00:00:00+04:00\"` - `tester = \"projects/-/testers/*@example.com\"`", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "The fields used to order releases. Supported fields: - `createTime` - `tester` To specify descending order for a field, append a \"desc\" suffix, for example, `createTime desc`. If this parameter is not set, releases are ordered by `createTime` in descending order.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of feedback reports to return. The service may return fewer than this value. The valid range is [1-100]; If unspecified (0), at most 25 feedback reports are returned. Values above 100 are coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListFeedbackReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFeedbackReports` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the release resource, which is the parent of the feedback report resources. Format: `projects/{project_number}/apps/{app}/releases/{release}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/feedbackReports", + "response": { + "$ref": "GoogleFirebaseAppdistroV1ListFeedbackReportsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.apps.releases.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "GoogleLongrunningCancelOperationRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "firebaseappdistribution.projects.apps.releases.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.apps.releases.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/operations", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.apps.releases.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.apps.releases.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "request": { + "$ref": "GoogleLongrunningWaitOperationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, + "groups": { + "methods": { + "batchJoin": { + "description": "Batch adds members to a group. The testers will gain access to all releases that the groups have access to.", + "flatPath": "v1/projects/{projectsId}/groups/{groupsId}:batchJoin", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.groups.batchJoin", + "parameterOrder": [ + "group" + ], + "parameters": { + "group": { + "description": "Required. The name of the group resource to which testers are added. Format: `projects/{project_number}/groups/{group_alias}`", + "location": "path", + "pattern": "^projects/[^/]+/groups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+group}:batchJoin", + "request": { + "$ref": "GoogleFirebaseAppdistroV1BatchJoinGroupRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "batchLeave": { + "description": "Batch removed members from a group. The testers will lose access to all releases that the groups have access to.", + "flatPath": "v1/projects/{projectsId}/groups/{groupsId}:batchLeave", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.groups.batchLeave", + "parameterOrder": [ + "group" + ], + "parameters": { + "group": { + "description": "Required. The name of the group resource from which testers are removed. Format: `projects/{project_number}/groups/{group_alias}`", + "location": "path", + "pattern": "^projects/[^/]+/groups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+group}:batchLeave", + "request": { + "$ref": "GoogleFirebaseAppdistroV1BatchLeaveGroupRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Create a group.", + "flatPath": "v1/projects/{projectsId}/groups", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.groups.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "groupId": { + "description": "Optional. The \"alias\" to use for the group, which will become the final component of the group's resource name. This value must be unique per project. The field is named `groupId` to comply with AIP guidance for user-specified IDs. This value should be 4-63 characters, and valid characters are `/a-z-/`. If not set, it will be generated based on the display name.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the project resource, which is the parent of the group resource. Format: `projects/{project_number}`", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/groups", + "request": { + "$ref": "GoogleFirebaseAppdistroV1Group" + }, + "response": { + "$ref": "GoogleFirebaseAppdistroV1Group" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a group.", + "flatPath": "v1/projects/{projectsId}/groups/{groupsId}", + "httpMethod": "DELETE", + "id": "firebaseappdistribution.projects.groups.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the group resource. Format: `projects/{project_number}/groups/{group_alias}`", + "location": "path", + "pattern": "^projects/[^/]+/groups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a group.", + "flatPath": "v1/projects/{projectsId}/groups/{groupsId}", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.groups.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the group resource to retrieve. Format: `projects/{project_number}/groups/{group_alias}`", + "location": "path", + "pattern": "^projects/[^/]+/groups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleFirebaseAppdistroV1Group" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List groups.", + "flatPath": "v1/projects/{projectsId}/groups", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.groups.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of groups to return. The service may return fewer than this value. The valid range is [1-100]; If unspecified (0), at most 25 groups are returned. Values above 100 are coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListGroups` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the project resource, which is the parent of the group resources. Format: `projects/{project_number}`", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/groups", + "response": { + "$ref": "GoogleFirebaseAppdistroV1ListGroupsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a group.", + "flatPath": "v1/projects/{projectsId}/groups/{groupsId}", + "httpMethod": "PATCH", + "id": "firebaseappdistribution.projects.groups.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the group resource. Format: `projects/{project_number}/groups/{group_alias}`", + "location": "path", + "pattern": "^projects/[^/]+/groups/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleFirebaseAppdistroV1Group" + }, + "response": { + "$ref": "GoogleFirebaseAppdistroV1Group" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "testers": { + "methods": { + "batchAdd": { + "description": "Batch adds testers. This call adds testers for the specified emails if they don't already exist. Returns all testers specified in the request, including newly created and previously existing testers. This action is idempotent.", + "flatPath": "v1/projects/{projectsId}/testers:batchAdd", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.testers.batchAdd", + "parameterOrder": [ + "project" + ], + "parameters": { + "project": { + "description": "Required. The name of the project resource. Format: `projects/{project_number}`", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+project}/testers:batchAdd", + "request": { + "$ref": "GoogleFirebaseAppdistroV1BatchAddTestersRequest" + }, + "response": { + "$ref": "GoogleFirebaseAppdistroV1BatchAddTestersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "batchRemove": { + "description": "Batch removes testers. If found, this call deletes testers for the specified emails. Returns all deleted testers.", + "flatPath": "v1/projects/{projectsId}/testers:batchRemove", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.testers.batchRemove", + "parameterOrder": [ + "project" + ], + "parameters": { + "project": { + "description": "Required. The name of the project resource. Format: `projects/{project_number}`", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+project}/testers:batchRemove", + "request": { + "$ref": "GoogleFirebaseAppdistroV1BatchRemoveTestersRequest" + }, + "response": { + "$ref": "GoogleFirebaseAppdistroV1BatchRemoveTestersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists testers and their resource ids.", + "flatPath": "v1/projects/{projectsId}/testers", + "httpMethod": "GET", + "id": "firebaseappdistribution.projects.testers.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The expression to filter testers listed in the response. To learn more about filtering, refer to [Google's AIP-160 standard](http://aip.dev/160). Supported fields: - `name` - `displayName` - `groups` Example: - `name = \"projects/-/testers/*@example.com\"` - `displayName = \"Joe Sixpack\"` - `groups = \"projects/*/groups/qa-team\"`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of testers to return. The service may return fewer than this value. The valid range is [1-1000]; If unspecified (0), at most 10 testers are returned. Values above 1000 are coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListTesters` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTesters` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the project resource, which is the parent of the tester resources. Format: `projects/{project_number}`", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/testers", + "response": { + "$ref": "GoogleFirebaseAppdistroV1ListTestersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a tester. If the testers joins a group they gain access to all releases that the group has access to.", + "flatPath": "v1/projects/{projectsId}/testers/{testersId}", + "httpMethod": "PATCH", + "id": "firebaseappdistribution.projects.testers.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the tester resource. Format: `projects/{project_number}/testers/{email_address}`", + "location": "path", + "pattern": "^projects/[^/]+/testers/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleFirebaseAppdistroV1Tester" + }, + "response": { + "$ref": "GoogleFirebaseAppdistroV1Tester" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + }, + "revision": "20230330", + "rootUrl": "https://firebaseappdistribution.googleapis.com/", + "schemas": { + "GdataBlobstore2Info": { + "description": "Information to read/write to blobstore2.", + "id": "GdataBlobstore2Info", + "properties": { + "blobGeneration": { + "description": "The blob generation id.", + "format": "int64", + "type": "string" + }, + "blobId": { + "description": "The blob id, e.g., /blobstore/prod/playground/scotty", + "type": "string" + }, + "downloadReadHandle": { + "description": "Read handle passed from Bigstore -\u003e Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.", + "format": "byte", + "type": "string" + }, + "readToken": { + "description": "The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.", + "type": "string" + }, + "uploadMetadataContainer": { + "description": "Metadata passed from Blobstore -\u003e Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, + "GdataCompositeMedia": { + "description": "A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.", + "id": "GdataCompositeMedia", + "properties": { + "blobRef": { + "description": "Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.", + "format": "byte", + "type": "string" + }, + "blobstore2Info": { + "$ref": "GdataBlobstore2Info", + "description": "Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob." + }, + "cosmoBinaryReference": { + "description": "A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.", + "format": "byte", + "type": "string" + }, + "crc32cHash": { + "description": "crc32.c hash for the payload.", + "format": "uint32", + "type": "integer" + }, + "inline": { + "description": "Media data, set if reference_type is INLINE", + "format": "byte", + "type": "string" + }, + "length": { + "description": "Size of the data, in bytes", + "format": "int64", + "type": "string" + }, + "md5Hash": { + "description": "MD5 hash for the payload.", + "format": "byte", + "type": "string" + }, + "objectId": { + "$ref": "GdataObjectId", + "description": "Reference to a TI Blob, set if reference_type is BIGSTORE_REF." + }, + "path": { + "description": "Path to the data, set if reference_type is PATH", + "type": "string" + }, + "referenceType": { + "description": "Describes what the field reference contains.", + "enum": [ + "PATH", + "BLOB_REF", + "INLINE", + "BIGSTORE_REF", + "COSMO_BINARY_REFERENCE" + ], + "enumDescriptions": [ + "Reference contains a GFS path or a local path.", + "Reference points to a blobstore object. This could be either a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info first, since v1 is being deprecated.", + "Data is included into this proto buffer", + "Reference points to a bigstore object", + "Indicates the data is stored in cosmo_binary_reference." + ], + "type": "string" + }, + "sha1Hash": { + "description": "SHA-1 hash for the payload.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, + "GdataContentTypeInfo": { + "description": "Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty.", + "id": "GdataContentTypeInfo", + "properties": { + "bestGuess": { + "description": "Scotty's best guess of what the content type of the file is.", + "type": "string" + }, + "fromBytes": { + "description": "The content type of the file derived by looking at specific bytes (i.e. \"magic bytes\") of the actual file.", + "type": "string" + }, + "fromFileName": { + "description": "The content type of the file derived from the file extension of the original file name used by the client.", + "type": "string" + }, + "fromHeader": { + "description": "The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.", + "type": "string" + }, + "fromUrlPath": { + "description": "The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API).", + "type": "string" + } + }, + "type": "object" + }, + "GdataDiffChecksumsResponse": { + "description": "Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.", + "id": "GdataDiffChecksumsResponse", + "properties": { + "checksumsLocation": { + "$ref": "GdataCompositeMedia", + "description": "Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol." + }, + "chunkSizeBytes": { + "description": "The chunk size of checksums. Must be a multiple of 256KB.", + "format": "int64", + "type": "string" + }, + "objectLocation": { + "$ref": "GdataCompositeMedia", + "description": "If set, calculate the checksums based on the contents and return them to the caller." + }, + "objectSizeBytes": { + "description": "The total size of the server object.", + "format": "int64", + "type": "string" + }, + "objectVersion": { + "description": "The object version of the object the checksums are being returned for.", + "type": "string" + } + }, + "type": "object" + }, + "GdataDiffDownloadResponse": { + "description": "Backend response for a Diff download response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.", + "id": "GdataDiffDownloadResponse", + "properties": { + "objectLocation": { + "$ref": "GdataCompositeMedia", + "description": "The original object location." + } + }, + "type": "object" + }, + "GdataDiffUploadRequest": { + "description": "A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.", + "id": "GdataDiffUploadRequest", + "properties": { + "checksumsInfo": { + "$ref": "GdataCompositeMedia", + "description": "The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol." + }, + "objectInfo": { + "$ref": "GdataCompositeMedia", + "description": "The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received." + }, + "objectVersion": { + "description": "The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in.", + "type": "string" + } + }, + "type": "object" + }, + "GdataDiffUploadResponse": { + "description": "Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.", + "id": "GdataDiffUploadResponse", + "properties": { + "objectVersion": { + "description": "The object version of the object at the server. Must be included in the end notification response. The version in the end notification response must correspond to the new version of the object that is now stored at the server, after the upload.", + "type": "string" + }, + "originalObject": { + "$ref": "GdataCompositeMedia", + "description": "The location of the original file for a diff upload request. Must be filled in if responding to an upload start notification." + } + }, + "type": "object" + }, + "GdataDiffVersionResponse": { + "description": "Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.", + "id": "GdataDiffVersionResponse", + "properties": { + "objectSizeBytes": { + "description": "The total size of the server object.", + "format": "int64", + "type": "string" + }, + "objectVersion": { + "description": "The version of the object stored at the server.", + "type": "string" + } + }, + "type": "object" + }, + "GdataDownloadParameters": { + "description": "Parameters specific to media downloads.", + "id": "GdataDownloadParameters", + "properties": { + "allowGzipCompression": { + "description": "A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it's advantageous (hence, does not guarantee compression) which allows Scotty to GZip the response to the client.", + "type": "boolean" + }, + "ignoreRange": { + "description": "Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty.", + "type": "boolean" + } + }, + "type": "object" + }, + "GdataMedia": { + "description": "A reference to data stored on the filesystem, on GFS or in blobstore.", + "id": "GdataMedia", + "properties": { + "algorithm": { + "description": "Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, \"MD5\" is the only possible value for this field. New values may be added at any time.", + "type": "string" + }, + "bigstoreObjectRef": { + "description": "Use object_id instead.", + "format": "byte", + "type": "string" + }, + "blobRef": { + "description": "Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.", + "format": "byte", + "type": "string" + }, + "blobstore2Info": { + "$ref": "GdataBlobstore2Info", + "description": "Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob." + }, + "compositeMedia": { + "description": "A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified.", + "items": { + "$ref": "GdataCompositeMedia" + }, + "type": "array" + }, + "contentType": { + "description": "MIME type of the data", + "type": "string" + }, + "contentTypeInfo": { + "$ref": "GdataContentTypeInfo", + "description": "Extended content type information provided for Scotty uploads." + }, + "cosmoBinaryReference": { + "description": "A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.", + "format": "byte", + "type": "string" + }, + "crc32cHash": { + "description": "For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported.", + "format": "uint32", + "type": "integer" + }, + "diffChecksumsResponse": { + "$ref": "GdataDiffChecksumsResponse", + "description": "Set if reference_type is DIFF_CHECKSUMS_RESPONSE." + }, + "diffDownloadResponse": { + "$ref": "GdataDiffDownloadResponse", + "description": "Set if reference_type is DIFF_DOWNLOAD_RESPONSE." + }, + "diffUploadRequest": { + "$ref": "GdataDiffUploadRequest", + "description": "Set if reference_type is DIFF_UPLOAD_REQUEST." + }, + "diffUploadResponse": { + "$ref": "GdataDiffUploadResponse", + "description": "Set if reference_type is DIFF_UPLOAD_RESPONSE." + }, + "diffVersionResponse": { + "$ref": "GdataDiffVersionResponse", + "description": "Set if reference_type is DIFF_VERSION_RESPONSE." + }, + "downloadParameters": { + "$ref": "GdataDownloadParameters", + "description": "Parameters for a media download." + }, + "filename": { + "description": "Original file name", + "type": "string" + }, + "hash": { + "description": "Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/uploader/service/proto/upload_listener.proto\u0026q=class:Hash Hex encoded hash value of the uploaded media.", + "type": "string" + }, + "hashVerified": { + "description": "For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don't match. This is set to true if Scotty performed this verification.", + "type": "boolean" + }, + "inline": { + "description": "Media data, set if reference_type is INLINE", + "format": "byte", + "type": "string" + }, + "isPotentialRetry": { + "description": "|is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence.", + "type": "boolean" + }, + "length": { + "description": "Size of the data, in bytes", + "format": "int64", + "type": "string" + }, + "md5Hash": { + "description": "Scotty-provided MD5 hash for an upload.", + "format": "byte", + "type": "string" + }, + "mediaId": { + "description": "Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.", + "format": "byte", + "type": "string" + }, + "objectId": { + "$ref": "GdataObjectId", + "description": "Reference to a TI Blob, set if reference_type is BIGSTORE_REF." + }, + "path": { + "description": "Path to the data, set if reference_type is PATH", + "type": "string" + }, + "referenceType": { + "description": "Describes what the field reference contains.", + "enum": [ + "PATH", + "BLOB_REF", + "INLINE", + "GET_MEDIA", + "COMPOSITE_MEDIA", + "BIGSTORE_REF", + "DIFF_VERSION_RESPONSE", + "DIFF_CHECKSUMS_RESPONSE", + "DIFF_DOWNLOAD_RESPONSE", + "DIFF_UPLOAD_REQUEST", + "DIFF_UPLOAD_RESPONSE", + "COSMO_BINARY_REFERENCE", + "ARBITRARY_BYTES" + ], + "enumDescriptions": [ + "Reference contains a GFS path or a local path.", + "Reference points to a blobstore object. This could be either a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info first, since v1 is being deprecated.", + "Data is included into this proto buffer", + "Data should be accessed from the current service using the operation GetMedia.", + "The content for this media object is stored across multiple partial media objects under the composite_media field.", + "Reference points to a bigstore object", + "Indicates the data is stored in diff_version_response.", + "Indicates the data is stored in diff_checksums_response.", + "Indicates the data is stored in diff_download_response.", + "Indicates the data is stored in diff_upload_request.", + "Indicates the data is stored in diff_upload_response.", + "Indicates the data is stored in cosmo_binary_reference.", + "Informs Scotty to generate a response payload with the size specified in the length field. The contents of the payload are generated by Scotty and are undefined. This is useful for testing download speeds between the user and Scotty without involving a real payload source. Note: range is not supported when using arbitrary_bytes." + ], + "type": "string" + }, + "sha1Hash": { + "description": "Scotty-provided SHA1 hash for an upload.", + "format": "byte", + "type": "string" + }, + "sha256Hash": { + "description": "Scotty-provided SHA256 hash for an upload.", + "format": "byte", + "type": "string" + }, + "timestamp": { + "description": "Time at which the media data was last updated, in milliseconds since UNIX epoch", + "format": "uint64", + "type": "string" + }, + "token": { + "description": "A unique fingerprint/version id for the media data", + "type": "string" + } + }, + "type": "object" + }, + "GdataObjectId": { + "description": "This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763.", + "id": "GdataObjectId", + "properties": { + "bucketName": { + "description": "The name of the bucket to which this object belongs.", + "type": "string" + }, + "generation": { + "description": "Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions", + "format": "int64", + "type": "string" + }, + "objectName": { + "description": "The name of the object.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1AabInfo": { + "description": "Android App Bundle (AAB) information for a Firebase app.", + "id": "GoogleFirebaseAppdistroV1AabInfo", + "properties": { + "integrationState": { + "description": "App bundle integration state. Only valid for android apps.", + "enum": [ + "AAB_INTEGRATION_STATE_UNSPECIFIED", + "INTEGRATED", + "PLAY_ACCOUNT_NOT_LINKED", + "NO_APP_WITH_GIVEN_BUNDLE_ID_IN_PLAY_ACCOUNT", + "APP_NOT_PUBLISHED", + "AAB_STATE_UNAVAILABLE", + "PLAY_IAS_TERMS_NOT_ACCEPTED" + ], + "enumDescriptions": [ + "Aab integration state unspecified", + "App can receive app bundle uploads", + "Firebase project is not linked to a Play developer account", + "There is no app in linked Play developer account with the same bundle id", + "The app in Play developer account is not in a published state", + "Play App status is unavailable", + "Play IAS terms not accepted" + ], + "type": "string" + }, + "name": { + "description": "The name of the `AabInfo` resource. Format: `projects/{project_number}/apps/{app}/aabInfo`", + "type": "string" + }, + "testCertificate": { + "$ref": "GoogleFirebaseAppdistroV1TestCertificate", + "description": "App bundle test certificate generated for the app. Set after the first app bundle is uploaded for this app." + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1BatchAddTestersRequest": { + "description": "The Request message for batch adding testers", + "id": "GoogleFirebaseAppdistroV1BatchAddTestersRequest", + "properties": { + "emails": { + "description": "Required. The email addresses of the tester resources to create. A maximum of 999 and a minimum of 1 tester can be created in a batch.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1BatchAddTestersResponse": { + "description": "The Response message for `BatchAddTesters`.", + "id": "GoogleFirebaseAppdistroV1BatchAddTestersResponse", + "properties": { + "testers": { + "description": "The testers which are created and/or already exist", + "items": { + "$ref": "GoogleFirebaseAppdistroV1Tester" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest": { + "description": "The request message for `BatchDeleteReleases`.", + "id": "GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest", + "properties": { + "names": { + "description": "Required. The names of the release resources to delete. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}` A maximum of 100 releases can be deleted per request.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1BatchJoinGroupRequest": { + "description": "The request message for `BatchJoinGroup`", + "id": "GoogleFirebaseAppdistroV1BatchJoinGroupRequest", + "properties": { + "createMissingTesters": { + "description": "Indicates whether to create tester resources based on `emails` if they don't exist yet.", + "type": "boolean" + }, + "emails": { + "description": "Required. The emails of the testers to be added to the group. A maximum of 999 and a minimum of 1 tester can be created in a batch.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1BatchLeaveGroupRequest": { + "description": "Request message for `BatchLeaveGroup`", + "id": "GoogleFirebaseAppdistroV1BatchLeaveGroupRequest", + "properties": { + "emails": { + "description": "Required. The email addresses of the testers to be removed from the group. A maximum of 999 and a minimum of 1 testers can be removed in a batch.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1BatchRemoveTestersRequest": { + "description": "The request message for `BatchRemoveTesters`.", + "id": "GoogleFirebaseAppdistroV1BatchRemoveTestersRequest", + "properties": { + "emails": { + "description": "Required. The email addresses of the tester resources to removed. A maximum of 999 and a minimum of 1 testers can be deleted in a batch.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1BatchRemoveTestersResponse": { + "description": "The response message for `BatchRemoveTesters`", + "id": "GoogleFirebaseAppdistroV1BatchRemoveTestersResponse", + "properties": { + "emails": { + "description": "List of deleted tester emails", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1DistributeReleaseRequest": { + "description": "The request message for `DistributeRelease`.", + "id": "GoogleFirebaseAppdistroV1DistributeReleaseRequest", + "properties": { + "groupAliases": { + "description": "A list of group aliases (IDs) to be given access to this release. A combined maximum of 999 `testerEmails` and `groupAliases` can be specified in a single request.", + "items": { + "type": "string" + }, + "type": "array" + }, + "testerEmails": { + "description": "A list of tester email addresses to be given access to this release. A combined maximum of 999 `testerEmails` and `groupAliases` can be specified in a single request.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1DistributeReleaseResponse": { + "description": "The response message for `DistributeRelease`.", + "id": "GoogleFirebaseAppdistroV1DistributeReleaseResponse", + "properties": {}, + "type": "object" + }, + "GoogleFirebaseAppdistroV1FeedbackReport": { + "description": "A feedback report submitted by a tester for a release.", + "id": "GoogleFirebaseAppdistroV1FeedbackReport", + "properties": { + "createTime": { + "description": "Output only. The time when the feedback report was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "firebaseConsoleUri": { + "description": "Output only. A link to the Firebase console displaying the feedback report.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "The name of the feedback report resource. Format: `projects/{project_number}/apps/{app}/releases/{release}/feedbackReports/{feedback_report}`", + "type": "string" + }, + "screenshotUri": { + "description": "Output only. A signed link (which expires in one hour) that lets you directly download the screenshot.", + "readOnly": true, + "type": "string" + }, + "tester": { + "description": "Output only. The resource name of the tester who submitted the feedback report.", + "readOnly": true, + "type": "string" + }, + "text": { + "description": "Output only. The text of the feedback report.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1Group": { + "description": "A group which can contain testers. A group can be invited to test apps in a Firebase project.", + "id": "GoogleFirebaseAppdistroV1Group", + "properties": { + "displayName": { + "description": "Required. The display name of the group.", + "type": "string" + }, + "inviteLinkCount": { + "description": "Output only. The number of invite links for this group.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "name": { + "description": "The name of the group resource. Format: `projects/{project_number}/groups/{group_alias}`", + "type": "string" + }, + "releaseCount": { + "description": "Output only. The number of releases this group is permitted to access.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "testerCount": { + "description": "Output only. The number of testers who are members of this group.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1ListFeedbackReportsResponse": { + "description": "The response message for `ListFeedbackReports`.", + "id": "GoogleFirebaseAppdistroV1ListFeedbackReportsResponse", + "properties": { + "feedbackReports": { + "description": "The feedback reports", + "items": { + "$ref": "GoogleFirebaseAppdistroV1FeedbackReport" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A short-lived token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1ListGroupsResponse": { + "description": "The response message for `ListGroups`.", + "id": "GoogleFirebaseAppdistroV1ListGroupsResponse", + "properties": { + "groups": { + "description": "The groups listed.", + "items": { + "$ref": "GoogleFirebaseAppdistroV1Group" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A short-lived token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1ListReleasesResponse": { + "description": "The response message for `ListReleases`.", + "id": "GoogleFirebaseAppdistroV1ListReleasesResponse", + "properties": { + "nextPageToken": { + "description": "A short-lived token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "releases": { + "description": "The releases", + "items": { + "$ref": "GoogleFirebaseAppdistroV1Release" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1ListTestersResponse": { + "description": "The response message for `ListTesters`.", + "id": "GoogleFirebaseAppdistroV1ListTestersResponse", + "properties": { + "nextPageToken": { + "description": "A short-lived token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "testers": { + "description": "The testers listed.", + "items": { + "$ref": "GoogleFirebaseAppdistroV1Tester" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1Release": { + "description": "A release of a Firebase app.", + "id": "GoogleFirebaseAppdistroV1Release", + "properties": { + "binaryDownloadUri": { + "description": "Output only. A signed link (which expires in one hour) to directly download the app binary (IPA/APK/AAB) file.", + "readOnly": true, + "type": "string" + }, + "buildVersion": { + "description": "Output only. Build version of the release. For an Android release, the build version is the `versionCode`. For an iOS release, the build version is the `CFBundleVersion`.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the release was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayVersion": { + "description": "Output only. Display version of the release. For an Android release, the display version is the `versionName`. For an iOS release, the display version is the `CFBundleShortVersionString`.", + "readOnly": true, + "type": "string" + }, + "firebaseConsoleUri": { + "description": "Output only. A link to the Firebase console displaying a single release.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "The name of the release resource. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}`", + "type": "string" + }, + "releaseNotes": { + "$ref": "GoogleFirebaseAppdistroV1ReleaseNotes", + "description": "Notes of the release." + }, + "testingUri": { + "description": "Output only. A link to the release in the tester web clip or Android app that lets testers (which were granted access to the app) view release notes and install the app onto their devices.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1ReleaseNotes": { + "description": "Notes that belong to a release.", + "id": "GoogleFirebaseAppdistroV1ReleaseNotes", + "properties": { + "text": { + "description": "The text of the release notes.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1TestCertificate": { + "description": "App bundle test certificate", + "id": "GoogleFirebaseAppdistroV1TestCertificate", + "properties": { + "hashMd5": { + "description": "Hex string of MD5 hash of the test certificate used to resign the AAB", + "type": "string" + }, + "hashSha1": { + "description": "Hex string of SHA1 hash of the test certificate used to resign the AAB", + "type": "string" + }, + "hashSha256": { + "description": "Hex string of SHA256 hash of the test certificate used to resign the AAB", + "type": "string" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1Tester": { + "description": "A person that can be invited to test apps in a Firebase project.", + "id": "GoogleFirebaseAppdistroV1Tester", + "properties": { + "displayName": { + "description": "The name of the tester associated with the Google account used to accept the tester invitation.", + "type": "string" + }, + "groups": { + "description": "The resource names of the groups this tester belongs to.", + "items": { + "type": "string" + }, + "type": "array" + }, + "lastActivityTime": { + "description": "Output only. The time the tester was last active. This is the most recent time the tester installed one of the apps. If they've never installed one or if the release no longer exists, this is the time the tester was added to the project.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "The name of the tester resource. Format: `projects/{project_number}/testers/{email_address}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1UploadReleaseMetadata": { + "description": "Operation metadata for `UploadRelease`.", + "id": "GoogleFirebaseAppdistroV1UploadReleaseMetadata", + "properties": {}, + "type": "object" + }, + "GoogleFirebaseAppdistroV1UploadReleaseRequest": { + "description": "Request message for `UploadRelease`.", + "id": "GoogleFirebaseAppdistroV1UploadReleaseRequest", + "properties": { + "blob": { + "$ref": "GdataMedia", + "description": "Binary to upload" + } + }, + "type": "object" + }, + "GoogleFirebaseAppdistroV1UploadReleaseResponse": { + "description": "Response message for `UploadRelease`.", + "id": "GoogleFirebaseAppdistroV1UploadReleaseResponse", + "properties": { + "release": { + "$ref": "GoogleFirebaseAppdistroV1Release", + "description": "Release associated with the uploaded binary." + }, + "result": { + "description": "Result of upload release.", + "enum": [ + "UPLOAD_RELEASE_RESULT_UNSPECIFIED", + "RELEASE_CREATED", + "RELEASE_UPDATED", + "RELEASE_UNMODIFIED" + ], + "enumDescriptions": [ + "Upload binary result unspecified", + "Upload binary resulted in a new release", + "Upload binary updated an existing release", + "Upload binary resulted in a no-op. A release with the exact same binary already exists." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleLongrunningCancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "GoogleLongrunningCancelOperationRequest", + "properties": {}, + "type": "object" + }, + "GoogleLongrunningListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "GoogleLongrunningListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "GoogleLongrunningOperation" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleLongrunningOperation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "GoogleLongrunningOperation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "GoogleRpcStatus", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleLongrunningWaitOperationRequest": { + "description": "The request message for Operations.WaitOperation.", + "id": "GoogleLongrunningWaitOperationRequest", + "properties": { + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GoogleProtobufEmpty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "GoogleProtobufEmpty", + "properties": {}, + "type": "object" + }, + "GoogleRpcStatus": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "GoogleRpcStatus", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Firebase App Distribution API", + "version": "v1", + "version_module": true +} \ No newline at end of file diff --git a/firebaseappdistribution/v1/firebaseappdistribution-gen.go b/firebaseappdistribution/v1/firebaseappdistribution-gen.go new file mode 100644 index 00000000000..a8477c18541 --- /dev/null +++ b/firebaseappdistribution/v1/firebaseappdistribution-gen.go @@ -0,0 +1,6162 @@ +// Copyright 2023 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package firebaseappdistribution provides access to the Firebase App Distribution API. +// +// For product documentation, see: https://firebase.google.com/products/app-distribution +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/firebaseappdistribution/v1" +// ... +// ctx := context.Background() +// firebaseappdistributionService, err := firebaseappdistribution.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// firebaseappdistributionService, err := firebaseappdistribution.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// firebaseappdistributionService, err := firebaseappdistribution.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package firebaseappdistribution // import "google.golang.org/api/firebaseappdistribution/v1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version + +const apiId = "firebaseappdistribution:v1" +const apiName = "firebaseappdistribution" +const apiVersion = "v1" +const basePath = "https://firebaseappdistribution.googleapis.com/" +const mtlsBasePath = "https://firebaseappdistribution.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // See, edit, configure, and delete your Google Cloud data and see the + // email address for your Google Account. + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Media = NewMediaService(s) + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Media *MediaService + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewMediaService(s *Service) *MediaService { + rs := &MediaService{s: s} + return rs +} + +type MediaService struct { + s *Service +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Apps = NewProjectsAppsService(s) + rs.Groups = NewProjectsGroupsService(s) + rs.Testers = NewProjectsTestersService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Apps *ProjectsAppsService + + Groups *ProjectsGroupsService + + Testers *ProjectsTestersService +} + +func NewProjectsAppsService(s *Service) *ProjectsAppsService { + rs := &ProjectsAppsService{s: s} + rs.Releases = NewProjectsAppsReleasesService(s) + return rs +} + +type ProjectsAppsService struct { + s *Service + + Releases *ProjectsAppsReleasesService +} + +func NewProjectsAppsReleasesService(s *Service) *ProjectsAppsReleasesService { + rs := &ProjectsAppsReleasesService{s: s} + rs.FeedbackReports = NewProjectsAppsReleasesFeedbackReportsService(s) + rs.Operations = NewProjectsAppsReleasesOperationsService(s) + return rs +} + +type ProjectsAppsReleasesService struct { + s *Service + + FeedbackReports *ProjectsAppsReleasesFeedbackReportsService + + Operations *ProjectsAppsReleasesOperationsService +} + +func NewProjectsAppsReleasesFeedbackReportsService(s *Service) *ProjectsAppsReleasesFeedbackReportsService { + rs := &ProjectsAppsReleasesFeedbackReportsService{s: s} + return rs +} + +type ProjectsAppsReleasesFeedbackReportsService struct { + s *Service +} + +func NewProjectsAppsReleasesOperationsService(s *Service) *ProjectsAppsReleasesOperationsService { + rs := &ProjectsAppsReleasesOperationsService{s: s} + return rs +} + +type ProjectsAppsReleasesOperationsService struct { + s *Service +} + +func NewProjectsGroupsService(s *Service) *ProjectsGroupsService { + rs := &ProjectsGroupsService{s: s} + return rs +} + +type ProjectsGroupsService struct { + s *Service +} + +func NewProjectsTestersService(s *Service) *ProjectsTestersService { + rs := &ProjectsTestersService{s: s} + return rs +} + +type ProjectsTestersService struct { + s *Service +} + +// GdataBlobstore2Info: Information to read/write to blobstore2. +type GdataBlobstore2Info struct { + // BlobGeneration: The blob generation id. + BlobGeneration int64 `json:"blobGeneration,omitempty,string"` + + // BlobId: The blob id, e.g., /blobstore/prod/playground/scotty + BlobId string `json:"blobId,omitempty"` + + // DownloadReadHandle: Read handle passed from Bigstore -> Scotty for a + // GCS download. This is a signed, serialized blobstore2.ReadHandle + // proto which must never be set outside of Bigstore, and is not + // applicable to non-GCS media downloads. + DownloadReadHandle string `json:"downloadReadHandle,omitempty"` + + // ReadToken: The blob read token. Needed to read blobs that have not + // been replicated. Might not be available until the final call. + ReadToken string `json:"readToken,omitempty"` + + // UploadMetadataContainer: Metadata passed from Blobstore -> Scotty for + // a new GCS upload. This is a signed, serialized + // blobstore2.BlobMetadataContainer proto which must never be consumed + // outside of Bigstore, and is not applicable to non-GCS media uploads. + UploadMetadataContainer string `json:"uploadMetadataContainer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BlobGeneration") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BlobGeneration") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GdataBlobstore2Info) MarshalJSON() ([]byte, error) { + type NoMethod GdataBlobstore2Info + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GdataCompositeMedia: A sequence of media data references representing +// composite data. Introduced to support Bigstore composite objects. For +// details, visit http://go/bigstore-composites. +type GdataCompositeMedia struct { + // BlobRef: Blobstore v1 reference, set if reference_type is + // BLOBSTORE_REF This should be the byte representation of a + // blobstore.BlobRef. Since Blobstore is deprecating v1, use + // blobstore2_info instead. For now, any v2 blob will also be + // represented in this field as v1 BlobRef. + BlobRef string `json:"blobRef,omitempty"` + + // Blobstore2Info: Blobstore v2 info, set if reference_type is + // BLOBSTORE_REF and it refers to a v2 blob. + Blobstore2Info *GdataBlobstore2Info `json:"blobstore2Info,omitempty"` + + // CosmoBinaryReference: A binary data reference for a media download. + // Serves as a technology-agnostic binary reference in some Google + // infrastructure. This value is a serialized + // storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to + // get around the fact that the cosmo proto (as well as others it + // includes) doesn't support JavaScript. This prevents us from including + // the actual type of this field. + CosmoBinaryReference string `json:"cosmoBinaryReference,omitempty"` + + // Crc32cHash: crc32.c hash for the payload. + Crc32cHash int64 `json:"crc32cHash,omitempty"` + + // Inline: Media data, set if reference_type is INLINE + Inline string `json:"inline,omitempty"` + + // Length: Size of the data, in bytes + Length int64 `json:"length,omitempty,string"` + + // Md5Hash: MD5 hash for the payload. + Md5Hash string `json:"md5Hash,omitempty"` + + // ObjectId: Reference to a TI Blob, set if reference_type is + // BIGSTORE_REF. + ObjectId *GdataObjectId `json:"objectId,omitempty"` + + // Path: Path to the data, set if reference_type is PATH + Path string `json:"path,omitempty"` + + // ReferenceType: Describes what the field reference contains. + // + // Possible values: + // "PATH" - Reference contains a GFS path or a local path. + // "BLOB_REF" - Reference points to a blobstore object. This could be + // either a v1 blob_ref or a v2 blobstore2_info. Clients should check + // blobstore2_info first, since v1 is being deprecated. + // "INLINE" - Data is included into this proto buffer + // "BIGSTORE_REF" - Reference points to a bigstore object + // "COSMO_BINARY_REFERENCE" - Indicates the data is stored in + // cosmo_binary_reference. + ReferenceType string `json:"referenceType,omitempty"` + + // Sha1Hash: SHA-1 hash for the payload. + Sha1Hash string `json:"sha1Hash,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BlobRef") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BlobRef") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GdataCompositeMedia) MarshalJSON() ([]byte, error) { + type NoMethod GdataCompositeMedia + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GdataContentTypeInfo: Detailed Content-Type information from Scotty. +// The Content-Type of the media will typically be filled in by the +// header or Scotty's best_guess, but this extended information provides +// the backend with more information so that it can make a better +// decision if needed. This is only used on media upload requests from +// Scotty. +type GdataContentTypeInfo struct { + // BestGuess: Scotty's best guess of what the content type of the file + // is. + BestGuess string `json:"bestGuess,omitempty"` + + // FromBytes: The content type of the file derived by looking at + // specific bytes (i.e. "magic bytes") of the actual file. + FromBytes string `json:"fromBytes,omitempty"` + + // FromFileName: The content type of the file derived from the file + // extension of the original file name used by the client. + FromFileName string `json:"fromFileName,omitempty"` + + // FromHeader: The content type of the file as specified in the request + // headers, multipart headers, or RUPIO start request. + FromHeader string `json:"fromHeader,omitempty"` + + // FromUrlPath: The content type of the file derived from the file + // extension of the URL path. The URL path is assumed to represent a + // file name (which is typically only true for agents that are providing + // a REST API). + FromUrlPath string `json:"fromUrlPath,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BestGuess") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BestGuess") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GdataContentTypeInfo) MarshalJSON() ([]byte, error) { + type NoMethod GdataContentTypeInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GdataDiffChecksumsResponse: Backend response for a Diff get checksums +// response. For details on the Scotty Diff protocol, visit +// http://go/scotty-diff-protocol. +type GdataDiffChecksumsResponse struct { + // ChecksumsLocation: Exactly one of these fields must be populated. If + // checksums_location is filled, the server will return the + // corresponding contents to the user. If object_location is filled, the + // server will calculate the checksums based on the content there and + // return that to the user. For details on the format of the checksums, + // see http://go/scotty-diff-protocol. + ChecksumsLocation *GdataCompositeMedia `json:"checksumsLocation,omitempty"` + + // ChunkSizeBytes: The chunk size of checksums. Must be a multiple of + // 256KB. + ChunkSizeBytes int64 `json:"chunkSizeBytes,omitempty,string"` + + // ObjectLocation: If set, calculate the checksums based on the contents + // and return them to the caller. + ObjectLocation *GdataCompositeMedia `json:"objectLocation,omitempty"` + + // ObjectSizeBytes: The total size of the server object. + ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"` + + // ObjectVersion: The object version of the object the checksums are + // being returned for. + ObjectVersion string `json:"objectVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChecksumsLocation") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ChecksumsLocation") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GdataDiffChecksumsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GdataDiffChecksumsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GdataDiffDownloadResponse: Backend response for a Diff download +// response. For details on the Scotty Diff protocol, visit +// http://go/scotty-diff-protocol. +type GdataDiffDownloadResponse struct { + // ObjectLocation: The original object location. + ObjectLocation *GdataCompositeMedia `json:"objectLocation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ObjectLocation") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ObjectLocation") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GdataDiffDownloadResponse) MarshalJSON() ([]byte, error) { + type NoMethod GdataDiffDownloadResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GdataDiffUploadRequest: A Diff upload request. For details on the +// Scotty Diff protocol, visit http://go/scotty-diff-protocol. +type GdataDiffUploadRequest struct { + // ChecksumsInfo: The location of the checksums for the new object. + // Agents must clone the object located here, as the upload server will + // delete the contents once a response is received. For details on the + // format of the checksums, see http://go/scotty-diff-protocol. + ChecksumsInfo *GdataCompositeMedia `json:"checksumsInfo,omitempty"` + + // ObjectInfo: The location of the new object. Agents must clone the + // object located here, as the upload server will delete the contents + // once a response is received. + ObjectInfo *GdataCompositeMedia `json:"objectInfo,omitempty"` + + // ObjectVersion: The object version of the object that is the base + // version the incoming diff script will be applied to. This field will + // always be filled in. + ObjectVersion string `json:"objectVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChecksumsInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ChecksumsInfo") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GdataDiffUploadRequest) MarshalJSON() ([]byte, error) { + type NoMethod GdataDiffUploadRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GdataDiffUploadResponse: Backend response for a Diff upload request. +// For details on the Scotty Diff protocol, visit +// http://go/scotty-diff-protocol. +type GdataDiffUploadResponse struct { + // ObjectVersion: The object version of the object at the server. Must + // be included in the end notification response. The version in the end + // notification response must correspond to the new version of the + // object that is now stored at the server, after the upload. + ObjectVersion string `json:"objectVersion,omitempty"` + + // OriginalObject: The location of the original file for a diff upload + // request. Must be filled in if responding to an upload start + // notification. + OriginalObject *GdataCompositeMedia `json:"originalObject,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ObjectVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ObjectVersion") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GdataDiffUploadResponse) MarshalJSON() ([]byte, error) { + type NoMethod GdataDiffUploadResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GdataDiffVersionResponse: Backend response for a Diff get version +// response. For details on the Scotty Diff protocol, visit +// http://go/scotty-diff-protocol. +type GdataDiffVersionResponse struct { + // ObjectSizeBytes: The total size of the server object. + ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"` + + // ObjectVersion: The version of the object stored at the server. + ObjectVersion string `json:"objectVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ObjectSizeBytes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ObjectSizeBytes") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GdataDiffVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GdataDiffVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GdataDownloadParameters: Parameters specific to media downloads. +type GdataDownloadParameters struct { + // AllowGzipCompression: A boolean to be returned in the response to + // Scotty. Allows/disallows gzip encoding of the payload content when + // the server thinks it's advantageous (hence, does not guarantee + // compression) which allows Scotty to GZip the response to the client. + AllowGzipCompression bool `json:"allowGzipCompression,omitempty"` + + // IgnoreRange: Determining whether or not Apiary should skip the + // inclusion of any Content-Range header on its response to Scotty. + IgnoreRange bool `json:"ignoreRange,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AllowGzipCompression") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowGzipCompression") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GdataDownloadParameters) MarshalJSON() ([]byte, error) { + type NoMethod GdataDownloadParameters + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GdataMedia: A reference to data stored on the filesystem, on GFS or +// in blobstore. +type GdataMedia struct { + // Algorithm: Deprecated, use one of explicit hash type fields instead. + // Algorithm used for calculating the hash. As of 2011/01/21, "MD5" is + // the only possible value for this field. New values may be added at + // any time. + Algorithm string `json:"algorithm,omitempty"` + + // BigstoreObjectRef: Use object_id instead. + BigstoreObjectRef string `json:"bigstoreObjectRef,omitempty"` + + // BlobRef: Blobstore v1 reference, set if reference_type is + // BLOBSTORE_REF This should be the byte representation of a + // blobstore.BlobRef. Since Blobstore is deprecating v1, use + // blobstore2_info instead. For now, any v2 blob will also be + // represented in this field as v1 BlobRef. + BlobRef string `json:"blobRef,omitempty"` + + // Blobstore2Info: Blobstore v2 info, set if reference_type is + // BLOBSTORE_REF and it refers to a v2 blob. + Blobstore2Info *GdataBlobstore2Info `json:"blobstore2Info,omitempty"` + + // CompositeMedia: A composite media composed of one or more media + // objects, set if reference_type is COMPOSITE_MEDIA. The media length + // field must be set to the sum of the lengths of all composite media + // objects. Note: All composite media must have length specified. + CompositeMedia []*GdataCompositeMedia `json:"compositeMedia,omitempty"` + + // ContentType: MIME type of the data + ContentType string `json:"contentType,omitempty"` + + // ContentTypeInfo: Extended content type information provided for + // Scotty uploads. + ContentTypeInfo *GdataContentTypeInfo `json:"contentTypeInfo,omitempty"` + + // CosmoBinaryReference: A binary data reference for a media download. + // Serves as a technology-agnostic binary reference in some Google + // infrastructure. This value is a serialized + // storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to + // get around the fact that the cosmo proto (as well as others it + // includes) doesn't support JavaScript. This prevents us from including + // the actual type of this field. + CosmoBinaryReference string `json:"cosmoBinaryReference,omitempty"` + + // Crc32cHash: For Scotty Uploads: Scotty-provided hashes for uploads + // For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM + // THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify + // the data being downloaded. Currently only supported for inline + // payloads. Further, only crc32c_hash is currently supported. + Crc32cHash int64 `json:"crc32cHash,omitempty"` + + // DiffChecksumsResponse: Set if reference_type is + // DIFF_CHECKSUMS_RESPONSE. + DiffChecksumsResponse *GdataDiffChecksumsResponse `json:"diffChecksumsResponse,omitempty"` + + // DiffDownloadResponse: Set if reference_type is + // DIFF_DOWNLOAD_RESPONSE. + DiffDownloadResponse *GdataDiffDownloadResponse `json:"diffDownloadResponse,omitempty"` + + // DiffUploadRequest: Set if reference_type is DIFF_UPLOAD_REQUEST. + DiffUploadRequest *GdataDiffUploadRequest `json:"diffUploadRequest,omitempty"` + + // DiffUploadResponse: Set if reference_type is DIFF_UPLOAD_RESPONSE. + DiffUploadResponse *GdataDiffUploadResponse `json:"diffUploadResponse,omitempty"` + + // DiffVersionResponse: Set if reference_type is DIFF_VERSION_RESPONSE. + DiffVersionResponse *GdataDiffVersionResponse `json:"diffVersionResponse,omitempty"` + + // DownloadParameters: Parameters for a media download. + DownloadParameters *GdataDownloadParameters `json:"downloadParameters,omitempty"` + + // Filename: Original file name + Filename string `json:"filename,omitempty"` + + // Hash: Deprecated, use one of explicit hash type fields instead. These + // two hash related fields will only be populated on Scotty based media + // uploads and will contain the content of the hash group in the + // NotificationRequest: + // http://cs/#google3/uploader/service/proto/upload_listener.proto&q=class:Hash + // Hex encoded hash value of the uploaded media. + Hash string `json:"hash,omitempty"` + + // HashVerified: For Scotty uploads only. If a user sends a hash code + // and the backend has requested that Scotty verify the upload against + // the client hash, Scotty will perform the check on behalf of the + // backend and will reject it if the hashes don't match. This is set to + // true if Scotty performed this verification. + HashVerified bool `json:"hashVerified,omitempty"` + + // Inline: Media data, set if reference_type is INLINE + Inline string `json:"inline,omitempty"` + + // IsPotentialRetry: |is_potential_retry| is set false only when Scotty + // is certain that it has not sent the request before. When a client + // resumes an upload, this field must be set true in agent calls, + // because Scotty cannot be certain that it has never sent the request + // before due to potential failure in the session state persistence. + IsPotentialRetry bool `json:"isPotentialRetry,omitempty"` + + // Length: Size of the data, in bytes + Length int64 `json:"length,omitempty,string"` + + // Md5Hash: Scotty-provided MD5 hash for an upload. + Md5Hash string `json:"md5Hash,omitempty"` + + // MediaId: Media id to forward to the operation GetMedia. Can be set if + // reference_type is GET_MEDIA. + MediaId string `json:"mediaId,omitempty"` + + // ObjectId: Reference to a TI Blob, set if reference_type is + // BIGSTORE_REF. + ObjectId *GdataObjectId `json:"objectId,omitempty"` + + // Path: Path to the data, set if reference_type is PATH + Path string `json:"path,omitempty"` + + // ReferenceType: Describes what the field reference contains. + // + // Possible values: + // "PATH" - Reference contains a GFS path or a local path. + // "BLOB_REF" - Reference points to a blobstore object. This could be + // either a v1 blob_ref or a v2 blobstore2_info. Clients should check + // blobstore2_info first, since v1 is being deprecated. + // "INLINE" - Data is included into this proto buffer + // "GET_MEDIA" - Data should be accessed from the current service + // using the operation GetMedia. + // "COMPOSITE_MEDIA" - The content for this media object is stored + // across multiple partial media objects under the composite_media + // field. + // "BIGSTORE_REF" - Reference points to a bigstore object + // "DIFF_VERSION_RESPONSE" - Indicates the data is stored in + // diff_version_response. + // "DIFF_CHECKSUMS_RESPONSE" - Indicates the data is stored in + // diff_checksums_response. + // "DIFF_DOWNLOAD_RESPONSE" - Indicates the data is stored in + // diff_download_response. + // "DIFF_UPLOAD_REQUEST" - Indicates the data is stored in + // diff_upload_request. + // "DIFF_UPLOAD_RESPONSE" - Indicates the data is stored in + // diff_upload_response. + // "COSMO_BINARY_REFERENCE" - Indicates the data is stored in + // cosmo_binary_reference. + // "ARBITRARY_BYTES" - Informs Scotty to generate a response payload + // with the size specified in the length field. The contents of the + // payload are generated by Scotty and are undefined. This is useful for + // testing download speeds between the user and Scotty without involving + // a real payload source. Note: range is not supported when using + // arbitrary_bytes. + ReferenceType string `json:"referenceType,omitempty"` + + // Sha1Hash: Scotty-provided SHA1 hash for an upload. + Sha1Hash string `json:"sha1Hash,omitempty"` + + // Sha256Hash: Scotty-provided SHA256 hash for an upload. + Sha256Hash string `json:"sha256Hash,omitempty"` + + // Timestamp: Time at which the media data was last updated, in + // milliseconds since UNIX epoch + Timestamp uint64 `json:"timestamp,omitempty,string"` + + // Token: A unique fingerprint/version id for the media data + Token string `json:"token,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Algorithm") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Algorithm") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GdataMedia) MarshalJSON() ([]byte, error) { + type NoMethod GdataMedia + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GdataObjectId: This is a copy of the tech.blob.ObjectId proto, which +// could not be used directly here due to transitive closure issues with +// JavaScript support; see http://b/8801763. +type GdataObjectId struct { + // BucketName: The name of the bucket to which this object belongs. + BucketName string `json:"bucketName,omitempty"` + + // Generation: Generation of the object. Generations are monotonically + // increasing across writes, allowing them to be be compared to + // determine which generation is newer. If this is omitted in a request, + // then you are requesting the live object. See + // http://go/bigstore-versions + Generation int64 `json:"generation,omitempty,string"` + + // ObjectName: The name of the object. + ObjectName string `json:"objectName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BucketName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BucketName") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GdataObjectId) MarshalJSON() ([]byte, error) { + type NoMethod GdataObjectId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1AabInfo: Android App Bundle (AAB) +// information for a Firebase app. +type GoogleFirebaseAppdistroV1AabInfo struct { + // IntegrationState: App bundle integration state. Only valid for + // android apps. + // + // Possible values: + // "AAB_INTEGRATION_STATE_UNSPECIFIED" - Aab integration state + // unspecified + // "INTEGRATED" - App can receive app bundle uploads + // "PLAY_ACCOUNT_NOT_LINKED" - Firebase project is not linked to a + // Play developer account + // "NO_APP_WITH_GIVEN_BUNDLE_ID_IN_PLAY_ACCOUNT" - There is no app in + // linked Play developer account with the same bundle id + // "APP_NOT_PUBLISHED" - The app in Play developer account is not in a + // published state + // "AAB_STATE_UNAVAILABLE" - Play App status is unavailable + // "PLAY_IAS_TERMS_NOT_ACCEPTED" - Play IAS terms not accepted + IntegrationState string `json:"integrationState,omitempty"` + + // Name: The name of the `AabInfo` resource. Format: + // `projects/{project_number}/apps/{app}/aabInfo` + Name string `json:"name,omitempty"` + + // TestCertificate: App bundle test certificate generated for the app. + // Set after the first app bundle is uploaded for this app. + TestCertificate *GoogleFirebaseAppdistroV1TestCertificate `json:"testCertificate,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "IntegrationState") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "IntegrationState") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1AabInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1AabInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1BatchAddTestersRequest: The Request message +// for batch adding testers +type GoogleFirebaseAppdistroV1BatchAddTestersRequest struct { + // Emails: Required. The email addresses of the tester resources to + // create. A maximum of 999 and a minimum of 1 tester can be created in + // a batch. + Emails []string `json:"emails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Emails") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Emails") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1BatchAddTestersRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1BatchAddTestersRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1BatchAddTestersResponse: The Response +// message for `BatchAddTesters`. +type GoogleFirebaseAppdistroV1BatchAddTestersResponse struct { + // Testers: The testers which are created and/or already exist + Testers []*GoogleFirebaseAppdistroV1Tester `json:"testers,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Testers") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Testers") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1BatchAddTestersResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1BatchAddTestersResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest: The request +// message for `BatchDeleteReleases`. +type GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest struct { + // Names: Required. The names of the release resources to delete. + // Format: + // `projects/{project_number}/apps/{app_id}/releases/{release_id}` A + // maximum of 100 releases can be deleted per request. + Names []string `json:"names,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Names") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Names") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1BatchJoinGroupRequest: The request message +// for `BatchJoinGroup` +type GoogleFirebaseAppdistroV1BatchJoinGroupRequest struct { + // CreateMissingTesters: Indicates whether to create tester resources + // based on `emails` if they don't exist yet. + CreateMissingTesters bool `json:"createMissingTesters,omitempty"` + + // Emails: Required. The emails of the testers to be added to the group. + // A maximum of 999 and a minimum of 1 tester can be created in a batch. + Emails []string `json:"emails,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CreateMissingTesters") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateMissingTesters") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1BatchJoinGroupRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1BatchJoinGroupRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1BatchLeaveGroupRequest: Request message for +// `BatchLeaveGroup` +type GoogleFirebaseAppdistroV1BatchLeaveGroupRequest struct { + // Emails: Required. The email addresses of the testers to be removed + // from the group. A maximum of 999 and a minimum of 1 testers can be + // removed in a batch. + Emails []string `json:"emails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Emails") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Emails") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1BatchLeaveGroupRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1BatchLeaveGroupRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1BatchRemoveTestersRequest: The request +// message for `BatchRemoveTesters`. +type GoogleFirebaseAppdistroV1BatchRemoveTestersRequest struct { + // Emails: Required. The email addresses of the tester resources to + // removed. A maximum of 999 and a minimum of 1 testers can be deleted + // in a batch. + Emails []string `json:"emails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Emails") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Emails") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1BatchRemoveTestersRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1BatchRemoveTestersRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1BatchRemoveTestersResponse: The response +// message for `BatchRemoveTesters` +type GoogleFirebaseAppdistroV1BatchRemoveTestersResponse struct { + // Emails: List of deleted tester emails + Emails []string `json:"emails,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Emails") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Emails") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1BatchRemoveTestersResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1BatchRemoveTestersResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1DistributeReleaseRequest: The request +// message for `DistributeRelease`. +type GoogleFirebaseAppdistroV1DistributeReleaseRequest struct { + // GroupAliases: A list of group aliases (IDs) to be given access to + // this release. A combined maximum of 999 `testerEmails` and + // `groupAliases` can be specified in a single request. + GroupAliases []string `json:"groupAliases,omitempty"` + + // TesterEmails: A list of tester email addresses to be given access to + // this release. A combined maximum of 999 `testerEmails` and + // `groupAliases` can be specified in a single request. + TesterEmails []string `json:"testerEmails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GroupAliases") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GroupAliases") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1DistributeReleaseRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1DistributeReleaseRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1DistributeReleaseResponse: The response +// message for `DistributeRelease`. +type GoogleFirebaseAppdistroV1DistributeReleaseResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleFirebaseAppdistroV1FeedbackReport: A feedback report submitted +// by a tester for a release. +type GoogleFirebaseAppdistroV1FeedbackReport struct { + // CreateTime: Output only. The time when the feedback report was + // created. + CreateTime string `json:"createTime,omitempty"` + + // FirebaseConsoleUri: Output only. A link to the Firebase console + // displaying the feedback report. + FirebaseConsoleUri string `json:"firebaseConsoleUri,omitempty"` + + // Name: The name of the feedback report resource. Format: + // `projects/{project_number}/apps/{app}/releases/{release}/feedbackRepor + // ts/{feedback_report}` + Name string `json:"name,omitempty"` + + // ScreenshotUri: Output only. A signed link (which expires in one hour) + // that lets you directly download the screenshot. + ScreenshotUri string `json:"screenshotUri,omitempty"` + + // Tester: Output only. The resource name of the tester who submitted + // the feedback report. + Tester string `json:"tester,omitempty"` + + // Text: Output only. The text of the feedback report. + Text string `json:"text,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1FeedbackReport) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1FeedbackReport + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1Group: A group which can contain testers. A +// group can be invited to test apps in a Firebase project. +type GoogleFirebaseAppdistroV1Group struct { + // DisplayName: Required. The display name of the group. + DisplayName string `json:"displayName,omitempty"` + + // InviteLinkCount: Output only. The number of invite links for this + // group. + InviteLinkCount int64 `json:"inviteLinkCount,omitempty"` + + // Name: The name of the group resource. Format: + // `projects/{project_number}/groups/{group_alias}` + Name string `json:"name,omitempty"` + + // ReleaseCount: Output only. The number of releases this group is + // permitted to access. + ReleaseCount int64 `json:"releaseCount,omitempty"` + + // TesterCount: Output only. The number of testers who are members of + // this group. + TesterCount int64 `json:"testerCount,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1Group) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1Group + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1ListFeedbackReportsResponse: The response +// message for `ListFeedbackReports`. +type GoogleFirebaseAppdistroV1ListFeedbackReportsResponse struct { + // FeedbackReports: The feedback reports + FeedbackReports []*GoogleFirebaseAppdistroV1FeedbackReport `json:"feedbackReports,omitempty"` + + // NextPageToken: A short-lived token, which can be sent as `pageToken` + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FeedbackReports") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FeedbackReports") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1ListFeedbackReportsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1ListFeedbackReportsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1ListGroupsResponse: The response message for +// `ListGroups`. +type GoogleFirebaseAppdistroV1ListGroupsResponse struct { + // Groups: The groups listed. + Groups []*GoogleFirebaseAppdistroV1Group `json:"groups,omitempty"` + + // NextPageToken: A short-lived token, which can be sent as `pageToken` + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Groups") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Groups") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1ListGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1ListGroupsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1ListReleasesResponse: The response message +// for `ListReleases`. +type GoogleFirebaseAppdistroV1ListReleasesResponse struct { + // NextPageToken: A short-lived token, which can be sent as `pageToken` + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Releases: The releases + Releases []*GoogleFirebaseAppdistroV1Release `json:"releases,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1ListReleasesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1ListReleasesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1ListTestersResponse: The response message +// for `ListTesters`. +type GoogleFirebaseAppdistroV1ListTestersResponse struct { + // NextPageToken: A short-lived token, which can be sent as `pageToken` + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Testers: The testers listed. + Testers []*GoogleFirebaseAppdistroV1Tester `json:"testers,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1ListTestersResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1ListTestersResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1Release: A release of a Firebase app. +type GoogleFirebaseAppdistroV1Release struct { + // BinaryDownloadUri: Output only. A signed link (which expires in one + // hour) to directly download the app binary (IPA/APK/AAB) file. + BinaryDownloadUri string `json:"binaryDownloadUri,omitempty"` + + // BuildVersion: Output only. Build version of the release. For an + // Android release, the build version is the `versionCode`. For an iOS + // release, the build version is the `CFBundleVersion`. + BuildVersion string `json:"buildVersion,omitempty"` + + // CreateTime: Output only. The time the release was created. + CreateTime string `json:"createTime,omitempty"` + + // DisplayVersion: Output only. Display version of the release. For an + // Android release, the display version is the `versionName`. For an iOS + // release, the display version is the `CFBundleShortVersionString`. + DisplayVersion string `json:"displayVersion,omitempty"` + + // FirebaseConsoleUri: Output only. A link to the Firebase console + // displaying a single release. + FirebaseConsoleUri string `json:"firebaseConsoleUri,omitempty"` + + // Name: The name of the release resource. Format: + // `projects/{project_number}/apps/{app_id}/releases/{release_id}` + Name string `json:"name,omitempty"` + + // ReleaseNotes: Notes of the release. + ReleaseNotes *GoogleFirebaseAppdistroV1ReleaseNotes `json:"releaseNotes,omitempty"` + + // TestingUri: Output only. A link to the release in the tester web clip + // or Android app that lets testers (which were granted access to the + // app) view release notes and install the app onto their devices. + TestingUri string `json:"testingUri,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "BinaryDownloadUri") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BinaryDownloadUri") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1Release) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1Release + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1ReleaseNotes: Notes that belong to a +// release. +type GoogleFirebaseAppdistroV1ReleaseNotes struct { + // Text: The text of the release notes. + Text string `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Text") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Text") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1ReleaseNotes) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1ReleaseNotes + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1TestCertificate: App bundle test certificate +type GoogleFirebaseAppdistroV1TestCertificate struct { + // HashMd5: Hex string of MD5 hash of the test certificate used to + // resign the AAB + HashMd5 string `json:"hashMd5,omitempty"` + + // HashSha1: Hex string of SHA1 hash of the test certificate used to + // resign the AAB + HashSha1 string `json:"hashSha1,omitempty"` + + // HashSha256: Hex string of SHA256 hash of the test certificate used to + // resign the AAB + HashSha256 string `json:"hashSha256,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HashMd5") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "HashMd5") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1TestCertificate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1TestCertificate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1Tester: A person that can be invited to test +// apps in a Firebase project. +type GoogleFirebaseAppdistroV1Tester struct { + // DisplayName: The name of the tester associated with the Google + // account used to accept the tester invitation. + DisplayName string `json:"displayName,omitempty"` + + // Groups: The resource names of the groups this tester belongs to. + Groups []string `json:"groups,omitempty"` + + // LastActivityTime: Output only. The time the tester was last active. + // This is the most recent time the tester installed one of the apps. If + // they've never installed one or if the release no longer exists, this + // is the time the tester was added to the project. + LastActivityTime string `json:"lastActivityTime,omitempty"` + + // Name: The name of the tester resource. Format: + // `projects/{project_number}/testers/{email_address}` + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1Tester) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1Tester + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1UploadReleaseMetadata: Operation metadata +// for `UploadRelease`. +type GoogleFirebaseAppdistroV1UploadReleaseMetadata struct { +} + +// GoogleFirebaseAppdistroV1UploadReleaseRequest: Request message for +// `UploadRelease`. +type GoogleFirebaseAppdistroV1UploadReleaseRequest struct { + // Blob: Binary to upload + Blob *GdataMedia `json:"blob,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Blob") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Blob") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1UploadReleaseRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1UploadReleaseRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppdistroV1UploadReleaseResponse: Response message for +// `UploadRelease`. +type GoogleFirebaseAppdistroV1UploadReleaseResponse struct { + // Release: Release associated with the uploaded binary. + Release *GoogleFirebaseAppdistroV1Release `json:"release,omitempty"` + + // Result: Result of upload release. + // + // Possible values: + // "UPLOAD_RELEASE_RESULT_UNSPECIFIED" - Upload binary result + // unspecified + // "RELEASE_CREATED" - Upload binary resulted in a new release + // "RELEASE_UPDATED" - Upload binary updated an existing release + // "RELEASE_UNMODIFIED" - Upload binary resulted in a no-op. A release + // with the exact same binary already exists. + Result string `json:"result,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Release") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Release") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirebaseAppdistroV1UploadReleaseResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1UploadReleaseResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningCancelOperationRequest: The request message for +// Operations.CancelOperation. +type GoogleLongrunningCancelOperationRequest struct { +} + +// GoogleLongrunningListOperationsResponse: The response message for +// Operations.ListOperations. +type GoogleLongrunningListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningOperation: This resource represents a long-running +// operation that is the result of a network API call. +type GoogleLongrunningOperation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *GoogleRpcStatus `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningWaitOperationRequest: The request message for +// Operations.WaitOperation. +type GoogleLongrunningWaitOperationRequest struct { + // Timeout: The maximum duration to wait before timing out. If left + // blank, the wait will be at most the time permitted by the underlying + // HTTP/RPC protocol. If RPC context deadline is also specified, the + // shorter one will be used. + Timeout string `json:"timeout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Timeout") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Timeout") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleLongrunningWaitOperationRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningWaitOperationRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleProtobufEmpty: A generic empty message that you can re-use to +// avoid defining duplicated empty messages in your APIs. A typical +// example is to use it as the request or the response type of an API +// method. For instance: service Foo { rpc Bar(google.protobuf.Empty) +// returns (google.protobuf.Empty); } +type GoogleProtobufEmpty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleRpcStatus: The `Status` type defines a logical error model that +// is suitable for different programming environments, including REST +// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type GoogleRpcStatus struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleRpcStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "firebaseappdistribution.media.upload": + +type MediaUploadCall struct { + s *Service + app string + googlefirebaseappdistrov1uploadreleaserequest *GoogleFirebaseAppdistroV1UploadReleaseRequest + urlParams_ gensupport.URLParams + mediaInfo_ *gensupport.MediaInfo + ctx_ context.Context + header_ http.Header +} + +// Upload: Uploads a binary. Uploading a binary can result in a new +// release being created, an update to an existing release, or a no-op +// if a release with the same binary already exists. +// +// - app: The name of the app resource. Format: +// `projects/{project_number}/apps/{app_id}`. +func (r *MediaService) Upload(app string, googlefirebaseappdistrov1uploadreleaserequest *GoogleFirebaseAppdistroV1UploadReleaseRequest) *MediaUploadCall { + c := &MediaUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.app = app + c.googlefirebaseappdistrov1uploadreleaserequest = googlefirebaseappdistrov1uploadreleaserequest + return c +} + +// Media specifies the media to upload in one or more chunks. The chunk +// size may be controlled by supplying a MediaOption generated by +// googleapi.ChunkSize. The chunk size defaults to +// googleapi.DefaultUploadChunkSize.The Content-Type header used in the +// upload request will be determined by sniffing the contents of r, +// unless a MediaOption generated by googleapi.ContentType is +// supplied. +// At most one of Media and ResumableMedia may be set. +func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall { + c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options) + return c +} + +// ResumableMedia specifies the media to upload in chunks and can be +// canceled with ctx. +// +// Deprecated: use Media instead. +// +// At most one of Media and ResumableMedia may be set. mediaType +// identifies the MIME media type of the upload, such as "image/png". If +// mediaType is "", it will be auto-detected. The provided ctx will +// supersede any context previously provided to the Context method. +func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall { + c.ctx_ = ctx + c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType) + return c +} + +// ProgressUpdater provides a callback function that will be called +// after every chunk. It should be a low-latency function in order to +// not slow down the upload operation. This should only be called when +// using ResumableMedia (as opposed to Media). +func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall { + c.mediaInfo_.SetProgressUpdater(pu) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +// This context will supersede any context previously provided to the +// ResumableMedia method. +func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *MediaUploadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1uploadreleaserequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+app}/releases:upload") + if c.mediaInfo_ != nil { + urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/v1/{+app}/releases:upload") + c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType()) + } + if body == nil { + body = new(bytes.Buffer) + reqHeaders.Set("Content-Type", "application/json") + } + body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body) + defer cleanup() + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + req.GetBody = getBody + googleapi.Expand(req.URL, map[string]string{ + "app": c.app, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.media.upload" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location")) + if rx != nil { + rx.Client = c.s.client + rx.UserAgent = c.s.userAgent() + ctx := c.ctx_ + if ctx == nil { + ctx = context.TODO() + } + res, err = rx.Upload(ctx) + if err != nil { + return nil, err + } + defer res.Body.Close() + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Uploads a binary. Uploading a binary can result in a new release being created, an update to an existing release, or a no-op if a release with the same binary already exists.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases:upload", + // "httpMethod": "POST", + // "id": "firebaseappdistribution.media.upload", + // "mediaUpload": { + // "accept": [ + // "*/*" + // ], + // "protocols": { + // "simple": { + // "multipart": true, + // "path": "/upload/v1/{+app}/releases:upload" + // } + // } + // }, + // "parameterOrder": [ + // "app" + // ], + // "parameters": { + // "app": { + // "description": "The name of the app resource. Format: `projects/{project_number}/apps/{app_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+app}/releases:upload", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1UploadReleaseRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ], + // "supportsMediaUpload": true + // } + +} + +// method id "firebaseappdistribution.projects.apps.getAabInfo": + +type ProjectsAppsGetAabInfoCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetAabInfo: Gets Android App Bundle (AAB) information for a Firebase +// app. +// +// - name: The name of the `AabInfo` resource to retrieve. Format: +// `projects/{project_number}/apps/{app_id}/aabInfo`. +func (r *ProjectsAppsService) GetAabInfo(name string) *ProjectsAppsGetAabInfoCall { + c := &ProjectsAppsGetAabInfoCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsGetAabInfoCall) Fields(s ...googleapi.Field) *ProjectsAppsGetAabInfoCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAppsGetAabInfoCall) IfNoneMatch(entityTag string) *ProjectsAppsGetAabInfoCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsGetAabInfoCall) Context(ctx context.Context) *ProjectsAppsGetAabInfoCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsGetAabInfoCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsGetAabInfoCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.getAabInfo" call. +// Exactly one of *GoogleFirebaseAppdistroV1AabInfo or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleFirebaseAppdistroV1AabInfo.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAppsGetAabInfoCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1AabInfo, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1AabInfo{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets Android App Bundle (AAB) information for a Firebase app.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/aabInfo", + // "httpMethod": "GET", + // "id": "firebaseappdistribution.projects.apps.getAabInfo", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the `AabInfo` resource to retrieve. Format: `projects/{project_number}/apps/{app_id}/aabInfo`", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/aabInfo$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1AabInfo" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.apps.releases.batchDelete": + +type ProjectsAppsReleasesBatchDeleteCall struct { + s *Service + parent string + googlefirebaseappdistrov1batchdeletereleasesrequest *GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchDelete: Deletes releases. A maximum of 100 releases can be +// deleted per request. +// +// - parent: The name of the app resource, which is the parent of the +// release resources. Format: +// `projects/{project_number}/apps/{app_id}`. +func (r *ProjectsAppsReleasesService) BatchDelete(parent string, googlefirebaseappdistrov1batchdeletereleasesrequest *GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest) *ProjectsAppsReleasesBatchDeleteCall { + c := &ProjectsAppsReleasesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlefirebaseappdistrov1batchdeletereleasesrequest = googlefirebaseappdistrov1batchdeletereleasesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesBatchDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesBatchDeleteCall) Context(ctx context.Context) *ProjectsAppsReleasesBatchDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesBatchDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesBatchDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1batchdeletereleasesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/releases:batchDelete") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.batchDelete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAppsReleasesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes releases. A maximum of 100 releases can be deleted per request.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases:batchDelete", + // "httpMethod": "POST", + // "id": "firebaseappdistribution.projects.apps.releases.batchDelete", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The name of the app resource, which is the parent of the release resources. Format: `projects/{project_number}/apps/{app_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/releases:batchDelete", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.apps.releases.distribute": + +type ProjectsAppsReleasesDistributeCall struct { + s *Service + name string + googlefirebaseappdistrov1distributereleaserequest *GoogleFirebaseAppdistroV1DistributeReleaseRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Distribute: Distributes a release to testers. This call does the +// following: 1. Creates testers for the specified emails, if none +// exist. 2. Adds the testers and groups to the release. 3. Sends new +// testers an invitation email. 4. Sends existing testers a new release +// email. The request will fail with a `INVALID_ARGUMENT` if it contains +// a group that doesn't exist. +// +// - name: The name of the release resource to distribute. Format: +// `projects/{project_number}/apps/{app_id}/releases/{release_id}`. +func (r *ProjectsAppsReleasesService) Distribute(name string, googlefirebaseappdistrov1distributereleaserequest *GoogleFirebaseAppdistroV1DistributeReleaseRequest) *ProjectsAppsReleasesDistributeCall { + c := &ProjectsAppsReleasesDistributeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlefirebaseappdistrov1distributereleaserequest = googlefirebaseappdistrov1distributereleaserequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesDistributeCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesDistributeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesDistributeCall) Context(ctx context.Context) *ProjectsAppsReleasesDistributeCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesDistributeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesDistributeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1distributereleaserequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:distribute") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.distribute" call. +// Exactly one of *GoogleFirebaseAppdistroV1DistributeReleaseResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppdistroV1DistributeReleaseResponse.ServerResponse.Hea +// der or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsAppsReleasesDistributeCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1DistributeReleaseResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1DistributeReleaseResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Distributes a release to testers. This call does the following: 1. Creates testers for the specified emails, if none exist. 2. Adds the testers and groups to the release. 3. Sends new testers an invitation email. 4. Sends existing testers a new release email. The request will fail with a `INVALID_ARGUMENT` if it contains a group that doesn't exist.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}:distribute", + // "httpMethod": "POST", + // "id": "firebaseappdistribution.projects.apps.releases.distribute", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the release resource to distribute. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:distribute", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1DistributeReleaseRequest" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1DistributeReleaseResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.apps.releases.get": + +type ProjectsAppsReleasesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a release. +// +// - name: The name of the release resource to retrieve. Format: +// projects/{project_number}/apps/{app_id}/releases/{release_id}. +func (r *ProjectsAppsReleasesService) Get(name string) *ProjectsAppsReleasesGetCall { + c := &ProjectsAppsReleasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesGetCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAppsReleasesGetCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesGetCall) Context(ctx context.Context) *ProjectsAppsReleasesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.get" call. +// Exactly one of *GoogleFirebaseAppdistroV1Release or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleFirebaseAppdistroV1Release.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAppsReleasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Release, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1Release{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a release.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}", + // "httpMethod": "GET", + // "id": "firebaseappdistribution.projects.apps.releases.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the release resource to retrieve. Format: projects/{project_number}/apps/{app_id}/releases/{release_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1Release" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.apps.releases.list": + +type ProjectsAppsReleasesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists releases. By default, sorts by `createTime` in descending +// order. +// +// - parent: The name of the app resource, which is the parent of the +// release resources. Format: +// `projects/{project_number}/apps/{app_id}`. +func (r *ProjectsAppsReleasesService) List(parent string) *ProjectsAppsReleasesListCall { + c := &ProjectsAppsReleasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The expression to filter +// releases listed in the response. To learn more about filtering, refer +// to Google's AIP-160 standard (http://aip.dev/160). Supported fields: +// - `releaseNotes.text` supports `=` (can contain a wildcard character +// (`*`) at the beginning or end of the string) - `createTime` supports +// `<`, `<=`, `>` and `>=`, and expects an RFC-3339 formatted string +// Examples: - `createTime <= "2021-09-08T00:00:00+04:00" - +// `releaseNotes.text="fixes" AND createTime >= +// "2021-09-08T00:00:00.0Z" - `releaseNotes.text="*v1.0.0-rc*" +func (c *ProjectsAppsReleasesListCall) Filter(filter string) *ProjectsAppsReleasesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": The fields used to +// order releases. Supported fields: - `createTime` To specify +// descending order for a field, append a "desc" suffix, for example, +// `createTime desc`. If this parameter is not set, releases are ordered +// by `createTime` in descending order. +func (c *ProjectsAppsReleasesListCall) OrderBy(orderBy string) *ProjectsAppsReleasesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of releases to return. The service may return fewer than this value. +// The valid range is [1-100]; If unspecified (0), at most 25 releases +// are returned. Values above 100 are coerced to 100. +func (c *ProjectsAppsReleasesListCall) PageSize(pageSize int64) *ProjectsAppsReleasesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListReleases` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListReleases` must match the call that provided the page +// token. +func (c *ProjectsAppsReleasesListCall) PageToken(pageToken string) *ProjectsAppsReleasesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesListCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAppsReleasesListCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesListCall) Context(ctx context.Context) *ProjectsAppsReleasesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/releases") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.list" call. +// Exactly one of *GoogleFirebaseAppdistroV1ListReleasesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppdistroV1ListReleasesResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsAppsReleasesListCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1ListReleasesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1ListReleasesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists releases. By default, sorts by `createTime` in descending order.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases", + // "httpMethod": "GET", + // "id": "firebaseappdistribution.projects.apps.releases.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "The expression to filter releases listed in the response. To learn more about filtering, refer to [Google's AIP-160 standard](http://aip.dev/160). Supported fields: - `releaseNotes.text` supports `=` (can contain a wildcard character (`*`) at the beginning or end of the string) - `createTime` supports `\u003c`, `\u003c=`, `\u003e` and `\u003e=`, and expects an RFC-3339 formatted string Examples: - `createTime \u003c= \"2021-09-08T00:00:00+04:00\"` - `releaseNotes.text=\"fixes\" AND createTime \u003e= \"2021-09-08T00:00:00.0Z\"` - `releaseNotes.text=\"*v1.0.0-rc*\"`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "The fields used to order releases. Supported fields: - `createTime` To specify descending order for a field, append a \"desc\" suffix, for example, `createTime desc`. If this parameter is not set, releases are ordered by `createTime` in descending order.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of releases to return. The service may return fewer than this value. The valid range is [1-100]; If unspecified (0), at most 25 releases are returned. Values above 100 are coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListReleases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReleases` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the app resource, which is the parent of the release resources. Format: `projects/{project_number}/apps/{app_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/releases", + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1ListReleasesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsAppsReleasesListCall) Pages(ctx context.Context, f func(*GoogleFirebaseAppdistroV1ListReleasesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "firebaseappdistribution.projects.apps.releases.patch": + +type ProjectsAppsReleasesPatchCall struct { + s *Service + name string + googlefirebaseappdistrov1release *GoogleFirebaseAppdistroV1Release + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a release. +// +// - name: The name of the release resource. Format: +// `projects/{project_number}/apps/{app_id}/releases/{release_id}`. +func (r *ProjectsAppsReleasesService) Patch(name string, googlefirebaseappdistrov1release *GoogleFirebaseAppdistroV1Release) *ProjectsAppsReleasesPatchCall { + c := &ProjectsAppsReleasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlefirebaseappdistrov1release = googlefirebaseappdistrov1release + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update. +func (c *ProjectsAppsReleasesPatchCall) UpdateMask(updateMask string) *ProjectsAppsReleasesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesPatchCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesPatchCall) Context(ctx context.Context) *ProjectsAppsReleasesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1release) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.patch" call. +// Exactly one of *GoogleFirebaseAppdistroV1Release or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleFirebaseAppdistroV1Release.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAppsReleasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Release, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1Release{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a release.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}", + // "httpMethod": "PATCH", + // "id": "firebaseappdistribution.projects.apps.releases.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the release resource. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1Release" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1Release" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.apps.releases.feedbackReports.delete": + +type ProjectsAppsReleasesFeedbackReportsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a feedback report. +// +// - name: The name of the feedback report to delete. Format: +// projects/{project_number}/apps/{app}/releases/{release}/feedbackRepo +// rts/{feedback_report}. +func (r *ProjectsAppsReleasesFeedbackReportsService) Delete(name string) *ProjectsAppsReleasesFeedbackReportsDeleteCall { + c := &ProjectsAppsReleasesFeedbackReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesFeedbackReportsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesFeedbackReportsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesFeedbackReportsDeleteCall) Context(ctx context.Context) *ProjectsAppsReleasesFeedbackReportsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesFeedbackReportsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesFeedbackReportsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.feedbackReports.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAppsReleasesFeedbackReportsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a feedback report.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/feedbackReports/{feedbackReportsId}", + // "httpMethod": "DELETE", + // "id": "firebaseappdistribution.projects.apps.releases.feedbackReports.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the feedback report to delete. Format: projects/{project_number}/apps/{app}/releases/{release}/feedbackReports/{feedback_report}", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/feedbackReports/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.apps.releases.feedbackReports.get": + +type ProjectsAppsReleasesFeedbackReportsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a feedback report. +// +// - name: The name of the feedback report to retrieve. Format: +// projects/{project_number}/apps/{app}/releases/{release}/feedbackRepo +// rts/{feedback_report}. +func (r *ProjectsAppsReleasesFeedbackReportsService) Get(name string) *ProjectsAppsReleasesFeedbackReportsGetCall { + c := &ProjectsAppsReleasesFeedbackReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesFeedbackReportsGetCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesFeedbackReportsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAppsReleasesFeedbackReportsGetCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesFeedbackReportsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesFeedbackReportsGetCall) Context(ctx context.Context) *ProjectsAppsReleasesFeedbackReportsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesFeedbackReportsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesFeedbackReportsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.feedbackReports.get" call. +// Exactly one of *GoogleFirebaseAppdistroV1FeedbackReport or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleFirebaseAppdistroV1FeedbackReport.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAppsReleasesFeedbackReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1FeedbackReport, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1FeedbackReport{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a feedback report.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/feedbackReports/{feedbackReportsId}", + // "httpMethod": "GET", + // "id": "firebaseappdistribution.projects.apps.releases.feedbackReports.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the feedback report to retrieve. Format: projects/{project_number}/apps/{app}/releases/{release}/feedbackReports/{feedback_report}", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/feedbackReports/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1FeedbackReport" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.apps.releases.feedbackReports.list": + +type ProjectsAppsReleasesFeedbackReportsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists feedback reports. By default, sorts by `createTime` in +// descending order. +// +// - parent: The name of the release resource, which is the parent of +// the feedback report resources. Format: +// `projects/{project_number}/apps/{app}/releases/{release}`. +func (r *ProjectsAppsReleasesFeedbackReportsService) List(parent string) *ProjectsAppsReleasesFeedbackReportsListCall { + c := &ProjectsAppsReleasesFeedbackReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The expression to filter +// feedback reports listed in the response. To learn more about +// filtering, refer to Google's AIP-160 standard (http://aip.dev/160). +// Supported fields: - `tester` - `createTime` supports `<`, `<=`, `>` +// and `>=`, and expects an RFC-3339 formatted string Example: - +// `createTime <= "2023-03-10T00:00:00+04:00" - `tester = +// "projects/-/testers/*@example.com" +func (c *ProjectsAppsReleasesFeedbackReportsListCall) Filter(filter string) *ProjectsAppsReleasesFeedbackReportsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": The fields used to +// order releases. Supported fields: - `createTime` - `tester` To +// specify descending order for a field, append a "desc" suffix, for +// example, `createTime desc`. If this parameter is not set, releases +// are ordered by `createTime` in descending order. +func (c *ProjectsAppsReleasesFeedbackReportsListCall) OrderBy(orderBy string) *ProjectsAppsReleasesFeedbackReportsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of feedback reports to return. The service may return fewer than this +// value. The valid range is [1-100]; If unspecified (0), at most 25 +// feedback reports are returned. Values above 100 are coerced to 100. +func (c *ProjectsAppsReleasesFeedbackReportsListCall) PageSize(pageSize int64) *ProjectsAppsReleasesFeedbackReportsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListFeedbackReports` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListFeedbackReports` must match the call that provided +// the page token. +func (c *ProjectsAppsReleasesFeedbackReportsListCall) PageToken(pageToken string) *ProjectsAppsReleasesFeedbackReportsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesFeedbackReportsListCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesFeedbackReportsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAppsReleasesFeedbackReportsListCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesFeedbackReportsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesFeedbackReportsListCall) Context(ctx context.Context) *ProjectsAppsReleasesFeedbackReportsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesFeedbackReportsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesFeedbackReportsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/feedbackReports") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.feedbackReports.list" call. +// Exactly one of *GoogleFirebaseAppdistroV1ListFeedbackReportsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleFirebaseAppdistroV1ListFeedbackReportsResponse.ServerResponse.H +// eader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsAppsReleasesFeedbackReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1ListFeedbackReportsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1ListFeedbackReportsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists feedback reports. By default, sorts by `createTime` in descending order.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/feedbackReports", + // "httpMethod": "GET", + // "id": "firebaseappdistribution.projects.apps.releases.feedbackReports.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "The expression to filter feedback reports listed in the response. To learn more about filtering, refer to [Google's AIP-160 standard](http://aip.dev/160). Supported fields: - `tester` - `createTime` supports `\u003c`, `\u003c=`, `\u003e` and `\u003e=`, and expects an RFC-3339 formatted string Example: - `createTime \u003c= \"2023-03-10T00:00:00+04:00\"` - `tester = \"projects/-/testers/*@example.com\"`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "The fields used to order releases. Supported fields: - `createTime` - `tester` To specify descending order for a field, append a \"desc\" suffix, for example, `createTime desc`. If this parameter is not set, releases are ordered by `createTime` in descending order.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of feedback reports to return. The service may return fewer than this value. The valid range is [1-100]; If unspecified (0), at most 25 feedback reports are returned. Values above 100 are coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListFeedbackReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFeedbackReports` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the release resource, which is the parent of the feedback report resources. Format: `projects/{project_number}/apps/{app}/releases/{release}`", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/feedbackReports", + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1ListFeedbackReportsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsAppsReleasesFeedbackReportsListCall) Pages(ctx context.Context, f func(*GoogleFirebaseAppdistroV1ListFeedbackReportsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "firebaseappdistribution.projects.apps.releases.operations.cancel": + +type ProjectsAppsReleasesOperationsCancelCall struct { + s *Service + name string + googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsAppsReleasesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsAppsReleasesOperationsCancelCall { + c := &ProjectsAppsReleasesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesOperationsCancelCall) Context(ctx context.Context) *ProjectsAppsReleasesOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.operations.cancel" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAppsReleasesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "firebaseappdistribution.projects.apps.releases.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "GoogleLongrunningCancelOperationRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.apps.releases.operations.delete": + +type ProjectsAppsReleasesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsAppsReleasesOperationsService) Delete(name string) *ProjectsAppsReleasesOperationsDeleteCall { + c := &ProjectsAppsReleasesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesOperationsDeleteCall) Context(ctx context.Context) *ProjectsAppsReleasesOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAppsReleasesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "firebaseappdistribution.projects.apps.releases.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.apps.releases.operations.get": + +type ProjectsAppsReleasesOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsAppsReleasesOperationsService) Get(name string) *ProjectsAppsReleasesOperationsGetCall { + c := &ProjectsAppsReleasesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAppsReleasesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesOperationsGetCall) Context(ctx context.Context) *ProjectsAppsReleasesOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAppsReleasesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "firebaseappdistribution.projects.apps.releases.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.apps.releases.operations.list": + +type ProjectsAppsReleasesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsAppsReleasesOperationsService) List(name string) *ProjectsAppsReleasesOperationsListCall { + c := &ProjectsAppsReleasesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsAppsReleasesOperationsListCall) Filter(filter string) *ProjectsAppsReleasesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsAppsReleasesOperationsListCall) PageSize(pageSize int64) *ProjectsAppsReleasesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsAppsReleasesOperationsListCall) PageToken(pageToken string) *ProjectsAppsReleasesOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsAppsReleasesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsAppsReleasesOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesOperationsListCall) Context(ctx context.Context) *ProjectsAppsReleasesOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAppsReleasesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/operations", + // "httpMethod": "GET", + // "id": "firebaseappdistribution.projects.apps.releases.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/operations", + // "response": { + // "$ref": "GoogleLongrunningListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsAppsReleasesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "firebaseappdistribution.projects.apps.releases.operations.wait": + +type ProjectsAppsReleasesOperationsWaitCall struct { + s *Service + name string + googlelongrunningwaitoperationrequest *GoogleLongrunningWaitOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or +// reaches at most a specified timeout, returning the latest state. If +// the operation is already done, the latest state is immediately +// returned. If the timeout specified is greater than the default +// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does +// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. +// Note that this method is on a best-effort basis. It may return the +// latest state before the specified timeout (including immediately), +// meaning even an immediate response is no guarantee that the operation +// is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsAppsReleasesOperationsService) Wait(name string, googlelongrunningwaitoperationrequest *GoogleLongrunningWaitOperationRequest) *ProjectsAppsReleasesOperationsWaitCall { + c := &ProjectsAppsReleasesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlelongrunningwaitoperationrequest = googlelongrunningwaitoperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsAppsReleasesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesOperationsWaitCall) Context(ctx context.Context) *ProjectsAppsReleasesOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsAppsReleasesOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningwaitoperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.operations.wait" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsAppsReleasesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "firebaseappdistribution.projects.apps.releases.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:wait", + // "request": { + // "$ref": "GoogleLongrunningWaitOperationRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.groups.batchJoin": + +type ProjectsGroupsBatchJoinCall struct { + s *Service + group string + googlefirebaseappdistrov1batchjoingrouprequest *GoogleFirebaseAppdistroV1BatchJoinGroupRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchJoin: Batch adds members to a group. The testers will gain +// access to all releases that the groups have access to. +// +// - group: The name of the group resource to which testers are added. +// Format: `projects/{project_number}/groups/{group_alias}`. +func (r *ProjectsGroupsService) BatchJoin(group string, googlefirebaseappdistrov1batchjoingrouprequest *GoogleFirebaseAppdistroV1BatchJoinGroupRequest) *ProjectsGroupsBatchJoinCall { + c := &ProjectsGroupsBatchJoinCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.group = group + c.googlefirebaseappdistrov1batchjoingrouprequest = googlefirebaseappdistrov1batchjoingrouprequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsGroupsBatchJoinCall) Fields(s ...googleapi.Field) *ProjectsGroupsBatchJoinCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsGroupsBatchJoinCall) Context(ctx context.Context) *ProjectsGroupsBatchJoinCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsGroupsBatchJoinCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGroupsBatchJoinCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1batchjoingrouprequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+group}:batchJoin") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "group": c.group, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.groups.batchJoin" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsGroupsBatchJoinCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Batch adds members to a group. The testers will gain access to all releases that the groups have access to.", + // "flatPath": "v1/projects/{projectsId}/groups/{groupsId}:batchJoin", + // "httpMethod": "POST", + // "id": "firebaseappdistribution.projects.groups.batchJoin", + // "parameterOrder": [ + // "group" + // ], + // "parameters": { + // "group": { + // "description": "Required. The name of the group resource to which testers are added. Format: `projects/{project_number}/groups/{group_alias}`", + // "location": "path", + // "pattern": "^projects/[^/]+/groups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+group}:batchJoin", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1BatchJoinGroupRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.groups.batchLeave": + +type ProjectsGroupsBatchLeaveCall struct { + s *Service + group string + googlefirebaseappdistrov1batchleavegrouprequest *GoogleFirebaseAppdistroV1BatchLeaveGroupRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchLeave: Batch removed members from a group. The testers will lose +// access to all releases that the groups have access to. +// +// - group: The name of the group resource from which testers are +// removed. Format: `projects/{project_number}/groups/{group_alias}`. +func (r *ProjectsGroupsService) BatchLeave(group string, googlefirebaseappdistrov1batchleavegrouprequest *GoogleFirebaseAppdistroV1BatchLeaveGroupRequest) *ProjectsGroupsBatchLeaveCall { + c := &ProjectsGroupsBatchLeaveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.group = group + c.googlefirebaseappdistrov1batchleavegrouprequest = googlefirebaseappdistrov1batchleavegrouprequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsGroupsBatchLeaveCall) Fields(s ...googleapi.Field) *ProjectsGroupsBatchLeaveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsGroupsBatchLeaveCall) Context(ctx context.Context) *ProjectsGroupsBatchLeaveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsGroupsBatchLeaveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGroupsBatchLeaveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1batchleavegrouprequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+group}:batchLeave") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "group": c.group, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.groups.batchLeave" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsGroupsBatchLeaveCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Batch removed members from a group. The testers will lose access to all releases that the groups have access to.", + // "flatPath": "v1/projects/{projectsId}/groups/{groupsId}:batchLeave", + // "httpMethod": "POST", + // "id": "firebaseappdistribution.projects.groups.batchLeave", + // "parameterOrder": [ + // "group" + // ], + // "parameters": { + // "group": { + // "description": "Required. The name of the group resource from which testers are removed. Format: `projects/{project_number}/groups/{group_alias}`", + // "location": "path", + // "pattern": "^projects/[^/]+/groups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+group}:batchLeave", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1BatchLeaveGroupRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.groups.create": + +type ProjectsGroupsCreateCall struct { + s *Service + parent string + googlefirebaseappdistrov1group *GoogleFirebaseAppdistroV1Group + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a group. +// +// - parent: The name of the project resource, which is the parent of +// the group resource. Format: `projects/{project_number}`. +func (r *ProjectsGroupsService) Create(parent string, googlefirebaseappdistrov1group *GoogleFirebaseAppdistroV1Group) *ProjectsGroupsCreateCall { + c := &ProjectsGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlefirebaseappdistrov1group = googlefirebaseappdistrov1group + return c +} + +// GroupId sets the optional parameter "groupId": The "alias" to use for +// the group, which will become the final component of the group's +// resource name. This value must be unique per project. The field is +// named `groupId` to comply with AIP guidance for user-specified IDs. +// This value should be 4-63 characters, and valid characters are +// `/a-z-/`. If not set, it will be generated based on the display name. +func (c *ProjectsGroupsCreateCall) GroupId(groupId string) *ProjectsGroupsCreateCall { + c.urlParams_.Set("groupId", groupId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsGroupsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsGroupsCreateCall) Context(ctx context.Context) *ProjectsGroupsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsGroupsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGroupsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1group) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/groups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.groups.create" call. +// Exactly one of *GoogleFirebaseAppdistroV1Group or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleFirebaseAppdistroV1Group.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Group, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1Group{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Create a group.", + // "flatPath": "v1/projects/{projectsId}/groups", + // "httpMethod": "POST", + // "id": "firebaseappdistribution.projects.groups.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "groupId": { + // "description": "Optional. The \"alias\" to use for the group, which will become the final component of the group's resource name. This value must be unique per project. The field is named `groupId` to comply with AIP guidance for user-specified IDs. This value should be 4-63 characters, and valid characters are `/a-z-/`. If not set, it will be generated based on the display name.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the project resource, which is the parent of the group resource. Format: `projects/{project_number}`", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/groups", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1Group" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1Group" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.groups.delete": + +type ProjectsGroupsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a group. +// +// - name: The name of the group resource. Format: +// `projects/{project_number}/groups/{group_alias}`. +func (r *ProjectsGroupsService) Delete(name string) *ProjectsGroupsDeleteCall { + c := &ProjectsGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsGroupsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsGroupsDeleteCall) Context(ctx context.Context) *ProjectsGroupsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsGroupsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.groups.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Delete a group.", + // "flatPath": "v1/projects/{projectsId}/groups/{groupsId}", + // "httpMethod": "DELETE", + // "id": "firebaseappdistribution.projects.groups.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the group resource. Format: `projects/{project_number}/groups/{group_alias}`", + // "location": "path", + // "pattern": "^projects/[^/]+/groups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.groups.get": + +type ProjectsGroupsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a group. +// +// - name: The name of the group resource to retrieve. Format: +// `projects/{project_number}/groups/{group_alias}`. +func (r *ProjectsGroupsService) Get(name string) *ProjectsGroupsGetCall { + c := &ProjectsGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsGroupsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsGroupsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsGroupsGetCall) Context(ctx context.Context) *ProjectsGroupsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsGroupsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGroupsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.groups.get" call. +// Exactly one of *GoogleFirebaseAppdistroV1Group or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleFirebaseAppdistroV1Group.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Group, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1Group{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Get a group.", + // "flatPath": "v1/projects/{projectsId}/groups/{groupsId}", + // "httpMethod": "GET", + // "id": "firebaseappdistribution.projects.groups.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the group resource to retrieve. Format: `projects/{project_number}/groups/{group_alias}`", + // "location": "path", + // "pattern": "^projects/[^/]+/groups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1Group" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.groups.list": + +type ProjectsGroupsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List groups. +// +// - parent: The name of the project resource, which is the parent of +// the group resources. Format: `projects/{project_number}`. +func (r *ProjectsGroupsService) List(parent string) *ProjectsGroupsListCall { + c := &ProjectsGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of groups to return. The service may return fewer than this value. +// The valid range is [1-100]; If unspecified (0), at most 25 groups are +// returned. Values above 100 are coerced to 100. +func (c *ProjectsGroupsListCall) PageSize(pageSize int64) *ProjectsGroupsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListGroups` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListGroups` must match the call that provided the page token. +func (c *ProjectsGroupsListCall) PageToken(pageToken string) *ProjectsGroupsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsGroupsListCall) Fields(s ...googleapi.Field) *ProjectsGroupsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsGroupsListCall) IfNoneMatch(entityTag string) *ProjectsGroupsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsGroupsListCall) Context(ctx context.Context) *ProjectsGroupsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsGroupsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGroupsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/groups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.groups.list" call. +// Exactly one of *GoogleFirebaseAppdistroV1ListGroupsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppdistroV1ListGroupsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1ListGroupsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1ListGroupsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "List groups.", + // "flatPath": "v1/projects/{projectsId}/groups", + // "httpMethod": "GET", + // "id": "firebaseappdistribution.projects.groups.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of groups to return. The service may return fewer than this value. The valid range is [1-100]; If unspecified (0), at most 25 groups are returned. Values above 100 are coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListGroups` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListGroups` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the project resource, which is the parent of the group resources. Format: `projects/{project_number}`", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/groups", + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1ListGroupsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsGroupsListCall) Pages(ctx context.Context, f func(*GoogleFirebaseAppdistroV1ListGroupsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "firebaseappdistribution.projects.groups.patch": + +type ProjectsGroupsPatchCall struct { + s *Service + name string + googlefirebaseappdistrov1group *GoogleFirebaseAppdistroV1Group + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a group. +// +// - name: The name of the group resource. Format: +// `projects/{project_number}/groups/{group_alias}`. +func (r *ProjectsGroupsService) Patch(name string, googlefirebaseappdistrov1group *GoogleFirebaseAppdistroV1Group) *ProjectsGroupsPatchCall { + c := &ProjectsGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlefirebaseappdistrov1group = googlefirebaseappdistrov1group + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update. +func (c *ProjectsGroupsPatchCall) UpdateMask(updateMask string) *ProjectsGroupsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsGroupsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsGroupsPatchCall) Context(ctx context.Context) *ProjectsGroupsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsGroupsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGroupsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1group) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.groups.patch" call. +// Exactly one of *GoogleFirebaseAppdistroV1Group or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleFirebaseAppdistroV1Group.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Group, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1Group{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update a group.", + // "flatPath": "v1/projects/{projectsId}/groups/{groupsId}", + // "httpMethod": "PATCH", + // "id": "firebaseappdistribution.projects.groups.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the group resource. Format: `projects/{project_number}/groups/{group_alias}`", + // "location": "path", + // "pattern": "^projects/[^/]+/groups/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1Group" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1Group" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.testers.batchAdd": + +type ProjectsTestersBatchAddCall struct { + s *Service + project string + googlefirebaseappdistrov1batchaddtestersrequest *GoogleFirebaseAppdistroV1BatchAddTestersRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchAdd: Batch adds testers. This call adds testers for the +// specified emails if they don't already exist. Returns all testers +// specified in the request, including newly created and previously +// existing testers. This action is idempotent. +// +// - project: The name of the project resource. Format: +// `projects/{project_number}`. +func (r *ProjectsTestersService) BatchAdd(project string, googlefirebaseappdistrov1batchaddtestersrequest *GoogleFirebaseAppdistroV1BatchAddTestersRequest) *ProjectsTestersBatchAddCall { + c := &ProjectsTestersBatchAddCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.googlefirebaseappdistrov1batchaddtestersrequest = googlefirebaseappdistrov1batchaddtestersrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsTestersBatchAddCall) Fields(s ...googleapi.Field) *ProjectsTestersBatchAddCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsTestersBatchAddCall) Context(ctx context.Context) *ProjectsTestersBatchAddCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsTestersBatchAddCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTestersBatchAddCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1batchaddtestersrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}/testers:batchAdd") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.testers.batchAdd" call. +// Exactly one of *GoogleFirebaseAppdistroV1BatchAddTestersResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppdistroV1BatchAddTestersResponse.ServerResponse.Heade +// r or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsTestersBatchAddCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1BatchAddTestersResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1BatchAddTestersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Batch adds testers. This call adds testers for the specified emails if they don't already exist. Returns all testers specified in the request, including newly created and previously existing testers. This action is idempotent.", + // "flatPath": "v1/projects/{projectsId}/testers:batchAdd", + // "httpMethod": "POST", + // "id": "firebaseappdistribution.projects.testers.batchAdd", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "project": { + // "description": "Required. The name of the project resource. Format: `projects/{project_number}`", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+project}/testers:batchAdd", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1BatchAddTestersRequest" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1BatchAddTestersResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.testers.batchRemove": + +type ProjectsTestersBatchRemoveCall struct { + s *Service + project string + googlefirebaseappdistrov1batchremovetestersrequest *GoogleFirebaseAppdistroV1BatchRemoveTestersRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchRemove: Batch removes testers. If found, this call deletes +// testers for the specified emails. Returns all deleted testers. +// +// - project: The name of the project resource. Format: +// `projects/{project_number}`. +func (r *ProjectsTestersService) BatchRemove(project string, googlefirebaseappdistrov1batchremovetestersrequest *GoogleFirebaseAppdistroV1BatchRemoveTestersRequest) *ProjectsTestersBatchRemoveCall { + c := &ProjectsTestersBatchRemoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.googlefirebaseappdistrov1batchremovetestersrequest = googlefirebaseappdistrov1batchremovetestersrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsTestersBatchRemoveCall) Fields(s ...googleapi.Field) *ProjectsTestersBatchRemoveCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsTestersBatchRemoveCall) Context(ctx context.Context) *ProjectsTestersBatchRemoveCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsTestersBatchRemoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTestersBatchRemoveCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1batchremovetestersrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}/testers:batchRemove") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.testers.batchRemove" call. +// Exactly one of *GoogleFirebaseAppdistroV1BatchRemoveTestersResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleFirebaseAppdistroV1BatchRemoveTestersResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsTestersBatchRemoveCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1BatchRemoveTestersResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1BatchRemoveTestersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Batch removes testers. If found, this call deletes testers for the specified emails. Returns all deleted testers.", + // "flatPath": "v1/projects/{projectsId}/testers:batchRemove", + // "httpMethod": "POST", + // "id": "firebaseappdistribution.projects.testers.batchRemove", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "project": { + // "description": "Required. The name of the project resource. Format: `projects/{project_number}`", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+project}/testers:batchRemove", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1BatchRemoveTestersRequest" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1BatchRemoveTestersResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "firebaseappdistribution.projects.testers.list": + +type ProjectsTestersListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists testers and their resource ids. +// +// - parent: The name of the project resource, which is the parent of +// the tester resources. Format: `projects/{project_number}`. +func (r *ProjectsTestersService) List(parent string) *ProjectsTestersListCall { + c := &ProjectsTestersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The expression to filter +// testers listed in the response. To learn more about filtering, refer +// to Google's AIP-160 standard (http://aip.dev/160). Supported fields: +// - `name` - `displayName` - `groups` Example: - `name = +// "projects/-/testers/*@example.com" - `displayName = "Joe Sixpack" - +// `groups = "projects/*/groups/qa-team" +func (c *ProjectsTestersListCall) Filter(filter string) *ProjectsTestersListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of testers to return. The service may return fewer than this value. +// The valid range is [1-1000]; If unspecified (0), at most 10 testers +// are returned. Values above 1000 are coerced to 1000. +func (c *ProjectsTestersListCall) PageSize(pageSize int64) *ProjectsTestersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListTesters` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListTesters` must match the call that provided the page token. +func (c *ProjectsTestersListCall) PageToken(pageToken string) *ProjectsTestersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsTestersListCall) Fields(s ...googleapi.Field) *ProjectsTestersListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsTestersListCall) IfNoneMatch(entityTag string) *ProjectsTestersListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsTestersListCall) Context(ctx context.Context) *ProjectsTestersListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsTestersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTestersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/testers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.testers.list" call. +// Exactly one of *GoogleFirebaseAppdistroV1ListTestersResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppdistroV1ListTestersResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsTestersListCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1ListTestersResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1ListTestersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists testers and their resource ids.", + // "flatPath": "v1/projects/{projectsId}/testers", + // "httpMethod": "GET", + // "id": "firebaseappdistribution.projects.testers.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. The expression to filter testers listed in the response. To learn more about filtering, refer to [Google's AIP-160 standard](http://aip.dev/160). Supported fields: - `name` - `displayName` - `groups` Example: - `name = \"projects/-/testers/*@example.com\"` - `displayName = \"Joe Sixpack\"` - `groups = \"projects/*/groups/qa-team\"`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. The maximum number of testers to return. The service may return fewer than this value. The valid range is [1-1000]; If unspecified (0), at most 10 testers are returned. Values above 1000 are coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListTesters` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTesters` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the project resource, which is the parent of the tester resources. Format: `projects/{project_number}`", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/testers", + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1ListTestersResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsTestersListCall) Pages(ctx context.Context, f func(*GoogleFirebaseAppdistroV1ListTestersResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "firebaseappdistribution.projects.testers.patch": + +type ProjectsTestersPatchCall struct { + s *Service + name string + googlefirebaseappdistrov1tester *GoogleFirebaseAppdistroV1Tester + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a tester. If the testers joins a group they gain access +// to all releases that the group has access to. +// +// - name: The name of the tester resource. Format: +// `projects/{project_number}/testers/{email_address}`. +func (r *ProjectsTestersService) Patch(name string, googlefirebaseappdistrov1tester *GoogleFirebaseAppdistroV1Tester) *ProjectsTestersPatchCall { + c := &ProjectsTestersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlefirebaseappdistrov1tester = googlefirebaseappdistrov1tester + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update. +func (c *ProjectsTestersPatchCall) UpdateMask(updateMask string) *ProjectsTestersPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsTestersPatchCall) Fields(s ...googleapi.Field) *ProjectsTestersPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsTestersPatchCall) Context(ctx context.Context) *ProjectsTestersPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsTestersPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsTestersPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1tester) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.testers.patch" call. +// Exactly one of *GoogleFirebaseAppdistroV1Tester or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleFirebaseAppdistroV1Tester.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsTestersPatchCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1Tester, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1Tester{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update a tester. If the testers joins a group they gain access to all releases that the group has access to.", + // "flatPath": "v1/projects/{projectsId}/testers/{testersId}", + // "httpMethod": "PATCH", + // "id": "firebaseappdistribution.projects.testers.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the tester resource. Format: `projects/{project_number}/testers/{email_address}`", + // "location": "path", + // "pattern": "^projects/[^/]+/testers/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1Tester" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1Tester" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index e8cc78282f3..377e07259bc 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -1816,7 +1816,7 @@ } } }, - "revision": "20230310", + "revision": "20230316", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -4345,14 +4345,14 @@ "id": "PolicyControllerBundleInstallSpec", "properties": { "exemptedNamespaces": { - "description": "the set of namespaces to be exempted from the bundle", + "description": "the set of namespaces to be exempted from the bundle TODO (b/271878194): Decrement this", "items": { "type": "string" }, "type": "array" }, "management": { - "description": "Management specifies how the bundle will be managed by the controller.", + "description": "Management specifies how the bundle will be managed by the controller. TODO (b/271878194): Remove this", "enum": [ "MANAGEMENT_UNSPECIFIED", "INSTALLED" @@ -4432,7 +4432,7 @@ }, "templateLibraryConfig": { "$ref": "PolicyControllerTemplateLibraryConfig", - "description": "Configures the library templates to install along with Policy Controller." + "description": "Configures the library templates to install along with Policy Controller. TODO (b/271878194): Remove this" } }, "type": "object" @@ -4467,9 +4467,13 @@ "additionalProperties": { "$ref": "PolicyControllerOnClusterState" }, - "description": "The state of the template library and any bundles included in the chosen version of the manifest", + "description": "The state of the template library and any bundles included in the chosen version of the manifest TODO (b/271878194): Remove this", "type": "object" }, + "policyContentState": { + "$ref": "PolicyControllerPolicyContentState", + "description": "The overall content state observed by the Hub Feature controller. TODO (b/271878194): Decrement this" + }, "state": { "description": "The overall Policy Controller lifecycle state observed by the Hub Feature controller.", "enum": [ @@ -4570,6 +4574,28 @@ }, "description": "map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.", "type": "object" + }, + "templateLibrary": { + "$ref": "PolicyControllerTemplateLibraryConfig", + "description": "Configures the installation of the Template Library." + } + }, + "type": "object" + }, + "PolicyControllerPolicyContentState": { + "description": "The state of the policy controller policy content", + "id": "PolicyControllerPolicyContentState", + "properties": { + "bundleStates": { + "additionalProperties": { + "$ref": "PolicyControllerOnClusterState" + }, + "description": "The state of the any bundles included in the chosen version of the manifest", + "type": "object" + }, + "templateLibraryState": { + "$ref": "PolicyControllerOnClusterState", + "description": "The state of the template library" } }, "type": "object" @@ -4636,8 +4662,22 @@ "id": "PolicyControllerTemplateLibraryConfig", "properties": { "included": { - "description": "Whether the standard template library should be installed or not.", + "description": "Whether the standard template library should be installed or not. TODO (b/271878194): Remove this", "type": "boolean" + }, + "installation": { + "description": "Configures the manner in which the template library is installed on the cluster. TODO (b/271878194): Decrement this", + "enum": [ + "INSTALLATION_UNSPECIFIED", + "NOT_INSTALLED", + "ALL" + ], + "enumDescriptions": [ + "No installation strategy has been specified.", + "Do not install the template library.", + "Install the entire template library." + ], + "type": "string" } }, "type": "object" diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 992dcaadd72..47a4b99c879 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -4403,11 +4403,11 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // specification configuration for a single managed bundle. type PolicyControllerBundleInstallSpec struct { // ExemptedNamespaces: the set of namespaces to be exempted from the - // bundle + // bundle TODO (b/271878194): Decrement this ExemptedNamespaces []string `json:"exemptedNamespaces,omitempty"` // Management: Management specifies how the bundle will be managed by - // the controller. + // the controller. TODO (b/271878194): Remove this // // Possible values: // "MANAGEMENT_UNSPECIFIED" - No Management strategy has been @@ -4496,7 +4496,7 @@ type PolicyControllerHubConfig struct { ReferentialRulesEnabled bool `json:"referentialRulesEnabled,omitempty"` // TemplateLibraryConfig: Configures the library templates to install - // along with Policy Controller. + // along with Policy Controller. TODO (b/271878194): Remove this TemplateLibraryConfig *PolicyControllerTemplateLibraryConfig `json:"templateLibraryConfig,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -4567,9 +4567,14 @@ type PolicyControllerMembershipState struct { ComponentStates map[string]PolicyControllerOnClusterState `json:"componentStates,omitempty"` // ContentStates: The state of the template library and any bundles - // included in the chosen version of the manifest + // included in the chosen version of the manifest TODO (b/271878194): + // Remove this ContentStates map[string]PolicyControllerOnClusterState `json:"contentStates,omitempty"` + // PolicyContentState: The overall content state observed by the Hub + // Feature controller. TODO (b/271878194): Decrement this + PolicyContentState *PolicyControllerPolicyContentState `json:"policyContentState,omitempty"` + // State: The overall Policy Controller lifecycle state observed by the // Hub Feature controller. // @@ -4752,6 +4757,9 @@ type PolicyControllerPolicyContentSpec struct { // `policycontroller.gke.io/constraintData` annotation on a constraint. Bundles map[string]PolicyControllerBundleInstallSpec `json:"bundles,omitempty"` + // TemplateLibrary: Configures the installation of the Template Library. + TemplateLibrary *PolicyControllerTemplateLibraryConfig `json:"templateLibrary,omitempty"` + // ForceSendFields is a list of field names (e.g. "Bundles") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -4775,6 +4783,39 @@ func (s *PolicyControllerPolicyContentSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PolicyControllerPolicyContentState: The state of the policy +// controller policy content +type PolicyControllerPolicyContentState struct { + // BundleStates: The state of the any bundles included in the chosen + // version of the manifest + BundleStates map[string]PolicyControllerOnClusterState `json:"bundleStates,omitempty"` + + // TemplateLibraryState: The state of the template library + TemplateLibraryState *PolicyControllerOnClusterState `json:"templateLibraryState,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BundleStates") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BundleStates") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PolicyControllerPolicyContentState) MarshalJSON() ([]byte, error) { + type NoMethod PolicyControllerPolicyContentState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PolicyControllerPolicyControllerDeploymentConfig: Deployment-specific // configuration. type PolicyControllerPolicyControllerDeploymentConfig struct { @@ -4884,9 +4925,19 @@ func (s *PolicyControllerResourceRequirements) MarshalJSON() ([]byte, error) { // default library templates to install. type PolicyControllerTemplateLibraryConfig struct { // Included: Whether the standard template library should be installed - // or not. + // or not. TODO (b/271878194): Remove this Included bool `json:"included,omitempty"` + // Installation: Configures the manner in which the template library is + // installed on the cluster. TODO (b/271878194): Decrement this + // + // Possible values: + // "INSTALLATION_UNSPECIFIED" - No installation strategy has been + // specified. + // "NOT_INSTALLED" - Do not install the template library. + // "ALL" - Install the entire template library. + Installation string `json:"installation,omitempty"` + // ForceSendFields is a list of field names (e.g. "Included") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index fe20d790589..1cad7417a32 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -1302,7 +1302,7 @@ } } }, - "revision": "20230310", + "revision": "20230316", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -3259,14 +3259,14 @@ "id": "PolicyControllerBundleInstallSpec", "properties": { "exemptedNamespaces": { - "description": "the set of namespaces to be exempted from the bundle", + "description": "the set of namespaces to be exempted from the bundle TODO (b/271878194): Decrement this", "items": { "type": "string" }, "type": "array" }, "management": { - "description": "Management specifies how the bundle will be managed by the controller.", + "description": "Management specifies how the bundle will be managed by the controller. TODO (b/271878194): Remove this", "enum": [ "MANAGEMENT_UNSPECIFIED", "INSTALLED" @@ -3346,7 +3346,7 @@ }, "templateLibraryConfig": { "$ref": "PolicyControllerTemplateLibraryConfig", - "description": "Configures the library templates to install along with Policy Controller." + "description": "Configures the library templates to install along with Policy Controller. TODO (b/271878194): Remove this" } }, "type": "object" @@ -3381,9 +3381,13 @@ "additionalProperties": { "$ref": "PolicyControllerOnClusterState" }, - "description": "The state of the template library and any bundles included in the chosen version of the manifest", + "description": "The state of the template library and any bundles included in the chosen version of the manifest TODO (b/271878194): Remove this", "type": "object" }, + "policyContentState": { + "$ref": "PolicyControllerPolicyContentState", + "description": "The overall content state observed by the Hub Feature controller. TODO (b/271878194): Decrement this" + }, "state": { "description": "The overall Policy Controller lifecycle state observed by the Hub Feature controller.", "enum": [ @@ -3484,6 +3488,28 @@ }, "description": "map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.", "type": "object" + }, + "templateLibrary": { + "$ref": "PolicyControllerTemplateLibraryConfig", + "description": "Configures the installation of the Template Library." + } + }, + "type": "object" + }, + "PolicyControllerPolicyContentState": { + "description": "The state of the policy controller policy content", + "id": "PolicyControllerPolicyContentState", + "properties": { + "bundleStates": { + "additionalProperties": { + "$ref": "PolicyControllerOnClusterState" + }, + "description": "The state of the any bundles included in the chosen version of the manifest", + "type": "object" + }, + "templateLibraryState": { + "$ref": "PolicyControllerOnClusterState", + "description": "The state of the template library" } }, "type": "object" @@ -3550,8 +3576,22 @@ "id": "PolicyControllerTemplateLibraryConfig", "properties": { "included": { - "description": "Whether the standard template library should be installed or not.", + "description": "Whether the standard template library should be installed or not. TODO (b/271878194): Remove this", "type": "boolean" + }, + "installation": { + "description": "Configures the manner in which the template library is installed on the cluster. TODO (b/271878194): Decrement this", + "enum": [ + "INSTALLATION_UNSPECIFIED", + "NOT_INSTALLED", + "ALL" + ], + "enumDescriptions": [ + "No installation strategy has been specified.", + "Do not install the template library.", + "Install the entire template library." + ], + "type": "string" } }, "type": "object" diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index df6548c1300..456378b2ddc 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -3385,11 +3385,11 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // specification configuration for a single managed bundle. type PolicyControllerBundleInstallSpec struct { // ExemptedNamespaces: the set of namespaces to be exempted from the - // bundle + // bundle TODO (b/271878194): Decrement this ExemptedNamespaces []string `json:"exemptedNamespaces,omitempty"` // Management: Management specifies how the bundle will be managed by - // the controller. + // the controller. TODO (b/271878194): Remove this // // Possible values: // "MANAGEMENT_UNSPECIFIED" - No Management strategy has been @@ -3478,7 +3478,7 @@ type PolicyControllerHubConfig struct { ReferentialRulesEnabled bool `json:"referentialRulesEnabled,omitempty"` // TemplateLibraryConfig: Configures the library templates to install - // along with Policy Controller. + // along with Policy Controller. TODO (b/271878194): Remove this TemplateLibraryConfig *PolicyControllerTemplateLibraryConfig `json:"templateLibraryConfig,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -3549,9 +3549,14 @@ type PolicyControllerMembershipState struct { ComponentStates map[string]PolicyControllerOnClusterState `json:"componentStates,omitempty"` // ContentStates: The state of the template library and any bundles - // included in the chosen version of the manifest + // included in the chosen version of the manifest TODO (b/271878194): + // Remove this ContentStates map[string]PolicyControllerOnClusterState `json:"contentStates,omitempty"` + // PolicyContentState: The overall content state observed by the Hub + // Feature controller. TODO (b/271878194): Decrement this + PolicyContentState *PolicyControllerPolicyContentState `json:"policyContentState,omitempty"` + // State: The overall Policy Controller lifecycle state observed by the // Hub Feature controller. // @@ -3734,6 +3739,9 @@ type PolicyControllerPolicyContentSpec struct { // `policycontroller.gke.io/constraintData` annotation on a constraint. Bundles map[string]PolicyControllerBundleInstallSpec `json:"bundles,omitempty"` + // TemplateLibrary: Configures the installation of the Template Library. + TemplateLibrary *PolicyControllerTemplateLibraryConfig `json:"templateLibrary,omitempty"` + // ForceSendFields is a list of field names (e.g. "Bundles") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -3757,6 +3765,39 @@ func (s *PolicyControllerPolicyContentSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PolicyControllerPolicyContentState: The state of the policy +// controller policy content +type PolicyControllerPolicyContentState struct { + // BundleStates: The state of the any bundles included in the chosen + // version of the manifest + BundleStates map[string]PolicyControllerOnClusterState `json:"bundleStates,omitempty"` + + // TemplateLibraryState: The state of the template library + TemplateLibraryState *PolicyControllerOnClusterState `json:"templateLibraryState,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BundleStates") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BundleStates") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PolicyControllerPolicyContentState) MarshalJSON() ([]byte, error) { + type NoMethod PolicyControllerPolicyContentState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PolicyControllerPolicyControllerDeploymentConfig: Deployment-specific // configuration. type PolicyControllerPolicyControllerDeploymentConfig struct { @@ -3866,9 +3907,19 @@ func (s *PolicyControllerResourceRequirements) MarshalJSON() ([]byte, error) { // default library templates to install. type PolicyControllerTemplateLibraryConfig struct { // Included: Whether the standard template library should be installed - // or not. + // or not. TODO (b/271878194): Remove this Included bool `json:"included,omitempty"` + // Installation: Configures the manner in which the template library is + // installed on the cluster. TODO (b/271878194): Decrement this + // + // Possible values: + // "INSTALLATION_UNSPECIFIED" - No installation strategy has been + // specified. + // "NOT_INSTALLED" - Do not install the template library. + // "ALL" - Install the entire template library. + Installation string `json:"installation,omitempty"` + // ForceSendFields is a list of field names (e.g. "Included") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index dee3cc4435f..2518ec6ffed 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -3279,7 +3279,7 @@ ] }, "search": { - "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html), [R4](http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", + "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html), [R4](http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/_search", "httpMethod": "POST", "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search", @@ -3307,7 +3307,7 @@ ] }, "search-type": { - "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html), [R4](http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", + "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html), [R4](http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{resourceType}/_search", "httpMethod": "POST", "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search-type", @@ -3715,7 +3715,7 @@ ], "parameters": { "parent": { - "description": "The name of the dataset this message belongs to.", + "description": "The name of the HL7v2 store this message belongs to.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", "required": true, @@ -3993,7 +3993,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations", "httpMethod": "GET", "id": "healthcare.projects.locations.datasets.operations.list", @@ -4078,7 +4078,7 @@ } } }, - "revision": "20230310", + "revision": "20230321", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index 8ebf5bdf1af..f409b170886 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -21732,16 +21732,17 @@ type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct { // `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The // maximum number of search results returned defaults to 100, which can // be overridden by the `_count` parameter up to a maximum limit of -// 1000. If there are additional results, the returned `Bundle` contains -// a link of `relation` "next", which has a `_page_token` parameter for -// an opaque pagination token that can be used to retrieve the next -// page. Resources with a total size larger than 5MB or a field count -// larger than 50,000 might not be fully searchable as the server might -// trim its generated search index in those cases. Note: FHIR resources -// are indexed asynchronously, so there might be a slight delay between -// the time a resource is created or changes and when the change is -// reflected in search results. For samples and detailed information, -// see Searching for FHIR resources +// 1000. The server might return fewer resources than requested to +// prevent excessively large responses. If there are additional results, +// the returned `Bundle` contains a link of `relation` "next", which has +// a `_page_token` parameter for an opaque pagination token that can be +// used to retrieve the next page. Resources with a total size larger +// than 5MB or a field count larger than 50,000 might not be fully +// searchable as the server might trim its generated search index in +// those cases. Note: FHIR resources are indexed asynchronously, so +// there might be a slight delay between the time a resource is created +// or changes and when the change is reflected in search results. For +// samples and detailed information, see Searching for FHIR resources // (https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and // Advanced FHIR search features // (https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search). @@ -21812,7 +21813,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Do(opts ...googleapi gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") // { - // "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html), [R4](http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", + // "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html), [R4](http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/_search", // "httpMethod": "POST", // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search", @@ -21894,16 +21895,17 @@ type ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall struct { // `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The // maximum number of search results returned defaults to 100, which can // be overridden by the `_count` parameter up to a maximum limit of -// 1000. If there are additional results, the returned `Bundle` contains -// a link of `relation` "next", which has a `_page_token` parameter for -// an opaque pagination token that can be used to retrieve the next -// page. Resources with a total size larger than 5MB or a field count -// larger than 50,000 might not be fully searchable as the server might -// trim its generated search index in those cases. Note: FHIR resources -// are indexed asynchronously, so there might be a slight delay between -// the time a resource is created or changes and when the change is -// reflected in search results. For samples and detailed information, -// see Searching for FHIR resources +// 1000. The server might return fewer resources than requested to +// prevent excessively large responses. If there are additional results, +// the returned `Bundle` contains a link of `relation` "next", which has +// a `_page_token` parameter for an opaque pagination token that can be +// used to retrieve the next page. Resources with a total size larger +// than 5MB or a field count larger than 50,000 might not be fully +// searchable as the server might trim its generated search index in +// those cases. Note: FHIR resources are indexed asynchronously, so +// there might be a slight delay between the time a resource is created +// or changes and when the change is reflected in search results. For +// samples and detailed information, see Searching for FHIR resources // (https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and // Advanced FHIR search features // (https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search). @@ -21983,7 +21985,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) Do(opts ...googl gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") // { - // "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html), [R4](http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", + // "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](http://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html), [R4](http://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](http://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{resourceType}/_search", // "httpMethod": "POST", // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search-type", @@ -23905,7 +23907,7 @@ type ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall struct { // topic, the adapter transmits the message when a notification is // received. // -// - parent: The name of the dataset this message belongs to. +// - parent: The name of the HL7v2 store this message belongs to. func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Create(parent string, createmessagerequest *CreateMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall { c := &ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -24013,7 +24015,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Do(opts ...goog // ], // "parameters": { // "parent": { - // "description": "The name of the dataset this message belongs to.", + // "description": "The name of the HL7v2 store this message belongs to.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", // "required": true, @@ -25299,14 +25301,7 @@ type ProjectsLocationsDatasetsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall { @@ -25435,7 +25430,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations", // "httpMethod": "GET", // "id": "healthcare.projects.locations.datasets.operations.list", diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index 907142ce9c6..bc388699639 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -3654,6 +3654,57 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "Resource-incoming-references": { + "description": "Gets all incoming references to a given target FHIR resource. Can also get all incoming references when the target resource does not exist, for example, if the target has been deleted. On success, the response body contains a Bundle with type `searchset`, where each entry in the Bundle contains the full content of the resource. If the operation fails, an `OperationOutcome` is returned describing the failure. If the request cannot be mapped to a valid API method on a FHIR store, a generic Google Cloud error might be returned instead.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/$references", + "httpMethod": "GET", + "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-incoming-references", + "parameterOrder": [ + "parent" + ], + "parameters": { + "_count": { + "description": "Maximum number of resources in a page. If not specified, 100 is used. May not be larger than 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "_page_token": { + "description": "Used to retrieve the next page of results when using pagination. Set `_page_token` to the value of _page_token set in next page links' url. Next page are returned in the response bundle's links field, where `link.relation` is \"next\". Omit `_page_token` if no previous request has been made.", + "location": "query", + "type": "string" + }, + "_summary": { + "description": "Used to simplify the representation of the returned resources. `_summary=text` returns only the `text`, `id`, and `meta` top-level fields. `_summary=data` removes the `text` field and returns all other fields. `_summary=false` returns all parts of the resource(s). Either not providing this parameter or providing an empty value to this parameter also returns all parts of the resource(s).", + "location": "query", + "type": "string" + }, + "_type": { + "description": "String of comma-delimited FHIR resource types. If provided, only resources of the specified resource type(s) are returned. If not provided or an empty value is provided, no filter on the returned resource type(s) is applied.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the FHIR store that holds the target resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", + "required": true, + "type": "string" + }, + "target": { + "description": "Required. The target whose incoming references are requested. This param is required and must not be empty. It uses the format \"ResourceType/ResourceID\", for example, target=ResourceType/ResourceID.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/fhir/$references", + "response": { + "$ref": "HttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "Resource-purge": { "description": "Deletes all the historical versions of a resource (excluding the current version) from the FHIR store. To remove all versions of a resource, first delete the current version and then call this method. This is not a FHIR standard operation. For samples that show how to call `Resource-purge`, see [Deleting historical versions of a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#deleting_historical_versions_of_a_fhir_resource).", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{fhirId}/{fhirId1}/$purge", @@ -4039,7 +4090,7 @@ ] }, "search": { - "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", + "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/_search", "httpMethod": "POST", "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search", @@ -4067,7 +4118,7 @@ ] }, "search-type": { - "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", + "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{resourceType}/_search", "httpMethod": "POST", "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search-type", @@ -4527,7 +4578,7 @@ ], "parameters": { "parent": { - "description": "The name of the dataset this message belongs to.", + "description": "The name of the HL7v2 store this message belongs to.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", "required": true, @@ -4805,7 +4856,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations", "httpMethod": "GET", "id": "healthcare.projects.locations.datasets.operations.list", @@ -4890,7 +4941,7 @@ } } }, - "revision": "20230310", + "revision": "20230321", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "Action": { @@ -6185,7 +6236,7 @@ }, "gcsDestination": { "$ref": "GcsDestination", - "description": "Export to a Cloud Storage destination." + "description": "Exports to a Cloud Storage destination." }, "startTime": { "description": "The start of the range in `send_time` (MSH.7, https://www.hl7.org/documentcenter/public_temp_2E58C1F9-1C23-BA17-0C6126475344DA9D/wg/conf/HL7MSH.htm) to process. If not specified, the UNIX epoch (1970-01-01T00:00:00Z) is used. This value has to come before the `end_time` defined below. Only messages whose `send_time` lies in the range `start_time` (inclusive) to `end_time` (exclusive) are exported.", @@ -8107,7 +8158,7 @@ ], "enumDescriptions": [ "No schema type specified. This type is unsupported.", - "A data-driven schema generated from the fields present in the FHIR data being exported, with no additional simplification.", + "A data-driven schema generated from the fields present in the FHIR data being exported, with no additional simplification. This type cannot be used for streaming to BigQuery.", "Analytics schema defined by the FHIR community. See https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md. BigQuery only allows a maximum of 10,000 columns per table. Due to this limitation, the server will not generate schemas for fields of type `Resource`, which can hold any resource type. The affected fields are `Parameters.parameter.resource`, `Bundle.entry.resource`, and `Bundle.entry.response.outcome`.", "Analytics V2, similar to schema defined by the FHIR community, with added support for extensions with one or more occurrences and contained resources in stringified JSON. Analytics V2 uses more space in the destination table than Analytics V1." ], diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index a6b5f905e8e..34afa81b041 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -2816,7 +2816,7 @@ type ExportMessagesRequest struct { // (inclusive) to `end_time` (exclusive) are exported. EndTime string `json:"endTime,omitempty"` - // GcsDestination: Export to a Cloud Storage destination. + // GcsDestination: Exports to a Cloud Storage destination. GcsDestination *GcsDestination `json:"gcsDestination,omitempty"` // StartTime: The start of the range in `send_time` (MSH.7, @@ -6753,6 +6753,7 @@ type SchemaConfig struct { // unsupported. // "LOSSLESS" - A data-driven schema generated from the fields present // in the FHIR data being exported, with no additional simplification. + // This type cannot be used for streaming to BigQuery. // "ANALYTICS" - Analytics schema defined by the FHIR community. See // https://github.com/FHIR/sql-on-fhir/blob/master/sql-on-fhir.md. // BigQuery only allows a maximum of 10,000 columns per table. Due to @@ -25459,6 +25460,201 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirPatientEverythingCall) Do(opts . } +// method id "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-incoming-references": + +type ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ResourceIncomingReferences: Gets all incoming references to a given +// target FHIR resource. Can also get all incoming references when the +// target resource does not exist, for example, if the target has been +// deleted. On success, the response body contains a Bundle with type +// `searchset`, where each entry in the Bundle contains the full content +// of the resource. If the operation fails, an `OperationOutcome` is +// returned describing the failure. If the request cannot be mapped to a +// valid API method on a FHIR store, a generic Google Cloud error might +// be returned instead. +// +// - parent: The name of the FHIR store that holds the target resource. +func (r *ProjectsLocationsDatasetsFhirStoresFhirService) ResourceIncomingReferences(parent string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall { + c := &ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Count sets the optional parameter "_count": Maximum number of +// resources in a page. If not specified, 100 is used. May not be larger +// than 1000. +func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Count(Count int64) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall { + c.urlParams_.Set("_count", fmt.Sprint(Count)) + return c +} + +// PageToken sets the optional parameter "_page_token": Used to retrieve +// the next page of results when using pagination. Set `_page_token` to +// the value of _page_token set in next page links' url. Next page are +// returned in the response bundle's links field, where `link.relation` +// is "next". Omit `_page_token` if no previous request has been made. +func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) PageToken(PageToken string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall { + c.urlParams_.Set("_page_token", PageToken) + return c +} + +// Summary sets the optional parameter "_summary": Used to simplify the +// representation of the returned resources. `_summary=text` returns +// only the `text`, `id`, and `meta` top-level fields. `_summary=data` +// removes the `text` field and returns all other fields. +// `_summary=false` returns all parts of the resource(s). Either not +// providing this parameter or providing an empty value to this +// parameter also returns all parts of the resource(s). +func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Summary(Summary string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall { + c.urlParams_.Set("_summary", Summary) + return c +} + +// Type sets the optional parameter "_type": String of comma-delimited +// FHIR resource types. If provided, only resources of the specified +// resource type(s) are returned. If not provided or an empty value is +// provided, no filter on the returned resource type(s) is applied. +func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Type(Type string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall { + c.urlParams_.Set("_type", Type) + return c +} + +// Target sets the optional parameter "target": Required. The target +// whose incoming references are requested. This param is required and +// must not be empty. It uses the format "ResourceType/ResourceID", for +// example, target=ResourceType/ResourceID. +func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Target(target string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall { + c.urlParams_.Set("target", target) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Context(ctx context.Context) *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/fhir/$references") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-incoming-references" call. +func (c *ProjectsLocationsDatasetsFhirStoresFhirResourceIncomingReferencesCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { + gensupport.SetOptions(c.urlParams_, opts...) + return c.doRequest("") + // { + // "description": "Gets all incoming references to a given target FHIR resource. Can also get all incoming references when the target resource does not exist, for example, if the target has been deleted. On success, the response body contains a Bundle with type `searchset`, where each entry in the Bundle contains the full content of the resource. If the operation fails, an `OperationOutcome` is returned describing the failure. If the request cannot be mapped to a valid API method on a FHIR store, a generic Google Cloud error might be returned instead.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/$references", + // "httpMethod": "GET", + // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-incoming-references", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "_count": { + // "description": "Maximum number of resources in a page. If not specified, 100 is used. May not be larger than 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "_page_token": { + // "description": "Used to retrieve the next page of results when using pagination. Set `_page_token` to the value of _page_token set in next page links' url. Next page are returned in the response bundle's links field, where `link.relation` is \"next\". Omit `_page_token` if no previous request has been made.", + // "location": "query", + // "type": "string" + // }, + // "_summary": { + // "description": "Used to simplify the representation of the returned resources. `_summary=text` returns only the `text`, `id`, and `meta` top-level fields. `_summary=data` removes the `text` field and returns all other fields. `_summary=false` returns all parts of the resource(s). Either not providing this parameter or providing an empty value to this parameter also returns all parts of the resource(s).", + // "location": "query", + // "type": "string" + // }, + // "_type": { + // "description": "String of comma-delimited FHIR resource types. If provided, only resources of the specified resource type(s) are returned. If not provided or an empty value is provided, no filter on the returned resource type(s) is applied.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the FHIR store that holds the target resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/fhirStores/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "target": { + // "description": "Required. The target whose incoming references are requested. This param is required and must not be empty. It uses the format \"ResourceType/ResourceID\", for example, target=ResourceType/ResourceID.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/fhir/$references", + // "response": { + // "$ref": "HttpBody" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "healthcare.projects.locations.datasets.fhirStores.fhir.Resource-purge": type ProjectsLocationsDatasetsFhirStoresFhirResourcePurgeCall struct { @@ -27257,16 +27453,17 @@ type ProjectsLocationsDatasetsFhirStoresFhirSearchCall struct { // `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The // maximum number of search results returned defaults to 100, which can // be overridden by the `_count` parameter up to a maximum limit of -// 1000. If there are additional results, the returned `Bundle` contains -// a link of `relation` "next", which has a `_page_token` parameter for -// an opaque pagination token that can be used to retrieve the next -// page. Resources with a total size larger than 5MB or a field count -// larger than 50,000 might not be fully searchable as the server might -// trim its generated search index in those cases. Note: FHIR resources -// are indexed asynchronously, so there might be a slight delay between -// the time a resource is created or changes and when the change is -// reflected in search results. For samples and detailed information, -// see Searching for FHIR resources +// 1000. The server might return fewer resources than requested to +// prevent excessively large responses. If there are additional results, +// the returned `Bundle` contains a link of `relation` "next", which has +// a `_page_token` parameter for an opaque pagination token that can be +// used to retrieve the next page. Resources with a total size larger +// than 5MB or a field count larger than 50,000 might not be fully +// searchable as the server might trim its generated search index in +// those cases. Note: FHIR resources are indexed asynchronously, so +// there might be a slight delay between the time a resource is created +// or changes and when the change is reflected in search results. For +// samples and detailed information, see Searching for FHIR resources // (https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and // Advanced FHIR search features // (https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search). @@ -27337,7 +27534,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchCall) Do(opts ...googleapi gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") // { - // "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", + // "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/_search", // "httpMethod": "POST", // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search", @@ -27420,16 +27617,17 @@ type ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall struct { // `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The // maximum number of search results returned defaults to 100, which can // be overridden by the `_count` parameter up to a maximum limit of -// 1000. If there are additional results, the returned `Bundle` contains -// a link of `relation` "next", which has a `_page_token` parameter for -// an opaque pagination token that can be used to retrieve the next -// page. Resources with a total size larger than 5MB or a field count -// larger than 50,000 might not be fully searchable as the server might -// trim its generated search index in those cases. Note: FHIR resources -// are indexed asynchronously, so there might be a slight delay between -// the time a resource is created or changes and when the change is -// reflected in search results. For samples and detailed information, -// see Searching for FHIR resources +// 1000. The server might return fewer resources than requested to +// prevent excessively large responses. If there are additional results, +// the returned `Bundle` contains a link of `relation` "next", which has +// a `_page_token` parameter for an opaque pagination token that can be +// used to retrieve the next page. Resources with a total size larger +// than 5MB or a field count larger than 50,000 might not be fully +// searchable as the server might trim its generated search index in +// those cases. Note: FHIR resources are indexed asynchronously, so +// there might be a slight delay between the time a resource is created +// or changes and when the change is reflected in search results. For +// samples and detailed information, see Searching for FHIR resources // (https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and // Advanced FHIR search features // (https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search). @@ -27510,7 +27708,7 @@ func (c *ProjectsLocationsDatasetsFhirStoresFhirSearchTypeCall) Do(opts ...googl gensupport.SetOptions(c.urlParams_, opts...) return c.doRequest("") // { - // "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", + // "description": "Searches for resources in the given FHIR store according to criteria specified as query parameters. Implements the FHIR standard search interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](https://hl7.org/implement/standards/fhir/R4/http.html#search)) using the search semantics described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/search.html)). Supports four methods of search defined by the specification: * `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?[parameters]` to search resources of a specified type. * `POST [base]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method across all resources. * `POST [base]/[type]/_search?[parameters]` as an alternate form having the same semantics as the `GET` method for the specified type. The `GET` and `POST` methods do not support compartment searches. The `POST` method does not support `application/x-www-form-urlencoded` search parameters. On success, the response body contains a JSON-encoded representation of a `Bundle` resource of type `searchset`, containing the results of the search. Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. The server's capability statement, retrieved through capabilities, indicates what search parameters are supported on each FHIR resource. A list of all search parameters defined by the specification can be found in the FHIR Search Parameter Registry ([STU3](https://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can be found on each resource's definition page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `recurse` (DSTU2 and STU3) or `:iterate` (R4). Supported search result parameters: `_sort`, `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum number of search results returned defaults to 100, which can be overridden by the `_count` parameter up to a maximum limit of 1000. The server might return fewer resources than requested to prevent excessively large responses. If there are additional results, the returned `Bundle` contains a link of `relation` \"next\", which has a `_page_token` parameter for an opaque pagination token that can be used to retrieve the next page. Resources with a total size larger than 5MB or a field count larger than 50,000 might not be fully searchable as the server might trim its generated search index in those cases. Note: FHIR resources are indexed asynchronously, so there might be a slight delay between the time a resource is created or changes and when the change is reflected in search results. For samples and detailed information, see [Searching for FHIR resources](https://cloud.google.com/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](https://cloud.google.com/healthcare/docs/how-tos/fhir-advanced-search).", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/{resourceType}/_search", // "httpMethod": "POST", // "id": "healthcare.projects.locations.datasets.fhirStores.fhir.search-type", @@ -29648,7 +29846,7 @@ type ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall struct { // topic, the adapter transmits the message when a notification is // received. // -// - parent: The name of the dataset this message belongs to. +// - parent: The name of the HL7v2 store this message belongs to. func (r *ProjectsLocationsDatasetsHl7V2StoresMessagesService) Create(parent string, createmessagerequest *CreateMessageRequest) *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall { c := &ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -29756,7 +29954,7 @@ func (c *ProjectsLocationsDatasetsHl7V2StoresMessagesCreateCall) Do(opts ...goog // ], // "parameters": { // "parent": { - // "description": "The name of the dataset this message belongs to.", + // "description": "The name of the HL7v2 store this message belongs to.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/hl7V2Stores/[^/]+$", // "required": true, @@ -31048,14 +31246,7 @@ type ProjectsLocationsDatasetsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall { @@ -31184,7 +31375,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations", // "httpMethod": "GET", // "id": "healthcare.projects.locations.datasets.operations.list", diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index 79821364211..7d6c6b98d9e 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -646,6 +646,160 @@ }, "resources": { "keys": { + "methods": { + "create": { + "description": "Creates a new WorkforcePoolProviderKey in a WorkforcePoolProvider.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys", + "httpMethod": "POST", + "id": "iam.locations.workforcePools.providers.keys.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The provider to create this key in.", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", + "required": true, + "type": "string" + }, + "workforcePoolProviderKeyId": { + "description": "Required. The ID to use for the key, which becomes the final component of the resource name. This value must be 4-32 characters, and may contain the characters [a-z0-9-].", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/keys", + "request": { + "$ref": "WorkforcePoolProviderKey" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a WorkforcePoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys/{keysId}", + "httpMethod": "DELETE", + "id": "iam.locations.workforcePools.providers.keys.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the key to delete.", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/keys/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a WorkforcePoolProviderKey.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys/{keysId}", + "httpMethod": "GET", + "id": "iam.locations.workforcePools.providers.keys.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the key to retrieve.", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/keys/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "WorkforcePoolProviderKey" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all non-deleted WorkforcePoolProviderKeys in a WorkforcePoolProvider. If `show_deleted` is set to `true`, then deleted keys are also listed.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys", + "httpMethod": "GET", + "id": "iam.locations.workforcePools.providers.keys.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of keys to return. If unspecified, all keys are returned. The maximum value is 10; values above 10 are truncated to 10.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListWorkforcePoolProviderKeys` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The provider resource to list encryption keys for. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", + "required": true, + "type": "string" + }, + "showDeleted": { + "description": "Whether to return soft-deleted keys.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/keys", + "response": { + "$ref": "ListWorkforcePoolProviderKeysResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "undelete": { + "description": "Undeletes a WorkforcePoolProviderKey, as long as it was deleted fewer than 30 days ago.", + "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys/{keysId}:undelete", + "httpMethod": "POST", + "id": "iam.locations.workforcePools.providers.keys.undelete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the key to undelete.", + "location": "path", + "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/keys/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:undelete", + "request": { + "$ref": "UndeleteWorkforcePoolProviderKeyRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "operations": { "methods": { @@ -1445,6 +1599,160 @@ }, "resources": { "keys": { + "methods": { + "create": { + "description": "Create a new WorkloadIdentityPoolProviderKey in a WorkloadIdentityPoolProvider.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/keys", + "httpMethod": "POST", + "id": "iam.projects.locations.workloadIdentityPools.providers.keys.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent provider resource to create the key in.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", + "required": true, + "type": "string" + }, + "workloadIdentityPoolProviderKeyId": { + "description": "Required. The ID to use for the key, which becomes the final component of the resource name. This value should be 4-32 characters, and may contain the characters [a-z0-9-].", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/keys", + "request": { + "$ref": "WorkloadIdentityPoolProviderKey" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an WorkloadIdentityPoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/keys/{keysId}", + "httpMethod": "DELETE", + "id": "iam.projects.locations.workloadIdentityPools.providers.keys.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the encryption key to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+/keys/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an individual WorkloadIdentityPoolProviderKey.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/keys/{keysId}", + "httpMethod": "GET", + "id": "iam.projects.locations.workloadIdentityPools.providers.keys.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the key to retrieve.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+/keys/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "WorkloadIdentityPoolProviderKey" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all non-deleted WorkloadIdentityPoolProviderKeys in a project. If show_deleted is set to `true`, then deleted pools are also listed.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/keys", + "httpMethod": "GET", + "id": "iam.projects.locations.workloadIdentityPools.providers.keys.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of keys to return. If unspecified, all keys are returned. The maximum value is 10; values above 10 are truncated to 10.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListWorkloadIdentityPoolProviderKeys` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent provider resource to list encryption keys for.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", + "required": true, + "type": "string" + }, + "showDeleted": { + "description": "Whether to return soft deleted resources as well.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/keys", + "response": { + "$ref": "ListWorkloadIdentityPoolProviderKeysResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "undelete": { + "description": "Undeletes an WorkloadIdentityPoolProviderKey, as long as it was deleted fewer than 30 days ago.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/keys/{keysId}:undelete", + "httpMethod": "POST", + "id": "iam.projects.locations.workloadIdentityPools.providers.keys.undelete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the encryption key to undelete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+/keys/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:undelete", + "request": { + "$ref": "UndeleteWorkloadIdentityPoolProviderKeyRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "operations": { "methods": { @@ -2441,7 +2749,7 @@ } } }, - "revision": "20230209", + "revision": "20230323", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AdminAuditData": { @@ -2758,6 +3066,59 @@ }, "type": "object" }, + "KeyData": { + "description": "Represents a public key data along with its format.", + "id": "KeyData", + "properties": { + "format": { + "description": "Output only. The format of the key.", + "enum": [ + "KEY_FORMAT_UNSPECIFIED", + "RSA_X509_PEM" + ], + "enumDescriptions": [ + "No format has been specified. This is an invalid format and must not be used.", + "A RSA public key wrapped in an X.509v3 certificate ([RFC5280] ( https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped in [public certificate label](https://datatracker.ietf.org/doc/html/rfc7468#section-5.1)." + ], + "readOnly": true, + "type": "string" + }, + "key": { + "description": "Output only. The key data. The format of the key is represented by the format field.", + "readOnly": true, + "type": "string" + }, + "keySpec": { + "description": "Immutable. The specifications for the key.", + "enum": [ + "KEY_SPEC_UNSPECIFIED", + "RSA_2048", + "RSA_3072", + "RSA_4096" + ], + "enumDescriptions": [ + "No key specification specified.", + "A 2048 bit RSA key.", + "A 3072 bit RSA key.", + "A 4096 bit RSA key." + ], + "type": "string" + }, + "notAfterTime": { + "description": "Output only. Latest timestamp when this key is valid. Attempts to use this key after this time will fail. Only present if the key data represents a X.509 certificate.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "notBeforeTime": { + "description": "Output only. Earliest timestamp when this key is valid. Attempts to use this key before this time will fail. Only present if the key data represents a X.509 certificate.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "LintPolicyRequest": { "description": "The request to lint a Cloud IAM policy object.", "id": "LintPolicyRequest", @@ -2893,6 +3254,24 @@ }, "type": "object" }, + "ListWorkforcePoolProviderKeysResponse": { + "description": "Response message for ListWorkforcePoolProviderKeys.", + "id": "ListWorkforcePoolProviderKeysResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "workforcePoolProviderKeys": { + "description": "A list of WorkforcePoolProviderKeys.", + "items": { + "$ref": "WorkforcePoolProviderKey" + }, + "type": "array" + } + }, + "type": "object" + }, "ListWorkforcePoolProvidersResponse": { "description": "Response message for ListWorkforcePoolProviders.", "id": "ListWorkforcePoolProvidersResponse", @@ -2929,6 +3308,24 @@ }, "type": "object" }, + "ListWorkloadIdentityPoolProviderKeysResponse": { + "description": "Response message for ListWorkloadIdentityPoolProviderKeys.", + "id": "ListWorkloadIdentityPoolProviderKeysResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "workloadIdentityPoolProviderKeys": { + "description": "A list of WorkloadIdentityPoolProviderKey", + "items": { + "$ref": "WorkloadIdentityPoolProviderKey" + }, + "type": "array" + } + }, + "type": "object" + }, "ListWorkloadIdentityPoolProvidersResponse": { "description": "Response message for ListWorkloadIdentityPoolProviders.", "id": "ListWorkloadIdentityPoolProvidersResponse", @@ -3629,6 +4026,12 @@ }, "type": "object" }, + "UndeleteWorkforcePoolProviderKeyRequest": { + "description": "Request message for UndeleteWorkforcePoolProviderKey.", + "id": "UndeleteWorkforcePoolProviderKeyRequest", + "properties": {}, + "type": "object" + }, "UndeleteWorkforcePoolProviderRequest": { "description": "Request message for UndeleteWorkforcePoolProvider.", "id": "UndeleteWorkforcePoolProviderRequest", @@ -3647,6 +4050,12 @@ "properties": {}, "type": "object" }, + "UndeleteWorkloadIdentityPoolProviderKeyRequest": { + "description": "Request message for UndeleteWorkloadIdentityPoolProviderKey.", + "id": "UndeleteWorkloadIdentityPoolProviderKeyRequest", + "properties": {}, + "type": "object" + }, "UndeleteWorkloadIdentityPoolProviderRequest": { "description": "Request message for UndeleteWorkloadIdentityPoolProvider.", "id": "UndeleteWorkloadIdentityPoolProviderRequest", @@ -3777,6 +4186,55 @@ }, "type": "object" }, + "WorkforcePoolProviderKey": { + "description": "Represents a public key configuration for a Workforce Pool Provider. The key can be configured in your identity provider to encrypt SAML assertions. Google holds the corresponding private key, which it uses to decrypt encrypted tokens.", + "id": "WorkforcePoolProviderKey", + "properties": { + "expireTime": { + "description": "Output only. The time after which the key will be permanently deleted and cannot be recovered. Note that the key may get purged before this time if the total limit of keys per provider is exceeded.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "keyData": { + "$ref": "KeyData", + "description": "Immutable. Public half of the asymmetric key." + }, + "name": { + "description": "Output only. The resource name of the key.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The state of the key.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "DELETED" + ], + "enumDescriptions": [ + "State unspecified.", + "The key is active.", + "The key is soft-deleted. Soft-deleted keys are permanently deleted after approximately 30 days. You can restore a soft-deleted key using UndeleteWorkforcePoolProviderKey." + ], + "readOnly": true, + "type": "string" + }, + "use": { + "description": "Immutable. The purpose of the key.", + "enum": [ + "KEY_USE_UNSPECIFIED", + "ENCRYPTION" + ], + "enumDescriptions": [ + "KeyUse unspecified.", + "The key is used for encryption." + ], + "type": "string" + } + }, + "type": "object" + }, "WorkloadIdentityPool": { "description": "Represents a collection of external workload identities. You can define IAM policies to grant these identities access to Google Cloud resources.", "id": "WorkloadIdentityPool", @@ -3883,6 +4341,55 @@ } }, "type": "object" + }, + "WorkloadIdentityPoolProviderKey": { + "description": "Represents a public key configuration for your workload identity pool provider. The key can be configured in your identity provider to encrypt the SAML assertions. Google holds the corresponding private key which it uses to decrypt encrypted tokens.", + "id": "WorkloadIdentityPoolProviderKey", + "properties": { + "expireTime": { + "description": "Output only. Time after which the key will be permanently purged and cannot be recovered. Note that the key may get purged before this timestamp if the total limit of keys per provider is crossed.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "keyData": { + "$ref": "KeyData", + "description": "Immutable. Public half of the asymmetric key." + }, + "name": { + "description": "Output only. The resource name of the key.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The state of the key.", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "DELETED" + ], + "enumDescriptions": [ + "State unspecified.", + "The key is active.", + "The key is soft-deleted. Soft-deleted keys are permanently deleted after approximately 30 days. You can restore a soft-deleted key using UndeleteWorkloadIdentityPoolProviderKey. While a key is deleted, you cannot use it during the federation." + ], + "readOnly": true, + "type": "string" + }, + "use": { + "description": "Immutable. The purpose of the key.", + "enum": [ + "KEY_USE_UNSPECIFIED", + "ENCRYPTION" + ], + "enumDescriptions": [ + "The key use is not known.", + "The public key is used for encryption purposes." + ], + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index a426059052b..37507ad314f 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -1132,6 +1132,65 @@ func (s *GoogleIamAdminV1WorkforcePoolProviderSaml) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// KeyData: Represents a public key data along with its format. +type KeyData struct { + // Format: Output only. The format of the key. + // + // Possible values: + // "KEY_FORMAT_UNSPECIFIED" - No format has been specified. This is an + // invalid format and must not be used. + // "RSA_X509_PEM" - A RSA public key wrapped in an X.509v3 certificate + // ([RFC5280] ( https://www.ietf.org/rfc/rfc5280.txt)), encoded in + // base64, and wrapped in [public certificate + // label](https://datatracker.ietf.org/doc/html/rfc7468#section-5.1). + Format string `json:"format,omitempty"` + + // Key: Output only. The key data. The format of the key is represented + // by the format field. + Key string `json:"key,omitempty"` + + // KeySpec: Immutable. The specifications for the key. + // + // Possible values: + // "KEY_SPEC_UNSPECIFIED" - No key specification specified. + // "RSA_2048" - A 2048 bit RSA key. + // "RSA_3072" - A 3072 bit RSA key. + // "RSA_4096" - A 4096 bit RSA key. + KeySpec string `json:"keySpec,omitempty"` + + // NotAfterTime: Output only. Latest timestamp when this key is valid. + // Attempts to use this key after this time will fail. Only present if + // the key data represents a X.509 certificate. + NotAfterTime string `json:"notAfterTime,omitempty"` + + // NotBeforeTime: Output only. Earliest timestamp when this key is + // valid. Attempts to use this key before this time will fail. Only + // present if the key data represents a X.509 certificate. + NotBeforeTime string `json:"notBeforeTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Format") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *KeyData) MarshalJSON() ([]byte, error) { + type NoMethod KeyData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LintPolicyRequest: The request to lint a Cloud IAM policy object. type LintPolicyRequest struct { // Condition: google.iam.v1.Binding.condition object to be linted. @@ -1389,6 +1448,44 @@ func (s *ListServiceAccountsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListWorkforcePoolProviderKeysResponse: Response message for +// ListWorkforcePoolProviderKeys. +type ListWorkforcePoolProviderKeysResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // WorkforcePoolProviderKeys: A list of WorkforcePoolProviderKeys. + WorkforcePoolProviderKeys []*WorkforcePoolProviderKey `json:"workforcePoolProviderKeys,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListWorkforcePoolProviderKeysResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkforcePoolProviderKeysResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListWorkforcePoolProvidersResponse: Response message for // ListWorkforcePoolProviders. type ListWorkforcePoolProvidersResponse struct { @@ -1464,6 +1561,45 @@ func (s *ListWorkforcePoolsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListWorkloadIdentityPoolProviderKeysResponse: Response message for +// ListWorkloadIdentityPoolProviderKeys. +type ListWorkloadIdentityPoolProviderKeysResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // WorkloadIdentityPoolProviderKeys: A list of + // WorkloadIdentityPoolProviderKey + WorkloadIdentityPoolProviderKeys []*WorkloadIdentityPoolProviderKey `json:"workloadIdentityPoolProviderKeys,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListWorkloadIdentityPoolProviderKeysResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkloadIdentityPoolProviderKeysResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListWorkloadIdentityPoolProvidersResponse: Response message for // ListWorkloadIdentityPoolProviders. type ListWorkloadIdentityPoolProvidersResponse struct { @@ -2826,6 +2962,11 @@ func (s *UndeleteServiceAccountResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UndeleteWorkforcePoolProviderKeyRequest: Request message for +// UndeleteWorkforcePoolProviderKey. +type UndeleteWorkforcePoolProviderKeyRequest struct { +} + // UndeleteWorkforcePoolProviderRequest: Request message for // UndeleteWorkforcePoolProvider. type UndeleteWorkforcePoolProviderRequest struct { @@ -2841,6 +2982,11 @@ type UndeleteWorkforcePoolRequest struct { type UndeleteWorkforcePoolSubjectRequest struct { } +// UndeleteWorkloadIdentityPoolProviderKeyRequest: Request message for +// UndeleteWorkloadIdentityPoolProviderKey. +type UndeleteWorkloadIdentityPoolProviderKeyRequest struct { +} + // UndeleteWorkloadIdentityPoolProviderRequest: Request message for // UndeleteWorkloadIdentityPoolProvider. type UndeleteWorkloadIdentityPoolProviderRequest struct { @@ -3091,6 +3237,67 @@ func (s *WorkforcePoolProvider) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// WorkforcePoolProviderKey: Represents a public key configuration for a +// Workforce Pool Provider. The key can be configured in your identity +// provider to encrypt SAML assertions. Google holds the corresponding +// private key, which it uses to decrypt encrypted tokens. +type WorkforcePoolProviderKey struct { + // ExpireTime: Output only. The time after which the key will be + // permanently deleted and cannot be recovered. Note that the key may + // get purged before this time if the total limit of keys per provider + // is exceeded. + ExpireTime string `json:"expireTime,omitempty"` + + // KeyData: Immutable. Public half of the asymmetric key. + KeyData *KeyData `json:"keyData,omitempty"` + + // Name: Output only. The resource name of the key. + Name string `json:"name,omitempty"` + + // State: Output only. The state of the key. + // + // Possible values: + // "STATE_UNSPECIFIED" - State unspecified. + // "ACTIVE" - The key is active. + // "DELETED" - The key is soft-deleted. Soft-deleted keys are + // permanently deleted after approximately 30 days. You can restore a + // soft-deleted key using UndeleteWorkforcePoolProviderKey. + State string `json:"state,omitempty"` + + // Use: Immutable. The purpose of the key. + // + // Possible values: + // "KEY_USE_UNSPECIFIED" - KeyUse unspecified. + // "ENCRYPTION" - The key is used for encryption. + Use string `json:"use,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ExpireTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExpireTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WorkforcePoolProviderKey) MarshalJSON() ([]byte, error) { + type NoMethod WorkforcePoolProviderKey + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // WorkloadIdentityPool: Represents a collection of external workload // identities. You can define IAM policies to grant these identities // access to Google Cloud resources. @@ -3289,6 +3496,69 @@ func (s *WorkloadIdentityPoolProvider) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// WorkloadIdentityPoolProviderKey: Represents a public key +// configuration for your workload identity pool provider. The key can +// be configured in your identity provider to encrypt the SAML +// assertions. Google holds the corresponding private key which it uses +// to decrypt encrypted tokens. +type WorkloadIdentityPoolProviderKey struct { + // ExpireTime: Output only. Time after which the key will be permanently + // purged and cannot be recovered. Note that the key may get purged + // before this timestamp if the total limit of keys per provider is + // crossed. + ExpireTime string `json:"expireTime,omitempty"` + + // KeyData: Immutable. Public half of the asymmetric key. + KeyData *KeyData `json:"keyData,omitempty"` + + // Name: Output only. The resource name of the key. + Name string `json:"name,omitempty"` + + // State: Output only. The state of the key. + // + // Possible values: + // "STATE_UNSPECIFIED" - State unspecified. + // "ACTIVE" - The key is active. + // "DELETED" - The key is soft-deleted. Soft-deleted keys are + // permanently deleted after approximately 30 days. You can restore a + // soft-deleted key using UndeleteWorkloadIdentityPoolProviderKey. While + // a key is deleted, you cannot use it during the federation. + State string `json:"state,omitempty"` + + // Use: Immutable. The purpose of the key. + // + // Possible values: + // "KEY_USE_UNSPECIFIED" - The key use is not known. + // "ENCRYPTION" - The public key is used for encryption purposes. + Use string `json:"use,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ExpireTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExpireTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WorkloadIdentityPoolProviderKey) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadIdentityPoolProviderKey + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "iam.iamPolicies.lintPolicy": type IamPoliciesLintPolicyCall struct { @@ -6058,97 +6328,98 @@ func (c *LocationsWorkforcePoolsProvidersUndeleteCall) Do(opts ...googleapi.Call } -// method id "iam.locations.workforcePools.providers.keys.operations.get": +// method id "iam.locations.workforcePools.providers.keys.create": -type LocationsWorkforcePoolsProvidersKeysOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type LocationsWorkforcePoolsProvidersKeysCreateCall struct { + s *Service + parent string + workforcepoolproviderkey *WorkforcePoolProviderKey + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Create: Creates a new WorkforcePoolProviderKey in a +// WorkforcePoolProvider. // -// - name: The name of the operation resource. -func (r *LocationsWorkforcePoolsProvidersKeysOperationsService) Get(name string) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { - c := &LocationsWorkforcePoolsProvidersKeysOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The provider to create this key in. +func (r *LocationsWorkforcePoolsProvidersKeysService) Create(parent string, workforcepoolproviderkey *WorkforcePoolProviderKey) *LocationsWorkforcePoolsProvidersKeysCreateCall { + c := &LocationsWorkforcePoolsProvidersKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workforcepoolproviderkey = workforcepoolproviderkey + return c +} + +// WorkforcePoolProviderKeyId sets the optional parameter +// "workforcePoolProviderKeyId": Required. The ID to use for the key, +// which becomes the final component of the resource name. This value +// must be 4-32 characters, and may contain the characters [a-z0-9-]. +func (c *LocationsWorkforcePoolsProvidersKeysCreateCall) WorkforcePoolProviderKeyId(workforcePoolProviderKeyId string) *LocationsWorkforcePoolsProvidersKeysCreateCall { + c.urlParams_.Set("workforcePoolProviderKeyId", workforcePoolProviderKeyId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { +func (c *LocationsWorkforcePoolsProvidersKeysCreateCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersKeysCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { +func (c *LocationsWorkforcePoolsProvidersKeysCreateCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersKeysCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Header() http.Header { +func (c *LocationsWorkforcePoolsProvidersKeysCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsProvidersKeysCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workforcepoolproviderkey) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.locations.workforcePools.providers.keys.operations.get" call. +// Do executes the "iam.locations.workforcePools.providers.keys.create" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *LocationsWorkforcePoolsProvidersKeysCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6179,23 +6450,31 @@ func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Do(opts ...googl } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys/{keysId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "iam.locations.workforcePools.providers.keys.operations.get", + // "description": "Creates a new WorkforcePoolProviderKey in a WorkforcePoolProvider.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys", + // "httpMethod": "POST", + // "id": "iam.locations.workforcePools.providers.keys.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "parent": { + // "description": "Required. The provider to create this key in.", // "location": "path", - // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/keys/[^/]+/operations/[^/]+$", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", // "required": true, // "type": "string" + // }, + // "workforcePoolProviderKeyId": { + // "description": "Required. The ID to use for the key, which becomes the final component of the resource name. This value must be 4-32 characters, and may contain the characters [a-z0-9-].", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/keys", + // "request": { + // "$ref": "WorkforcePoolProviderKey" + // }, // "response": { // "$ref": "Operation" // }, @@ -6206,24 +6485,22 @@ func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Do(opts ...googl } -// method id "iam.locations.workforcePools.providers.operations.get": +// method id "iam.locations.workforcePools.providers.keys.delete": -type LocationsWorkforcePoolsProvidersOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type LocationsWorkforcePoolsProvidersKeysDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Delete: Deletes a WorkforcePoolProviderKey. You can undelete a key +// for 30 days. After 30 days, deletion is permanent. // -// - name: The name of the operation resource. -func (r *LocationsWorkforcePoolsProvidersOperationsService) Get(name string) *LocationsWorkforcePoolsProvidersOperationsGetCall { - c := &LocationsWorkforcePoolsProvidersOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the key to delete. +func (r *LocationsWorkforcePoolsProvidersKeysService) Delete(name string) *LocationsWorkforcePoolsProvidersKeysDeleteCall { + c := &LocationsWorkforcePoolsProvidersKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -6231,54 +6508,41 @@ func (r *LocationsWorkforcePoolsProvidersOperationsService) Get(name string) *Lo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersOperationsGetCall { +func (c *LocationsWorkforcePoolsProvidersKeysDeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersKeysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersOperationsGetCall { +func (c *LocationsWorkforcePoolsProvidersKeysDeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersKeysDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Header() http.Header { +func (c *LocationsWorkforcePoolsProvidersKeysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsProvidersKeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -6289,14 +6553,14 @@ func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.locations.workforcePools.providers.operations.get" call. +// Do executes the "iam.locations.workforcePools.providers.keys.delete" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *LocationsWorkforcePoolsProvidersKeysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6327,18 +6591,18 @@ func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "iam.locations.workforcePools.providers.operations.get", + // "description": "Deletes a WorkforcePoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys/{keysId}", + // "httpMethod": "DELETE", + // "id": "iam.locations.workforcePools.providers.keys.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the key to delete.", // "location": "path", - // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/operations/[^/]+$", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/keys/[^/]+$", // "required": true, // "type": "string" // } @@ -6354,35 +6618,22 @@ func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Do(opts ...googleapi } -// method id "iam.locations.workforcePools.subjects.delete": +// method id "iam.locations.workforcePools.providers.keys.get": -type LocationsWorkforcePoolsSubjectsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type LocationsWorkforcePoolsProvidersKeysGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a WorkforcePoolSubject. Subject must not already be -// in a deleted state. A WorkforcePoolSubject is automatically created -// the first time an external credential is exchanged for a Google Cloud -// credential with a mapped `google.subject` attribute. There is no path -// to manually create WorkforcePoolSubjects. Once deleted, the -// WorkforcePoolSubject may not be used for 30 days. After 30 days, the -// WorkforcePoolSubject will be deleted forever and can be reused in -// token exchanges with Google Cloud STS. This will automatically create -// a new WorkforcePoolSubject that is independent of the previously -// deleted WorkforcePoolSubject with the same google.subject value. +// Get: Gets a WorkforcePoolProviderKey. // -// - name: The resource name of the WorkforcePoolSubject. Special -// characters, like '/' and ':', must be escaped, because all URLs -// need to conform to the "When to Escape and Unescape" section of -// RFC3986 (https://www.ietf.org/rfc/rfc2396.txt). Format: -// `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{s -// ubject_id}`. -func (r *LocationsWorkforcePoolsSubjectsService) Delete(name string) *LocationsWorkforcePoolsSubjectsDeleteCall { - c := &LocationsWorkforcePoolsSubjectsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the key to retrieve. +func (r *LocationsWorkforcePoolsProvidersKeysService) Get(name string) *LocationsWorkforcePoolsProvidersKeysGetCall { + c := &LocationsWorkforcePoolsProvidersKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -6390,41 +6641,54 @@ func (r *LocationsWorkforcePoolsSubjectsService) Delete(name string) *LocationsW // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsSubjectsDeleteCall { +func (c *LocationsWorkforcePoolsProvidersKeysGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersKeysGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *LocationsWorkforcePoolsProvidersKeysGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersKeysGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsSubjectsDeleteCall { +func (c *LocationsWorkforcePoolsProvidersKeysGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersKeysGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Header() http.Header { +func (c *LocationsWorkforcePoolsProvidersKeysGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsWorkforcePoolsSubjectsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsProvidersKeysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -6435,14 +6699,14 @@ func (c *LocationsWorkforcePoolsSubjectsDeleteCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.locations.workforcePools.subjects.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "iam.locations.workforcePools.providers.keys.get" call. +// Exactly one of *WorkforcePoolProviderKey or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *WorkforcePoolProviderKey.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *LocationsWorkforcePoolsProvidersKeysGetCall) Do(opts ...googleapi.CallOption) (*WorkforcePoolProviderKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6461,7 +6725,7 @@ func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &WorkforcePoolProviderKey{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6473,25 +6737,25 @@ func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deletes a WorkforcePoolSubject. Subject must not already be in a deleted state. A WorkforcePoolSubject is automatically created the first time an external credential is exchanged for a Google Cloud credential with a mapped `google.subject` attribute. There is no path to manually create WorkforcePoolSubjects. Once deleted, the WorkforcePoolSubject may not be used for 30 days. After 30 days, the WorkforcePoolSubject will be deleted forever and can be reused in token exchanges with Google Cloud STS. This will automatically create a new WorkforcePoolSubject that is independent of the previously deleted WorkforcePoolSubject with the same google.subject value.", - // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/subjects/{subjectsId}", - // "httpMethod": "DELETE", - // "id": "iam.locations.workforcePools.subjects.delete", + // "description": "Gets a WorkforcePoolProviderKey.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys/{keysId}", + // "httpMethod": "GET", + // "id": "iam.locations.workforcePools.providers.keys.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the WorkforcePoolSubject. Special characters, like '/' and ':', must be escaped, because all URLs need to conform to the \"When to Escape and Unescape\" section of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}`", + // "description": "Required. The name of the key to retrieve.", // "location": "path", - // "pattern": "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+$", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/keys/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Operation" + // "$ref": "WorkforcePoolProviderKey" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6500,94 +6764,123 @@ func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Do(opts ...googleapi.CallOpt } -// method id "iam.locations.workforcePools.subjects.undelete": +// method id "iam.locations.workforcePools.providers.keys.list": -type LocationsWorkforcePoolsSubjectsUndeleteCall struct { - s *Service - name string - undeleteworkforcepoolsubjectrequest *UndeleteWorkforcePoolSubjectRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type LocationsWorkforcePoolsProvidersKeysListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Undelete: Undeletes a WorkforcePoolSubject, as long as it was deleted -// fewer than 30 days ago. +// List: Lists all non-deleted WorkforcePoolProviderKeys in a +// WorkforcePoolProvider. If `show_deleted` is set to `true`, then +// deleted keys are also listed. // -// - name: The resource name of the WorkforcePoolSubject. Special -// characters, like '/' and ':', must be escaped, because all URLs -// need to conform to the "When to Escape and Unescape" section of -// RFC3986 (https://www.ietf.org/rfc/rfc2396.txt). Format: -// `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{s -// ubject_id}`. -func (r *LocationsWorkforcePoolsSubjectsService) Undelete(name string, undeleteworkforcepoolsubjectrequest *UndeleteWorkforcePoolSubjectRequest) *LocationsWorkforcePoolsSubjectsUndeleteCall { - c := &LocationsWorkforcePoolsSubjectsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.undeleteworkforcepoolsubjectrequest = undeleteworkforcepoolsubjectrequest +// - parent: The provider resource to list encryption keys for. Format: +// `locations/{location}/workforcePools/{workforce_pool_id}/providers/{ +// provider_id}`. +func (r *LocationsWorkforcePoolsProvidersKeysService) List(parent string) *LocationsWorkforcePoolsProvidersKeysListCall { + c := &LocationsWorkforcePoolsProvidersKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of keys to return. If unspecified, all keys are returned. The maximum +// value is 10; values above 10 are truncated to 10. +func (c *LocationsWorkforcePoolsProvidersKeysListCall) PageSize(pageSize int64) *LocationsWorkforcePoolsProvidersKeysListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListWorkforcePoolProviderKeys` call. +// Provide this to retrieve the subsequent page. +func (c *LocationsWorkforcePoolsProvidersKeysListCall) PageToken(pageToken string) *LocationsWorkforcePoolsProvidersKeysListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ShowDeleted sets the optional parameter "showDeleted": Whether to +// return soft-deleted keys. +func (c *LocationsWorkforcePoolsProvidersKeysListCall) ShowDeleted(showDeleted bool) *LocationsWorkforcePoolsProvidersKeysListCall { + c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsSubjectsUndeleteCall { +func (c *LocationsWorkforcePoolsProvidersKeysListCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersKeysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *LocationsWorkforcePoolsProvidersKeysListCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersKeysListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsSubjectsUndeleteCall { +func (c *LocationsWorkforcePoolsProvidersKeysListCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersKeysListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Header() http.Header { +func (c *LocationsWorkforcePoolsProvidersKeysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsProvidersKeysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleteworkforcepoolsubjectrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undelete") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.locations.workforcePools.subjects.undelete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "iam.locations.workforcePools.providers.keys.list" call. +// Exactly one of *ListWorkforcePoolProviderKeysResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *ListWorkforcePoolProviderKeysResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *LocationsWorkforcePoolsProvidersKeysListCall) Do(opts ...googleapi.CallOption) (*ListWorkforcePoolProviderKeysResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6606,7 +6899,7 @@ func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListWorkforcePoolProviderKeysResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6618,28 +6911,41 @@ func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Undeletes a WorkforcePoolSubject, as long as it was deleted fewer than 30 days ago.", - // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/subjects/{subjectsId}:undelete", - // "httpMethod": "POST", - // "id": "iam.locations.workforcePools.subjects.undelete", + // "description": "Lists all non-deleted WorkforcePoolProviderKeys in a WorkforcePoolProvider. If `show_deleted` is set to `true`, then deleted keys are also listed.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys", + // "httpMethod": "GET", + // "id": "iam.locations.workforcePools.providers.keys.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The resource name of the WorkforcePoolSubject. Special characters, like '/' and ':', must be escaped, because all URLs need to conform to the \"When to Escape and Unescape\" section of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}`", + // "pageSize": { + // "description": "The maximum number of keys to return. If unspecified, all keys are returned. The maximum value is 10; values above 10 are truncated to 10.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListWorkforcePoolProviderKeys` call. Provide this to retrieve the subsequent page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The provider resource to list encryption keys for. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`", // "location": "path", - // "pattern": "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+$", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+$", // "required": true, // "type": "string" + // }, + // "showDeleted": { + // "description": "Whether to return soft-deleted keys.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1/{+name}:undelete", - // "request": { - // "$ref": "UndeleteWorkforcePoolSubjectRequest" - // }, + // "path": "v1/{+parent}/keys", // "response": { - // "$ref": "Operation" + // "$ref": "ListWorkforcePoolProviderKeysResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6648,79 +6954,92 @@ func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Do(opts ...googleapi.CallO } -// method id "iam.locations.workforcePools.subjects.operations.get": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *LocationsWorkforcePoolsProvidersKeysListCall) Pages(ctx context.Context, f func(*ListWorkforcePoolProviderKeysResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type LocationsWorkforcePoolsSubjectsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "iam.locations.workforcePools.providers.keys.undelete": + +type LocationsWorkforcePoolsProvidersKeysUndeleteCall struct { + s *Service + name string + undeleteworkforcepoolproviderkeyrequest *UndeleteWorkforcePoolProviderKeyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Undelete: Undeletes a WorkforcePoolProviderKey, as long as it was +// deleted fewer than 30 days ago. // -// - name: The name of the operation resource. -func (r *LocationsWorkforcePoolsSubjectsOperationsService) Get(name string) *LocationsWorkforcePoolsSubjectsOperationsGetCall { - c := &LocationsWorkforcePoolsSubjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the key to undelete. +func (r *LocationsWorkforcePoolsProvidersKeysService) Undelete(name string, undeleteworkforcepoolproviderkeyrequest *UndeleteWorkforcePoolProviderKeyRequest) *LocationsWorkforcePoolsProvidersKeysUndeleteCall { + c := &LocationsWorkforcePoolsProvidersKeysUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.undeleteworkforcepoolproviderkeyrequest = undeleteworkforcepoolproviderkeyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsSubjectsOperationsGetCall { +func (c *LocationsWorkforcePoolsProvidersKeysUndeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersKeysUndeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsSubjectsOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsSubjectsOperationsGetCall { +func (c *LocationsWorkforcePoolsProvidersKeysUndeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersKeysUndeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) Header() http.Header { +func (c *LocationsWorkforcePoolsProvidersKeysUndeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsProvidersKeysUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleteworkforcepoolproviderkeyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undelete") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -6731,14 +7050,14 @@ func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.locations.workforcePools.subjects.operations.get" call. +// Do executes the "iam.locations.workforcePools.providers.keys.undelete" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *LocationsWorkforcePoolsProvidersKeysUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6769,23 +7088,26 @@ func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/subjects/{subjectsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "iam.locations.workforcePools.subjects.operations.get", + // "description": "Undeletes a WorkforcePoolProviderKey, as long as it was deleted fewer than 30 days ago.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys/{keysId}:undelete", + // "httpMethod": "POST", + // "id": "iam.locations.workforcePools.providers.keys.undelete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the key to undelete.", // "location": "path", - // "pattern": "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+/operations/[^/]+$", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/keys/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}:undelete", + // "request": { + // "$ref": "UndeleteWorkforcePoolProviderKeyRequest" + // }, // "response": { // "$ref": "Operation" // }, @@ -6796,109 +7118,97 @@ func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) Do(opts ...googleapi. } -// method id "iam.organizations.roles.create": +// method id "iam.locations.workforcePools.providers.keys.operations.get": -type OrganizationsRolesCreateCall struct { - s *Service - parent string - createrolerequest *CreateRoleRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type LocationsWorkforcePoolsProvidersKeysOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new custom Role. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - parent: The `parent` parameter's value depends on the target -// resource for the request, namely `projects` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles) or -// `organizations` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). -// Each resource type's `parent` value format is described below: * -// `projects.roles.create()` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/create): -// `projects/{PROJECT_ID}`. This method creates project-level custom -// roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles). -// Example request URL: -// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * -// `organizations.roles.create()` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create): -// `organizations/{ORGANIZATION_ID}`. This method creates -// organization-level custom roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles). -// Example request URL: -// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles -// ` Note: Wildcard (*) values are invalid; you must specify a -// complete project ID or organization ID. -func (r *OrganizationsRolesService) Create(parent string, createrolerequest *CreateRoleRequest) *OrganizationsRolesCreateCall { - c := &OrganizationsRolesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.createrolerequest = createrolerequest +// - name: The name of the operation resource. +func (r *LocationsWorkforcePoolsProvidersKeysOperationsService) Get(name string) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { + c := &LocationsWorkforcePoolsProvidersKeysOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsRolesCreateCall) Fields(s ...googleapi.Field) *OrganizationsRolesCreateCall { +func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsRolesCreateCall) Context(ctx context.Context) *OrganizationsRolesCreateCall { +func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersKeysOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsRolesCreateCall) Header() http.Header { +func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsRolesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.createrolerequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/roles") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.organizations.roles.create" call. -// Exactly one of *Role or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Role.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsRolesCreateCall) Do(opts ...googleapi.CallOption) (*Role, error) { +// Do executes the "iam.locations.workforcePools.providers.keys.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *LocationsWorkforcePoolsProvidersKeysOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6917,7 +7227,7 @@ func (c *OrganizationsRolesCreateCall) Do(opts ...googleapi.CallOption) (*Role, if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Role{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6929,28 +7239,25 @@ func (c *OrganizationsRolesCreateCall) Do(opts ...googleapi.CallOption) (*Role, } return ret, nil // { - // "description": "Creates a new custom Role.", - // "flatPath": "v1/organizations/{organizationsId}/roles", - // "httpMethod": "POST", - // "id": "iam.organizations.roles.create", + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/keys/{keysId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "iam.locations.workforcePools.providers.keys.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "The `parent` parameter's value depends on the target resource for the request, namely [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `parent` value format is described below: * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create): `projects/{PROJECT_ID}`. This method creates project-level [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create): `organizations/{ORGANIZATION_ID}`. This method creates organization-level [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/keys/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/roles", - // "request": { - // "$ref": "CreateRoleRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "Role" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6959,99 +7266,79 @@ func (c *OrganizationsRolesCreateCall) Do(opts ...googleapi.CallOption) (*Role, } -// method id "iam.organizations.roles.delete": +// method id "iam.locations.workforcePools.providers.operations.get": -type OrganizationsRolesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type LocationsWorkforcePoolsProvidersOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a custom Role. When you delete a custom role, the -// following changes occur immediately: * You cannot bind a principal to -// the custom role in an IAM Policy. * Existing bindings to the custom -// role are not changed, but they have no effect. * By default, the -// response from ListRoles does not include the custom role. You have 7 -// days to undelete the custom role. After 7 days, the following changes -// occur: * The custom role is permanently deleted and cannot be -// recovered. * If an IAM policy contains a binding to the custom role, -// the binding is permanently removed. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - name: The `name` parameter's value depends on the target resource -// for the request, namely `projects` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles) or -// `organizations` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). -// Each resource type's `name` value format is described below: * -// `projects.roles.delete()` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete): -// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes -// only custom roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles) that -// have been created at the project level. Example request URL: -// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_R -// OLE_ID}` * `organizations.roles.delete()` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete): -// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This -// method deletes only custom roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles) that -// have been created at the organization level. Example request URL: -// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles -// /{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must -// specify a complete project ID or organization ID. -func (r *OrganizationsRolesService) Delete(name string) *OrganizationsRolesDeleteCall { - c := &OrganizationsRolesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *LocationsWorkforcePoolsProvidersOperationsService) Get(name string) *LocationsWorkforcePoolsProvidersOperationsGetCall { + c := &LocationsWorkforcePoolsProvidersOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Etag sets the optional parameter "etag": Used to perform a consistent -// read-modify-write. -func (c *OrganizationsRolesDeleteCall) Etag(etag string) *OrganizationsRolesDeleteCall { - c.urlParams_.Set("etag", etag) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsRolesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsRolesDeleteCall { +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsProvidersOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsProvidersOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsRolesDeleteCall) Context(ctx context.Context) *OrganizationsRolesDeleteCall { +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsProvidersOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsRolesDeleteCall) Header() http.Header { +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsRolesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -7062,14 +7349,14 @@ func (c *OrganizationsRolesDeleteCall) doRequest(alt string) (*http.Response, er return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.organizations.roles.delete" call. -// Exactly one of *Role or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Role.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsRolesDeleteCall) Do(opts ...googleapi.CallOption) (*Role, error) { +// Do executes the "iam.locations.workforcePools.providers.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *LocationsWorkforcePoolsProvidersOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7088,7 +7375,7 @@ func (c *OrganizationsRolesDeleteCall) Do(opts ...googleapi.CallOption) (*Role, if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Role{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7100,31 +7387,25 @@ func (c *OrganizationsRolesDeleteCall) Do(opts ...googleapi.CallOption) (*Role, } return ret, nil // { - // "description": "Deletes a custom Role. When you delete a custom role, the following changes occur immediately: * You cannot bind a principal to the custom role in an IAM Policy. * Existing bindings to the custom role are not changed, but they have no effect. * By default, the response from ListRoles does not include the custom role. You have 7 days to undelete the custom role. After 7 days, the following changes occur: * The custom role is permanently deleted and cannot be recovered. * If an IAM policy contains a binding to the custom role, the binding is permanently removed.", - // "flatPath": "v1/organizations/{organizationsId}/roles/{rolesId}", - // "httpMethod": "DELETE", - // "id": "iam.organizations.roles.delete", + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/providers/{providersId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "iam.locations.workforcePools.providers.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "etag": { - // "description": "Used to perform a consistent read-modify-write.", - // "format": "byte", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The `name` parameter's value depends on the target resource for the request, namely [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^organizations/[^/]+/roles/[^/]+$", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/providers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Role" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -7133,51 +7414,35 @@ func (c *OrganizationsRolesDeleteCall) Do(opts ...googleapi.CallOption) (*Role, } -// method id "iam.organizations.roles.get": +// method id "iam.locations.workforcePools.subjects.delete": -type OrganizationsRolesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type LocationsWorkforcePoolsSubjectsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the definition of a Role. +// Delete: Deletes a WorkforcePoolSubject. Subject must not already be +// in a deleted state. A WorkforcePoolSubject is automatically created +// the first time an external credential is exchanged for a Google Cloud +// credential with a mapped `google.subject` attribute. There is no path +// to manually create WorkforcePoolSubjects. Once deleted, the +// WorkforcePoolSubject may not be used for 30 days. After 30 days, the +// WorkforcePoolSubject will be deleted forever and can be reused in +// token exchanges with Google Cloud STS. This will automatically create +// a new WorkforcePoolSubject that is independent of the previously +// deleted WorkforcePoolSubject with the same google.subject value. // -// - name: The `name` parameter's value depends on the target resource -// for the request, namely `roles` -// (https://cloud.google.com/iam/reference/rest/v1/roles), `projects` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles), or -// `organizations` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). -// Each resource type's `name` value format is described below: * -// `roles.get()` -// (https://cloud.google.com/iam/reference/rest/v1/roles/get): -// `roles/{ROLE_NAME}`. This method returns results from all -// predefined roles -// (https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) -// in Cloud IAM. Example request URL: -// `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` * -// `projects.roles.get()` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/get): -// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns -// only custom roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles) that -// have been created at the project level. Example request URL: -// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_R -// OLE_ID}` * `organizations.roles.get()` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get): -// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This -// method returns only custom roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles) that -// have been created at the organization level. Example request URL: -// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles -// /{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must -// specify a complete project ID or organization ID. -func (r *OrganizationsRolesService) Get(name string) *OrganizationsRolesGetCall { - c := &OrganizationsRolesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the WorkforcePoolSubject. Special +// characters, like '/' and ':', must be escaped, because all URLs +// need to conform to the "When to Escape and Unescape" section of +// RFC3986 (https://www.ietf.org/rfc/rfc2396.txt). Format: +// `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{s +// ubject_id}`. +func (r *LocationsWorkforcePoolsSubjectsService) Delete(name string) *LocationsWorkforcePoolsSubjectsDeleteCall { + c := &LocationsWorkforcePoolsSubjectsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -7185,54 +7450,41 @@ func (r *OrganizationsRolesService) Get(name string) *OrganizationsRolesGetCall // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsRolesGetCall) Fields(s ...googleapi.Field) *OrganizationsRolesGetCall { +func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsSubjectsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *OrganizationsRolesGetCall) IfNoneMatch(entityTag string) *OrganizationsRolesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsRolesGetCall) Context(ctx context.Context) *OrganizationsRolesGetCall { +func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsSubjectsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsRolesGetCall) Header() http.Header { +func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsRolesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *LocationsWorkforcePoolsSubjectsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -7243,14 +7495,14 @@ func (c *OrganizationsRolesGetCall) doRequest(alt string) (*http.Response, error return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.organizations.roles.get" call. -// Exactly one of *Role or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Role.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsRolesGetCall) Do(opts ...googleapi.CallOption) (*Role, error) { +// Do executes the "iam.locations.workforcePools.subjects.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *LocationsWorkforcePoolsSubjectsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7269,7 +7521,7 @@ func (c *OrganizationsRolesGetCall) Do(opts ...googleapi.CallOption) (*Role, err if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Role{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7281,25 +7533,25 @@ func (c *OrganizationsRolesGetCall) Do(opts ...googleapi.CallOption) (*Role, err } return ret, nil // { - // "description": "Gets the definition of a Role.", - // "flatPath": "v1/organizations/{organizationsId}/roles/{rolesId}", - // "httpMethod": "GET", - // "id": "iam.organizations.roles.get", + // "description": "Deletes a WorkforcePoolSubject. Subject must not already be in a deleted state. A WorkforcePoolSubject is automatically created the first time an external credential is exchanged for a Google Cloud credential with a mapped `google.subject` attribute. There is no path to manually create WorkforcePoolSubjects. Once deleted, the WorkforcePoolSubject may not be used for 30 days. After 30 days, the WorkforcePoolSubject will be deleted forever and can be reused in token exchanges with Google Cloud STS. This will automatically create a new WorkforcePoolSubject that is independent of the previously deleted WorkforcePoolSubject with the same google.subject value.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/subjects/{subjectsId}", + // "httpMethod": "DELETE", + // "id": "iam.locations.workforcePools.subjects.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The `name` parameter's value depends on the target resource for the request, namely [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`. This method returns results from all [predefined roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "description": "Required. The resource name of the WorkforcePoolSubject. Special characters, like '/' and ':', must be escaped, because all URLs need to conform to the \"When to Escape and Unescape\" section of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}`", // "location": "path", - // "pattern": "^organizations/[^/]+/roles/[^/]+$", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Role" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -7308,99 +7560,1889 @@ func (c *OrganizationsRolesGetCall) Do(opts ...googleapi.CallOption) (*Role, err } -// method id "iam.organizations.roles.list": +// method id "iam.locations.workforcePools.subjects.undelete": -type OrganizationsRolesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type LocationsWorkforcePoolsSubjectsUndeleteCall struct { + s *Service + name string + undeleteworkforcepoolsubjectrequest *UndeleteWorkforcePoolSubjectRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists every predefined Role that IAM supports, or every custom -// role that is defined for an organization or project. +// Undelete: Undeletes a WorkforcePoolSubject, as long as it was deleted +// fewer than 30 days ago. // -// - parent: The `parent` parameter's value depends on the target -// resource for the request, namely `roles` -// (https://cloud.google.com/iam/reference/rest/v1/roles), `projects` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles), or -// `organizations` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). -// Each resource type's `parent` value format is described below: * -// `roles.list()` -// (https://cloud.google.com/iam/reference/rest/v1/roles/list): An -// empty string. This method doesn't require a resource; it simply -// returns all predefined roles -// (https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) -// in Cloud IAM. Example request URL: -// `https://iam.googleapis.com/v1/roles` * `projects.roles.list()` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/list): -// `projects/{PROJECT_ID}`. This method lists all project-level custom -// roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles). -// Example request URL: -// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * -// `organizations.roles.list()` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list): -// `organizations/{ORGANIZATION_ID}`. This method lists all -// organization-level custom roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles). -// Example request URL: -// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles -// ` Note: Wildcard (*) values are invalid; you must specify a -// complete project ID or organization ID. -func (r *OrganizationsRolesService) List(parent string) *OrganizationsRolesListCall { - c := &OrganizationsRolesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The resource name of the WorkforcePoolSubject. Special +// characters, like '/' and ':', must be escaped, because all URLs +// need to conform to the "When to Escape and Unescape" section of +// RFC3986 (https://www.ietf.org/rfc/rfc2396.txt). Format: +// `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{s +// ubject_id}`. +func (r *LocationsWorkforcePoolsSubjectsService) Undelete(name string, undeleteworkforcepoolsubjectrequest *UndeleteWorkforcePoolSubjectRequest) *LocationsWorkforcePoolsSubjectsUndeleteCall { + c := &LocationsWorkforcePoolsSubjectsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.undeleteworkforcepoolsubjectrequest = undeleteworkforcepoolsubjectrequest return c } -// PageSize sets the optional parameter "pageSize": Optional limit on -// the number of roles to include in the response. The default is 300, -// and the maximum is 1,000. -func (c *OrganizationsRolesListCall) PageSize(pageSize int64) *OrganizationsRolesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsSubjectsUndeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// PageToken sets the optional parameter "pageToken": Optional -// pagination token returned in an earlier ListRolesResponse. -func (c *OrganizationsRolesListCall) PageToken(pageToken string) *OrganizationsRolesListCall { - c.urlParams_.Set("pageToken", pageToken) +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Context(ctx context.Context) *LocationsWorkforcePoolsSubjectsUndeleteCall { + c.ctx_ = ctx return c } -// ShowDeleted sets the optional parameter "showDeleted": Include Roles -// that have been deleted. -func (c *OrganizationsRolesListCall) ShowDeleted(showDeleted bool) *OrganizationsRolesListCall { - c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) - return c +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ } -// View sets the optional parameter "view": Optional view for the -// returned Role objects. When `FULL` is specified, the -// `includedPermissions` field is returned, which includes a list of all -// permissions in the role. The default value is `BASIC`, which does not -// return the `includedPermissions` field. -// -// Possible values: -// -// "BASIC" - Omits the `included_permissions` field. This is the -// -// default value. +func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleteworkforcepoolsubjectrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undelete") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.locations.workforcePools.subjects.undelete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *LocationsWorkforcePoolsSubjectsUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Undeletes a WorkforcePoolSubject, as long as it was deleted fewer than 30 days ago.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/subjects/{subjectsId}:undelete", + // "httpMethod": "POST", + // "id": "iam.locations.workforcePools.subjects.undelete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the WorkforcePoolSubject. Special characters, like '/' and ':', must be escaped, because all URLs need to conform to the \"When to Escape and Unescape\" section of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}`", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:undelete", + // "request": { + // "$ref": "UndeleteWorkforcePoolSubjectRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.locations.workforcePools.subjects.operations.get": + +type LocationsWorkforcePoolsSubjectsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *LocationsWorkforcePoolsSubjectsOperationsService) Get(name string) *LocationsWorkforcePoolsSubjectsOperationsGetCall { + c := &LocationsWorkforcePoolsSubjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) Fields(s ...googleapi.Field) *LocationsWorkforcePoolsSubjectsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) IfNoneMatch(entityTag string) *LocationsWorkforcePoolsSubjectsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) Context(ctx context.Context) *LocationsWorkforcePoolsSubjectsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.locations.workforcePools.subjects.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *LocationsWorkforcePoolsSubjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/locations/{locationsId}/workforcePools/{workforcePoolsId}/subjects/{subjectsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "iam.locations.workforcePools.subjects.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.organizations.roles.create": + +type OrganizationsRolesCreateCall struct { + s *Service + parent string + createrolerequest *CreateRoleRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new custom Role. +// +// - parent: The `parent` parameter's value depends on the target +// resource for the request, namely `projects` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles) or +// `organizations` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). +// Each resource type's `parent` value format is described below: * +// `projects.roles.create()` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/create): +// `projects/{PROJECT_ID}`. This method creates project-level custom +// roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles). +// Example request URL: +// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * +// `organizations.roles.create()` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create): +// `organizations/{ORGANIZATION_ID}`. This method creates +// organization-level custom roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles). +// Example request URL: +// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles +// ` Note: Wildcard (*) values are invalid; you must specify a +// complete project ID or organization ID. +func (r *OrganizationsRolesService) Create(parent string, createrolerequest *CreateRoleRequest) *OrganizationsRolesCreateCall { + c := &OrganizationsRolesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.createrolerequest = createrolerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsRolesCreateCall) Fields(s ...googleapi.Field) *OrganizationsRolesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsRolesCreateCall) Context(ctx context.Context) *OrganizationsRolesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsRolesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsRolesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.createrolerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/roles") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.organizations.roles.create" call. +// Exactly one of *Role or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Role.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsRolesCreateCall) Do(opts ...googleapi.CallOption) (*Role, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Role{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new custom Role.", + // "flatPath": "v1/organizations/{organizationsId}/roles", + // "httpMethod": "POST", + // "id": "iam.organizations.roles.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "The `parent` parameter's value depends on the target resource for the request, namely [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `parent` value format is described below: * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create): `projects/{PROJECT_ID}`. This method creates project-level [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create): `organizations/{ORGANIZATION_ID}`. This method creates organization-level [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/roles", + // "request": { + // "$ref": "CreateRoleRequest" + // }, + // "response": { + // "$ref": "Role" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.organizations.roles.delete": + +type OrganizationsRolesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a custom Role. When you delete a custom role, the +// following changes occur immediately: * You cannot bind a principal to +// the custom role in an IAM Policy. * Existing bindings to the custom +// role are not changed, but they have no effect. * By default, the +// response from ListRoles does not include the custom role. You have 7 +// days to undelete the custom role. After 7 days, the following changes +// occur: * The custom role is permanently deleted and cannot be +// recovered. * If an IAM policy contains a binding to the custom role, +// the binding is permanently removed. +// +// - name: The `name` parameter's value depends on the target resource +// for the request, namely `projects` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles) or +// `organizations` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). +// Each resource type's `name` value format is described below: * +// `projects.roles.delete()` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete): +// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes +// only custom roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles) that +// have been created at the project level. Example request URL: +// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_R +// OLE_ID}` * `organizations.roles.delete()` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete): +// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This +// method deletes only custom roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles) that +// have been created at the organization level. Example request URL: +// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles +// /{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must +// specify a complete project ID or organization ID. +func (r *OrganizationsRolesService) Delete(name string) *OrganizationsRolesDeleteCall { + c := &OrganizationsRolesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": Used to perform a consistent +// read-modify-write. +func (c *OrganizationsRolesDeleteCall) Etag(etag string) *OrganizationsRolesDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsRolesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsRolesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsRolesDeleteCall) Context(ctx context.Context) *OrganizationsRolesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsRolesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsRolesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.organizations.roles.delete" call. +// Exactly one of *Role or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Role.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsRolesDeleteCall) Do(opts ...googleapi.CallOption) (*Role, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Role{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a custom Role. When you delete a custom role, the following changes occur immediately: * You cannot bind a principal to the custom role in an IAM Policy. * Existing bindings to the custom role are not changed, but they have no effect. * By default, the response from ListRoles does not include the custom role. You have 7 days to undelete the custom role. After 7 days, the following changes occur: * The custom role is permanently deleted and cannot be recovered. * If an IAM policy contains a binding to the custom role, the binding is permanently removed.", + // "flatPath": "v1/organizations/{organizationsId}/roles/{rolesId}", + // "httpMethod": "DELETE", + // "id": "iam.organizations.roles.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "etag": { + // "description": "Used to perform a consistent read-modify-write.", + // "format": "byte", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The `name` parameter's value depends on the target resource for the request, namely [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "location": "path", + // "pattern": "^organizations/[^/]+/roles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Role" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.organizations.roles.get": + +type OrganizationsRolesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the definition of a Role. +// +// - name: The `name` parameter's value depends on the target resource +// for the request, namely `roles` +// (https://cloud.google.com/iam/reference/rest/v1/roles), `projects` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles), or +// `organizations` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). +// Each resource type's `name` value format is described below: * +// `roles.get()` +// (https://cloud.google.com/iam/reference/rest/v1/roles/get): +// `roles/{ROLE_NAME}`. This method returns results from all +// predefined roles +// (https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) +// in Cloud IAM. Example request URL: +// `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` * +// `projects.roles.get()` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/get): +// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns +// only custom roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles) that +// have been created at the project level. Example request URL: +// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_R +// OLE_ID}` * `organizations.roles.get()` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get): +// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This +// method returns only custom roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles) that +// have been created at the organization level. Example request URL: +// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles +// /{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must +// specify a complete project ID or organization ID. +func (r *OrganizationsRolesService) Get(name string) *OrganizationsRolesGetCall { + c := &OrganizationsRolesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsRolesGetCall) Fields(s ...googleapi.Field) *OrganizationsRolesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsRolesGetCall) IfNoneMatch(entityTag string) *OrganizationsRolesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsRolesGetCall) Context(ctx context.Context) *OrganizationsRolesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsRolesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsRolesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.organizations.roles.get" call. +// Exactly one of *Role or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Role.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsRolesGetCall) Do(opts ...googleapi.CallOption) (*Role, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Role{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the definition of a Role.", + // "flatPath": "v1/organizations/{organizationsId}/roles/{rolesId}", + // "httpMethod": "GET", + // "id": "iam.organizations.roles.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The `name` parameter's value depends on the target resource for the request, namely [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`. This method returns results from all [predefined roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "location": "path", + // "pattern": "^organizations/[^/]+/roles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Role" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.organizations.roles.list": + +type OrganizationsRolesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists every predefined Role that IAM supports, or every custom +// role that is defined for an organization or project. +// +// - parent: The `parent` parameter's value depends on the target +// resource for the request, namely `roles` +// (https://cloud.google.com/iam/reference/rest/v1/roles), `projects` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles), or +// `organizations` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). +// Each resource type's `parent` value format is described below: * +// `roles.list()` +// (https://cloud.google.com/iam/reference/rest/v1/roles/list): An +// empty string. This method doesn't require a resource; it simply +// returns all predefined roles +// (https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) +// in Cloud IAM. Example request URL: +// `https://iam.googleapis.com/v1/roles` * `projects.roles.list()` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/list): +// `projects/{PROJECT_ID}`. This method lists all project-level custom +// roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles). +// Example request URL: +// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * +// `organizations.roles.list()` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list): +// `organizations/{ORGANIZATION_ID}`. This method lists all +// organization-level custom roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles). +// Example request URL: +// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles +// ` Note: Wildcard (*) values are invalid; you must specify a +// complete project ID or organization ID. +func (r *OrganizationsRolesService) List(parent string) *OrganizationsRolesListCall { + c := &OrganizationsRolesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Optional limit on +// the number of roles to include in the response. The default is 300, +// and the maximum is 1,000. +func (c *OrganizationsRolesListCall) PageSize(pageSize int64) *OrganizationsRolesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Optional +// pagination token returned in an earlier ListRolesResponse. +func (c *OrganizationsRolesListCall) PageToken(pageToken string) *OrganizationsRolesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ShowDeleted sets the optional parameter "showDeleted": Include Roles +// that have been deleted. +func (c *OrganizationsRolesListCall) ShowDeleted(showDeleted bool) *OrganizationsRolesListCall { + c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) + return c +} + +// View sets the optional parameter "view": Optional view for the +// returned Role objects. When `FULL` is specified, the +// `includedPermissions` field is returned, which includes a list of all +// permissions in the role. The default value is `BASIC`, which does not +// return the `includedPermissions` field. +// +// Possible values: +// +// "BASIC" - Omits the `included_permissions` field. This is the +// +// default value. +// +// "FULL" - Returns all fields. +func (c *OrganizationsRolesListCall) View(view string) *OrganizationsRolesListCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsRolesListCall) Fields(s ...googleapi.Field) *OrganizationsRolesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsRolesListCall) IfNoneMatch(entityTag string) *OrganizationsRolesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsRolesListCall) Context(ctx context.Context) *OrganizationsRolesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsRolesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsRolesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/roles") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.organizations.roles.list" call. +// Exactly one of *ListRolesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListRolesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsRolesListCall) Do(opts ...googleapi.CallOption) (*ListRolesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListRolesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists every predefined Role that IAM supports, or every custom role that is defined for an organization or project.", + // "flatPath": "v1/organizations/{organizationsId}/roles", + // "httpMethod": "GET", + // "id": "iam.organizations.roles.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional limit on the number of roles to include in the response. The default is 300, and the maximum is 1,000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional pagination token returned in an earlier ListRolesResponse.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "The `parent` parameter's value depends on the target resource for the request, namely [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `parent` value format is described below: * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string. This method doesn't require a resource; it simply returns all [predefined roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles` * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list): `projects/{PROJECT_ID}`. This method lists all project-level [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list): `organizations/{ORGANIZATION_ID}`. This method lists all organization-level [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "showDeleted": { + // "description": "Include Roles that have been deleted.", + // "location": "query", + // "type": "boolean" + // }, + // "view": { + // "description": "Optional view for the returned Role objects. When `FULL` is specified, the `includedPermissions` field is returned, which includes a list of all permissions in the role. The default value is `BASIC`, which does not return the `includedPermissions` field.", + // "enum": [ + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "Omits the `included_permissions` field. This is the default value.", + // "Returns all fields." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/roles", + // "response": { + // "$ref": "ListRolesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsRolesListCall) Pages(ctx context.Context, f func(*ListRolesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "iam.organizations.roles.patch": + +type OrganizationsRolesPatchCall struct { + s *Service + name string + role *Role + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the definition of a custom Role. +// +// - name: The `name` parameter's value depends on the target resource +// for the request, namely `projects` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles) or +// `organizations` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). +// Each resource type's `name` value format is described below: * +// `projects.roles.patch()` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch): +// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates +// only custom roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles) that +// have been created at the project level. Example request URL: +// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_R +// OLE_ID}` * `organizations.roles.patch()` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch): +// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This +// method updates only custom roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles) that +// have been created at the organization level. Example request URL: +// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles +// /{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must +// specify a complete project ID or organization ID. +func (r *OrganizationsRolesService) Patch(name string, role *Role) *OrganizationsRolesPatchCall { + c := &OrganizationsRolesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.role = role + return c +} + +// UpdateMask sets the optional parameter "updateMask": A mask +// describing which fields in the Role have changed. +func (c *OrganizationsRolesPatchCall) UpdateMask(updateMask string) *OrganizationsRolesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsRolesPatchCall) Fields(s ...googleapi.Field) *OrganizationsRolesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsRolesPatchCall) Context(ctx context.Context) *OrganizationsRolesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsRolesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsRolesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.role) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.organizations.roles.patch" call. +// Exactly one of *Role or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Role.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsRolesPatchCall) Do(opts ...googleapi.CallOption) (*Role, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Role{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the definition of a custom Role.", + // "flatPath": "v1/organizations/{organizationsId}/roles/{rolesId}", + // "httpMethod": "PATCH", + // "id": "iam.organizations.roles.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The `name` parameter's value depends on the target resource for the request, namely [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "location": "path", + // "pattern": "^organizations/[^/]+/roles/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "A mask describing which fields in the Role have changed.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "Role" + // }, + // "response": { + // "$ref": "Role" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.organizations.roles.undelete": + +type OrganizationsRolesUndeleteCall struct { + s *Service + name string + undeleterolerequest *UndeleteRoleRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Undelete: Undeletes a custom Role. +// +// - name: The `name` parameter's value depends on the target resource +// for the request, namely `projects` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles) or +// `organizations` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). +// Each resource type's `name` value format is described below: * +// `projects.roles.undelete()` +// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete): +// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method +// undeletes only custom roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles) that +// have been created at the project level. Example request URL: +// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_R +// OLE_ID}` * `organizations.roles.undelete()` +// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete): +// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This +// method undeletes only custom roles +// (https://cloud.google.com/iam/docs/understanding-custom-roles) that +// have been created at the organization level. Example request URL: +// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles +// /{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must +// specify a complete project ID or organization ID. +func (r *OrganizationsRolesService) Undelete(name string, undeleterolerequest *UndeleteRoleRequest) *OrganizationsRolesUndeleteCall { + c := &OrganizationsRolesUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.undeleterolerequest = undeleterolerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsRolesUndeleteCall) Fields(s ...googleapi.Field) *OrganizationsRolesUndeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsRolesUndeleteCall) Context(ctx context.Context) *OrganizationsRolesUndeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsRolesUndeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsRolesUndeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleterolerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undelete") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.organizations.roles.undelete" call. +// Exactly one of *Role or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Role.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsRolesUndeleteCall) Do(opts ...googleapi.CallOption) (*Role, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Role{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Undeletes a custom Role.", + // "flatPath": "v1/organizations/{organizationsId}/roles/{rolesId}:undelete", + // "httpMethod": "POST", + // "id": "iam.organizations.roles.undelete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The `name` parameter's value depends on the target resource for the request, namely [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "location": "path", + // "pattern": "^organizations/[^/]+/roles/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:undelete", + // "request": { + // "$ref": "UndeleteRoleRequest" + // }, + // "response": { + // "$ref": "Role" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.permissions.queryTestablePermissions": + +type PermissionsQueryTestablePermissionsCall struct { + s *Service + querytestablepermissionsrequest *QueryTestablePermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// QueryTestablePermissions: Lists every permission that you can test on +// a resource. A permission is testable if you can check whether a +// principal has that permission on the resource. +func (r *PermissionsService) QueryTestablePermissions(querytestablepermissionsrequest *QueryTestablePermissionsRequest) *PermissionsQueryTestablePermissionsCall { + c := &PermissionsQueryTestablePermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.querytestablepermissionsrequest = querytestablepermissionsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *PermissionsQueryTestablePermissionsCall) Fields(s ...googleapi.Field) *PermissionsQueryTestablePermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *PermissionsQueryTestablePermissionsCall) Context(ctx context.Context) *PermissionsQueryTestablePermissionsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *PermissionsQueryTestablePermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PermissionsQueryTestablePermissionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.querytestablepermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/permissions:queryTestablePermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.permissions.queryTestablePermissions" call. +// Exactly one of *QueryTestablePermissionsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *QueryTestablePermissionsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *PermissionsQueryTestablePermissionsCall) Do(opts ...googleapi.CallOption) (*QueryTestablePermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &QueryTestablePermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists every permission that you can test on a resource. A permission is testable if you can check whether a principal has that permission on the resource.", + // "flatPath": "v1/permissions:queryTestablePermissions", + // "httpMethod": "POST", + // "id": "iam.permissions.queryTestablePermissions", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/permissions:queryTestablePermissions", + // "request": { + // "$ref": "QueryTestablePermissionsRequest" + // }, + // "response": { + // "$ref": "QueryTestablePermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *PermissionsQueryTestablePermissionsCall) Pages(ctx context.Context, f func(*QueryTestablePermissionsResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.querytestablepermissionsrequest.PageToken = pt }(c.querytestablepermissionsrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.querytestablepermissionsrequest.PageToken = x.NextPageToken + } +} + +// method id "iam.projects.locations.workloadIdentityPools.create": + +type ProjectsLocationsWorkloadIdentityPoolsCreateCall struct { + s *Service + parent string + workloadidentitypool *WorkloadIdentityPool + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new WorkloadIdentityPool. You cannot reuse the name +// of a deleted pool until 30 days after deletion. +// +// - parent: The parent resource to create the pool in. The only +// supported location is `global`. +func (r *ProjectsLocationsWorkloadIdentityPoolsService) Create(parent string, workloadidentitypool *WorkloadIdentityPool) *ProjectsLocationsWorkloadIdentityPoolsCreateCall { + c := &ProjectsLocationsWorkloadIdentityPoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workloadidentitypool = workloadidentitypool + return c +} + +// WorkloadIdentityPoolId sets the optional parameter +// "workloadIdentityPoolId": Required. The ID to use for the pool, which +// becomes the final component of the resource name. This value should +// be 4-32 characters, and may contain the characters [a-z0-9-]. The +// prefix `gcp-` is reserved for use by Google, and may not be +// specified. +func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) WorkloadIdentityPoolId(workloadIdentityPoolId string) *ProjectsLocationsWorkloadIdentityPoolsCreateCall { + c.urlParams_.Set("workloadIdentityPoolId", workloadIdentityPoolId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workloadidentitypool) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/workloadIdentityPools") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.projects.locations.workloadIdentityPools.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new WorkloadIdentityPool. You cannot reuse the name of a deleted pool until 30 days after deletion.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools", + // "httpMethod": "POST", + // "id": "iam.projects.locations.workloadIdentityPools.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent resource to create the pool in. The only supported location is `global`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "workloadIdentityPoolId": { + // "description": "Required. The ID to use for the pool, which becomes the final component of the resource name. This value should be 4-32 characters, and may contain the characters [a-z0-9-]. The prefix `gcp-` is reserved for use by Google, and may not be specified.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/workloadIdentityPools", + // "request": { + // "$ref": "WorkloadIdentityPool" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.projects.locations.workloadIdentityPools.delete": + +type ProjectsLocationsWorkloadIdentityPoolsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a WorkloadIdentityPool. You cannot use a deleted pool +// to exchange external credentials for Google Cloud credentials. +// However, deletion does not revoke credentials that have already been +// issued. Credentials issued for a deleted pool do not grant access to +// resources. If the pool is undeleted, and the credentials are not +// expired, they grant access again. You can undelete a pool for 30 +// days. After 30 days, deletion is permanent. You cannot update deleted +// pools. However, you can view and list them. +// +// - name: The name of the pool to delete. +func (r *ProjectsLocationsWorkloadIdentityPoolsService) Delete(name string) *ProjectsLocationsWorkloadIdentityPoolsDeleteCall { + c := &ProjectsLocationsWorkloadIdentityPoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "iam.projects.locations.workloadIdentityPools.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a WorkloadIdentityPool. You cannot use a deleted pool to exchange external credentials for Google Cloud credentials. However, deletion does not revoke credentials that have already been issued. Credentials issued for a deleted pool do not grant access to resources. If the pool is undeleted, and the credentials are not expired, they grant access again. You can undelete a pool for 30 days. After 30 days, deletion is permanent. You cannot update deleted pools. However, you can view and list them.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}", + // "httpMethod": "DELETE", + // "id": "iam.projects.locations.workloadIdentityPools.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the pool to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "iam.projects.locations.workloadIdentityPools.get": + +type ProjectsLocationsWorkloadIdentityPoolsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an individual WorkloadIdentityPool. // -// "FULL" - Returns all fields. -func (c *OrganizationsRolesListCall) View(view string) *OrganizationsRolesListCall { - c.urlParams_.Set("view", view) +// - name: The name of the pool to retrieve. +func (r *ProjectsLocationsWorkloadIdentityPoolsService) Get(name string) *ProjectsLocationsWorkloadIdentityPoolsGetCall { + c := &ProjectsLocationsWorkloadIdentityPoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsRolesListCall) Fields(s ...googleapi.Field) *OrganizationsRolesListCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7410,7 +9452,7 @@ func (c *OrganizationsRolesListCall) Fields(s ...googleapi.Field) *Organizations // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *OrganizationsRolesListCall) IfNoneMatch(entityTag string) *OrganizationsRolesListCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -7418,21 +9460,21 @@ func (c *OrganizationsRolesListCall) IfNoneMatch(entityTag string) *Organization // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsRolesListCall) Context(ctx context.Context) *OrganizationsRolesListCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsRolesListCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsRolesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -7445,7 +9487,7 @@ func (c *OrganizationsRolesListCall) doRequest(alt string) (*http.Response, erro var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/roles") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -7453,19 +9495,19 @@ func (c *OrganizationsRolesListCall) doRequest(alt string) (*http.Response, erro } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.organizations.roles.list" call. -// Exactly one of *ListRolesResponse or error will be non-nil. Any +// Do executes the "iam.projects.locations.workloadIdentityPools.get" call. +// Exactly one of *WorkloadIdentityPool or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListRolesResponse.ServerResponse.Header or (if a response was +// *WorkloadIdentityPool.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *OrganizationsRolesListCall) Do(opts ...googleapi.CallOption) (*ListRolesResponse, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) Do(opts ...googleapi.CallOption) (*WorkloadIdentityPool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7484,7 +9526,7 @@ func (c *OrganizationsRolesListCall) Do(opts ...googleapi.CallOption) (*ListRole if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListRolesResponse{ + ret := &WorkloadIdentityPool{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7496,54 +9538,25 @@ func (c *OrganizationsRolesListCall) Do(opts ...googleapi.CallOption) (*ListRole } return ret, nil // { - // "description": "Lists every predefined Role that IAM supports, or every custom role that is defined for an organization or project.", - // "flatPath": "v1/organizations/{organizationsId}/roles", + // "description": "Gets an individual WorkloadIdentityPool.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}", // "httpMethod": "GET", - // "id": "iam.organizations.roles.list", + // "id": "iam.projects.locations.workloadIdentityPools.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "Optional limit on the number of roles to include in the response. The default is 300, and the maximum is 1,000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional pagination token returned in an earlier ListRolesResponse.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "The `parent` parameter's value depends on the target resource for the request, namely [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `parent` value format is described below: * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string. This method doesn't require a resource; it simply returns all [predefined roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles` * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list): `projects/{PROJECT_ID}`. This method lists all project-level [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list): `organizations/{ORGANIZATION_ID}`. This method lists all organization-level [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles). Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "name": { + // "description": "Required. The name of the pool to retrieve.", // "location": "path", - // "pattern": "^organizations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$", // "required": true, // "type": "string" - // }, - // "showDeleted": { - // "description": "Include Roles that have been deleted.", - // "location": "query", - // "type": "boolean" - // }, - // "view": { - // "description": "Optional view for the returned Role objects. When `FULL` is specified, the `includedPermissions` field is returned, which includes a list of all permissions in the role. The default value is `BASIC`, which does not return the `includedPermissions` field.", - // "enum": [ - // "BASIC", - // "FULL" - // ], - // "enumDescriptions": [ - // "Omits the `included_permissions` field. This is the default value.", - // "Returns all fields." - // ], - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/roles", + // "path": "v1/{+name}", // "response": { - // "$ref": "ListRolesResponse" + // "$ref": "WorkloadIdentityPool" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -7552,137 +9565,120 @@ func (c *OrganizationsRolesListCall) Do(opts ...googleapi.CallOption) (*ListRole } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *OrganizationsRolesListCall) Pages(ctx context.Context, f func(*ListRolesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } +// method id "iam.projects.locations.workloadIdentityPools.list": + +type ProjectsLocationsWorkloadIdentityPoolsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// method id "iam.organizations.roles.patch": +// List: Lists all non-deleted WorkloadIdentityPools in a project. If +// `show_deleted` is set to `true`, then deleted pools are also listed. +// +// - parent: The parent resource to list pools for. +func (r *ProjectsLocationsWorkloadIdentityPoolsService) List(parent string) *ProjectsLocationsWorkloadIdentityPoolsListCall { + c := &ProjectsLocationsWorkloadIdentityPoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} -type OrganizationsRolesPatchCall struct { - s *Service - name string - role *Role - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// PageSize sets the optional parameter "pageSize": The maximum number +// of pools to return. If unspecified, at most 50 pools are returned. +// The maximum value is 1000; values above are 1000 truncated to 1000. +func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) PageSize(pageSize int64) *ProjectsLocationsWorkloadIdentityPoolsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c } -// Patch: Updates the definition of a custom Role. -// -// - name: The `name` parameter's value depends on the target resource -// for the request, namely `projects` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles) or -// `organizations` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). -// Each resource type's `name` value format is described below: * -// `projects.roles.patch()` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch): -// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates -// only custom roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles) that -// have been created at the project level. Example request URL: -// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_R -// OLE_ID}` * `organizations.roles.patch()` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch): -// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This -// method updates only custom roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles) that -// have been created at the organization level. Example request URL: -// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles -// /{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must -// specify a complete project ID or organization ID. -func (r *OrganizationsRolesService) Patch(name string, role *Role) *OrganizationsRolesPatchCall { - c := &OrganizationsRolesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.role = role +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListWorkloadIdentityPools` call. Provide +// this to retrieve the subsequent page. +func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) PageToken(pageToken string) *ProjectsLocationsWorkloadIdentityPoolsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } -// UpdateMask sets the optional parameter "updateMask": A mask -// describing which fields in the Role have changed. -func (c *OrganizationsRolesPatchCall) UpdateMask(updateMask string) *OrganizationsRolesPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// ShowDeleted sets the optional parameter "showDeleted": Whether to +// return soft-deleted pools. +func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) ShowDeleted(showDeleted bool) *ProjectsLocationsWorkloadIdentityPoolsListCall { + c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsRolesPatchCall) Fields(s ...googleapi.Field) *OrganizationsRolesPatchCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsRolesPatchCall) Context(ctx context.Context) *OrganizationsRolesPatchCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsRolesPatchCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsRolesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.role) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/workloadIdentityPools") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.organizations.roles.patch" call. -// Exactly one of *Role or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Role.ServerResponse.Header or (if a response was returned at all) in +// Do executes the "iam.projects.locations.workloadIdentityPools.list" call. +// Exactly one of *ListWorkloadIdentityPoolsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListWorkloadIdentityPoolsResponse.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsRolesPatchCall) Do(opts ...googleapi.CallOption) (*Role, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Do(opts ...googleapi.CallOption) (*ListWorkloadIdentityPoolsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7701,7 +9697,7 @@ func (c *OrganizationsRolesPatchCall) Do(opts ...googleapi.CallOption) (*Role, e if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Role{ + ret := &ListWorkloadIdentityPoolsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7713,34 +9709,41 @@ func (c *OrganizationsRolesPatchCall) Do(opts ...googleapi.CallOption) (*Role, e } return ret, nil // { - // "description": "Updates the definition of a custom Role.", - // "flatPath": "v1/organizations/{organizationsId}/roles/{rolesId}", - // "httpMethod": "PATCH", - // "id": "iam.organizations.roles.patch", + // "description": "Lists all non-deleted WorkloadIdentityPools in a project. If `show_deleted` is set to `true`, then deleted pools are also listed.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools", + // "httpMethod": "GET", + // "id": "iam.projects.locations.workloadIdentityPools.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The `name` parameter's value depends on the target resource for the request, namely [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "pageSize": { + // "description": "The maximum number of pools to return. If unspecified, at most 50 pools are returned. The maximum value is 1000; values above are 1000 truncated to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListWorkloadIdentityPools` call. Provide this to retrieve the subsequent page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource to list pools for.", // "location": "path", - // "pattern": "^organizations/[^/]+/roles/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "A mask describing which fields in the Role have changed.", - // "format": "google-fieldmask", + // "showDeleted": { + // "description": "Whether to return soft-deleted pools.", // "location": "query", - // "type": "string" + // "type": "boolean" // } // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "Role" - // }, + // "path": "v1/{+parent}/workloadIdentityPools", // "response": { - // "$ref": "Role" + // "$ref": "ListWorkloadIdentityPoolsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -7749,52 +9752,59 @@ func (c *OrganizationsRolesPatchCall) Do(opts ...googleapi.CallOption) (*Role, e } -// method id "iam.organizations.roles.undelete": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Pages(ctx context.Context, f func(*ListWorkloadIdentityPoolsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type OrganizationsRolesUndeleteCall struct { - s *Service - name string - undeleterolerequest *UndeleteRoleRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "iam.projects.locations.workloadIdentityPools.patch": + +type ProjectsLocationsWorkloadIdentityPoolsPatchCall struct { + s *Service + name string + workloadidentitypool *WorkloadIdentityPool + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Undelete: Undeletes a custom Role. +// Patch: Updates an existing WorkloadIdentityPool. // -// - name: The `name` parameter's value depends on the target resource -// for the request, namely `projects` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles) or -// `organizations` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles). -// Each resource type's `name` value format is described below: * -// `projects.roles.undelete()` -// (https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete): -// `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method -// undeletes only custom roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles) that -// have been created at the project level. Example request URL: -// `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_R -// OLE_ID}` * `organizations.roles.undelete()` -// (https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete): -// `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This -// method undeletes only custom roles -// (https://cloud.google.com/iam/docs/understanding-custom-roles) that -// have been created at the organization level. Example request URL: -// `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles -// /{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must -// specify a complete project ID or organization ID. -func (r *OrganizationsRolesService) Undelete(name string, undeleterolerequest *UndeleteRoleRequest) *OrganizationsRolesUndeleteCall { - c := &OrganizationsRolesUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the pool. +func (r *ProjectsLocationsWorkloadIdentityPoolsService) Patch(name string, workloadidentitypool *WorkloadIdentityPool) *ProjectsLocationsWorkloadIdentityPoolsPatchCall { + c := &ProjectsLocationsWorkloadIdentityPoolsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.undeleterolerequest = undeleterolerequest + c.workloadidentitypool = workloadidentitypool + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to update. +func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsWorkloadIdentityPoolsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *OrganizationsRolesUndeleteCall) Fields(s ...googleapi.Field) *OrganizationsRolesUndeleteCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7802,21 +9812,21 @@ func (c *OrganizationsRolesUndeleteCall) Fields(s ...googleapi.Field) *Organizat // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *OrganizationsRolesUndeleteCall) Context(ctx context.Context) *OrganizationsRolesUndeleteCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *OrganizationsRolesUndeleteCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsRolesUndeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -7824,16 +9834,16 @@ func (c *OrganizationsRolesUndeleteCall) doRequest(alt string) (*http.Response, } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleterolerequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workloadidentitypool) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undelete") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -7844,14 +9854,14 @@ func (c *OrganizationsRolesUndeleteCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.organizations.roles.undelete" call. -// Exactly one of *Role or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Role.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *OrganizationsRolesUndeleteCall) Do(opts ...googleapi.CallOption) (*Role, error) { +// Do executes the "iam.projects.locations.workloadIdentityPools.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7870,7 +9880,7 @@ func (c *OrganizationsRolesUndeleteCall) Do(opts ...googleapi.CallOption) (*Role if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Role{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7882,28 +9892,34 @@ func (c *OrganizationsRolesUndeleteCall) Do(opts ...googleapi.CallOption) (*Role } return ret, nil // { - // "description": "Undeletes a custom Role.", - // "flatPath": "v1/organizations/{organizationsId}/roles/{rolesId}:undelete", - // "httpMethod": "POST", - // "id": "iam.organizations.roles.undelete", + // "description": "Updates an existing WorkloadIdentityPool.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}", + // "httpMethod": "PATCH", + // "id": "iam.projects.locations.workloadIdentityPools.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The `name` parameter's value depends on the target resource for the request, namely [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) or [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). Each resource type's `name` value format is described below: * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete): `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the project level. Example request URL: `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete): `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes only [custom roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that have been created at the organization level. Example request URL: `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.", + // "description": "Output only. The resource name of the pool.", // "location": "path", - // "pattern": "^organizations/[^/]+/roles/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}:undelete", + // "path": "v1/{+name}", // "request": { - // "$ref": "UndeleteRoleRequest" + // "$ref": "WorkloadIdentityPool" // }, // "response": { - // "$ref": "Role" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -7912,29 +9928,32 @@ func (c *OrganizationsRolesUndeleteCall) Do(opts ...googleapi.CallOption) (*Role } -// method id "iam.permissions.queryTestablePermissions": +// method id "iam.projects.locations.workloadIdentityPools.undelete": -type PermissionsQueryTestablePermissionsCall struct { - s *Service - querytestablepermissionsrequest *QueryTestablePermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsWorkloadIdentityPoolsUndeleteCall struct { + s *Service + name string + undeleteworkloadidentitypoolrequest *UndeleteWorkloadIdentityPoolRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// QueryTestablePermissions: Lists every permission that you can test on -// a resource. A permission is testable if you can check whether a -// principal has that permission on the resource. -func (r *PermissionsService) QueryTestablePermissions(querytestablepermissionsrequest *QueryTestablePermissionsRequest) *PermissionsQueryTestablePermissionsCall { - c := &PermissionsQueryTestablePermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.querytestablepermissionsrequest = querytestablepermissionsrequest +// Undelete: Undeletes a WorkloadIdentityPool, as long as it was deleted +// fewer than 30 days ago. +// +// - name: The name of the pool to undelete. +func (r *ProjectsLocationsWorkloadIdentityPoolsService) Undelete(name string, undeleteworkloadidentitypoolrequest *UndeleteWorkloadIdentityPoolRequest) *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall { + c := &ProjectsLocationsWorkloadIdentityPoolsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.undeleteworkloadidentitypoolrequest = undeleteworkloadidentitypoolrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *PermissionsQueryTestablePermissionsCall) Fields(s ...googleapi.Field) *PermissionsQueryTestablePermissionsCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7942,21 +9961,21 @@ func (c *PermissionsQueryTestablePermissionsCall) Fields(s ...googleapi.Field) * // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *PermissionsQueryTestablePermissionsCall) Context(ctx context.Context) *PermissionsQueryTestablePermissionsCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *PermissionsQueryTestablePermissionsCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PermissionsQueryTestablePermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -7964,31 +9983,34 @@ func (c *PermissionsQueryTestablePermissionsCall) doRequest(alt string) (*http.R } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.querytestablepermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleteworkloadidentitypoolrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/permissions:queryTestablePermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undelete") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.permissions.queryTestablePermissions" call. -// Exactly one of *QueryTestablePermissionsResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *QueryTestablePermissionsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *PermissionsQueryTestablePermissionsCall) Do(opts ...googleapi.CallOption) (*QueryTestablePermissionsResponse, error) { +// Do executes the "iam.projects.locations.workloadIdentityPools.undelete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8007,7 +10029,7 @@ func (c *PermissionsQueryTestablePermissionsCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &QueryTestablePermissionsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8019,18 +10041,28 @@ func (c *PermissionsQueryTestablePermissionsCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Lists every permission that you can test on a resource. A permission is testable if you can check whether a principal has that permission on the resource.", - // "flatPath": "v1/permissions:queryTestablePermissions", + // "description": "Undeletes a WorkloadIdentityPool, as long as it was deleted fewer than 30 days ago.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}:undelete", // "httpMethod": "POST", - // "id": "iam.permissions.queryTestablePermissions", - // "parameterOrder": [], - // "parameters": {}, - // "path": "v1/permissions:queryTestablePermissions", + // "id": "iam.projects.locations.workloadIdentityPools.undelete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the pool to undelete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:undelete", // "request": { - // "$ref": "QueryTestablePermissionsRequest" + // "$ref": "UndeleteWorkloadIdentityPoolRequest" // }, // "response": { - // "$ref": "QueryTestablePermissionsResponse" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -8039,122 +10071,97 @@ func (c *PermissionsQueryTestablePermissionsCall) Do(opts ...googleapi.CallOptio } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *PermissionsQueryTestablePermissionsCall) Pages(ctx context.Context, f func(*QueryTestablePermissionsResponse) error) error { - c.ctx_ = ctx - defer func(pt string) { c.querytestablepermissionsrequest.PageToken = pt }(c.querytestablepermissionsrequest.PageToken) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.querytestablepermissionsrequest.PageToken = x.NextPageToken - } -} - -// method id "iam.projects.locations.workloadIdentityPools.create": +// method id "iam.projects.locations.workloadIdentityPools.operations.get": -type ProjectsLocationsWorkloadIdentityPoolsCreateCall struct { - s *Service - parent string - workloadidentitypool *WorkloadIdentityPool - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new WorkloadIdentityPool. You cannot reuse the name -// of a deleted pool until 30 days after deletion. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - parent: The parent resource to create the pool in. The only -// supported location is `global`. -func (r *ProjectsLocationsWorkloadIdentityPoolsService) Create(parent string, workloadidentitypool *WorkloadIdentityPool) *ProjectsLocationsWorkloadIdentityPoolsCreateCall { - c := &ProjectsLocationsWorkloadIdentityPoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.workloadidentitypool = workloadidentitypool - return c -} - -// WorkloadIdentityPoolId sets the optional parameter -// "workloadIdentityPoolId": Required. The ID to use for the pool, which -// becomes the final component of the resource name. This value should -// be 4-32 characters, and may contain the characters [a-z0-9-]. The -// prefix `gcp-` is reserved for use by Google, and may not be -// specified. -func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) WorkloadIdentityPoolId(workloadIdentityPoolId string) *ProjectsLocationsWorkloadIdentityPoolsCreateCall { - c.urlParams_.Set("workloadIdentityPoolId", workloadIdentityPoolId) +// - name: The name of the operation resource. +func (r *ProjectsLocationsWorkloadIdentityPoolsOperationsService) Get(name string) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { + c := &ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsCreateCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsCreateCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.workloadidentitypool) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/workloadIdentityPools") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.create" call. +// Do executes the "iam.projects.locations.workloadIdentityPools.operations.get" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8185,31 +10192,23 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Creates a new WorkloadIdentityPool. You cannot reuse the name of a deleted pool until 30 days after deletion.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools", - // "httpMethod": "POST", - // "id": "iam.projects.locations.workloadIdentityPools.create", + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "iam.projects.locations.workloadIdentityPools.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The parent resource to create the pool in. The only supported location is `global`.", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "workloadIdentityPoolId": { - // "description": "Required. The ID to use for the pool, which becomes the final component of the resource name. This value should be 4-32 characters, and may contain the characters [a-z0-9-]. The prefix `gcp-` is reserved for use by Google, and may not be specified.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/workloadIdentityPools", - // "request": { - // "$ref": "WorkloadIdentityPool" - // }, + // "path": "v1/{+name}", // "response": { // "$ref": "Operation" // }, @@ -8220,36 +10219,44 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsCreateCall) Do(opts ...googleapi. } -// method id "iam.projects.locations.workloadIdentityPools.delete": +// method id "iam.projects.locations.workloadIdentityPools.providers.create": -type ProjectsLocationsWorkloadIdentityPoolsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall struct { + s *Service + parent string + workloadidentitypoolprovider *WorkloadIdentityPoolProvider + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a WorkloadIdentityPool. You cannot use a deleted pool -// to exchange external credentials for Google Cloud credentials. -// However, deletion does not revoke credentials that have already been -// issued. Credentials issued for a deleted pool do not grant access to -// resources. If the pool is undeleted, and the credentials are not -// expired, they grant access again. You can undelete a pool for 30 -// days. After 30 days, deletion is permanent. You cannot update deleted -// pools. However, you can view and list them. +// Create: Creates a new WorkloadIdentityPoolProvider in a +// WorkloadIdentityPool. You cannot reuse the name of a deleted provider +// until 30 days after deletion. // -// - name: The name of the pool to delete. -func (r *ProjectsLocationsWorkloadIdentityPoolsService) Delete(name string) *ProjectsLocationsWorkloadIdentityPoolsDeleteCall { - c := &ProjectsLocationsWorkloadIdentityPoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The pool to create this provider in. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Create(parent string, workloadidentitypoolprovider *WorkloadIdentityPoolProvider) *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.workloadidentitypoolprovider = workloadidentitypoolprovider + return c +} + +// WorkloadIdentityPoolProviderId sets the optional parameter +// "workloadIdentityPoolProviderId": Required. The ID for the provider, +// which becomes the final component of the resource name. This value +// must be 4-32 characters, and may contain the characters [a-z0-9-]. +// The prefix `gcp-` is reserved for use by Google, and may not be +// specified. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) WorkloadIdentityPoolProviderId(workloadIdentityPoolProviderId string) *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall { + c.urlParams_.Set("workloadIdentityPoolProviderId", workloadIdentityPoolProviderId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsDeleteCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8257,21 +10264,21 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) Fields(s ...googleapi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsDeleteCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -8279,29 +10286,34 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workloadidentitypoolprovider) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/providers") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.delete" call. +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.create" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8332,23 +10344,31 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Deletes a WorkloadIdentityPool. You cannot use a deleted pool to exchange external credentials for Google Cloud credentials. However, deletion does not revoke credentials that have already been issued. Credentials issued for a deleted pool do not grant access to resources. If the pool is undeleted, and the credentials are not expired, they grant access again. You can undelete a pool for 30 days. After 30 days, deletion is permanent. You cannot update deleted pools. However, you can view and list them.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}", - // "httpMethod": "DELETE", - // "id": "iam.projects.locations.workloadIdentityPools.delete", + // "description": "Creates a new WorkloadIdentityPoolProvider in a WorkloadIdentityPool. You cannot reuse the name of a deleted provider until 30 days after deletion.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers", + // "httpMethod": "POST", + // "id": "iam.projects.locations.workloadIdentityPools.providers.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the pool to delete.", + // "parent": { + // "description": "Required. The pool to create this provider in.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$", // "required": true, // "type": "string" + // }, + // "workloadIdentityPoolProviderId": { + // "description": "Required. The ID for the provider, which becomes the final component of the resource name. This value must be 4-32 characters, and may contain the characters [a-z0-9-]. The prefix `gcp-` is reserved for use by Google, and may not be specified.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/providers", + // "request": { + // "$ref": "WorkloadIdentityPoolProvider" + // }, // "response": { // "$ref": "Operation" // }, @@ -8359,22 +10379,25 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsDeleteCall) Do(opts ...googleapi. } -// method id "iam.projects.locations.workloadIdentityPools.get": +// method id "iam.projects.locations.workloadIdentityPools.providers.delete": -type ProjectsLocationsWorkloadIdentityPoolsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets an individual WorkloadIdentityPool. +// Delete: Deletes a WorkloadIdentityPoolProvider. Deleting a provider +// does not revoke credentials that have already been issued; they +// continue to grant access. You can undelete a provider for 30 days. +// After 30 days, deletion is permanent. You cannot update deleted +// providers. However, you can view and list them. // -// - name: The name of the pool to retrieve. -func (r *ProjectsLocationsWorkloadIdentityPoolsService) Get(name string) *ProjectsLocationsWorkloadIdentityPoolsGetCall { - c := &ProjectsLocationsWorkloadIdentityPoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the provider to delete. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Delete(name string) *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -8382,54 +10405,41 @@ func (r *ProjectsLocationsWorkloadIdentityPoolsService) Get(name string) *Projec // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsGetCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsGetCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -8440,14 +10450,14 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.get" call. -// Exactly one of *WorkloadIdentityPool or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *WorkloadIdentityPool.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) Do(opts ...googleapi.CallOption) (*WorkloadIdentityPool, error) { +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8466,7 +10476,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &WorkloadIdentityPool{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8478,25 +10488,25 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Gets an individual WorkloadIdentityPool.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}", - // "httpMethod": "GET", - // "id": "iam.projects.locations.workloadIdentityPools.get", + // "description": "Deletes a WorkloadIdentityPoolProvider. Deleting a provider does not revoke credentials that have already been issued; they continue to grant access. You can undelete a provider for 30 days. After 30 days, deletion is permanent. You cannot update deleted providers. However, you can view and list them.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}", + // "httpMethod": "DELETE", + // "id": "iam.projects.locations.workloadIdentityPools.providers.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the pool to retrieve.", + // "description": "Required. The name of the provider to delete.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "WorkloadIdentityPool" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -8505,54 +10515,30 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsGetCall) Do(opts ...googleapi.Cal } -// method id "iam.projects.locations.workloadIdentityPools.list": +// method id "iam.projects.locations.workloadIdentityPools.providers.get": -type ProjectsLocationsWorkloadIdentityPoolsListCall struct { +type ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists all non-deleted WorkloadIdentityPools in a project. If -// `show_deleted` is set to `true`, then deleted pools are also listed. +// Get: Gets an individual WorkloadIdentityPoolProvider. // -// - parent: The parent resource to list pools for. -func (r *ProjectsLocationsWorkloadIdentityPoolsService) List(parent string) *ProjectsLocationsWorkloadIdentityPoolsListCall { - c := &ProjectsLocationsWorkloadIdentityPoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of pools to return. If unspecified, at most 50 pools are returned. -// The maximum value is 1000; values above are 1000 truncated to 1000. -func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) PageSize(pageSize int64) *ProjectsLocationsWorkloadIdentityPoolsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListWorkloadIdentityPools` call. Provide -// this to retrieve the subsequent page. -func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) PageToken(pageToken string) *ProjectsLocationsWorkloadIdentityPoolsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ShowDeleted sets the optional parameter "showDeleted": Whether to -// return soft-deleted pools. -func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) ShowDeleted(showDeleted bool) *ProjectsLocationsWorkloadIdentityPoolsListCall { - c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) +// - name: The name of the provider to retrieve. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Get(name string) *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsListCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8562,7 +10548,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Fields(s ...googleapi.F // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsListCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall { c.ifNoneMatch_ = entityTag return c } @@ -8570,21 +10556,21 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) IfNoneMatch(entityTag s // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsListCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -8597,7 +10583,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) doRequest(alt string) ( var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/workloadIdentityPools") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8605,20 +10591,19 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.list" call. -// Exactly one of *ListWorkloadIdentityPoolsResponse or error will be +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.get" call. +// Exactly one of *WorkloadIdentityPoolProvider or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListWorkloadIdentityPoolsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Do(opts ...googleapi.CallOption) (*ListWorkloadIdentityPoolsResponse, error) { +// either *WorkloadIdentityPoolProvider.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Do(opts ...googleapi.CallOption) (*WorkloadIdentityPoolProvider, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8637,7 +10622,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListWorkloadIdentityPoolsResponse{ + ret := &WorkloadIdentityPoolProvider{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8649,41 +10634,25 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Lists all non-deleted WorkloadIdentityPools in a project. If `show_deleted` is set to `true`, then deleted pools are also listed.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools", + // "description": "Gets an individual WorkloadIdentityPoolProvider.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}", // "httpMethod": "GET", - // "id": "iam.projects.locations.workloadIdentityPools.list", + // "id": "iam.projects.locations.workloadIdentityPools.providers.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "The maximum number of pools to return. If unspecified, at most 50 pools are returned. The maximum value is 1000; values above are 1000 truncated to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListWorkloadIdentityPools` call. Provide this to retrieve the subsequent page.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource to list pools for.", + // "name": { + // "description": "Required. The name of the provider to retrieve.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", // "required": true, // "type": "string" - // }, - // "showDeleted": { - // "description": "Whether to return soft-deleted pools.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v1/{+parent}/workloadIdentityPools", + // "path": "v1/{+name}", // "response": { - // "$ref": "ListWorkloadIdentityPoolsResponse" + // "$ref": "WorkloadIdentityPoolProvider" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -8692,116 +10661,123 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Do(opts ...googleapi.Ca } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsWorkloadIdentityPoolsListCall) Pages(ctx context.Context, f func(*ListWorkloadIdentityPoolsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } +// method id "iam.projects.locations.workloadIdentityPools.providers.list": + +type ProjectsLocationsWorkloadIdentityPoolsProvidersListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// method id "iam.projects.locations.workloadIdentityPools.patch": +// List: Lists all non-deleted WorkloadIdentityPoolProviders in a +// WorkloadIdentityPool. If `show_deleted` is set to `true`, then +// deleted providers are also listed. +// +// - parent: The pool to list providers for. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) List(parent string) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} -type ProjectsLocationsWorkloadIdentityPoolsPatchCall struct { - s *Service - name string - workloadidentitypool *WorkloadIdentityPool - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// PageSize sets the optional parameter "pageSize": The maximum number +// of providers to return. If unspecified, at most 50 providers are +// returned. The maximum value is 100; values above 100 are truncated to +// 100. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) PageSize(pageSize int64) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c } -// Patch: Updates an existing WorkloadIdentityPool. -// -// - name: Output only. The resource name of the pool. -func (r *ProjectsLocationsWorkloadIdentityPoolsService) Patch(name string, workloadidentitypool *WorkloadIdentityPool) *ProjectsLocationsWorkloadIdentityPoolsPatchCall { - c := &ProjectsLocationsWorkloadIdentityPoolsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.workloadidentitypool = workloadidentitypool +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListWorkloadIdentityPoolProviders` call. +// Provide this to retrieve the subsequent page. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) PageToken(pageToken string) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { + c.urlParams_.Set("pageToken", pageToken) return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// list of fields to update. -func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsWorkloadIdentityPoolsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// ShowDeleted sets the optional parameter "showDeleted": Whether to +// return soft-deleted providers. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) ShowDeleted(showDeleted bool) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { + c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsPatchCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsPatchCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.workloadidentitypool) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/providers") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.list" call. +// Exactly one of *ListWorkloadIdentityPoolProvidersResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *ListWorkloadIdentityPoolProvidersResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Do(opts ...googleapi.CallOption) (*ListWorkloadIdentityPoolProvidersResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8820,7 +10796,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListWorkloadIdentityPoolProvidersResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8832,34 +10808,41 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Updates an existing WorkloadIdentityPool.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}", - // "httpMethod": "PATCH", - // "id": "iam.projects.locations.workloadIdentityPools.patch", + // "description": "Lists all non-deleted WorkloadIdentityPoolProviders in a WorkloadIdentityPool. If `show_deleted` is set to `true`, then deleted providers are also listed.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers", + // "httpMethod": "GET", + // "id": "iam.projects.locations.workloadIdentityPools.providers.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Output only. The resource name of the pool.", + // "pageSize": { + // "description": "The maximum number of providers to return. If unspecified, at most 50 providers are returned. The maximum value is 100; values above 100 are truncated to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListWorkloadIdentityPoolProviders` call. Provide this to retrieve the subsequent page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The pool to list providers for.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Required. The list of fields to update.", - // "format": "google-fieldmask", + // "showDeleted": { + // "description": "Whether to return soft-deleted providers.", // "location": "query", - // "type": "string" + // "type": "boolean" // } // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "WorkloadIdentityPool" - // }, + // "path": "v1/{+parent}/providers", // "response": { - // "$ref": "Operation" + // "$ref": "ListWorkloadIdentityPoolProvidersResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -8868,32 +10851,59 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsPatchCall) Do(opts ...googleapi.C } -// method id "iam.projects.locations.workloadIdentityPools.undelete": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Pages(ctx context.Context, f func(*ListWorkloadIdentityPoolProvidersResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsWorkloadIdentityPoolsUndeleteCall struct { - s *Service - name string - undeleteworkloadidentitypoolrequest *UndeleteWorkloadIdentityPoolRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "iam.projects.locations.workloadIdentityPools.providers.patch": + +type ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall struct { + s *Service + name string + workloadidentitypoolprovider *WorkloadIdentityPoolProvider + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Undelete: Undeletes a WorkloadIdentityPool, as long as it was deleted -// fewer than 30 days ago. +// Patch: Updates an existing WorkloadIdentityPoolProvider. // -// - name: The name of the pool to undelete. -func (r *ProjectsLocationsWorkloadIdentityPoolsService) Undelete(name string, undeleteworkloadidentitypoolrequest *UndeleteWorkloadIdentityPoolRequest) *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall { - c := &ProjectsLocationsWorkloadIdentityPoolsUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the provider. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Patch(name string, workloadidentitypoolprovider *WorkloadIdentityPoolProvider) *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.undeleteworkloadidentitypoolrequest = undeleteworkloadidentitypoolrequest + c.workloadidentitypoolprovider = workloadidentitypoolprovider + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to update. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8901,21 +10911,21 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) Fields(s ...googlea // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -8923,16 +10933,16 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleteworkloadidentitypoolrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workloadidentitypoolprovider) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undelete") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -8943,14 +10953,14 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.undelete" call. +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.patch" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8981,25 +10991,31 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) Do(opts ...googleap } return ret, nil // { - // "description": "Undeletes a WorkloadIdentityPool, as long as it was deleted fewer than 30 days ago.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}:undelete", - // "httpMethod": "POST", - // "id": "iam.projects.locations.workloadIdentityPools.undelete", + // "description": "Updates an existing WorkloadIdentityPoolProvider.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}", + // "httpMethod": "PATCH", + // "id": "iam.projects.locations.workloadIdentityPools.providers.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the pool to undelete.", + // "description": "Output only. The resource name of the provider.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}:undelete", + // "path": "v1/{+name}", // "request": { - // "$ref": "UndeleteWorkloadIdentityPoolRequest" + // "$ref": "WorkloadIdentityPoolProvider" // }, // "response": { // "$ref": "Operation" @@ -9011,79 +11027,71 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsUndeleteCall) Do(opts ...googleap } -// method id "iam.projects.locations.workloadIdentityPools.operations.get": +// method id "iam.projects.locations.workloadIdentityPools.providers.undelete": -type ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall struct { + s *Service + name string + undeleteworkloadidentitypoolproviderrequest *UndeleteWorkloadIdentityPoolProviderRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Undelete: Undeletes a WorkloadIdentityPoolProvider, as long as it was +// deleted fewer than 30 days ago. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsWorkloadIdentityPoolsOperationsService) Get(name string) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { - c := &ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the provider to undelete. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Undelete(name string, undeleteworkloadidentitypoolproviderrequest *UndeleteWorkloadIdentityPoolProviderRequest) *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.undeleteworkloadidentitypoolproviderrequest = undeleteworkloadidentitypoolproviderrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleteworkloadidentitypoolproviderrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undelete") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -9094,14 +11102,14 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.operations.get" call. +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.undelete" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9132,23 +11140,26 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Do(opts ...goo } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "iam.projects.locations.workloadIdentityPools.operations.get", + // "description": "Undeletes a WorkloadIdentityPoolProvider, as long as it was deleted fewer than 30 days ago.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}:undelete", + // "httpMethod": "POST", + // "id": "iam.projects.locations.workloadIdentityPools.providers.undelete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the provider to undelete.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}:undelete", + // "request": { + // "$ref": "UndeleteWorkloadIdentityPoolProviderRequest" + // }, // "response": { // "$ref": "Operation" // }, @@ -9159,44 +11170,42 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsOperationsGetCall) Do(opts ...goo } -// method id "iam.projects.locations.workloadIdentityPools.providers.create": +// method id "iam.projects.locations.workloadIdentityPools.providers.keys.create": -type ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall struct { - s *Service - parent string - workloadidentitypoolprovider *WorkloadIdentityPoolProvider - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall struct { + s *Service + parent string + workloadidentitypoolproviderkey *WorkloadIdentityPoolProviderKey + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new WorkloadIdentityPoolProvider in a -// WorkloadIdentityPool. You cannot reuse the name of a deleted provider -// until 30 days after deletion. +// Create: Create a new WorkloadIdentityPoolProviderKey in a +// WorkloadIdentityPoolProvider. // -// - parent: The pool to create this provider in. -func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Create(parent string, workloadidentitypoolprovider *WorkloadIdentityPoolProvider) *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall { - c := &ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent provider resource to create the key in. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysService) Create(parent string, workloadidentitypoolproviderkey *WorkloadIdentityPoolProviderKey) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.workloadidentitypoolprovider = workloadidentitypoolprovider + c.workloadidentitypoolproviderkey = workloadidentitypoolproviderkey return c } -// WorkloadIdentityPoolProviderId sets the optional parameter -// "workloadIdentityPoolProviderId": Required. The ID for the provider, -// which becomes the final component of the resource name. This value -// must be 4-32 characters, and may contain the characters [a-z0-9-]. -// The prefix `gcp-` is reserved for use by Google, and may not be -// specified. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) WorkloadIdentityPoolProviderId(workloadIdentityPoolProviderId string) *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall { - c.urlParams_.Set("workloadIdentityPoolProviderId", workloadIdentityPoolProviderId) +// WorkloadIdentityPoolProviderKeyId sets the optional parameter +// "workloadIdentityPoolProviderKeyId": Required. The ID to use for the +// key, which becomes the final component of the resource name. This +// value should be 4-32 characters, and may contain the characters +// [a-z0-9-]. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall) WorkloadIdentityPoolProviderKeyId(workloadIdentityPoolProviderKeyId string) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall { + c.urlParams_.Set("workloadIdentityPoolProviderKeyId", workloadIdentityPoolProviderKeyId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9204,21 +11213,21 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) Fields(s ... // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -9226,14 +11235,14 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) doRequest(al } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.workloadidentitypoolprovider) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.workloadidentitypoolproviderkey) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/providers") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -9246,14 +11255,14 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) doRequest(al return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.providers.create" call. +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.keys.create" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9284,30 +11293,30 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) Do(opts ...g } return ret, nil // { - // "description": "Creates a new WorkloadIdentityPoolProvider in a WorkloadIdentityPool. You cannot reuse the name of a deleted provider until 30 days after deletion.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers", + // "description": "Create a new WorkloadIdentityPoolProviderKey in a WorkloadIdentityPoolProvider.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/keys", // "httpMethod": "POST", - // "id": "iam.projects.locations.workloadIdentityPools.providers.create", + // "id": "iam.projects.locations.workloadIdentityPools.providers.keys.create", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. The pool to create this provider in.", + // "description": "Required. The parent provider resource to create the key in.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", // "required": true, // "type": "string" // }, - // "workloadIdentityPoolProviderId": { - // "description": "Required. The ID for the provider, which becomes the final component of the resource name. This value must be 4-32 characters, and may contain the characters [a-z0-9-]. The prefix `gcp-` is reserved for use by Google, and may not be specified.", + // "workloadIdentityPoolProviderKeyId": { + // "description": "Required. The ID to use for the key, which becomes the final component of the resource name. This value should be 4-32 characters, and may contain the characters [a-z0-9-].", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+parent}/providers", + // "path": "v1/{+parent}/keys", // "request": { - // "$ref": "WorkloadIdentityPoolProvider" + // "$ref": "WorkloadIdentityPoolProviderKey" // }, // "response": { // "$ref": "Operation" @@ -9319,9 +11328,9 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersCreateCall) Do(opts ...g } -// method id "iam.projects.locations.workloadIdentityPools.providers.delete": +// method id "iam.projects.locations.workloadIdentityPools.providers.keys.delete": -type ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall struct { +type ProjectsLocationsWorkloadIdentityPoolsProvidersKeysDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -9329,15 +11338,12 @@ type ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall struct { header_ http.Header } -// Delete: Deletes a WorkloadIdentityPoolProvider. Deleting a provider -// does not revoke credentials that have already been issued; they -// continue to grant access. You can undelete a provider for 30 days. -// After 30 days, deletion is permanent. You cannot update deleted -// providers. However, you can view and list them. +// Delete: Deletes an WorkloadIdentityPoolProviderKey. You can undelete +// a key for 30 days. After 30 days, deletion is permanent. // -// - name: The name of the provider to delete. -func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Delete(name string) *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall { - c := &ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the encryption key to delete. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysService) Delete(name string) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysDeleteCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -9345,7 +11351,7 @@ func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Delete(name str // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9353,21 +11359,21 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) Fields(s ... // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -9390,14 +11396,14 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) doRequest(al return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.providers.delete" call. +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.keys.delete" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9428,18 +11434,18 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) Do(opts ...g } return ret, nil // { - // "description": "Deletes a WorkloadIdentityPoolProvider. Deleting a provider does not revoke credentials that have already been issued; they continue to grant access. You can undelete a provider for 30 days. After 30 days, deletion is permanent. You cannot update deleted providers. However, you can view and list them.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}", + // "description": "Deletes an WorkloadIdentityPoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/keys/{keysId}", // "httpMethod": "DELETE", - // "id": "iam.projects.locations.workloadIdentityPools.providers.delete", + // "id": "iam.projects.locations.workloadIdentityPools.providers.keys.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the provider to delete.", + // "description": "Required. The name of the encryption key to delete.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+/keys/[^/]+$", // "required": true, // "type": "string" // } @@ -9455,9 +11461,9 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersDeleteCall) Do(opts ...g } -// method id "iam.projects.locations.workloadIdentityPools.providers.get": +// method id "iam.projects.locations.workloadIdentityPools.providers.keys.get": -type ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall struct { +type ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -9466,11 +11472,11 @@ type ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall struct { header_ http.Header } -// Get: Gets an individual WorkloadIdentityPoolProvider. +// Get: Gets an individual WorkloadIdentityPoolProviderKey. // -// - name: The name of the provider to retrieve. -func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Get(name string) *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall { - c := &ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the key to retrieve. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysService) Get(name string) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -9478,7 +11484,7 @@ func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Get(name string // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9488,7 +11494,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Fields(s ...goo // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall { c.ifNoneMatch_ = entityTag return c } @@ -9496,21 +11502,21 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) IfNoneMatch(ent // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -9536,14 +11542,14 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.providers.get" call. -// Exactly one of *WorkloadIdentityPoolProvider or error will be +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.keys.get" call. +// Exactly one of *WorkloadIdentityPoolProviderKey or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *WorkloadIdentityPoolProvider.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// either *WorkloadIdentityPoolProviderKey.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Do(opts ...googleapi.CallOption) (*WorkloadIdentityPoolProvider, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysGetCall) Do(opts ...googleapi.CallOption) (*WorkloadIdentityPoolProviderKey, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9562,7 +11568,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &WorkloadIdentityPoolProvider{ + ret := &WorkloadIdentityPoolProviderKey{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9574,25 +11580,25 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Do(opts ...goog } return ret, nil // { - // "description": "Gets an individual WorkloadIdentityPoolProvider.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}", + // "description": "Gets an individual WorkloadIdentityPoolProviderKey.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/keys/{keysId}", // "httpMethod": "GET", - // "id": "iam.projects.locations.workloadIdentityPools.providers.get", + // "id": "iam.projects.locations.workloadIdentityPools.providers.keys.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the provider to retrieve.", + // "description": "Required. The name of the key to retrieve.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+/keys/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "WorkloadIdentityPoolProvider" + // "$ref": "WorkloadIdentityPoolProviderKey" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -9601,9 +11607,9 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersGetCall) Do(opts ...goog } -// method id "iam.projects.locations.workloadIdentityPools.providers.list": +// method id "iam.projects.locations.workloadIdentityPools.providers.keys.list": -type ProjectsLocationsWorkloadIdentityPoolsProvidersListCall struct { +type ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -9612,37 +11618,36 @@ type ProjectsLocationsWorkloadIdentityPoolsProvidersListCall struct { header_ http.Header } -// List: Lists all non-deleted WorkloadIdentityPoolProviders in a -// WorkloadIdentityPool. If `show_deleted` is set to `true`, then -// deleted providers are also listed. +// List: Lists all non-deleted WorkloadIdentityPoolProviderKeys in a +// project. If show_deleted is set to `true`, then deleted pools are +// also listed. // -// - parent: The pool to list providers for. -func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) List(parent string) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { - c := &ProjectsLocationsWorkloadIdentityPoolsProvidersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent provider resource to list encryption keys for. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysService) List(parent string) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of providers to return. If unspecified, at most 50 providers are -// returned. The maximum value is 100; values above 100 are truncated to -// 100. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) PageSize(pageSize int64) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { +// of keys to return. If unspecified, all keys are returned. The maximum +// value is 10; values above 10 are truncated to 10. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall) PageSize(pageSize int64) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListWorkloadIdentityPoolProviders` call. +// received from a previous `ListWorkloadIdentityPoolProviderKeys` call. // Provide this to retrieve the subsequent page. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) PageToken(pageToken string) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall) PageToken(pageToken string) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall { c.urlParams_.Set("pageToken", pageToken) return c } // ShowDeleted sets the optional parameter "showDeleted": Whether to -// return soft-deleted providers. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) ShowDeleted(showDeleted bool) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { +// return soft deleted resources as well. +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall) ShowDeleted(showDeleted bool) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall { c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) return c } @@ -9650,7 +11655,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) ShowDeleted(sh // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9660,7 +11665,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Fields(s ...go // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall { c.ifNoneMatch_ = entityTag return c } @@ -9668,21 +11673,21 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) IfNoneMatch(en // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -9695,7 +11700,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) doRequest(alt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/providers") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -9708,16 +11713,16 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.providers.list" call. -// Exactly one of *ListWorkloadIdentityPoolProvidersResponse or error +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.keys.list" call. +// Exactly one of *ListWorkloadIdentityPoolProviderKeysResponse or error // will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *ListWorkloadIdentityPoolProvidersResponse.ServerResponse.Header or -// (if a response was returned at all) in +// *ListWorkloadIdentityPoolProviderKeysResponse.ServerResponse.Header +// or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Do(opts ...googleapi.CallOption) (*ListWorkloadIdentityPoolProvidersResponse, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall) Do(opts ...googleapi.CallOption) (*ListWorkloadIdentityPoolProviderKeysResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9736,7 +11741,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListWorkloadIdentityPoolProvidersResponse{ + ret := &ListWorkloadIdentityPoolProviderKeysResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9748,41 +11753,41 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Do(opts ...goo } return ret, nil // { - // "description": "Lists all non-deleted WorkloadIdentityPoolProviders in a WorkloadIdentityPool. If `show_deleted` is set to `true`, then deleted providers are also listed.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers", + // "description": "Lists all non-deleted WorkloadIdentityPoolProviderKeys in a project. If show_deleted is set to `true`, then deleted pools are also listed.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/keys", // "httpMethod": "GET", - // "id": "iam.projects.locations.workloadIdentityPools.providers.list", + // "id": "iam.projects.locations.workloadIdentityPools.providers.keys.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "pageSize": { - // "description": "The maximum number of providers to return. If unspecified, at most 50 providers are returned. The maximum value is 100; values above 100 are truncated to 100.", + // "description": "The maximum number of keys to return. If unspecified, all keys are returned. The maximum value is 10; values above 10 are truncated to 10.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous `ListWorkloadIdentityPoolProviders` call. Provide this to retrieve the subsequent page.", + // "description": "A page token, received from a previous `ListWorkloadIdentityPoolProviderKeys` call. Provide this to retrieve the subsequent page.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The pool to list providers for.", + // "description": "Required. The parent provider resource to list encryption keys for.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", // "required": true, // "type": "string" // }, // "showDeleted": { - // "description": "Whether to return soft-deleted providers.", + // "description": "Whether to return soft deleted resources as well.", // "location": "query", // "type": "boolean" // } // }, - // "path": "v1/{+parent}/providers", + // "path": "v1/{+parent}/keys", // "response": { - // "$ref": "ListWorkloadIdentityPoolProvidersResponse" + // "$ref": "ListWorkloadIdentityPoolProviderKeysResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -9794,7 +11799,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Do(opts ...goo // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Pages(ctx context.Context, f func(*ListWorkloadIdentityPoolProvidersResponse) error) error { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysListCall) Pages(ctx context.Context, f func(*ListWorkloadIdentityPoolProviderKeysResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -9812,187 +11817,32 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersListCall) Pages(ctx cont } } -// method id "iam.projects.locations.workloadIdentityPools.providers.patch": - -type ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall struct { - s *Service - name string - workloadidentitypoolprovider *WorkloadIdentityPoolProvider - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing WorkloadIdentityPoolProvider. -// -// - name: Output only. The resource name of the provider. -func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Patch(name string, workloadidentitypoolprovider *WorkloadIdentityPoolProvider) *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall { - c := &ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.workloadidentitypoolprovider = workloadidentitypoolprovider - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The -// list of fields to update. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.workloadidentitypoolprovider) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "iam.projects.locations.workloadIdentityPools.providers.patch" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Updates an existing WorkloadIdentityPoolProvider.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}", - // "httpMethod": "PATCH", - // "id": "iam.projects.locations.workloadIdentityPools.providers.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. The resource name of the provider.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The list of fields to update.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "WorkloadIdentityPoolProvider" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "iam.projects.locations.workloadIdentityPools.providers.undelete": +// method id "iam.projects.locations.workloadIdentityPools.providers.keys.undelete": -type ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall struct { - s *Service - name string - undeleteworkloadidentitypoolproviderrequest *UndeleteWorkloadIdentityPoolProviderRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsWorkloadIdentityPoolsProvidersKeysUndeleteCall struct { + s *Service + name string + undeleteworkloadidentitypoolproviderkeyrequest *UndeleteWorkloadIdentityPoolProviderKeyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Undelete: Undeletes a WorkloadIdentityPoolProvider, as long as it was -// deleted fewer than 30 days ago. +// Undelete: Undeletes an WorkloadIdentityPoolProviderKey, as long as it +// was deleted fewer than 30 days ago. // -// - name: The name of the provider to undelete. -func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersService) Undelete(name string, undeleteworkloadidentitypoolproviderrequest *UndeleteWorkloadIdentityPoolProviderRequest) *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall { - c := &ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the encryption key to undelete. +func (r *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysService) Undelete(name string, undeleteworkloadidentitypoolproviderkeyrequest *UndeleteWorkloadIdentityPoolProviderKeyRequest) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysUndeleteCall { + c := &ProjectsLocationsWorkloadIdentityPoolsProvidersKeysUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.undeleteworkloadidentitypoolproviderrequest = undeleteworkloadidentitypoolproviderrequest + c.undeleteworkloadidentitypoolproviderkeyrequest = undeleteworkloadidentitypoolproviderkeyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysUndeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysUndeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10000,21 +11850,21 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) Fields(s . // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysUndeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysUndeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysUndeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysUndeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -10022,7 +11872,7 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) doRequest( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleteworkloadidentitypoolproviderrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleteworkloadidentitypoolproviderkeyrequest) if err != nil { return nil, err } @@ -10042,14 +11892,14 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) doRequest( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "iam.projects.locations.workloadIdentityPools.providers.undelete" call. +// Do executes the "iam.projects.locations.workloadIdentityPools.providers.keys.undelete" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersKeysUndeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10080,25 +11930,25 @@ func (c *ProjectsLocationsWorkloadIdentityPoolsProvidersUndeleteCall) Do(opts .. } return ret, nil // { - // "description": "Undeletes a WorkloadIdentityPoolProvider, as long as it was deleted fewer than 30 days ago.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}:undelete", + // "description": "Undeletes an WorkloadIdentityPoolProviderKey, as long as it was deleted fewer than 30 days ago.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadIdentityPools/{workloadIdentityPoolsId}/providers/{providersId}/keys/{keysId}:undelete", // "httpMethod": "POST", - // "id": "iam.projects.locations.workloadIdentityPools.providers.undelete", + // "id": "iam.projects.locations.workloadIdentityPools.providers.keys.undelete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the provider to undelete.", + // "description": "Required. The name of the encryption key to undelete.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+/providers/[^/]+/keys/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}:undelete", // "request": { - // "$ref": "UndeleteWorkloadIdentityPoolProviderRequest" + // "$ref": "UndeleteWorkloadIdentityPoolProviderKeyRequest" // }, // "response": { // "$ref": "Operation" diff --git a/iap/v1/iap-api.json b/iap/v1/iap-api.json index 5bccc33892c..68b9be1617f 100644 --- a/iap/v1/iap-api.json +++ b/iap/v1/iap-api.json @@ -632,7 +632,7 @@ "type": "string" }, "updateMask": { - "description": "The field mask specifying which IAP settings should be updated. If omitted, the all of the settings are updated. See https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + "description": "The field mask specifying which IAP settings should be updated. If omitted, then all of the settings are updated. See https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. Note: All IAP reauth settings must always be set together, using the field mask: `iapSettings.accessSettings.reauthSettings`.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -652,7 +652,7 @@ } } }, - "revision": "20230303", + "revision": "20230324", "rootUrl": "https://iap.googleapis.com/", "schemas": { "AccessDeniedPageSettings": { diff --git a/iap/v1/iap-gen.go b/iap/v1/iap-gen.go index f9fd56efbb2..07600c43e2e 100644 --- a/iap/v1/iap-gen.go +++ b/iap/v1/iap-gen.go @@ -4143,9 +4143,11 @@ func (r *V1Service) UpdateIapSettings(name string, iapsettings *IapSettings) *V1 } // UpdateMask sets the optional parameter "updateMask": The field mask -// specifying which IAP settings should be updated. If omitted, the all +// specifying which IAP settings should be updated. If omitted, then all // of the settings are updated. See -// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. +// Note: All IAP reauth settings must always be set together, using the +// field mask: `iapSettings.accessSettings.reauthSettings`. func (c *V1UpdateIapSettingsCall) UpdateMask(updateMask string) *V1UpdateIapSettingsCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -4258,7 +4260,7 @@ func (c *V1UpdateIapSettingsCall) Do(opts ...googleapi.CallOption) (*IapSettings // "type": "string" // }, // "updateMask": { - // "description": "The field mask specifying which IAP settings should be updated. If omitted, the all of the settings are updated. See https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask", + // "description": "The field mask specifying which IAP settings should be updated. If omitted, then all of the settings are updated. See https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. Note: All IAP reauth settings must always be set together, using the field mask: `iapSettings.accessSettings.reauthSettings`.", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/identitytoolkit/v1/identitytoolkit-api.json b/identitytoolkit/v1/identitytoolkit-api.json index 4a337c18141..cc889b7a2b0 100644 --- a/identitytoolkit/v1/identitytoolkit-api.json +++ b/identitytoolkit/v1/identitytoolkit-api.json @@ -1237,7 +1237,7 @@ } } }, - "revision": "20230220", + "revision": "20230327", "rootUrl": "https://identitytoolkit.googleapis.com/", "schemas": { "GoogleCloudIdentitytoolkitV1Argon2Parameters": { @@ -2090,6 +2090,10 @@ "description": "Normally this will show the phone number associated with this enrollment. In some situations, such as after a first factor sign in, it will only show the obfuscated version of the associated phone number.", "type": "string" }, + "totpInfo": { + "$ref": "GoogleCloudIdentitytoolkitV1TotpInfo", + "description": "Contains information specific to TOTP MFA." + }, "unobfuscatedPhoneInfo": { "description": "Output only. Unobfuscated phone_info.", "readOnly": true, @@ -2837,7 +2841,7 @@ "type": "string" }, "pendingToken": { - "description": "An opaque string from a previous SignInWithIdp response. If set, it can be used to repeat the sign-in operation from the previous SignInWithIdp operation.", + "description": "An opaque string from a previous SignInWithIdp response. If set, it can be used to repeat the sign-in operation from the previous SignInWithIdp operation. This may be present if the user needs to confirm their account information as part of a previous federated login attempt, or perform account linking.", "type": "string" }, "postBody": { @@ -3372,6 +3376,12 @@ }, "type": "object" }, + "GoogleCloudIdentitytoolkitV1TotpInfo": { + "description": "Information about TOTP MFA.", + "id": "GoogleCloudIdentitytoolkitV1TotpInfo", + "properties": {}, + "type": "object" + }, "GoogleCloudIdentitytoolkitV1UploadAccountRequest": { "description": "Request message for UploadAccount.", "id": "GoogleCloudIdentitytoolkitV1UploadAccountRequest", diff --git a/identitytoolkit/v1/identitytoolkit-gen.go b/identitytoolkit/v1/identitytoolkit-gen.go index b34493dcdb5..d35037f049c 100644 --- a/identitytoolkit/v1/identitytoolkit-gen.go +++ b/identitytoolkit/v1/identitytoolkit-gen.go @@ -1547,6 +1547,9 @@ type GoogleCloudIdentitytoolkitV1MfaEnrollment struct { // phone number. PhoneInfo string `json:"phoneInfo,omitempty"` + // TotpInfo: Contains information specific to TOTP MFA. + TotpInfo *GoogleCloudIdentitytoolkitV1TotpInfo `json:"totpInfo,omitempty"` + // UnobfuscatedPhoneInfo: Output only. Unobfuscated phone_info. UnobfuscatedPhoneInfo string `json:"unobfuscatedPhoneInfo,omitempty"` @@ -2652,7 +2655,9 @@ type GoogleCloudIdentitytoolkitV1SignInWithIdpRequest struct { // PendingToken: An opaque string from a previous SignInWithIdp // response. If set, it can be used to repeat the sign-in operation from - // the previous SignInWithIdp operation. + // the previous SignInWithIdp operation. This may be present if the user + // needs to confirm their account information as part of a previous + // federated login attempt, or perform account linking. PendingToken string `json:"pendingToken,omitempty"` // PostBody: If the user is signing in with an authorization response @@ -3399,6 +3404,10 @@ func (s *GoogleCloudIdentitytoolkitV1SqlExpression) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudIdentitytoolkitV1TotpInfo: Information about TOTP MFA. +type GoogleCloudIdentitytoolkitV1TotpInfo struct { +} + // GoogleCloudIdentitytoolkitV1UploadAccountRequest: Request message for // UploadAccount. type GoogleCloudIdentitytoolkitV1UploadAccountRequest struct { diff --git a/identitytoolkit/v2/identitytoolkit-api.json b/identitytoolkit/v2/identitytoolkit-api.json index 96f82a2e86f..66fb93f63d6 100644 --- a/identitytoolkit/v2/identitytoolkit-api.json +++ b/identitytoolkit/v2/identitytoolkit-api.json @@ -1559,7 +1559,7 @@ } } }, - "revision": "20230220", + "revision": "20230327", "rootUrl": "https://identitytoolkit.googleapis.com/", "schemas": { "GoogleCloudIdentitytoolkitAdminV2AllowByDefault": { @@ -2232,6 +2232,13 @@ }, "type": "array" }, + "providerConfigs": { + "description": "A list of usable second factors for this project along with their configurations. This field does not support phone based MFA, for that use the 'enabled_providers' field.", + "items": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2ProviderConfig" + }, + "type": "array" + }, "state": { "description": "Whether MultiFactor Authentication has been enabled for this project.", "enum": [ @@ -2372,6 +2379,33 @@ }, "type": "object" }, + "GoogleCloudIdentitytoolkitAdminV2ProviderConfig": { + "description": "ProviderConfig describes the supported MFA providers along with their configurations.", + "id": "GoogleCloudIdentitytoolkitAdminV2ProviderConfig", + "properties": { + "state": { + "description": "Describes the state of the MultiFactor Authentication type.", + "enum": [ + "MFA_STATE_UNSPECIFIED", + "DISABLED", + "ENABLED", + "MANDATORY" + ], + "enumDescriptions": [ + "Illegal State, should not be used.", + "Multi-factor authentication cannot be used for this project.", + "Multi-factor authentication can be used for this project.", + "Multi-factor authentication is required for this project. Users from this project must authenticate with the second factor." + ], + "type": "string" + }, + "totpProviderConfig": { + "$ref": "GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig", + "description": "TOTP MFA provider config for this project." + } + }, + "type": "object" + }, "GoogleCloudIdentitytoolkitAdminV2QuotaConfig": { "description": "Configuration related to quotas.", "id": "GoogleCloudIdentitytoolkitAdminV2QuotaConfig", @@ -2693,6 +2727,18 @@ }, "type": "object" }, + "GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig": { + "description": "TotpMFAProviderConfig represents the TOTP based MFA provider.", + "id": "GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig", + "properties": { + "adjacentIntervals": { + "description": "The allowed number of adjacent intervals that will be used for verification to avoid clock skew.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudIdentitytoolkitAdminV2Trigger": { "description": "Synchronous Cloud Function with HTTP Trigger", "id": "GoogleCloudIdentitytoolkitAdminV2Trigger", @@ -2739,6 +2785,10 @@ "tenantId": { "description": "The ID of the Identity Platform tenant that the user enrolling MFA belongs to. If not set, the user belongs to the default Identity Platform project.", "type": "string" + }, + "totpVerificationInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo", + "description": "Verification information for TOTP." } }, "type": "object" @@ -2758,6 +2808,10 @@ "refreshToken": { "description": "Refresh token updated to reflect MFA enrollment.", "type": "string" + }, + "totpAuthInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo", + "description": "Auxiliary auth info specific to TOTP auth." } }, "type": "object" @@ -2809,6 +2863,10 @@ "description": "Finalizes sign-in by verifying MFA challenge.", "id": "GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest", "properties": { + "mfaEnrollmentId": { + "description": "The MFA enrollment ID from the user's list of current MFA enrollments.", + "type": "string" + }, "mfaPendingCredential": { "description": "Required. Pending credential from first factor sign-in.", "type": "string" @@ -2820,6 +2878,10 @@ "tenantId": { "description": "The ID of the Identity Platform tenant the user is signing in to. If not set, the user will sign in to the default Identity Platform project.", "type": "string" + }, + "totpVerificationInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo", + "description": "Proof of completion of the TOTP based MFA challenge." } }, "type": "object" @@ -2843,6 +2905,38 @@ }, "type": "object" }, + "GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo": { + "description": "Mfa request info specific to TOTP auth for FinalizeMfa.", + "id": "GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo", + "properties": { + "sessionInfo": { + "description": "An opaque string that represents the enrollment session.", + "type": "string" + }, + "verificationCode": { + "description": "User-entered verification code.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo": { + "description": "Mfa response info specific to TOTP auth for FinalizeMfa.", + "id": "GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo", + "properties": {}, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo": { + "description": "TOTP verification info for FinalizeMfaSignInRequest.", + "id": "GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo", + "properties": { + "verificationCode": { + "description": "User-entered verification code.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest": { "description": "Sends MFA enrollment verification SMS for a user.", "id": "GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest", @@ -2858,6 +2952,10 @@ "tenantId": { "description": "The ID of the Identity Platform tenant that the user enrolling MFA belongs to. If not set, the user belongs to the default Identity Platform project.", "type": "string" + }, + "totpEnrollmentInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo", + "description": "Sign-in info specific to TOTP auth." } }, "type": "object" @@ -2869,6 +2967,10 @@ "phoneSessionInfo": { "$ref": "GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo", "description": "Verification info to authorize sending an SMS for phone verification." + }, + "totpSessionInfo": { + "$ref": "GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo", + "description": "Enrollment response info specific to TOTP auth." } }, "type": "object" @@ -2953,6 +3055,46 @@ }, "type": "object" }, + "GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo": { + "description": "Mfa request info specific to TOTP auth for StartMfa.", + "id": "GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo", + "properties": {}, + "type": "object" + }, + "GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo": { + "description": "Mfa response info specific to TOTP auth for StartMfa.", + "id": "GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo", + "properties": { + "finalizeEnrollmentTime": { + "description": "The time by which the enrollment must finish.", + "format": "google-datetime", + "type": "string" + }, + "hashingAlgorithm": { + "description": "The hashing algorithm used to generate the verification code.", + "type": "string" + }, + "periodSec": { + "description": "Duration in seconds at which the verification code will change.", + "format": "int32", + "type": "integer" + }, + "sessionInfo": { + "description": "An encoded string that represents the enrollment session.", + "type": "string" + }, + "sharedSecretKey": { + "description": "A base 32 encoded string that represents the shared TOTP secret. The base 32 encoding is the one specified by [RFC4648#section-6](https://datatracker.ietf.org/doc/html/rfc4648#section-6). (This is the same as the base 32 encoding from [RFC3548#section-5](https://datatracker.ietf.org/doc/html/rfc3548#section-5).)", + "type": "string" + }, + "verificationCodeLength": { + "description": "The length of the verification code that needs to be generated.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudIdentitytoolkitV2WithdrawMfaRequest": { "description": "Withdraws MFA.", "id": "GoogleCloudIdentitytoolkitV2WithdrawMfaRequest", diff --git a/identitytoolkit/v2/identitytoolkit-gen.go b/identitytoolkit/v2/identitytoolkit-gen.go index 864b536da27..4cd33b6c907 100644 --- a/identitytoolkit/v2/identitytoolkit-gen.go +++ b/identitytoolkit/v2/identitytoolkit-gen.go @@ -1454,6 +1454,11 @@ type GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig struct { // "PHONE_SMS" - SMS is enabled as a second factor for this project. EnabledProviders []string `json:"enabledProviders,omitempty"` + // ProviderConfigs: A list of usable second factors for this project + // along with their configurations. This field does not support phone + // based MFA, for that use the 'enabled_providers' field. + ProviderConfigs []*GoogleCloudIdentitytoolkitAdminV2ProviderConfig `json:"providerConfigs,omitempty"` + // State: Whether MultiFactor Authentication has been enabled for this // project. // @@ -1732,6 +1737,49 @@ func (s *GoogleCloudIdentitytoolkitAdminV2PhoneNumber) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudIdentitytoolkitAdminV2ProviderConfig: ProviderConfig +// describes the supported MFA providers along with their +// configurations. +type GoogleCloudIdentitytoolkitAdminV2ProviderConfig struct { + // State: Describes the state of the MultiFactor Authentication type. + // + // Possible values: + // "MFA_STATE_UNSPECIFIED" - Illegal State, should not be used. + // "DISABLED" - Multi-factor authentication cannot be used for this + // project. + // "ENABLED" - Multi-factor authentication can be used for this + // project. + // "MANDATORY" - Multi-factor authentication is required for this + // project. Users from this project must authenticate with the second + // factor. + State string `json:"state,omitempty"` + + // TotpProviderConfig: TOTP MFA provider config for this project. + TotpProviderConfig *GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig `json:"totpProviderConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "State") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "State") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIdentitytoolkitAdminV2ProviderConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2ProviderConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudIdentitytoolkitAdminV2QuotaConfig: Configuration related // to quotas. type GoogleCloudIdentitytoolkitAdminV2QuotaConfig struct { @@ -2249,6 +2297,37 @@ func (s *GoogleCloudIdentitytoolkitAdminV2Tenant) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig: +// TotpMFAProviderConfig represents the TOTP based MFA provider. +type GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig struct { + // AdjacentIntervals: The allowed number of adjacent intervals that will + // be used for verification to avoid clock skew. + AdjacentIntervals int64 `json:"adjacentIntervals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdjacentIntervals") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdjacentIntervals") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudIdentitytoolkitAdminV2Trigger: Synchronous Cloud Function // with HTTP Trigger type GoogleCloudIdentitytoolkitAdminV2Trigger struct { @@ -2331,6 +2410,9 @@ type GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest struct { // Identity Platform project. TenantId string `json:"tenantId,omitempty"` + // TotpVerificationInfo: Verification information for TOTP. + TotpVerificationInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo `json:"totpVerificationInfo,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2366,6 +2448,9 @@ type GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse struct { // RefreshToken: Refresh token updated to reflect MFA enrollment. RefreshToken string `json:"refreshToken,omitempty"` + // TotpAuthInfo: Auxiliary auth info specific to TOTP auth. + TotpAuthInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo `json:"totpAuthInfo,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -2476,6 +2561,10 @@ func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo) MarshalJSON() // GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest: Finalizes // sign-in by verifying MFA challenge. type GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest struct { + // MfaEnrollmentId: The MFA enrollment ID from the user's list of + // current MFA enrollments. + MfaEnrollmentId string `json:"mfaEnrollmentId,omitempty"` + // MfaPendingCredential: Required. Pending credential from first factor // sign-in. MfaPendingCredential string `json:"mfaPendingCredential,omitempty"` @@ -2489,16 +2578,19 @@ type GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest struct { // Platform project. TenantId string `json:"tenantId,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "MfaPendingCredential") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // TotpVerificationInfo: Proof of completion of the TOTP based MFA + // challenge. + TotpVerificationInfo *GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo `json:"totpVerificationInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MfaEnrollmentId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MfaPendingCredential") to + // NullFields is a list of field names (e.g. "MfaEnrollmentId") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -2554,6 +2646,73 @@ func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo: Mfa +// request info specific to TOTP auth for FinalizeMfa. +type GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo struct { + // SessionInfo: An opaque string that represents the enrollment session. + SessionInfo string `json:"sessionInfo,omitempty"` + + // VerificationCode: User-entered verification code. + VerificationCode string `json:"verificationCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SessionInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SessionInfo") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo: +// Mfa response info specific to TOTP auth for FinalizeMfa. +type GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo struct { +} + +// GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo: TOTP +// verification info for FinalizeMfaSignInRequest. +type GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo struct { + // VerificationCode: User-entered verification code. + VerificationCode string `json:"verificationCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "VerificationCode") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "VerificationCode") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest: Sends MFA // enrollment verification SMS for a user. type GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest struct { @@ -2569,6 +2728,9 @@ type GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest struct { // Identity Platform project. TenantId string `json:"tenantId,omitempty"` + // TotpEnrollmentInfo: Sign-in info specific to TOTP auth. + TotpEnrollmentInfo *GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo `json:"totpEnrollmentInfo,omitempty"` + // ForceSendFields is a list of field names (e.g. "IdToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2599,6 +2761,9 @@ type GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse struct { // phone verification. PhoneSessionInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo `json:"phoneSessionInfo,omitempty"` + // TotpSessionInfo: Enrollment response info specific to TOTP auth. + TotpSessionInfo *GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo `json:"totpSessionInfo,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -2796,6 +2961,66 @@ func (s *GoogleCloudIdentitytoolkitV2StartMfaSignInResponse) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo: Mfa +// request info specific to TOTP auth for StartMfa. +type GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo struct { +} + +// GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo: Mfa +// response info specific to TOTP auth for StartMfa. +type GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo struct { + // FinalizeEnrollmentTime: The time by which the enrollment must finish. + FinalizeEnrollmentTime string `json:"finalizeEnrollmentTime,omitempty"` + + // HashingAlgorithm: The hashing algorithm used to generate the + // verification code. + HashingAlgorithm string `json:"hashingAlgorithm,omitempty"` + + // PeriodSec: Duration in seconds at which the verification code will + // change. + PeriodSec int64 `json:"periodSec,omitempty"` + + // SessionInfo: An encoded string that represents the enrollment + // session. + SessionInfo string `json:"sessionInfo,omitempty"` + + // SharedSecretKey: A base 32 encoded string that represents the shared + // TOTP secret. The base 32 encoding is the one specified by + // RFC4648#section-6 + // (https://datatracker.ietf.org/doc/html/rfc4648#section-6). (This is + // the same as the base 32 encoding from RFC3548#section-5 + // (https://datatracker.ietf.org/doc/html/rfc3548#section-5).) + SharedSecretKey string `json:"sharedSecretKey,omitempty"` + + // VerificationCodeLength: The length of the verification code that + // needs to be generated. + VerificationCodeLength int64 `json:"verificationCodeLength,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "FinalizeEnrollmentTime") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FinalizeEnrollmentTime") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudIdentitytoolkitV2WithdrawMfaRequest: Withdraws MFA. type GoogleCloudIdentitytoolkitV2WithdrawMfaRequest struct { // IdToken: Required. User's ID token. diff --git a/integrations/v1alpha/integrations-api.json b/integrations/v1alpha/integrations-api.json index 337fef57bc6..abe1a189e1e 100644 --- a/integrations/v1alpha/integrations-api.json +++ b/integrations/v1alpha/integrations-api.json @@ -3202,7 +3202,7 @@ } } }, - "revision": "20230308", + "revision": "20230322", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { @@ -5601,9 +5601,11 @@ "enum": [ "PENDING_UNSPECIFIED", "REJECTED", - "LIFTED" + "LIFTED", + "CANCELED" ], "enumDescriptions": [ + "", "", "", "" diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go index 3580325489c..62d934c3294 100644 --- a/integrations/v1alpha/integrations-gen.go +++ b/integrations/v1alpha/integrations-gen.go @@ -3717,6 +3717,7 @@ type EnterpriseCrmEventbusProtoSuspensionResolutionInfo struct { // "PENDING_UNSPECIFIED" // "REJECTED" // "LIFTED" + // "CANCELED" Status string `json:"status,omitempty"` SuspensionConfig *EnterpriseCrmEventbusProtoSuspensionConfig `json:"suspensionConfig,omitempty"` diff --git a/kmsinventory/v1/kmsinventory-api.json b/kmsinventory/v1/kmsinventory-api.json index ac37a36ceb3..a89386cd013 100644 --- a/kmsinventory/v1/kmsinventory-api.json +++ b/kmsinventory/v1/kmsinventory-api.json @@ -236,7 +236,7 @@ } } }, - "revision": "20230312", + "revision": "20230326", "rootUrl": "https://kmsinventory.googleapis.com/", "schemas": { "GoogleCloudKmsInventoryV1ListCryptoKeysResponse": { @@ -508,9 +508,9 @@ "RSAES-OAEP 2048 bit key with a SHA1 digest.", "RSAES-OAEP 3072 bit key with a SHA1 digest.", "RSAES-OAEP 4096 bit key with a SHA1 digest.", - "ECDSA on the NIST P-256 curve with a SHA256 digest.", - "ECDSA on the NIST P-384 curve with a SHA384 digest.", - "ECDSA on the non-NIST secp256k1 curve. This curve is only supported for HSM protection level.", + "ECDSA on the NIST P-256 curve with a SHA256 digest. Other hash functions can also be used: https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms", + "ECDSA on the NIST P-384 curve with a SHA384 digest. Other hash functions can also be used: https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms", + "ECDSA on the non-NIST secp256k1 curve. This curve is only supported for HSM protection level. Other hash functions can also be used: https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms", "HMAC-SHA256 signing with a 256 bit key.", "HMAC-SHA1 signing with a 160 bit key.", "HMAC-SHA384 signing with a 384 bit key.", @@ -700,9 +700,9 @@ "RSAES-OAEP 2048 bit key with a SHA1 digest.", "RSAES-OAEP 3072 bit key with a SHA1 digest.", "RSAES-OAEP 4096 bit key with a SHA1 digest.", - "ECDSA on the NIST P-256 curve with a SHA256 digest.", - "ECDSA on the NIST P-384 curve with a SHA384 digest.", - "ECDSA on the non-NIST secp256k1 curve. This curve is only supported for HSM protection level.", + "ECDSA on the NIST P-256 curve with a SHA256 digest. Other hash functions can also be used: https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms", + "ECDSA on the NIST P-384 curve with a SHA384 digest. Other hash functions can also be used: https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms", + "ECDSA on the non-NIST secp256k1 curve. This curve is only supported for HSM protection level. Other hash functions can also be used: https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms", "HMAC-SHA256 signing with a 256 bit key.", "HMAC-SHA1 signing with a 160 bit key.", "HMAC-SHA384 signing with a 384 bit key.", diff --git a/kmsinventory/v1/kmsinventory-gen.go b/kmsinventory/v1/kmsinventory-gen.go index 204028d8385..73a98df71e9 100644 --- a/kmsinventory/v1/kmsinventory-gen.go +++ b/kmsinventory/v1/kmsinventory-gen.go @@ -578,11 +578,15 @@ type GoogleCloudKmsV1CryptoKeyVersion struct { // "RSA_DECRYPT_OAEP_4096_SHA1" - RSAES-OAEP 4096 bit key with a SHA1 // digest. // "EC_SIGN_P256_SHA256" - ECDSA on the NIST P-256 curve with a SHA256 - // digest. + // digest. Other hash functions can also be used: + // https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms // "EC_SIGN_P384_SHA384" - ECDSA on the NIST P-384 curve with a SHA384 - // digest. + // digest. Other hash functions can also be used: + // https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms // "EC_SIGN_SECP256K1_SHA256" - ECDSA on the non-NIST secp256k1 curve. - // This curve is only supported for HSM protection level. + // This curve is only supported for HSM protection level. Other hash + // functions can also be used: + // https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms // "HMAC_SHA256" - HMAC-SHA256 signing with a 256 bit key. // "HMAC_SHA1" - HMAC-SHA1 signing with a 160 bit key. // "HMAC_SHA384" - HMAC-SHA384 signing with a 384 bit key. @@ -783,11 +787,15 @@ type GoogleCloudKmsV1CryptoKeyVersionTemplate struct { // "RSA_DECRYPT_OAEP_4096_SHA1" - RSAES-OAEP 4096 bit key with a SHA1 // digest. // "EC_SIGN_P256_SHA256" - ECDSA on the NIST P-256 curve with a SHA256 - // digest. + // digest. Other hash functions can also be used: + // https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms // "EC_SIGN_P384_SHA384" - ECDSA on the NIST P-384 curve with a SHA384 - // digest. + // digest. Other hash functions can also be used: + // https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms // "EC_SIGN_SECP256K1_SHA256" - ECDSA on the non-NIST secp256k1 curve. - // This curve is only supported for HSM protection level. + // This curve is only supported for HSM protection level. Other hash + // functions can also be used: + // https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms // "HMAC_SHA256" - HMAC-SHA256 signing with a 256 bit key. // "HMAC_SHA1" - HMAC-SHA1 signing with a 160 bit key. // "HMAC_SHA384" - HMAC-SHA384 signing with a 384 bit key. diff --git a/metastore/v1alpha/metastore-api.json b/metastore/v1alpha/metastore-api.json index cfc53d4cb54..4c557098143 100644 --- a/metastore/v1alpha/metastore-api.json +++ b/metastore/v1alpha/metastore-api.json @@ -1579,7 +1579,7 @@ } } }, - "revision": "20230313", + "revision": "20230317", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -2513,6 +2513,10 @@ "$ref": "Consumer" }, "type": "array" + }, + "customRoutesEnabled": { + "description": "Enables custom routes to be imported and exported for the Dataproc Metastore service's peered VPC network.", + "type": "boolean" } }, "type": "object" diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index 386aaa25538..e36115fbce2 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -1771,6 +1771,10 @@ type NetworkConfig struct { // Dataproc Metastore instance. Consumers []*Consumer `json:"consumers,omitempty"` + // CustomRoutesEnabled: Enables custom routes to be imported and + // exported for the Dataproc Metastore service's peered VPC network. + CustomRoutesEnabled bool `json:"customRoutesEnabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "Consumers") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/metastore/v1beta/metastore-api.json b/metastore/v1beta/metastore-api.json index 679513b63e2..9a019902e4a 100644 --- a/metastore/v1beta/metastore-api.json +++ b/metastore/v1beta/metastore-api.json @@ -1579,7 +1579,7 @@ } } }, - "revision": "20230313", + "revision": "20230317", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -2513,6 +2513,10 @@ "$ref": "Consumer" }, "type": "array" + }, + "customRoutesEnabled": { + "description": "Enables custom routes to be imported and exported for the Dataproc Metastore service's peered VPC network.", + "type": "boolean" } }, "type": "object" diff --git a/metastore/v1beta/metastore-gen.go b/metastore/v1beta/metastore-gen.go index a41a05dceab..0b2e5c3c69b 100644 --- a/metastore/v1beta/metastore-gen.go +++ b/metastore/v1beta/metastore-gen.go @@ -1771,6 +1771,10 @@ type NetworkConfig struct { // Dataproc Metastore instance. Consumers []*Consumer `json:"consumers,omitempty"` + // CustomRoutesEnabled: Enables custom routes to be imported and + // exported for the Dataproc Metastore service's peered VPC network. + CustomRoutesEnabled bool `json:"customRoutesEnabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "Consumers") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/migrationcenter/v1alpha1/migrationcenter-api.json b/migrationcenter/v1alpha1/migrationcenter-api.json index 87b22ed43b6..fbe7965fa3a 100644 --- a/migrationcenter/v1alpha1/migrationcenter-api.json +++ b/migrationcenter/v1alpha1/migrationcenter-api.json @@ -1678,7 +1678,7 @@ } } }, - "revision": "20230311", + "revision": "20230317", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -2686,7 +2686,6 @@ "IMPORT_JOB_FORMAT_CMDB", "IMPORT_JOB_FORMAT_RVTOOLS_XLSX", "IMPORT_JOB_FORMAT_RVTOOLS_CSV", - "IMPORT_JOB_FORMAT_JSON_FRAME", "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV", "IMPORT_JOB_FORMAT_MANUAL_CSV" @@ -2696,7 +2695,6 @@ "Configuration management DB format.", "RVTools format (XLSX).", "RVTools format (CSV).", - "`AssetFrame` list in JSON format.", "CSV format exported from AWS using the AWS collection script.", "CSV format exported from Azure using the Azure collection script.", "CSV format created manually. For more information, see Manually create and upload data tables." @@ -2798,7 +2796,7 @@ "id": "GuestInstalledApplication", "properties": { "name": { - "description": "Installed application name .", + "description": "Installed application name.", "type": "string" }, "path": { @@ -2941,7 +2939,6 @@ "IMPORT_JOB_FORMAT_CMDB", "IMPORT_JOB_FORMAT_RVTOOLS_XLSX", "IMPORT_JOB_FORMAT_RVTOOLS_CSV", - "IMPORT_JOB_FORMAT_JSON_FRAME", "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV", "IMPORT_JOB_FORMAT_MANUAL_CSV" @@ -2951,7 +2948,6 @@ "Configuration management DB format.", "RVTools format (XLSX).", "RVTools format (CSV).", - "`AssetFrame` list in JSON format.", "CSV format exported from AWS using the AWS collection script.", "CSV format exported from Azure using the Azure collection script.", "CSV format created manually. For more information, see Manually create and upload data tables." @@ -3138,7 +3134,6 @@ "IMPORT_JOB_FORMAT_CMDB", "IMPORT_JOB_FORMAT_RVTOOLS_XLSX", "IMPORT_JOB_FORMAT_RVTOOLS_CSV", - "IMPORT_JOB_FORMAT_JSON_FRAME", "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV", "IMPORT_JOB_FORMAT_MANUAL_CSV" @@ -3148,7 +3143,6 @@ "Configuration management DB format.", "RVTools format (XLSX).", "RVTools format (CSV).", - "`AssetFrame` list in JSON format.", "CSV format exported from AWS using the AWS collection script.", "CSV format exported from Azure using the Azure collection script.", "CSV format created manually. For more information, see Manually create and upload data tables." @@ -4230,6 +4224,19 @@ "description": "A resource that contains a URI to which a data file can be uploaded.", "id": "UploadFileInfo", "properties": { + "headers": { + "additionalProperties": { + "type": "string" + }, + "description": "Output only. The headers that were used to sign the URL.", + "readOnly": true, + "type": "object" + }, + "signedUri": { + "description": "Output only. Upload URI for the file.", + "readOnly": true, + "type": "string" + }, "uri": { "description": "Output only. Upload URI for the file.", "readOnly": true, diff --git a/migrationcenter/v1alpha1/migrationcenter-gen.go b/migrationcenter/v1alpha1/migrationcenter-gen.go index 4941d90d156..a822301566b 100644 --- a/migrationcenter/v1alpha1/migrationcenter-gen.go +++ b/migrationcenter/v1alpha1/migrationcenter-gen.go @@ -1996,7 +1996,6 @@ type GCSPayloadInfo struct { // "IMPORT_JOB_FORMAT_CMDB" - Configuration management DB format. // "IMPORT_JOB_FORMAT_RVTOOLS_XLSX" - RVTools format (XLSX). // "IMPORT_JOB_FORMAT_RVTOOLS_CSV" - RVTools format (CSV). - // "IMPORT_JOB_FORMAT_JSON_FRAME" - `AssetFrame` list in JSON format. // "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV" - CSV format exported from AWS // using the AWS collection script. // "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV" - CSV format exported from @@ -2158,7 +2157,7 @@ func (s *GuestConfigDetails) MarshalJSON() ([]byte, error) { // GuestInstalledApplication: Guest installed application information. type GuestInstalledApplication struct { - // Name: Installed application name . + // Name: Installed application name. Name string `json:"name,omitempty"` // Path: Source path. @@ -2380,7 +2379,6 @@ type ImportDataFile struct { // "IMPORT_JOB_FORMAT_CMDB" - Configuration management DB format. // "IMPORT_JOB_FORMAT_RVTOOLS_XLSX" - RVTools format (XLSX). // "IMPORT_JOB_FORMAT_RVTOOLS_CSV" - RVTools format (CSV). - // "IMPORT_JOB_FORMAT_JSON_FRAME" - `AssetFrame` list in JSON format. // "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV" - CSV format exported from AWS // using the AWS collection script. // "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV" - CSV format exported from @@ -2604,7 +2602,6 @@ type InlinePayloadInfo struct { // "IMPORT_JOB_FORMAT_CMDB" - Configuration management DB format. // "IMPORT_JOB_FORMAT_RVTOOLS_XLSX" - RVTools format (XLSX). // "IMPORT_JOB_FORMAT_RVTOOLS_CSV" - RVTools format (CSV). - // "IMPORT_JOB_FORMAT_JSON_FRAME" - `AssetFrame` list in JSON format. // "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV" - CSV format exported from AWS // using the AWS collection script. // "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV" - CSV format exported from @@ -4475,13 +4472,19 @@ func (s *UpdateAssetRequest) MarshalJSON() ([]byte, error) { // UploadFileInfo: A resource that contains a URI to which a data file // can be uploaded. type UploadFileInfo struct { + // Headers: Output only. The headers that were used to sign the URL. + Headers map[string]string `json:"headers,omitempty"` + + // SignedUri: Output only. Upload URI for the file. + SignedUri string `json:"signedUri,omitempty"` + // Uri: Output only. Upload URI for the file. Uri string `json:"uri,omitempty"` // UriExpirationTime: Output only. Expiration time of the upload URI. UriExpirationTime string `json:"uriExpirationTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Uri") to + // ForceSendFields is a list of field names (e.g. "Headers") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4489,8 +4492,8 @@ type UploadFileInfo struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Uri") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Headers") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. diff --git a/ml/v1/ml-api.json b/ml/v1/ml-api.json index 6180a8ffba0..c8d25d372ee 100644 --- a/ml/v1/ml-api.json +++ b/ml/v1/ml-api.json @@ -1486,7 +1486,7 @@ } } }, - "revision": "20230313", + "revision": "20230328", "rootUrl": "https://ml.googleapis.com/", "schemas": { "GoogleApi__HttpBody": { @@ -1821,9 +1821,9 @@ "NVIDIA_TESLA_A100", "TPU_V2", "TPU_V3", - "TPU_V4", "TPU_V2_POD", - "TPU_V3_POD" + "TPU_V3_POD", + "TPU_V4_POD" ], "enumDescriptions": [ "Unspecified accelerator type. Default to no GPU.", @@ -1835,9 +1835,9 @@ "Nvidia A100 GPU.", "TPU v2.", "TPU v3.", - "TPU v4.", "TPU v2 POD.", - "TPU v3 POD." + "TPU v3 POD.", + "TPU v4 POD." ], "type": "string" } @@ -1937,9 +1937,9 @@ "NVIDIA_TESLA_A100", "TPU_V2", "TPU_V3", - "TPU_V4", "TPU_V2_POD", - "TPU_V3_POD" + "TPU_V3_POD", + "TPU_V4_POD" ], "enumDescriptions": [ "Unspecified accelerator type. Default to no GPU.", @@ -1951,9 +1951,9 @@ "Nvidia A100 GPU.", "TPU v2.", "TPU v3.", - "TPU v4.", "TPU v2 POD.", - "TPU v3 POD." + "TPU v3 POD.", + "TPU v4 POD." ], "type": "string" }, diff --git a/ml/v1/ml-gen.go b/ml/v1/ml-gen.go index 7ae2065dcd9..71b9f9a78fd 100644 --- a/ml/v1/ml-gen.go +++ b/ml/v1/ml-gen.go @@ -896,9 +896,9 @@ type GoogleCloudMlV1__AcceleratorConfig struct { // "NVIDIA_TESLA_A100" - Nvidia A100 GPU. // "TPU_V2" - TPU v2. // "TPU_V3" - TPU v3. - // "TPU_V4" - TPU v4. // "TPU_V2_POD" - TPU v2 POD. // "TPU_V3_POD" - TPU v3 POD. + // "TPU_V4_POD" - TPU v4 POD. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Count") to @@ -1109,9 +1109,9 @@ type GoogleCloudMlV1__Capability struct { // "NVIDIA_TESLA_A100" - Nvidia A100 GPU. // "TPU_V2" - TPU v2. // "TPU_V3" - TPU v3. - // "TPU_V4" - TPU v4. // "TPU_V2_POD" - TPU v2 POD. // "TPU_V3_POD" - TPU v3 POD. + // "TPU_V4_POD" - TPU v4 POD. AvailableAccelerators []string `json:"availableAccelerators,omitempty"` // Possible values: diff --git a/monitoring/v1/monitoring-api.json b/monitoring/v1/monitoring-api.json index 84ce7fb4a09..dd4c63df872 100644 --- a/monitoring/v1/monitoring-api.json +++ b/monitoring/v1/monitoring-api.json @@ -806,7 +806,7 @@ } } }, - "revision": "20230220", + "revision": "20230326", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -1141,8 +1141,8 @@ "enumDescriptions": [ "Plot type is unspecified. The view will default to LINE.", "The data is plotted as a set of lines (one line per series).", - "The data is plotted as a set of filled areas (one area per series), with the areas stacked vertically (the base of each area is the top of its predecessor, and the base of the first area is the X axis). Since the areas do not overlap, each is filled with a different opaque color.", - "The data is plotted as a set of rectangular boxes (one box per series), with the boxes stacked vertically (the base of each box is the top of its predecessor, and the base of the first box is the X axis). Since the boxes do not overlap, each is filled with a different opaque color.", + "The data is plotted as a set of filled areas (one area per series), with the areas stacked vertically (the base of each area is the top of its predecessor, and the base of the first area is the x-axis). Since the areas do not overlap, each is filled with a different opaque color.", + "The data is plotted as a set of rectangular boxes (one box per series), with the boxes stacked vertically (the base of each box is the top of its predecessor, and the base of the first box is the x-axis). Since the boxes do not overlap, each is filled with a different opaque color.", "The data is plotted as a heatmap. The series being plotted must have a DISTRIBUTION value type. The value of each bucket in the distribution is displayed as a color. This type is not currently available in the Stackdriver Monitoring application." ], "type": "string" @@ -2192,6 +2192,10 @@ "description": "A protocol buffer message type.", "id": "Type", "properties": { + "edition": { + "description": "The source edition string, only valid when syntax is SYNTAX_EDITIONS.", + "type": "string" + }, "fields": { "description": "The list of fields.", "items": { @@ -2225,11 +2229,13 @@ "description": "The source syntax.", "enum": [ "SYNTAX_PROTO2", - "SYNTAX_PROTO3" + "SYNTAX_PROTO3", + "SYNTAX_EDITIONS" ], "enumDescriptions": [ "Syntax proto2.", - "Syntax proto3." + "Syntax proto3.", + "Syntax editions." ], "type": "string" } @@ -2312,15 +2318,15 @@ }, "xAxis": { "$ref": "Axis", - "description": "The properties applied to the X axis." + "description": "The properties applied to the x-axis." }, "y2Axis": { "$ref": "Axis", - "description": "The properties applied to the Y2 axis." + "description": "The properties applied to the y2-axis." }, "yAxis": { "$ref": "Axis", - "description": "The properties applied to the Y axis." + "description": "The properties applied to the y-axis." } }, "type": "object" diff --git a/monitoring/v1/monitoring-gen.go b/monitoring/v1/monitoring-gen.go index 84948674b93..b927fb8253c 100644 --- a/monitoring/v1/monitoring-gen.go +++ b/monitoring/v1/monitoring-gen.go @@ -964,12 +964,12 @@ type DataSet struct { // "STACKED_AREA" - The data is plotted as a set of filled areas (one // area per series), with the areas stacked vertically (the base of each // area is the top of its predecessor, and the base of the first area is - // the X axis). Since the areas do not overlap, each is filled with a + // the x-axis). Since the areas do not overlap, each is filled with a // different opaque color. // "STACKED_BAR" - The data is plotted as a set of rectangular boxes // (one box per series), with the boxes stacked vertically (the base of // each box is the top of its predecessor, and the base of the first box - // is the X axis). Since the boxes do not overlap, each is filled with a + // is the x-axis). Since the boxes do not overlap, each is filled with a // different opaque color. // "HEATMAP" - The data is plotted as a heatmap. The series being // plotted must have a DISTRIBUTION value type. The value of each bucket @@ -2807,6 +2807,10 @@ func (s *TimeSeriesTable) MarshalJSON() ([]byte, error) { // Type: A protocol buffer message type. type Type struct { + // Edition: The source edition string, only valid when syntax is + // SYNTAX_EDITIONS. + Edition string `json:"edition,omitempty"` + // Fields: The list of fields. Fields []*Field `json:"fields,omitempty"` @@ -2828,9 +2832,10 @@ type Type struct { // Possible values: // "SYNTAX_PROTO2" - Syntax proto2. // "SYNTAX_PROTO3" - Syntax proto3. + // "SYNTAX_EDITIONS" - Syntax editions. Syntax string `json:"syntax,omitempty"` - // ForceSendFields is a list of field names (e.g. "Fields") to + // ForceSendFields is a list of field names (e.g. "Edition") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2838,8 +2843,8 @@ type Type struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Fields") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Edition") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2930,13 +2935,13 @@ type XyChart struct { // plot type. TimeshiftDuration string `json:"timeshiftDuration,omitempty"` - // XAxis: The properties applied to the X axis. + // XAxis: The properties applied to the x-axis. XAxis *Axis `json:"xAxis,omitempty"` - // Y2Axis: The properties applied to the Y2 axis. + // Y2Axis: The properties applied to the y2-axis. Y2Axis *Axis `json:"y2Axis,omitempty"` - // YAxis: The properties applied to the Y axis. + // YAxis: The properties applied to the y-axis. YAxis *Axis `json:"yAxis,omitempty"` // ForceSendFields is a list of field names (e.g. "ChartOptions") to diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index 6490d4738f4..02c0be46a02 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -2714,7 +2714,7 @@ } } }, - "revision": "20230212", + "revision": "20230326", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -2903,6 +2903,13 @@ "format": "google-duration", "type": "string" }, + "notificationChannelStrategy": { + "description": "Control how notifications will be sent out, on a per-channel basis.", + "items": { + "$ref": "NotificationChannelStrategy" + }, + "type": "array" + }, "notificationRateLimit": { "$ref": "NotificationRateLimit", "description": "Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based." @@ -3504,7 +3511,7 @@ "type": "object" }, "Exponential": { - "description": "Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 \u003c= i \u003c N-1): scale * (growth_factor ^ i). Lower bound (1 \u003c= i \u003c N): scale * (growth_factor ^ (i - 1)).", + "description": "Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 \u003c= i \u003c N-1): scale * (growth_factor ^ i).Lower bound (1 \u003c= i \u003c N): scale * (growth_factor ^ (i - 1)).", "id": "Exponential", "properties": { "growthFactor": { @@ -4033,7 +4040,7 @@ "type": "object" }, "Linear": { - "description": "Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 \u003c= i \u003c N-1): offset + (width * i). Lower bound (1 \u003c= i \u003c N): offset + (width * (i - 1)).", + "description": "Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 \u003c= i \u003c N-1): offset + (width * i).Lower bound (1 \u003c= i \u003c N): offset + (width * (i - 1)).", "id": "Linear", "properties": { "numFiniteBuckets": { @@ -4932,6 +4939,25 @@ }, "type": "object" }, + "NotificationChannelStrategy": { + "description": "Control over how the notification channels in notification_channels are notified when this alert fires, on a per-channel basis.", + "id": "NotificationChannelStrategy", + "properties": { + "notificationChannelNames": { + "description": "The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] ", + "items": { + "type": "string" + }, + "type": "array" + }, + "renotifyInterval": { + "description": "The frequency at which to send reminder notifications for open incidents.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "NotificationRateLimit": { "description": "Control over the rate of notifications sent to this alert policy's notification channels.", "id": "NotificationRateLimit", @@ -5624,6 +5650,10 @@ "description": "A protocol buffer message type.", "id": "Type", "properties": { + "edition": { + "description": "The source edition string, only valid when syntax is SYNTAX_EDITIONS.", + "type": "string" + }, "fields": { "description": "The list of fields.", "items": { @@ -5657,11 +5687,13 @@ "description": "The source syntax.", "enum": [ "SYNTAX_PROTO2", - "SYNTAX_PROTO3" + "SYNTAX_PROTO3", + "SYNTAX_EDITIONS" ], "enumDescriptions": [ "Syntax proto2.", - "Syntax proto3." + "Syntax proto3.", + "Syntax editions." ], "type": "string" } diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index cf7541737f2..ac8617f64b2 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -789,6 +789,10 @@ type AlertStrategy struct { // long, any open incidents will close AutoClose string `json:"autoClose,omitempty"` + // NotificationChannelStrategy: Control how notifications will be sent + // out, on a per-channel basis. + NotificationChannelStrategy []*NotificationChannelStrategy `json:"notificationChannelStrategy,omitempty"` + // NotificationRateLimit: Required for alert policies with a LogMatch // condition.This limit is not implemented for alert policies that are // not log-based. @@ -2010,7 +2014,7 @@ func (s *Explicit) MarshalJSON() ([]byte, error) { // bucket represents a constant relative uncertainty on a specific value // in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket // i has the following boundaries:Upper bound (0 <= i < N-1): scale * -// (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor +// (growth_factor ^ i).Lower bound (1 <= i < N): scale * (growth_factor // ^ (i - 1)). type Exponential struct { // GrowthFactor: Must be greater than 1. @@ -2923,7 +2927,7 @@ func (s *LatencyCriteria) MarshalJSON() ([]byte, error) { // constant absolute uncertainty on the specific value in the // bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has // the following boundaries:Upper bound (0 <= i < N-1): offset + (width -// * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). +// * i).Lower bound (1 <= i < N): offset + (width * (i - 1)). type Linear struct { // NumFiniteBuckets: Must be greater than 0. NumFiniteBuckets int64 `json:"numFiniteBuckets,omitempty"` @@ -4680,6 +4684,47 @@ func (s *NotificationChannelDescriptor) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NotificationChannelStrategy: Control over how the notification +// channels in notification_channels are notified when this alert fires, +// on a per-channel basis. +type NotificationChannelStrategy struct { + // NotificationChannelNames: The full REST resource name for the + // notification channels that these settings apply to. Each of these + // correspond to the name field in one of the NotificationChannel + // objects referenced in the notification_channels field of this + // AlertPolicy. The format is: + // projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] + NotificationChannelNames []string `json:"notificationChannelNames,omitempty"` + + // RenotifyInterval: The frequency at which to send reminder + // notifications for open incidents. + RenotifyInterval string `json:"renotifyInterval,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "NotificationChannelNames") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NotificationChannelNames") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *NotificationChannelStrategy) MarshalJSON() ([]byte, error) { + type NoMethod NotificationChannelStrategy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // NotificationRateLimit: Control over the rate of notifications sent to // this alert policy's notification channels. type NotificationRateLimit struct { @@ -6004,6 +6049,10 @@ func (s *Trigger) UnmarshalJSON(data []byte) error { // Type: A protocol buffer message type. type Type struct { + // Edition: The source edition string, only valid when syntax is + // SYNTAX_EDITIONS. + Edition string `json:"edition,omitempty"` + // Fields: The list of fields. Fields []*Field `json:"fields,omitempty"` @@ -6025,9 +6074,10 @@ type Type struct { // Possible values: // "SYNTAX_PROTO2" - Syntax proto2. // "SYNTAX_PROTO3" - Syntax proto3. + // "SYNTAX_EDITIONS" - Syntax editions. Syntax string `json:"syntax,omitempty"` - // ForceSendFields is a list of field names (e.g. "Fields") to + // ForceSendFields is a list of field names (e.g. "Edition") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -6035,8 +6085,8 @@ type Type struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Fields") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Edition") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index 52f6fad8af9..db2f936f852 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -542,7 +542,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/global/operations", "httpMethod": "GET", "id": "networkmanagement.projects.locations.global.operations.list", @@ -591,7 +591,7 @@ } } }, - "revision": "20230222", + "revision": "20230313", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index 7eb8c770067..6a8518a617e 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -4938,14 +4938,7 @@ type ProjectsLocationsGlobalOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsGlobalOperationsService) List(name string) *ProjectsLocationsGlobalOperationsListCall { @@ -5074,7 +5067,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/global/operations", // "httpMethod": "GET", // "id": "networkmanagement.projects.locations.global.operations.list", diff --git a/networksecurity/v1beta1/networksecurity-api.json b/networksecurity/v1beta1/networksecurity-api.json index 156905358b9..dd04df985f1 100644 --- a/networksecurity/v1beta1/networksecurity-api.json +++ b/networksecurity/v1beta1/networksecurity-api.json @@ -2150,6 +2150,168 @@ } } }, + "tlsInspectionPolicies": { + "methods": { + "create": { + "description": "Creates a new TlsInspectionPolicy in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies", + "httpMethod": "POST", + "id": "networksecurity.projects.locations.tlsInspectionPolicies.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the TlsInspectionPolicy. Must be in the format `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "tlsInspectionPolicyId": { + "description": "Required. Short name of the TlsInspectionPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. \"tls_inspection_policy1\".", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/tlsInspectionPolicies", + "request": { + "$ref": "TlsInspectionPolicy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single TlsInspectionPolicy.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + "httpMethod": "DELETE", + "id": "networksecurity.projects.locations.tlsInspectionPolicies.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "If set to true, any rules for this TlsInspectionPolicy will also be deleted. (Otherwise, the request will only work if the TlsInspectionPolicy has no rules.)", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. A name of the TlsInspectionPolicy to delete. Must be in the format `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single TlsInspectionPolicy.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.tlsInspectionPolicies.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. A name of the TlsInspectionPolicy to get. Must be in the format `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "TlsInspectionPolicy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists TlsInspectionPolicies in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies", + "httpMethod": "GET", + "id": "networksecurity.projects.locations.tlsInspectionPolicies.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of TlsInspectionPolicies to return per call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last 'ListTlsInspectionPoliciesResponse' Indicates that this is a continuation of a prior 'ListTlsInspectionPolicies' call, and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location from which the TlsInspectionPolicies should be listed, specified in the format `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/tlsInspectionPolicies", + "response": { + "$ref": "ListTlsInspectionPoliciesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single TlsInspectionPolicy.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + "httpMethod": "PATCH", + "id": "networksecurity.projects.locations.tlsInspectionPolicies.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy} tls_inspection_policy should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask is used to specify the fields to be overwritten in the TlsInspectionPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "TlsInspectionPolicy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "urlLists": { "methods": { "create": { @@ -2312,7 +2474,7 @@ } } }, - "revision": "20230309", + "revision": "20230316", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AddAddressGroupItemsRequest": { @@ -2614,6 +2776,10 @@ "description": "Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", "type": "string" }, + "tlsInspectionPolicy": { + "description": "Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.", + "type": "string" + }, "updateTime": { "description": "Output only. The timestamp when the resource was updated.", "format": "google-datetime", @@ -2672,6 +2838,10 @@ "description": "Required. CEL expression for matching on session criteria.", "type": "string" }, + "tlsInspectionEnabled": { + "description": "Optional. Flag to enable TLS inspection of traffic matching on , can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.", + "type": "boolean" + }, "updateTime": { "description": "Output only. Time when the rule was updated.", "format": "google-datetime", @@ -3045,6 +3215,24 @@ }, "type": "object" }, + "ListTlsInspectionPoliciesResponse": { + "description": "Response returned by the ListTlsInspectionPolicies method.", + "id": "ListTlsInspectionPoliciesResponse", + "properties": { + "nextPageToken": { + "description": "If there might be more results than those appearing in this response, then 'next_page_token' is included. To get the next set of results, call this method again using the value of 'next_page_token' as 'page_token'.", + "type": "string" + }, + "tlsInspectionPolicies": { + "description": "List of TlsInspectionPolicies resources.", + "items": { + "$ref": "TlsInspectionPolicy" + }, + "type": "array" + } + }, + "type": "object" + }, "ListUrlListsResponse": { "description": "Response returned by the ListUrlLists method.", "id": "ListUrlListsResponse", @@ -3330,6 +3518,37 @@ }, "type": "object" }, + "TlsInspectionPolicy": { + "description": "The TlsInspectionPolicy resource contains references to CA pools in Certificate Authority Service and associated metadata.", + "id": "TlsInspectionPolicy", + "properties": { + "caPool": { + "description": "Required. A CA pool resource used to issue interception certificates. The CA pool string has a relative resource path following the form \"projects/{project}/locations/{location}/caPools/{ca_pool}\".", + "type": "string" + }, + "createTime": { + "description": "Output only. The timestamp when the resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Free-text description of the resource.", + "type": "string" + }, + "name": { + "description": "Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy} tls_inspection_policy should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "UrlList": { "description": "UrlList proto helps users to set reusable, independently manageable lists of hosts, host patterns, URLs, URL patterns.", "id": "UrlList", diff --git a/networksecurity/v1beta1/networksecurity-gen.go b/networksecurity/v1beta1/networksecurity-gen.go index 2ec88afc8c4..a9376187538 100644 --- a/networksecurity/v1beta1/networksecurity-gen.go +++ b/networksecurity/v1beta1/networksecurity-gen.go @@ -206,6 +206,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.GatewaySecurityPolicies = NewProjectsLocationsGatewaySecurityPoliciesService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.ServerTlsPolicies = NewProjectsLocationsServerTlsPoliciesService(s) + rs.TlsInspectionPolicies = NewProjectsLocationsTlsInspectionPoliciesService(s) rs.UrlLists = NewProjectsLocationsUrlListsService(s) return rs } @@ -225,6 +226,8 @@ type ProjectsLocationsService struct { ServerTlsPolicies *ProjectsLocationsServerTlsPoliciesService + TlsInspectionPolicies *ProjectsLocationsTlsInspectionPoliciesService + UrlLists *ProjectsLocationsUrlListsService } @@ -294,6 +297,15 @@ type ProjectsLocationsServerTlsPoliciesService struct { s *Service } +func NewProjectsLocationsTlsInspectionPoliciesService(s *Service) *ProjectsLocationsTlsInspectionPoliciesService { + rs := &ProjectsLocationsTlsInspectionPoliciesService{s: s} + return rs +} + +type ProjectsLocationsTlsInspectionPoliciesService struct { + s *Service +} + func NewProjectsLocationsUrlListsService(s *Service) *ProjectsLocationsUrlListsService { rs := &ProjectsLocationsUrlListsService{s: s} return rs @@ -763,6 +775,11 @@ type GatewaySecurityPolicy struct { // pattern:(^a-z ([a-z0-9-]{0,61}[a-z0-9])?$). Name string `json:"name,omitempty"` + // TlsInspectionPolicy: Optional. Name of a TLS Inspection Policy + // resource that defines how TLS inspection will be performed for any + // rule(s) which enables it. + TlsInspectionPolicy string `json:"tlsInspectionPolicy,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was updated. UpdateTime string `json:"updateTime,omitempty"` @@ -835,6 +852,11 @@ type GatewaySecurityPolicyRule struct { // criteria. SessionMatcher string `json:"sessionMatcher,omitempty"` + // TlsInspectionEnabled: Optional. Flag to enable TLS inspection of + // traffic matching on , can only be true if the parent + // GatewaySecurityPolicy references a TLSInspectionConfig. + TlsInspectionEnabled bool `json:"tlsInspectionEnabled,omitempty"` + // UpdateTime: Output only. Time when the rule was updated. UpdateTime string `json:"updateTime,omitempty"` @@ -1755,6 +1777,45 @@ func (s *ListServerTlsPoliciesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListTlsInspectionPoliciesResponse: Response returned by the +// ListTlsInspectionPolicies method. +type ListTlsInspectionPoliciesResponse struct { + // NextPageToken: If there might be more results than those appearing in + // this response, then 'next_page_token' is included. To get the next + // set of results, call this method again using the value of + // 'next_page_token' as 'page_token'. + NextPageToken string `json:"nextPageToken,omitempty"` + + // TlsInspectionPolicies: List of TlsInspectionPolicies resources. + TlsInspectionPolicies []*TlsInspectionPolicy `json:"tlsInspectionPolicies,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListTlsInspectionPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListTlsInspectionPoliciesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListUrlListsResponse: Response returned by the ListUrlLists method. type ListUrlListsResponse struct { // NextPageToken: If there might be more results than those appearing in @@ -2229,6 +2290,58 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TlsInspectionPolicy: The TlsInspectionPolicy resource contains +// references to CA pools in Certificate Authority Service and +// associated metadata. +type TlsInspectionPolicy struct { + // CaPool: Required. A CA pool resource used to issue interception + // certificates. The CA pool string has a relative resource path + // following the form + // "projects/{project}/locations/{location}/caPools/{ca_pool}". + CaPool string `json:"caPool,omitempty"` + + // CreateTime: Output only. The timestamp when the resource was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Free-text description of the resource. + Description string `json:"description,omitempty"` + + // Name: Required. Name of the resource. Name is of the form + // projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_ins + // pection_policy} tls_inspection_policy should match the pattern:(^a-z + // ([a-z0-9-]{0,61}[a-z0-9])?$). + Name string `json:"name,omitempty"` + + // UpdateTime: Output only. The timestamp when the resource was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CaPool") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CaPool") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TlsInspectionPolicy) MarshalJSON() ([]byte, error) { + type NoMethod TlsInspectionPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UrlList: UrlList proto helps users to set reusable, independently // manageable lists of hosts, host patterns, URLs, URL patterns. type UrlList struct { @@ -12823,6 +12936,822 @@ func (c *ProjectsLocationsServerTlsPoliciesTestIamPermissionsCall) Do(opts ...go } +// method id "networksecurity.projects.locations.tlsInspectionPolicies.create": + +type ProjectsLocationsTlsInspectionPoliciesCreateCall struct { + s *Service + parent string + tlsinspectionpolicy *TlsInspectionPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new TlsInspectionPolicy in a given project and +// location. +// +// - parent: The parent resource of the TlsInspectionPolicy. Must be in +// the format `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsTlsInspectionPoliciesService) Create(parent string, tlsinspectionpolicy *TlsInspectionPolicy) *ProjectsLocationsTlsInspectionPoliciesCreateCall { + c := &ProjectsLocationsTlsInspectionPoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.tlsinspectionpolicy = tlsinspectionpolicy + return c +} + +// TlsInspectionPolicyId sets the optional parameter +// "tlsInspectionPolicyId": Required. Short name of the +// TlsInspectionPolicy resource to be created. This value should be 1-63 +// characters long, containing only letters, numbers, hyphens, and +// underscores, and should not start with a number. E.g. +// "tls_inspection_policy1". +func (c *ProjectsLocationsTlsInspectionPoliciesCreateCall) TlsInspectionPolicyId(tlsInspectionPolicyId string) *ProjectsLocationsTlsInspectionPoliciesCreateCall { + c.urlParams_.Set("tlsInspectionPolicyId", tlsInspectionPolicyId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTlsInspectionPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsInspectionPoliciesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTlsInspectionPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsTlsInspectionPoliciesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTlsInspectionPoliciesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTlsInspectionPoliciesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.tlsinspectionpolicy) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/tlsInspectionPolicies") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsTlsInspectionPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new TlsInspectionPolicy in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies", + // "httpMethod": "POST", + // "id": "networksecurity.projects.locations.tlsInspectionPolicies.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent resource of the TlsInspectionPolicy. Must be in the format `projects/{project}/locations/{location}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tlsInspectionPolicyId": { + // "description": "Required. Short name of the TlsInspectionPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. \"tls_inspection_policy1\".", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/tlsInspectionPolicies", + // "request": { + // "$ref": "TlsInspectionPolicy" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networksecurity.projects.locations.tlsInspectionPolicies.delete": + +type ProjectsLocationsTlsInspectionPoliciesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single TlsInspectionPolicy. +// +// - name: A name of the TlsInspectionPolicy to delete. Must be in the +// format +// `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_ +// inspection_policy}`. +func (r *ProjectsLocationsTlsInspectionPoliciesService) Delete(name string) *ProjectsLocationsTlsInspectionPoliciesDeleteCall { + c := &ProjectsLocationsTlsInspectionPoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": If set to true, any rules +// for this TlsInspectionPolicy will also be deleted. (Otherwise, the +// request will only work if the TlsInspectionPolicy has no rules.) +func (c *ProjectsLocationsTlsInspectionPoliciesDeleteCall) Force(force bool) *ProjectsLocationsTlsInspectionPoliciesDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTlsInspectionPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsInspectionPoliciesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTlsInspectionPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTlsInspectionPoliciesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTlsInspectionPoliciesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTlsInspectionPoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsTlsInspectionPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single TlsInspectionPolicy.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + // "httpMethod": "DELETE", + // "id": "networksecurity.projects.locations.tlsInspectionPolicies.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "force": { + // "description": "If set to true, any rules for this TlsInspectionPolicy will also be deleted. (Otherwise, the request will only work if the TlsInspectionPolicy has no rules.)", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. A name of the TlsInspectionPolicy to delete. Must be in the format `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networksecurity.projects.locations.tlsInspectionPolicies.get": + +type ProjectsLocationsTlsInspectionPoliciesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single TlsInspectionPolicy. +// +// - name: A name of the TlsInspectionPolicy to get. Must be in the +// format +// `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_ +// inspection_policy}`. +func (r *ProjectsLocationsTlsInspectionPoliciesService) Get(name string) *ProjectsLocationsTlsInspectionPoliciesGetCall { + c := &ProjectsLocationsTlsInspectionPoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTlsInspectionPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsInspectionPoliciesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsTlsInspectionPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTlsInspectionPoliciesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTlsInspectionPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsTlsInspectionPoliciesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTlsInspectionPoliciesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTlsInspectionPoliciesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.get" call. +// Exactly one of *TlsInspectionPolicy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *TlsInspectionPolicy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsTlsInspectionPoliciesGetCall) Do(opts ...googleapi.CallOption) (*TlsInspectionPolicy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TlsInspectionPolicy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single TlsInspectionPolicy.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + // "httpMethod": "GET", + // "id": "networksecurity.projects.locations.tlsInspectionPolicies.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. A name of the TlsInspectionPolicy to get. Must be in the format `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "TlsInspectionPolicy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "networksecurity.projects.locations.tlsInspectionPolicies.list": + +type ProjectsLocationsTlsInspectionPoliciesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists TlsInspectionPolicies in a given project and location. +// +// - parent: The project and location from which the +// TlsInspectionPolicies should be listed, specified in the format +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsTlsInspectionPoliciesService) List(parent string) *ProjectsLocationsTlsInspectionPoliciesListCall { + c := &ProjectsLocationsTlsInspectionPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// TlsInspectionPolicies to return per call. +func (c *ProjectsLocationsTlsInspectionPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsTlsInspectionPoliciesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned +// by the last 'ListTlsInspectionPoliciesResponse' Indicates that this +// is a continuation of a prior 'ListTlsInspectionPolicies' call, and +// that the system should return the next page of data. +func (c *ProjectsLocationsTlsInspectionPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsTlsInspectionPoliciesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTlsInspectionPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsInspectionPoliciesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsTlsInspectionPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTlsInspectionPoliciesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTlsInspectionPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsTlsInspectionPoliciesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTlsInspectionPoliciesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTlsInspectionPoliciesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/tlsInspectionPolicies") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.list" call. +// Exactly one of *ListTlsInspectionPoliciesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListTlsInspectionPoliciesResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsTlsInspectionPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListTlsInspectionPoliciesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListTlsInspectionPoliciesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists TlsInspectionPolicies in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies", + // "httpMethod": "GET", + // "id": "networksecurity.projects.locations.tlsInspectionPolicies.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Maximum number of TlsInspectionPolicies to return per call.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The value returned by the last 'ListTlsInspectionPoliciesResponse' Indicates that this is a continuation of a prior 'ListTlsInspectionPolicies' call, and that the system should return the next page of data.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The project and location from which the TlsInspectionPolicies should be listed, specified in the format `projects/{project}/locations/{location}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/tlsInspectionPolicies", + // "response": { + // "$ref": "ListTlsInspectionPoliciesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsTlsInspectionPoliciesListCall) Pages(ctx context.Context, f func(*ListTlsInspectionPoliciesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "networksecurity.projects.locations.tlsInspectionPolicies.patch": + +type ProjectsLocationsTlsInspectionPoliciesPatchCall struct { + s *Service + name string + tlsinspectionpolicy *TlsInspectionPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single TlsInspectionPolicy. +// +// - name: Name of the resource. Name is of the form +// projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_i +// nspection_policy} tls_inspection_policy should match the +// pattern:(^a-z ([a-z0-9-]{0,61}[a-z0-9])?$). +func (r *ProjectsLocationsTlsInspectionPoliciesService) Patch(name string, tlsinspectionpolicy *TlsInspectionPolicy) *ProjectsLocationsTlsInspectionPoliciesPatchCall { + c := &ProjectsLocationsTlsInspectionPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.tlsinspectionpolicy = tlsinspectionpolicy + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the +// TlsInspectionPolicy resource by the update. The fields specified in +// the update_mask are relative to the resource, not the full request. A +// field will be overwritten if it is in the mask. If the user does not +// provide a mask then all fields will be overwritten. +func (c *ProjectsLocationsTlsInspectionPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTlsInspectionPoliciesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsTlsInspectionPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsInspectionPoliciesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsTlsInspectionPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsTlsInspectionPoliciesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsTlsInspectionPoliciesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTlsInspectionPoliciesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.tlsinspectionpolicy) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networksecurity.projects.locations.tlsInspectionPolicies.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsTlsInspectionPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the parameters of a single TlsInspectionPolicy.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tlsInspectionPolicies/{tlsInspectionPoliciesId}", + // "httpMethod": "PATCH", + // "id": "networksecurity.projects.locations.tlsInspectionPolicies.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy} tls_inspection_policy should match the pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/tlsInspectionPolicies/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. Field mask is used to specify the fields to be overwritten in the TlsInspectionPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "TlsInspectionPolicy" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "networksecurity.projects.locations.urlLists.create": type ProjectsLocationsUrlListsCreateCall struct { diff --git a/ondemandscanning/v1/ondemandscanning-api.json b/ondemandscanning/v1/ondemandscanning-api.json index d5d00abf43f..4d45300ea37 100644 --- a/ondemandscanning/v1/ondemandscanning-api.json +++ b/ondemandscanning/v1/ondemandscanning-api.json @@ -339,7 +339,7 @@ } } }, - "revision": "20230313", + "revision": "20230327", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AliasContext": { @@ -506,6 +506,18 @@ }, "type": "object" }, + "Binary": { + "id": "Binary", + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, "BuildOccurrence": { "description": "Details of a build occurrence.", "id": "BuildOccurrence", @@ -1730,6 +1742,10 @@ "description": "The architecture of the package.", "type": "string" }, + "binary": { + "$ref": "Binary", + "description": "The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See https://b.corp.google.com/issues/175908657#comment15" + }, "cpeUri": { "description": "The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which the vulnerability may manifest. Examples include distro or storage location for vulnerable jar.", "type": "string" diff --git a/ondemandscanning/v1/ondemandscanning-gen.go b/ondemandscanning/v1/ondemandscanning-gen.go index 1bd5b6c4200..f0033ace4c2 100644 --- a/ondemandscanning/v1/ondemandscanning-gen.go +++ b/ondemandscanning/v1/ondemandscanning-gen.go @@ -517,6 +517,34 @@ func (s *AttestationOccurrence) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type Binary struct { + Name string `json:"name,omitempty"` + + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Binary) MarshalJSON() ([]byte, error) { + type NoMethod Binary + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BuildOccurrence: Details of a build occurrence. type BuildOccurrence struct { // IntotoProvenance: Deprecated. See InTotoStatement for the @@ -2393,6 +2421,14 @@ type PackageData struct { // Architecture: The architecture of the package. Architecture string `json:"architecture,omitempty"` + // Binary: The binary package. This is significant when the source is + // different than the binary itself. Historically if they've differed, + // we've stored the name of the source and its version in the + // package/version fields, but we should also store the binary package + // info, as that's what's actually installed. See + // https://b.corp.google.com/issues/175908657#comment15 + Binary *Binary `json:"binary,omitempty"` + // CpeUri: The cpe_uri in [cpe format] // (https://cpe.mitre.org/specification/) in which the vulnerability may // manifest. Examples include distro or storage location for vulnerable diff --git a/ondemandscanning/v1beta1/ondemandscanning-api.json b/ondemandscanning/v1beta1/ondemandscanning-api.json index 44fa46c7a1b..d419dfd6acf 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-api.json +++ b/ondemandscanning/v1beta1/ondemandscanning-api.json @@ -339,7 +339,7 @@ } } }, - "revision": "20230313", + "revision": "20230327", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AliasContext": { @@ -502,6 +502,18 @@ }, "type": "object" }, + "Binary": { + "id": "Binary", + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, "BuildOccurrence": { "description": "Details of a build occurrence.", "id": "BuildOccurrence", @@ -1726,6 +1738,10 @@ "description": "The architecture of the package.", "type": "string" }, + "binary": { + "$ref": "Binary", + "description": "The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See https://b.corp.google.com/issues/175908657#comment15" + }, "cpeUri": { "description": "The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which the vulnerability may manifest. Examples include distro or storage location for vulnerable jar.", "type": "string" diff --git a/ondemandscanning/v1beta1/ondemandscanning-gen.go b/ondemandscanning/v1beta1/ondemandscanning-gen.go index 8342eeec2de..cf8e6c9cd9e 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-gen.go +++ b/ondemandscanning/v1beta1/ondemandscanning-gen.go @@ -511,6 +511,34 @@ func (s *AttestationOccurrence) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type Binary struct { + Name string `json:"name,omitempty"` + + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Binary) MarshalJSON() ([]byte, error) { + type NoMethod Binary + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BuildOccurrence: Details of a build occurrence. type BuildOccurrence struct { // IntotoProvenance: Deprecated. See InTotoStatement for the @@ -2387,6 +2415,14 @@ type PackageData struct { // Architecture: The architecture of the package. Architecture string `json:"architecture,omitempty"` + // Binary: The binary package. This is significant when the source is + // different than the binary itself. Historically if they've differed, + // we've stored the name of the source and its version in the + // package/version fields, but we should also store the binary package + // info, as that's what's actually installed. See + // https://b.corp.google.com/issues/175908657#comment15 + Binary *Binary `json:"binary,omitempty"` + // CpeUri: The cpe_uri in [cpe format] // (https://cpe.mitre.org/specification/) in which the vulnerability may // manifest. Examples include distro or storage location for vulnerable diff --git a/orgpolicy/v2/orgpolicy-api.json b/orgpolicy/v2/orgpolicy-api.json index 5374d3374ea..d7573073c55 100644 --- a/orgpolicy/v2/orgpolicy-api.json +++ b/orgpolicy/v2/orgpolicy-api.json @@ -915,7 +915,7 @@ } } }, - "revision": "20230306", + "revision": "20230330", "rootUrl": "https://orgpolicy.googleapis.com/", "schemas": { "GoogleCloudOrgpolicyV2AlternatePolicySpec": { @@ -1053,7 +1053,7 @@ "type": "string" }, "resourceTypes": { - "description": "Immutable. The resource instance type on which this policy applies. Format will be of the form : \"/\" Example: * `compute.googleapis.com/Instance`.", + "description": "Immutable. The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`.", "items": { "type": "string" }, diff --git a/orgpolicy/v2/orgpolicy-gen.go b/orgpolicy/v2/orgpolicy-gen.go index 3d93eb1f8c8..0a17b1243b8 100644 --- a/orgpolicy/v2/orgpolicy-gen.go +++ b/orgpolicy/v2/orgpolicy-gen.go @@ -464,7 +464,7 @@ type GoogleCloudOrgpolicyV2CustomConstraint struct { Name string `json:"name,omitempty"` // ResourceTypes: Immutable. The resource instance type on which this - // policy applies. Format will be of the form : "/" Example: * + // policy applies. Format will be of the form : `/` Example: * // `compute.googleapis.com/Instance`. ResourceTypes []string `json:"resourceTypes,omitempty"` diff --git a/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json b/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json index b24b6084447..da0a8c79e1d 100644 --- a/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json +++ b/playdeveloperreporting/v1alpha1/playdeveloperreporting-api.json @@ -706,6 +706,120 @@ } } }, + "slowrenderingrate": { + "methods": { + "get": { + "description": "Describes the properties of the metric set.", + "flatPath": "v1alpha1/apps/{appsId}/slowRenderingRateMetricSet", + "httpMethod": "GET", + "id": "playdeveloperreporting.vitals.slowrenderingrate.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet", + "location": "path", + "pattern": "^apps/[^/]+/slowRenderingRateMetricSet$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + }, + "query": { + "description": "Queries the metrics in the metric set.", + "flatPath": "v1alpha1/apps/{appsId}/slowRenderingRateMetricSet:query", + "httpMethod": "POST", + "id": "playdeveloperreporting.vitals.slowrenderingrate.query", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet", + "location": "path", + "pattern": "^apps/[^/]+/slowRenderingRateMetricSet$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}:query", + "request": { + "$ref": "GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRequest" + }, + "response": { + "$ref": "GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + } + } + }, + "slowstartrate": { + "methods": { + "get": { + "description": "Describes the properties of the metric set.", + "flatPath": "v1alpha1/apps/{appsId}/slowStartRateMetricSet", + "httpMethod": "GET", + "id": "playdeveloperreporting.vitals.slowstartrate.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/slowStartRateMetricSet", + "location": "path", + "pattern": "^apps/[^/]+/slowStartRateMetricSet$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}", + "response": { + "$ref": "GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + }, + "query": { + "description": "Queries the metrics in the metric set.", + "flatPath": "v1alpha1/apps/{appsId}/slowStartRateMetricSet:query", + "httpMethod": "POST", + "id": "playdeveloperreporting.vitals.slowstartrate.query", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/slowStartRateMetricSet", + "location": "path", + "pattern": "^apps/[^/]+/slowStartRateMetricSet$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha1/{+name}:query", + "request": { + "$ref": "GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRequest" + }, + "response": { + "$ref": "GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + } + } + }, "stuckbackgroundwakelockrate": { "methods": { "get": { @@ -766,7 +880,7 @@ } } }, - "revision": "20230314", + "revision": "20230329", "rootUrl": "https://playdeveloperreporting.googleapis.com/", "schemas": { "GooglePlayDeveloperReportingV1alpha1Anomaly": { @@ -800,7 +914,7 @@ "type": "object" }, "GooglePlayDeveloperReportingV1alpha1AnrRateMetricSet": { - "description": "Singleton resource representing the set of ANR (Application not responding) metrics. This metric set contains ANRs data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `anrRate` and `userPerceivedAnrRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about crashes, another stability metric.", + "description": "Singleton resource representing the set of ANR (Application not responding) metrics. This metric set contains ANRs data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `anrRate` and `userPerceivedAnrRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about crashes, another stability metric.", "id": "GooglePlayDeveloperReportingV1alpha1AnrRateMetricSet", "properties": { "freshnessInfo": { @@ -815,7 +929,7 @@ "type": "object" }, "GooglePlayDeveloperReportingV1alpha1CrashRateMetricSet": { - "description": "Singleton resource representing the set of crashrate metrics. This metric set contains crashes data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `crashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `crashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about ANRs, another stability metric.", + "description": "Singleton resource representing the set of crashrate metrics. This metric set contains crashes data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `crashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `crashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about ANRs, another stability metric.", "id": "GooglePlayDeveloperReportingV1alpha1CrashRateMetricSet", "properties": { "freshnessInfo": { @@ -829,6 +943,21 @@ }, "type": "object" }, + "GooglePlayDeveloperReportingV1alpha1DecimalConfidenceInterval": { + "description": "Represents the confidence interval of a metric.", + "id": "GooglePlayDeveloperReportingV1alpha1DecimalConfidenceInterval", + "properties": { + "lowerBound": { + "$ref": "GoogleTypeDecimal", + "description": "The confidence interval's lower bound." + }, + "upperBound": { + "$ref": "GoogleTypeDecimal", + "description": "The confidence interval's upper bound." + } + }, + "type": "object" + }, "GooglePlayDeveloperReportingV1alpha1DimensionValue": { "description": "Represents the value of a single dimension.", "id": "GooglePlayDeveloperReportingV1alpha1DimensionValue", @@ -854,7 +983,7 @@ "type": "object" }, "GooglePlayDeveloperReportingV1alpha1ErrorCountMetricSet": { - "description": "Singleton resource representing the set of error report metrics. This metric set contains un-normalized error report counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. The default and only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `errorReportCount` (`google.type.Decimal`): Absolute count of individual error reports that have been received for an app. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which reports have been received. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **Required dimension:** This dimension must be always specified in all requests in the `dimensions` field in query requests. * `reportType` (string): the type of error. The value should correspond to one of the possible values in ErrorType. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): identifier of the device's form factor, e.g., PHONE. * `issueId` (string): the id an error was assigned to. The value should correspond to the `{issue}` component of the issue name. * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors.counts contains normalized metrics about Crashes, another stability metric. * vitals.errors.counts contains normalized metrics about ANRs, another stability metric.", + "description": "Singleton resource representing the set of error report metrics. This metric set contains un-normalized error report counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. The default and only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `errorReportCount` (`google.type.Decimal`): Absolute count of individual error reports that have been received for an app. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which reports have been received. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. This value is not rounded, however it may be an approximation. **Required dimension:** This dimension must be always specified in all requests in the `dimensions` field in query requests. * `reportType` (string): the type of error. The value should correspond to one of the possible values in ErrorType. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): identifier of the device's form factor, e.g., PHONE. * `issueId` (string): the id an error was assigned to. The value should correspond to the `{issue}` component of the issue name. * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors.counts contains normalized metrics about Crashes, another stability metric. * vitals.errors.counts contains normalized metrics about ANRs, another stability metric.", "id": "GooglePlayDeveloperReportingV1alpha1ErrorCountMetricSet", "properties": { "freshnessInfo": { @@ -935,7 +1064,7 @@ "type": "object" }, "GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet": { - "description": "Singleton resource representing the set of Excessive Weakeups metrics. This metric set contains AlarmManager wakeup counts data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "description": "Singleton resource representing the set of Excessive Weakeups metrics. This metric set contains AlarmManager wakeup counts data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", "id": "GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet", "properties": { "freshnessInfo": { @@ -1014,6 +1143,10 @@ "$ref": "GoogleTypeDecimal", "description": "Actual value, represented as a decimal number." }, + "decimalValueConfidenceInterval": { + "$ref": "GooglePlayDeveloperReportingV1alpha1DecimalConfidenceInterval", + "description": "Confidence interval of a value that is of type type.Decimal." + }, "metric": { "description": "Name of the metric.", "type": "string" @@ -1076,7 +1209,7 @@ "type": "string" }, "metrics": { - "description": "Metrics to aggregate. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `anrRate` and `userPerceivedAnrRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times.", + "description": "Metrics to aggregate. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `anrRate` and `userPerceivedAnrRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", "items": { "type": "string" }, @@ -1148,7 +1281,7 @@ "type": "string" }, "metrics": { - "description": "Metrics to aggregate. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `crashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `crashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times.", + "description": "Metrics to aggregate. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `crashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `crashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", "items": { "type": "string" }, @@ -1220,7 +1353,7 @@ "type": "string" }, "metrics": { - "description": "Metrics to aggregate. **Supported metrics:** * `errorReportCount` (`google.type.Decimal`): Absolute count of individual error reports that have been received for an app. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which reports have been received. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times.", + "description": "Metrics to aggregate. **Supported metrics:** * `errorReportCount` (`google.type.Decimal`): Absolute count of individual error reports that have been received for an app. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which reports have been received. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. This value is not rounded, however it may be an approximation.", "items": { "type": "string" }, @@ -1276,7 +1409,7 @@ "type": "string" }, "metrics": { - "description": "Metrics to aggregate. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times.", + "description": "Metrics to aggregate. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", "items": { "type": "string" }, @@ -1332,6 +1465,150 @@ }, "type": "object" }, + "GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRequest": { + "description": "Request message for QuerySlowRenderingRateMetricSet.", + "id": "GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRequest", + "properties": { + "dimensions": { + "description": "Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi.", + "items": { + "type": "string" + }, + "type": "array" + }, + "filter": { + "description": "Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions.", + "type": "string" + }, + "metrics": { + "description": "Metrics to aggregate. **Supported metrics:** * `slowRenderingRate20Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow rendering. * `slowRenderingRate20Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate20Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow rendering. * `slowRenderingRate30Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", + "items": { + "type": "string" + }, + "type": "array" + }, + "pageSize": { + "description": "Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000.", + "format": "int32", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + "type": "string" + }, + "timelineSpec": { + "$ref": "GooglePlayDeveloperReportingV1alpha1TimelineSpec", + "description": "Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`." + }, + "userCohort": { + "description": "User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta Android versions only, excluding data from released Android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., \"T1B2.220916.004\".", + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ], + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "type": "string" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetResponse": { + "description": "Response message for QuerySlowRenderingRateMetricSet.", + "id": "GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetResponse", + "properties": { + "nextPageToken": { + "description": "Continuation token to fetch the next page of data.", + "type": "string" + }, + "rows": { + "description": "Returned rows of data.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1alpha1MetricsRow" + }, + "type": "array" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRequest": { + "description": "Request message for QuerySlowStartRateMetricSet.", + "id": "GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRequest", + "properties": { + "dimensions": { + "description": "Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi.", + "items": { + "type": "string" + }, + "type": "array" + }, + "filter": { + "description": "Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions.", + "type": "string" + }, + "metrics": { + "description": "Metrics to aggregate. **Supported metrics:** * `slowStartRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow start. * `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowStartRate` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", + "items": { + "type": "string" + }, + "type": "array" + }, + "pageSize": { + "description": "Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000.", + "format": "int32", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + "type": "string" + }, + "timelineSpec": { + "$ref": "GooglePlayDeveloperReportingV1alpha1TimelineSpec", + "description": "Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`." + }, + "userCohort": { + "description": "User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta Android versions only, excluding data from released Android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., \"T1B2.220916.004\".", + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ], + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "type": "string" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetResponse": { + "description": "Response message for QuerySlowStartRateMetricSet.", + "id": "GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetResponse", + "properties": { + "nextPageToken": { + "description": "Continuation token to fetch the next page of data.", + "type": "string" + }, + "rows": { + "description": "Returned rows of data.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1alpha1MetricsRow" + }, + "type": "array" + } + }, + "type": "object" + }, "GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetRequest": { "description": "Request message for QueryStuckBackgroundWakelockRateMetricSet.", "id": "GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetRequest", @@ -1348,7 +1625,7 @@ "type": "string" }, "metrics": { - "description": "Metrics to aggregate. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `stuckBgWakelockRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times.", + "description": "Metrics to aggregate. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `stuckBgWakelockRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", "items": { "type": "string" }, @@ -1440,8 +1717,38 @@ }, "type": "object" }, + "GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet": { + "description": "Singleton resource representing the set of Slow Rendering metrics. This metric set contains low-level rendering data captured by SurafeFlinger. Sessions are evaluated based on the present-to-present histogram of frames handled by any SurfaceFlinger layer owned by the app. A slow session is a session where more than 25% of frames for the session did not meet the metric's target frame rate (either 20fps, or 30fps). *NOTE:* This metric set is only available for games. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `slowRenderingRate20Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had slow rendering. * `slowRenderingRate20Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate20Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had slow rendering. * `slowRenderingRate30Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is counted in this metric if their app rendered any frames. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "id": "GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet", + "properties": { + "freshnessInfo": { + "$ref": "GooglePlayDeveloperReportingV1alpha1FreshnessInfo", + "description": "Summary about data freshness in this resource." + }, + "name": { + "description": "The resource name. Format: apps/{app}/slowRenderingRateMetricSet", + "type": "string" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet": { + "description": "Singleton resource representing the set of Slow Start metrics. This metric set contains Activity start duration data. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `slowStartRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow start. * `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowStartRate` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Required dimension:** This dimension must be specified with each request for the request to be valid. * `startType` (string): the type of start that was measured. Valid types are `HOT`, `WARM` and `COLD`. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "id": "GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet", + "properties": { + "freshnessInfo": { + "$ref": "GooglePlayDeveloperReportingV1alpha1FreshnessInfo", + "description": "Summary about data freshness in this resource." + }, + "name": { + "description": "The resource name. Format: apps/{app}/slowStartRateMetricSet", + "type": "string" + } + }, + "type": "object" + }, "GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet": { - "description": "Singleton resource representing the set of Stuck Background Wakelocks metrics. This metric set contains PowerManager wakelock duration data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `stuckBgWakelockRate` metric. A user is counted in this metric if their app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "description": "Singleton resource representing the set of Stuck Background Wakelocks metrics. This metric set contains PowerManager wakelock duration data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `stuckBgWakelockRate` metric. A user is counted in this metric if their app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", "id": "GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet", "properties": { "freshnessInfo": { diff --git a/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go b/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go index 71540789e23..b8d46e1e4e7 100644 --- a/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go +++ b/playdeveloperreporting/v1alpha1/playdeveloperreporting-gen.go @@ -156,6 +156,8 @@ func NewVitalsService(s *Service) *VitalsService { rs.Crashrate = NewVitalsCrashrateService(s) rs.Errors = NewVitalsErrorsService(s) rs.Excessivewakeuprate = NewVitalsExcessivewakeuprateService(s) + rs.Slowrenderingrate = NewVitalsSlowrenderingrateService(s) + rs.Slowstartrate = NewVitalsSlowstartrateService(s) rs.Stuckbackgroundwakelockrate = NewVitalsStuckbackgroundwakelockrateService(s) return rs } @@ -171,6 +173,10 @@ type VitalsService struct { Excessivewakeuprate *VitalsExcessivewakeuprateService + Slowrenderingrate *VitalsSlowrenderingrateService + + Slowstartrate *VitalsSlowstartrateService + Stuckbackgroundwakelockrate *VitalsStuckbackgroundwakelockrateService } @@ -246,6 +252,24 @@ type VitalsExcessivewakeuprateService struct { s *Service } +func NewVitalsSlowrenderingrateService(s *Service) *VitalsSlowrenderingrateService { + rs := &VitalsSlowrenderingrateService{s: s} + return rs +} + +type VitalsSlowrenderingrateService struct { + s *Service +} + +func NewVitalsSlowstartrateService(s *Service) *VitalsSlowstartrateService { + rs := &VitalsSlowstartrateService{s: s} + return rs +} + +type VitalsSlowstartrateService struct { + s *Service +} + func NewVitalsStuckbackgroundwakelockrateService(s *Service) *VitalsStuckbackgroundwakelockrateService { rs := &VitalsStuckbackgroundwakelockrateService{s: s} return rs @@ -340,11 +364,13 @@ func (s *GooglePlayDeveloperReportingV1alpha1Anomaly) MarshalJSON() ([]byte, err // counted in this metric if they used the app in the foreground during // the aggregation period. Care must be taken not to aggregate this // count further, as it may result in users being counted multiple -// times. **Supported dimensions:** * `apiLevel` (string): the API level -// of Android that was running on the user's device. * `versionCode` -// (int64): version of the app that was running on the user's device. * -// `deviceModel` (string): unique identifier of the user's device model. -// * `deviceType` (string): the type (also known as form factor) of the +// times. The value is rounded to the nearest multiple of 10, 100, 1,000 +// or 1,000,000, depending on the magnitude of the value. **Supported +// dimensions:** * `apiLevel` (string): the API level of Android that +// was running on the user's device. * `versionCode` (int64): version of +// the app that was running on the user's device. * `deviceModel` +// (string): unique identifier of the user's device model. * +// `deviceType` (string): the type (also known as form factor) of the // user's device. * `countryCode` (string): the country or region of the // user's device based on their IP address, represented as a 2-letter // ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` @@ -438,17 +464,19 @@ func (s *GooglePlayDeveloperReportingV1alpha1AnrRateMetricSet) MarshalJSON() ([] // period. An app is considered to be in active use if it is displaying // any activity or executing any foreground service. Care must be taken // not to aggregate this count further, as it may result in users being -// counted multiple times. **Supported dimensions:** * `apiLevel` -// (string): the API level of Android that was running on the user's -// device. * `versionCode` (int64): version of the app that was running -// on the user's device. * `deviceModel` (string): unique identifier of -// the user's device model. * `deviceType` (string): the type (also -// known as form factor) of the user's device. * `countryCode` (string): -// the country or region of the user's device based on their IP address, -// represented as a 2-letter ISO-3166 code (e.g. US for the United -// States). * `deviceRamBucket` (int64): RAM of the device, in MB, in -// buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the -// device's primary system-on-chip, e.g., Samsung. Reference +// counted multiple times. The value is rounded to the nearest multiple +// of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the +// value. **Supported dimensions:** * `apiLevel` (string): the API level +// of Android that was running on the user's device. * `versionCode` +// (int64): version of the app that was running on the user's device. * +// `deviceModel` (string): unique identifier of the user's device model. +// * `deviceType` (string): the type (also known as form factor) of the +// user's device. * `countryCode` (string): the country or region of the +// user's device based on their IP address, represented as a 2-letter +// ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` +// (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * +// `deviceSocMake` (string): Make of the device's primary +// system-on-chip, e.g., Samsung. Reference // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) // * `deviceSocModel` (string): Model of the device's primary // system-on-chip, e.g., "Exynos 2100". Reference @@ -502,6 +530,38 @@ func (s *GooglePlayDeveloperReportingV1alpha1CrashRateMetricSet) MarshalJSON() ( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePlayDeveloperReportingV1alpha1DecimalConfidenceInterval: +// Represents the confidence interval of a metric. +type GooglePlayDeveloperReportingV1alpha1DecimalConfidenceInterval struct { + // LowerBound: The confidence interval's lower bound. + LowerBound *GoogleTypeDecimal `json:"lowerBound,omitempty"` + + // UpperBound: The confidence interval's upper bound. + UpperBound *GoogleTypeDecimal `json:"upperBound,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LowerBound") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LowerBound") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1alpha1DecimalConfidenceInterval) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1DecimalConfidenceInterval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePlayDeveloperReportingV1alpha1DimensionValue: Represents the // value of a single dimension. type GooglePlayDeveloperReportingV1alpha1DimensionValue struct { @@ -555,21 +615,22 @@ func (s *GooglePlayDeveloperReportingV1alpha1DimensionValue) MarshalJSON() ([]by // that have been received for an app. * `distinctUsers` // (`google.type.Decimal`): Count of distinct users for which reports // have been received. Care must be taken not to aggregate this count -// further, as it may result in users being counted multiple times. -// **Required dimension:** This dimension must be always specified in -// all requests in the `dimensions` field in query requests. * -// `reportType` (string): the type of error. The value should correspond -// to one of the possible values in ErrorType. **Supported dimensions:** -// * `apiLevel` (string): the API level of Android that was running on -// the user's device. * `versionCode` (int64): version of the app that -// was running on the user's device. * `deviceModel` (string): unique -// identifier of the user's device model. * `deviceType` (string): -// identifier of the device's form factor, e.g., PHONE. * `issueId` -// (string): the id an error was assigned to. The value should -// correspond to the `{issue}` component of the issue name. * -// `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, -// 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary -// system-on-chip, e.g., Samsung. Reference +// further, as it may result in users being counted multiple times. This +// value is not rounded, however it may be an approximation. **Required +// dimension:** This dimension must be always specified in all requests +// in the `dimensions` field in query requests. * `reportType` (string): +// the type of error. The value should correspond to one of the possible +// values in ErrorType. **Supported dimensions:** * `apiLevel` (string): +// the API level of Android that was running on the user's device. * +// `versionCode` (int64): version of the app that was running on the +// user's device. * `deviceModel` (string): unique identifier of the +// user's device model. * `deviceType` (string): identifier of the +// device's form factor, e.g., PHONE. * `issueId` (string): the id an +// error was assigned to. The value should correspond to the `{issue}` +// component of the issue name. * `deviceRamBucket` (int64): RAM of the +// device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` +// (string): Make of the device's primary system-on-chip, e.g., Samsung. +// Reference // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) // * `deviceSocModel` (string): Model of the device's primary // system-on-chip, e.g., "Exynos 2100". Reference @@ -771,17 +832,19 @@ func (s *GooglePlayDeveloperReportingV1alpha1ErrorReport) MarshalJSON() ([]byte, // they app was doing any work on the device, i.e., not just active // foreground usage but also background work. Care must be taken not to // aggregate this count further, as it may result in users being counted -// multiple times. **Supported dimensions:** * `apiLevel` (string): the -// API level of Android that was running on the user's device. * -// `versionCode` (int64): version of the app that was running on the -// user's device. * `deviceModel` (string): unique identifier of the -// user's device model. * `deviceType` (string): the type (also known as -// form factor) of the user's device. * `countryCode` (string): the -// country or region of the user's device based on their IP address, -// represented as a 2-letter ISO-3166 code (e.g. US for the United -// States). * `deviceRamBucket` (int64): RAM of the device, in MB, in -// buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the -// device's primary system-on-chip, e.g., Samsung. Reference +// multiple times. The value is rounded to the nearest multiple of 10, +// 100, 1,000 or 1,000,000, depending on the magnitude of the value. +// **Supported dimensions:** * `apiLevel` (string): the API level of +// Android that was running on the user's device. * `versionCode` +// (int64): version of the app that was running on the user's device. * +// `deviceModel` (string): unique identifier of the user's device model. +// * `deviceType` (string): the type (also known as form factor) of the +// user's device. * `countryCode` (string): the country or region of the +// user's device based on their IP address, represented as a 2-letter +// ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` +// (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * +// `deviceSocMake` (string): Make of the device's primary +// system-on-chip, e.g., Samsung. Reference // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) // * `deviceSocModel` (string): Model of the device's primary // system-on-chip, e.g., "Exynos 2100". Reference @@ -954,6 +1017,10 @@ type GooglePlayDeveloperReportingV1alpha1MetricValue struct { // DecimalValue: Actual value, represented as a decimal number. DecimalValue *GoogleTypeDecimal `json:"decimalValue,omitempty"` + // DecimalValueConfidenceInterval: Confidence interval of a value that + // is of type type.Decimal. + DecimalValueConfidenceInterval *GooglePlayDeveloperReportingV1alpha1DecimalConfidenceInterval `json:"decimalValueConfidenceInterval,omitempty"` + // Metric: Name of the metric. Metric string `json:"metric,omitempty"` @@ -1085,7 +1152,8 @@ type GooglePlayDeveloperReportingV1alpha1QueryAnrRateMetricSetRequest struct { // counted in this metric if they used the app in the foreground during // the aggregation period. Care must be taken not to aggregate this // count further, as it may result in users being counted multiple - // times. + // times. The value is rounded to the nearest multiple of 10, 100, 1,000 + // or 1,000,000, depending on the magnitude of the value. Metrics []string `json:"metrics,omitempty"` // PageSize: Maximum size of the returned data. If unspecified, at most @@ -1250,7 +1318,9 @@ type GooglePlayDeveloperReportingV1alpha1QueryCrashRateMetricSetRequest struct { // period. An app is considered to be in active use if it is displaying // any activity or executing any foreground service. Care must be taken // not to aggregate this count further, as it may result in users being - // counted multiple times. + // counted multiple times. The value is rounded to the nearest multiple + // of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the + // value. Metrics []string `json:"metrics,omitempty"` // PageSize: Maximum size of the returned data. If unspecified, at most @@ -1394,7 +1464,7 @@ type GooglePlayDeveloperReportingV1alpha1QueryErrorCountMetricSetRequest struct // `distinctUsers` (`google.type.Decimal`): Count of distinct users for // which reports have been received. Care must be taken not to aggregate // this count further, as it may result in users being counted multiple - // times. + // times. This value is not rounded, however it may be an approximation. Metrics []string `json:"metrics,omitempty"` // PageSize: Maximum size of the returned data. If unspecified, at most @@ -1524,7 +1594,9 @@ type GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetReques // metric if they app was doing any work on the device, i.e., not just // active foreground usage but also background work. Care must be taken // not to aggregate this count further, as it may result in users being - // counted multiple times. + // counted multiple times. The value is rounded to the nearest multiple + // of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the + // value. Metrics []string `json:"metrics,omitempty"` // PageSize: Maximum size of the returned data. If unspecified, at most @@ -1625,10 +1697,9 @@ func (s *GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetRe return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMe -// tricSetRequest: Request message for -// QueryStuckBackgroundWakelockRateMetricSet. -type GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetRequest struct { +// GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetReq +// uest: Request message for QuerySlowRenderingRateMetricSet. +type GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRequest struct { // Dimensions: Dimensions to slice the data by. **Supported // dimensions:** * `apiLevel` (string): the API level of Android that // was running on the user's device. * `versionCode` (int64): version of @@ -1663,22 +1734,32 @@ type GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricS Filter string `json:"filter,omitempty"` // Metrics: Metrics to aggregate. **Supported metrics:** * - // `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct - // users in the aggregation period that had a wakelock held in the - // background for longer than 1 hour. * - // `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling - // average value of `stuckBgWakelockRate` in the last 7 days. The daily - // values are weighted by the count of distinct users for the day. * - // `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling - // average value of `stuckBgWakelockRate` in the last 28 days. The daily - // values are weighted by the count of distinct users for the day. * + // `slowRenderingRate20Fps` (`google.type.Decimal`): Percentage of + // distinct users in the aggregation period that had a slow rendering. * + // `slowRenderingRate20Fps7dUserWeighted` (`google.type.Decimal`): + // Rolling average value of `slowRenderingRate20Fps` in the last 7 days. + // The daily values are weighted by the count of distinct users for the + // day. * `slowRenderingRate20Fps28dUserWeighted` + // (`google.type.Decimal`): Rolling average value of + // `slowRenderingRate20Fps` in the last 28 days. The daily values are + // weighted by the count of distinct users for the day. * + // `slowRenderingRate30Fps` (`google.type.Decimal`): Percentage of + // distinct users in the aggregation period that had a slow rendering. * + // `slowRenderingRate30Fps7dUserWeighted` (`google.type.Decimal`): + // Rolling average value of `slowRenderingRate30Fps` in the last 7 days. + // The daily values are weighted by the count of distinct users for the + // day. * `slowRenderingRate30Fps28dUserWeighted` + // (`google.type.Decimal`): Rolling average value of + // `slowRenderingRate30Fps` in the last 28 days. The daily values are + // weighted by the count of distinct users for the day. * // `distinctUsers` (`google.type.Decimal`): Count of distinct users in // the aggregation period that were used as normalization value for the - // `stuckBgWakelockRate` metric. A user is counted in this metric if - // they app was doing any work on the device, i.e., not just active - // foreground usage but also background work. Care must be taken not to - // aggregate this count further, as it may result in users being counted - // multiple times. + // `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is + // counted in this metric if their app was launched in the device. Care + // must be taken not to aggregate this count further, as it may result + // in users being counted multiple times. The value is rounded to the + // nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the + // magnitude of the value. Metrics []string `json:"metrics,omitempty"` // PageSize: Maximum size of the returned data. If unspecified, at most @@ -1703,8 +1784,8 @@ type GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricS // from all publicly released Android versions. This is the default. // Supports all the above dimensions. * `APP_TESTERS` To select data // from users who have opted in to be testers. Supports all the above - // dimensions. * `OS_BETA` To select data from beta android versions - // only, excluding data from released android versions. Only the + // dimensions. * `OS_BETA` To select data from beta Android versions + // only, excluding data from released Android versions. Only the // following dimensions are supported: * `versionCode` (int64): version // of the app that was running on the user's device. * `osBuild` // (string): OS build of the user's device, e.g., "T1B2.220916.004". @@ -1737,16 +1818,15 @@ type GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricS NullFields []string `json:"-"` } -func (s *GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetRequest) MarshalJSON() ([]byte, error) { - type NoMethod GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetRequest +func (s *GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRequest) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMe -// tricSetResponse: Response message for -// QueryStuckBackgroundWakelockRateMetricSet. -type GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetResponse struct { +// GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRes +// ponse: Response message for QuerySlowRenderingRateMetricSet. +type GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetResponse struct { // NextPageToken: Continuation token to fetch the next page of data. NextPageToken string `json:"nextPageToken,omitempty"` @@ -1774,26 +1854,106 @@ type GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricS NullFields []string `json:"-"` } -func (s *GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetResponse) MarshalJSON() ([]byte, error) { - type NoMethod GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetResponse +func (s *GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse: -// Response with a paginated list of issues that matched the request. -type GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse struct { - // ErrorIssues: ErrorIssues that were found. - ErrorIssues []*GooglePlayDeveloperReportingV1alpha1ErrorIssue `json:"errorIssues,omitempty"` +// GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRequest +// : Request message for QuerySlowStartRateMetricSet. +type GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRequest struct { + // Dimensions: Dimensions to slice the data by. **Supported + // dimensions:** * `apiLevel` (string): the API level of Android that + // was running on the user's device. * `versionCode` (int64): version of + // the app that was running on the user's device. * `deviceModel` + // (string): unique identifier of the user's device model. * + // `deviceType` (string): the type (also known as form factor) of the + // user's device. * `countryCode` (string): the country or region of the + // user's device based on their IP address, represented as a 2-letter + // ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` + // (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * + // `deviceSocMake` (string): Make of the device's primary + // system-on-chip, e.g., Samsung. Reference + // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) + // * `deviceSocModel` (string): Model of the device's primary + // system-on-chip, e.g., "Exynos 2100". Reference + // (https://developer.android.com/reference/android/os/Build#SOC_MODEL) + // * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. + // * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo + // 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., + // ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., + // Mali. * `deviceGpuVersion` (string): Version of the device's GPU, + // e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the + // device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES + // version of the device, e.g., "196610". * `deviceScreenSize` (string): + // Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` + // (string): Screen density of the device, e.g., mdpi, hdpi. + Dimensions []string `json:"dimensions,omitempty"` - // NextPageToken: Continuation token to fetch the next page of data. - NextPageToken string `json:"nextPageToken,omitempty"` + // Filter: Filters to apply to data. The filtering expression follows + // AIP-160 (https://google.aip.dev/160) standard and supports filtering + // by equality of all breakdown dimensions. + Filter string `json:"filter,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Metrics: Metrics to aggregate. **Supported metrics:** * + // `slowStartRate` (`google.type.Decimal`): Percentage of distinct users + // in the aggregation period that had a slow start. * + // `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling + // average value of `slowStartRate` in the last 7 days. The daily values + // are weighted by the count of distinct users for the day. * + // `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling + // average value of `slowStartRate` in the last 28 days. The daily + // values are weighted by the count of distinct users for the day. * + // `distinctUsers` (`google.type.Decimal`): Count of distinct users in + // the aggregation period that were used as normalization value for the + // `slowStartRate` metric. A user is counted in this metric if their app + // was launched in the device. Care must be taken not to aggregate this + // count further, as it may result in users being counted multiple + // times. The value is rounded to the nearest multiple of 10, 100, 1,000 + // or 1,000,000, depending on the magnitude of the value. + Metrics []string `json:"metrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorIssues") to + // PageSize: Maximum size of the returned data. If unspecified, at most + // 1000 rows will be returned. The maximum value is 100000; values above + // 100000 will be coerced to 100000. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: A page token, received from a previous call. Provide this + // to retrieve the subsequent page. When paginating, all other + // parameters provided to the request must match the call that provided + // the page token. + PageToken string `json:"pageToken,omitempty"` + + // TimelineSpec: Specification of the timeline aggregation parameters. + // **Supported aggregation periods:** * DAILY: metrics are aggregated in + // calendar date intervals. Due to historical constraints, the only + // supported timezone is `America/Los_Angeles`. + TimelineSpec *GooglePlayDeveloperReportingV1alpha1TimelineSpec `json:"timelineSpec,omitempty"` + + // UserCohort: User view to select. The output data will correspond to + // the selected view. **Supported values:** * `OS_PUBLIC` To select data + // from all publicly released Android versions. This is the default. + // Supports all the above dimensions. * `APP_TESTERS` To select data + // from users who have opted in to be testers. Supports all the above + // dimensions. * `OS_BETA` To select data from beta Android versions + // only, excluding data from released Android versions. Only the + // following dimensions are supported: * `versionCode` (int64): version + // of the app that was running on the user's device. * `osBuild` + // (string): OS build of the user's device, e.g., "T1B2.220916.004". + // + // Possible values: + // "USER_COHORT_UNSPECIFIED" - Unspecified User cohort. This will + // automatically choose the default value. + // "OS_PUBLIC" - This is default view. Contains data from public + // released android versions only. + // "OS_BETA" - This is the view with just android beta data excluding + // released OS version data. + // "APP_TESTERS" - This is the view with data only from users who have + // opted in to be testers for a given app, excluding OS beta data. + UserCohort string `json:"userCohort,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dimensions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1801,36 +1961,35 @@ type GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ErrorIssues") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Dimensions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse +func (s *GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRequest) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse: -// Response with a paginated list of error reports matching the search -// query. -type GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse struct { - // ErrorReports: Error reports that were found. - ErrorReports []*GooglePlayDeveloperReportingV1alpha1ErrorReport `json:"errorReports,omitempty"` - - // NextPageToken: Page token to fetch the next page of reports. +// GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRespons +// e: Response message for QuerySlowStartRateMetricSet. +type GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetResponse struct { + // NextPageToken: Continuation token to fetch the next page of data. NextPageToken string `json:"nextPageToken,omitempty"` + // Rows: Returned rows of data. + Rows []*GooglePlayDeveloperReportingV1alpha1MetricsRow `json:"rows,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ErrorReports") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1838,7 +1997,7 @@ type GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ErrorReports") to include + // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -1847,46 +2006,289 @@ type GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse struct { NullFields []string `json:"-"` } -func (s *GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse +func (s *GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricS -// et: Singleton resource representing the set of Stuck Background -// Wakelocks metrics. This metric set contains PowerManager wakelock -// duration data combined with process state data to produce a -// normalized metric independent of user counts. **Supported aggregation -// periods:** * DAILY: metrics are aggregated in calendar date -// intervals. Due to historical constraints, the only supported timezone -// is `America/Los_Angeles`. **Supported metrics:** * -// `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct -// users in the aggregation period that had a wakelock held in the -// background for longer than 1 hour. * -// `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling -// average value of `stuckBgWakelockRate` in the last 7 days. The daily -// values are weighted by the count of distinct users for the day. * -// `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling -// average value of `stuckBgWakelockRate` in the last 28 days. The daily -// values are weighted by the count of distinct users for the day. * -// `distinctUsers` (`google.type.Decimal`): Count of distinct users in -// the aggregation period that were used as normalization value for the -// `stuckBgWakelockRate` metric. A user is counted in this metric if -// their app was doing any work on the device, i.e., not just active -// foreground usage but also background work. Care must be taken not to -// aggregate this count further, as it may result in users being counted -// multiple times. **Supported dimensions:** * `apiLevel` (string): the -// API level of Android that was running on the user's device. * -// `versionCode` (int64): version of the app that was running on the -// user's device. * `deviceModel` (string): unique identifier of the -// user's device model. * `deviceType` (string): the type (also known as -// form factor) of the user's device. * `countryCode` (string): the -// country or region of the user's device based on their IP address, -// represented as a 2-letter ISO-3166 code (e.g. US for the United -// States). * `deviceRamBucket` (int64): RAM of the device, in MB, in -// buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the -// device's primary system-on-chip, e.g., Samsung. Reference +// GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMe +// tricSetRequest: Request message for +// QueryStuckBackgroundWakelockRateMetricSet. +type GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetRequest struct { + // Dimensions: Dimensions to slice the data by. **Supported + // dimensions:** * `apiLevel` (string): the API level of Android that + // was running on the user's device. * `versionCode` (int64): version of + // the app that was running on the user's device. * `deviceModel` + // (string): unique identifier of the user's device model. * + // `deviceType` (string): the type (also known as form factor) of the + // user's device. * `countryCode` (string): the country or region of the + // user's device based on their IP address, represented as a 2-letter + // ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` + // (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * + // `deviceSocMake` (string): Make of the device's primary + // system-on-chip, e.g., Samsung. Reference + // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) + // * `deviceSocModel` (string): Model of the device's primary + // system-on-chip, e.g., "Exynos 2100". Reference + // (https://developer.android.com/reference/android/os/Build#SOC_MODEL) + // * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. + // * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo + // 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., + // ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., + // Mali. * `deviceGpuVersion` (string): Version of the device's GPU, + // e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the + // device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES + // version of the device, e.g., "196610". * `deviceScreenSize` (string): + // Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` + // (string): Screen density of the device, e.g., mdpi, hdpi. + Dimensions []string `json:"dimensions,omitempty"` + + // Filter: Filters to apply to data. The filtering expression follows + // AIP-160 (https://google.aip.dev/160) standard and supports filtering + // by equality of all breakdown dimensions. + Filter string `json:"filter,omitempty"` + + // Metrics: Metrics to aggregate. **Supported metrics:** * + // `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct + // users in the aggregation period that had a wakelock held in the + // background for longer than 1 hour. * + // `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling + // average value of `stuckBgWakelockRate` in the last 7 days. The daily + // values are weighted by the count of distinct users for the day. * + // `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling + // average value of `stuckBgWakelockRate` in the last 28 days. The daily + // values are weighted by the count of distinct users for the day. * + // `distinctUsers` (`google.type.Decimal`): Count of distinct users in + // the aggregation period that were used as normalization value for the + // `stuckBgWakelockRate` metric. A user is counted in this metric if + // they app was doing any work on the device, i.e., not just active + // foreground usage but also background work. Care must be taken not to + // aggregate this count further, as it may result in users being counted + // multiple times. The value is rounded to the nearest multiple of 10, + // 100, 1,000 or 1,000,000, depending on the magnitude of the value. + Metrics []string `json:"metrics,omitempty"` + + // PageSize: Maximum size of the returned data. If unspecified, at most + // 1000 rows will be returned. The maximum value is 100000; values above + // 100000 will be coerced to 100000. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: A page token, received from a previous call. Provide this + // to retrieve the subsequent page. When paginating, all other + // parameters provided to the request must match the call that provided + // the page token. + PageToken string `json:"pageToken,omitempty"` + + // TimelineSpec: Specification of the timeline aggregation parameters. + // **Supported aggregation periods:** * DAILY: metrics are aggregated in + // calendar date intervals. Due to historical constraints, the only + // supported timezone is `America/Los_Angeles`. + TimelineSpec *GooglePlayDeveloperReportingV1alpha1TimelineSpec `json:"timelineSpec,omitempty"` + + // UserCohort: User view to select. The output data will correspond to + // the selected view. **Supported values:** * `OS_PUBLIC` To select data + // from all publicly released Android versions. This is the default. + // Supports all the above dimensions. * `APP_TESTERS` To select data + // from users who have opted in to be testers. Supports all the above + // dimensions. * `OS_BETA` To select data from beta android versions + // only, excluding data from released android versions. Only the + // following dimensions are supported: * `versionCode` (int64): version + // of the app that was running on the user's device. * `osBuild` + // (string): OS build of the user's device, e.g., "T1B2.220916.004". + // + // Possible values: + // "USER_COHORT_UNSPECIFIED" - Unspecified User cohort. This will + // automatically choose the default value. + // "OS_PUBLIC" - This is default view. Contains data from public + // released android versions only. + // "OS_BETA" - This is the view with just android beta data excluding + // released OS version data. + // "APP_TESTERS" - This is the view with data only from users who have + // opted in to be testers for a given app, excluding OS beta data. + UserCohort string `json:"userCohort,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dimensions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dimensions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetRequest) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMe +// tricSetResponse: Response message for +// QueryStuckBackgroundWakelockRateMetricSet. +type GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetResponse struct { + // NextPageToken: Continuation token to fetch the next page of data. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Rows: Returned rows of data. + Rows []*GooglePlayDeveloperReportingV1alpha1MetricsRow `json:"rows,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse: +// Response with a paginated list of issues that matched the request. +type GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse struct { + // ErrorIssues: ErrorIssues that were found. + ErrorIssues []*GooglePlayDeveloperReportingV1alpha1ErrorIssue `json:"errorIssues,omitempty"` + + // NextPageToken: Continuation token to fetch the next page of data. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ErrorIssues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorIssues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse: +// Response with a paginated list of error reports matching the search +// query. +type GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse struct { + // ErrorReports: Error reports that were found. + ErrorReports []*GooglePlayDeveloperReportingV1alpha1ErrorReport `json:"errorReports,omitempty"` + + // NextPageToken: Page token to fetch the next page of reports. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ErrorReports") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorReports") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet: +// Singleton resource representing the set of Slow Rendering metrics. +// This metric set contains low-level rendering data captured by +// SurafeFlinger. Sessions are evaluated based on the present-to-present +// histogram of frames handled by any SurfaceFlinger layer owned by the +// app. A slow session is a session where more than 25% of frames for +// the session did not meet the metric's target frame rate (either +// 20fps, or 30fps). *NOTE:* This metric set is only available for +// games. **Supported aggregation periods:** * DAILY: metrics are +// aggregated in calendar date intervals. Due to historical constraints, +// the only supported timezone is `America/Los_Angeles`. **Supported +// metrics:** * `slowRenderingRate20Fps` (`google.type.Decimal`): +// Percentage of distinct users in the aggregation period that had slow +// rendering. * `slowRenderingRate20Fps7dUserWeighted` +// (`google.type.Decimal`): Rolling average value of +// `slowRenderingRate20Fps` in the last 7 days. The daily values are +// weighted by the count of distinct users for the day. * +// `slowRenderingRate20Fps28dUserWeighted` (`google.type.Decimal`): +// Rolling average value of `slowRenderingRate20Fps` in the last 28 +// days. The daily values are weighted by the count of distinct users +// for the day. * `slowRenderingRate30Fps` (`google.type.Decimal`): +// Percentage of distinct users in the aggregation period that had slow +// rendering. * `slowRenderingRate30Fps7dUserWeighted` +// (`google.type.Decimal`): Rolling average value of +// `slowRenderingRate30Fps` in the last 7 days. The daily values are +// weighted by the count of distinct users for the day. * +// `slowRenderingRate30Fps28dUserWeighted` (`google.type.Decimal`): +// Rolling average value of `slowRenderingRate30Fps` in the last 28 +// days. The daily values are weighted by the count of distinct users +// for the day. * `distinctUsers` (`google.type.Decimal`): Count of +// distinct users in the aggregation period that were used as +// normalization value for the +// `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is +// counted in this metric if their app rendered any frames. Care must be +// taken not to aggregate this count further, as it may result in users +// being counted multiple times. The value is rounded to the nearest +// multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude +// of the value. **Supported dimensions:** * `apiLevel` (string): the +// API level of Android that was running on the user's device. * +// `versionCode` (int64): version of the app that was running on the +// user's device. * `deviceModel` (string): unique identifier of the +// user's device model. * `deviceType` (string): the type (also known as +// form factor) of the user's device. * `countryCode` (string): the +// country or region of the user's device based on their IP address, +// represented as a 2-letter ISO-3166 code (e.g. US for the United +// States). * `deviceRamBucket` (int64): RAM of the device, in MB, in +// buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the +// device's primary system-on-chip, e.g., Samsung. Reference // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) // * `deviceSocModel` (string): Model of the device's primary // system-on-chip, e.g., "Exynos 2100". Reference @@ -1903,12 +2305,12 @@ func (s *GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse) Marshal // (string): Screen density of the device, e.g., mdpi, hdpi. **Required // permissions**: to access this resource, the calling user needs the // _View app information (read-only)_ permission for the app. -type GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet struct { +type GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet struct { // FreshnessInfo: Summary about data freshness in this resource. FreshnessInfo *GooglePlayDeveloperReportingV1alpha1FreshnessInfo `json:"freshnessInfo,omitempty"` // Name: The resource name. Format: - // apps/{app}/stuckBackgroundWakelockRateMetricSet + // apps/{app}/slowRenderingRateMetricSet Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -1932,23 +2334,195 @@ type GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet st NullFields []string `json:"-"` } -func (s *GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet) MarshalJSON() ([]byte, error) { - type NoMethod GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet +func (s *GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1alpha1TimelineSpec: Specification of -// the time-related aggregation parameters of a timeline. Timelines have -// an aggregation period (`DAILY`, `HOURLY`, etc) which defines how -// events are aggregated in metrics. The points in a timeline are -// defined by the starting DateTime of the aggregation period. The -// duration is implicit in the AggregationPeriod. Hourly aggregation -// periods, when supported by a metric set, are always specified in UTC -// to avoid ambiguities around daylight saving time transitions, where -// an hour is skipped when adopting DST, and repeated when abandoning -// DST. For example, the timestamp '2021-11-07 01:00:00 -// America/Los_Angeles' is ambiguous since it can correspond to +// GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet: Singleton +// resource representing the set of Slow Start metrics. This metric set +// contains Activity start duration data. **Supported aggregation +// periods:** * DAILY: metrics are aggregated in calendar date +// intervals. Due to historical constraints, the only supported timezone +// is `America/Los_Angeles`. **Supported metrics:** * `slowStartRate` +// (`google.type.Decimal`): Percentage of distinct users in the +// aggregation period that had a slow start. * +// `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling +// average value of `slowStartRate` in the last 7 days. The daily values +// are weighted by the count of distinct users for the day. * +// `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling +// average value of `slowStartRate` in the last 28 days. The daily +// values are weighted by the count of distinct users for the day. * +// `distinctUsers` (`google.type.Decimal`): Count of distinct users in +// the aggregation period that were used as normalization value for the +// `slowStartRate` metric. A user is counted in this metric if their app +// was launched in the device. Care must be taken not to aggregate this +// count further, as it may result in users being counted multiple +// times. The value is rounded to the nearest multiple of 10, 100, 1,000 +// or 1,000,000, depending on the magnitude of the value. **Required +// dimension:** This dimension must be specified with each request for +// the request to be valid. * `startType` (string): the type of start +// that was measured. Valid types are `HOT`, `WARM` and `COLD`. +// **Supported dimensions:** * `apiLevel` (string): the API level of +// Android that was running on the user's device. * `versionCode` +// (int64): version of the app that was running on the user's device. * +// `deviceModel` (string): unique identifier of the user's device model. +// * `deviceType` (string): the type (also known as form factor) of the +// user's device. * `countryCode` (string): the country or region of the +// user's device based on their IP address, represented as a 2-letter +// ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` +// (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * +// `deviceSocMake` (string): Make of the device's primary +// system-on-chip, e.g., Samsung. Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) +// * `deviceSocModel` (string): Model of the device's primary +// system-on-chip, e.g., "Exynos 2100". Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MODEL) +// * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. +// * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo +// 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., +// ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., +// Mali. * `deviceGpuVersion` (string): Version of the device's GPU, +// e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the +// device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES +// version of the device, e.g., "196610". * `deviceScreenSize` (string): +// Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` +// (string): Screen density of the device, e.g., mdpi, hdpi. **Required +// permissions**: to access this resource, the calling user needs the +// _View app information (read-only)_ permission for the app. +type GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet struct { + // FreshnessInfo: Summary about data freshness in this resource. + FreshnessInfo *GooglePlayDeveloperReportingV1alpha1FreshnessInfo `json:"freshnessInfo,omitempty"` + + // Name: The resource name. Format: apps/{app}/slowStartRateMetricSet + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FreshnessInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FreshnessInfo") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricS +// et: Singleton resource representing the set of Stuck Background +// Wakelocks metrics. This metric set contains PowerManager wakelock +// duration data combined with process state data to produce a +// normalized metric independent of user counts. **Supported aggregation +// periods:** * DAILY: metrics are aggregated in calendar date +// intervals. Due to historical constraints, the only supported timezone +// is `America/Los_Angeles`. **Supported metrics:** * +// `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct +// users in the aggregation period that had a wakelock held in the +// background for longer than 1 hour. * +// `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling +// average value of `stuckBgWakelockRate` in the last 7 days. The daily +// values are weighted by the count of distinct users for the day. * +// `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling +// average value of `stuckBgWakelockRate` in the last 28 days. The daily +// values are weighted by the count of distinct users for the day. * +// `distinctUsers` (`google.type.Decimal`): Count of distinct users in +// the aggregation period that were used as normalization value for the +// `stuckBgWakelockRate` metric. A user is counted in this metric if +// their app was doing any work on the device, i.e., not just active +// foreground usage but also background work. Care must be taken not to +// aggregate this count further, as it may result in users being counted +// multiple times. The value is rounded to the nearest multiple of 10, +// 100, 1,000 or 1,000,000, depending on the magnitude of the value. +// **Supported dimensions:** * `apiLevel` (string): the API level of +// Android that was running on the user's device. * `versionCode` +// (int64): version of the app that was running on the user's device. * +// `deviceModel` (string): unique identifier of the user's device model. +// * `deviceType` (string): the type (also known as form factor) of the +// user's device. * `countryCode` (string): the country or region of the +// user's device based on their IP address, represented as a 2-letter +// ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` +// (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * +// `deviceSocMake` (string): Make of the device's primary +// system-on-chip, e.g., Samsung. Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) +// * `deviceSocModel` (string): Model of the device's primary +// system-on-chip, e.g., "Exynos 2100". Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MODEL) +// * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. +// * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo +// 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., +// ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., +// Mali. * `deviceGpuVersion` (string): Version of the device's GPU, +// e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the +// device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES +// version of the device, e.g., "196610". * `deviceScreenSize` (string): +// Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` +// (string): Screen density of the device, e.g., mdpi, hdpi. **Required +// permissions**: to access this resource, the calling user needs the +// _View app information (read-only)_ permission for the app. +type GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet struct { + // FreshnessInfo: Summary about data freshness in this resource. + FreshnessInfo *GooglePlayDeveloperReportingV1alpha1FreshnessInfo `json:"freshnessInfo,omitempty"` + + // Name: The resource name. Format: + // apps/{app}/stuckBackgroundWakelockRateMetricSet + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FreshnessInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FreshnessInfo") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1alpha1TimelineSpec: Specification of +// the time-related aggregation parameters of a timeline. Timelines have +// an aggregation period (`DAILY`, `HOURLY`, etc) which defines how +// events are aggregated in metrics. The points in a timeline are +// defined by the starting DateTime of the aggregation period. The +// duration is implicit in the AggregationPeriod. Hourly aggregation +// periods, when supported by a metric set, are always specified in UTC +// to avoid ambiguities around daylight saving time transitions, where +// an hour is skipped when adopting DST, and repeated when abandoning +// DST. For example, the timestamp '2021-11-07 01:00:00 +// America/Los_Angeles' is ambiguous since it can correspond to // '2021-11-07 08:00:00 UTC' or '2021-11-07 09:00:00 UTC'. Daily // aggregation periods require specifying a timezone which will // determine the precise instants of the start and the end of the day. @@ -4153,57 +4727,822 @@ func (c *VitalsErrorsReportsSearchCall) IfNoneMatch(entityTag string) *VitalsErr // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *VitalsErrorsReportsSearchCall) Context(ctx context.Context) *VitalsErrorsReportsSearchCall { +func (c *VitalsErrorsReportsSearchCall) Context(ctx context.Context) *VitalsErrorsReportsSearchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *VitalsErrorsReportsSearchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VitalsErrorsReportsSearchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/errorReports:search") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.vitals.errors.reports.search" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse.Server +// Response.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsErrorsReportsSearchCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Searches all error reports received for an app.", + // "flatPath": "v1alpha1/apps/{appsId}/errorReports:search", + // "httpMethod": "GET", + // "id": "playdeveloperreporting.vitals.errors.reports.search", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "A selection predicate to retrieve only a subset of the reports. For filtering basics, please check [AIP-160](https://google.aip.dev/160). ** Supported field names:** * `apiLevel`: Matches error reports that occurred in the requested Android versions (specified as the numeric API level) only. Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches error reports that occurred in the requested app version codes only. Example: `versionCode = 123 OR versionCode = 456`. * `deviceModel`: Matches error reports that occurred in the requested devices. Example: `deviceModel = \"walleye\" OR deviceModel = \"marlin\"`. * `deviceType`: Matches error reports that occurred in the requested device types. Example: `deviceType = \"PHONE\"`. * `errorIssueType`: Matches error reports of the requested types only. Valid candidates: `JAVA_CRASH`, `NATIVE_CRASH`, `ANR`. Example: `errorIssueType = JAVA_CRASH OR errorIssueType = NATIVE_CRASH`. * `errorIssueId`: Matches error reports belonging to the requested error issue ids only. Example: `errorIssueId = 1234 OR errorIssueId = 4567`. * `appProcessState`: Matches error reports on the process state of an app, indicating whether an app runs in the foreground (user-visible) or background. Valid candidates: `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. * `isUserPerceived`: Matches error reports that are user-perceived. It is not accompanied by any operators. Example: `isUserPerceived`. ** Supported operators:** * Comparison operators: The only supported comparison operator is equality. The filtered field must appear on the left hand side of the comparison. * Logical Operators: Logical operators `AND` and `OR` can be used to build complex filters following a conjunctive normal form (CNF), i.e., conjunctions of disjunctions. The `OR` operator takes precedence over `AND` so the use of parenthesis is not necessary when building CNF. The `OR` operator is only supported to build disjunctions that apply to the same field, e.g., `versionCode = 123 OR versionCode = ANR`. The filter expression `versionCode = 123 OR errorIssueType = ANR` is not valid. ** Examples ** Some valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)`", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.day": { + // "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.hours": { + // "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.minutes": { + // "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.month": { + // "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.nanos": { + // "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.seconds": { + // "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.timeZone.id": { + // "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.timeZone.version": { + // "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.utcOffset": { + // "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.year": { + // "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.day": { + // "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.hours": { + // "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.minutes": { + // "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.month": { + // "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.nanos": { + // "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.seconds": { + // "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.timeZone.id": { + // "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + // "location": "query", + // "type": "string" + // }, + // "interval.startTime.timeZone.version": { + // "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + // "location": "query", + // "type": "string" + // }, + // "interval.startTime.utcOffset": { + // "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // }, + // "interval.startTime.year": { + // "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageSize": { + // "description": "The maximum number of reports to return. The service may return fewer than this value. If unspecified, at most 50 reports will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `SearchErrorReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchErrorReports` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent resource of the reports, indicating the application for which they were received. Format: apps/{app}", + // "location": "path", + // "pattern": "^apps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+parent}/errorReports:search", + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *VitalsErrorsReportsSearchCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "playdeveloperreporting.vitals.excessivewakeuprate.get": + +type VitalsExcessivewakeuprateGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Describes the properties of the metric set. +// +// - name: The resource name. Format: +// apps/{app}/excessiveWakeupRateMetricSet. +func (r *VitalsExcessivewakeuprateService) Get(name string) *VitalsExcessivewakeuprateGetCall { + c := &VitalsExcessivewakeuprateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *VitalsExcessivewakeuprateGetCall) Fields(s ...googleapi.Field) *VitalsExcessivewakeuprateGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *VitalsExcessivewakeuprateGetCall) IfNoneMatch(entityTag string) *VitalsExcessivewakeuprateGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *VitalsExcessivewakeuprateGetCall) Context(ctx context.Context) *VitalsExcessivewakeuprateGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *VitalsExcessivewakeuprateGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VitalsExcessivewakeuprateGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.get" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet.Serv +// erResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsExcessivewakeuprateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Describes the properties of the metric set.", + // "flatPath": "v1alpha1/apps/{appsId}/excessiveWakeupRateMetricSet", + // "httpMethod": "GET", + // "id": "playdeveloperreporting.vitals.excessivewakeuprate.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet", + // "location": "path", + // "pattern": "^apps/[^/]+/excessiveWakeupRateMetricSet$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// method id "playdeveloperreporting.vitals.excessivewakeuprate.query": + +type VitalsExcessivewakeuprateQueryCall struct { + s *Service + name string + googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest *GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Query: Queries the metrics in the metric set. +// +// - name: The resource name. Format: +// apps/{app}/excessiveWakeupRateMetricSet. +func (r *VitalsExcessivewakeuprateService) Query(name string, googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest *GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetRequest) *VitalsExcessivewakeuprateQueryCall { + c := &VitalsExcessivewakeuprateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest = googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *VitalsExcessivewakeuprateQueryCall) Fields(s ...googleapi.Field) *VitalsExcessivewakeuprateQueryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *VitalsExcessivewakeuprateQueryCall) Context(ctx context.Context) *VitalsExcessivewakeuprateQueryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *VitalsExcessivewakeuprateQueryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VitalsExcessivewakeuprateQueryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:query") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.query" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSet +// Response or error will be non-nil. Any non-2xx status code is an +// error. Response headers are in either +// *GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSet +// Response.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *VitalsExcessivewakeuprateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Queries the metrics in the metric set.", + // "flatPath": "v1alpha1/apps/{appsId}/excessiveWakeupRateMetricSet:query", + // "httpMethod": "POST", + // "id": "playdeveloperreporting.vitals.excessivewakeuprate.query", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet", + // "location": "path", + // "pattern": "^apps/[^/]+/excessiveWakeupRateMetricSet$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}:query", + // "request": { + // "$ref": "GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetRequest" + // }, + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *VitalsExcessivewakeuprateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { + c.googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest.PageToken = pt + }(c.googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest.PageToken = x.NextPageToken + } +} + +// method id "playdeveloperreporting.vitals.slowrenderingrate.get": + +type VitalsSlowrenderingrateGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Describes the properties of the metric set. +// +// - name: The resource name. Format: +// apps/{app}/slowRenderingRateMetricSet. +func (r *VitalsSlowrenderingrateService) Get(name string) *VitalsSlowrenderingrateGetCall { + c := &VitalsSlowrenderingrateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *VitalsSlowrenderingrateGetCall) Fields(s ...googleapi.Field) *VitalsSlowrenderingrateGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *VitalsSlowrenderingrateGetCall) IfNoneMatch(entityTag string) *VitalsSlowrenderingrateGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *VitalsSlowrenderingrateGetCall) Context(ctx context.Context) *VitalsSlowrenderingrateGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *VitalsSlowrenderingrateGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VitalsSlowrenderingrateGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.vitals.slowrenderingrate.get" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet.Server +// Response.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsSlowrenderingrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Describes the properties of the metric set.", + // "flatPath": "v1alpha1/apps/{appsId}/slowRenderingRateMetricSet", + // "httpMethod": "GET", + // "id": "playdeveloperreporting.vitals.slowrenderingrate.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet", + // "location": "path", + // "pattern": "^apps/[^/]+/slowRenderingRateMetricSet$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha1/{+name}", + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1alpha1SlowRenderingRateMetricSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// method id "playdeveloperreporting.vitals.slowrenderingrate.query": + +type VitalsSlowrenderingrateQueryCall struct { + s *Service + name string + googleplaydeveloperreportingv1alpha1queryslowrenderingratemetricsetrequest *GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Query: Queries the metrics in the metric set. +// +// - name: The resource name. Format: +// apps/{app}/slowRenderingRateMetricSet. +func (r *VitalsSlowrenderingrateService) Query(name string, googleplaydeveloperreportingv1alpha1queryslowrenderingratemetricsetrequest *GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRequest) *VitalsSlowrenderingrateQueryCall { + c := &VitalsSlowrenderingrateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleplaydeveloperreportingv1alpha1queryslowrenderingratemetricsetrequest = googleplaydeveloperreportingv1alpha1queryslowrenderingratemetricsetrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *VitalsSlowrenderingrateQueryCall) Fields(s ...googleapi.Field) *VitalsSlowrenderingrateQueryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *VitalsSlowrenderingrateQueryCall) Context(ctx context.Context) *VitalsSlowrenderingrateQueryCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *VitalsErrorsReportsSearchCall) Header() http.Header { +func (c *VitalsSlowrenderingrateQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *VitalsErrorsReportsSearchCall) doRequest(alt string) (*http.Response, error) { +func (c *VitalsSlowrenderingrateQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1alpha1queryslowrenderingratemetricsetrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/errorReports:search") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}:query") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "playdeveloperreporting.vitals.errors.reports.search" call. +// Do executes the "playdeveloperreporting.vitals.slowrenderingrate.query" call. // Exactly one of -// *GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse.Server -// Response.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *VitalsErrorsReportsSearchCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse, error) { +// *GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRe +// sponse or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRe +// sponse.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *VitalsSlowrenderingrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4222,7 +5561,7 @@ func (c *VitalsErrorsReportsSearchCall) Do(opts ...googleapi.CallOption) (*Googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse{ + ret := &GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4234,157 +5573,28 @@ func (c *VitalsErrorsReportsSearchCall) Do(opts ...googleapi.CallOption) (*Googl } return ret, nil // { - // "description": "Searches all error reports received for an app.", - // "flatPath": "v1alpha1/apps/{appsId}/errorReports:search", - // "httpMethod": "GET", - // "id": "playdeveloperreporting.vitals.errors.reports.search", + // "description": "Queries the metrics in the metric set.", + // "flatPath": "v1alpha1/apps/{appsId}/slowRenderingRateMetricSet:query", + // "httpMethod": "POST", + // "id": "playdeveloperreporting.vitals.slowrenderingrate.query", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "A selection predicate to retrieve only a subset of the reports. For filtering basics, please check [AIP-160](https://google.aip.dev/160). ** Supported field names:** * `apiLevel`: Matches error reports that occurred in the requested Android versions (specified as the numeric API level) only. Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches error reports that occurred in the requested app version codes only. Example: `versionCode = 123 OR versionCode = 456`. * `deviceModel`: Matches error reports that occurred in the requested devices. Example: `deviceModel = \"walleye\" OR deviceModel = \"marlin\"`. * `deviceType`: Matches error reports that occurred in the requested device types. Example: `deviceType = \"PHONE\"`. * `errorIssueType`: Matches error reports of the requested types only. Valid candidates: `JAVA_CRASH`, `NATIVE_CRASH`, `ANR`. Example: `errorIssueType = JAVA_CRASH OR errorIssueType = NATIVE_CRASH`. * `errorIssueId`: Matches error reports belonging to the requested error issue ids only. Example: `errorIssueId = 1234 OR errorIssueId = 4567`. * `appProcessState`: Matches error reports on the process state of an app, indicating whether an app runs in the foreground (user-visible) or background. Valid candidates: `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. * `isUserPerceived`: Matches error reports that are user-perceived. It is not accompanied by any operators. Example: `isUserPerceived`. ** Supported operators:** * Comparison operators: The only supported comparison operator is equality. The filtered field must appear on the left hand side of the comparison. * Logical Operators: Logical operators `AND` and `OR` can be used to build complex filters following a conjunctive normal form (CNF), i.e., conjunctions of disjunctions. The `OR` operator takes precedence over `AND` so the use of parenthesis is not necessary when building CNF. The `OR` operator is only supported to build disjunctions that apply to the same field, e.g., `versionCode = 123 OR versionCode = ANR`. The filter expression `versionCode = 123 OR errorIssueType = ANR` is not valid. ** Examples ** Some valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)`", - // "location": "query", - // "type": "string" - // }, - // "interval.endTime.day": { - // "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.endTime.hours": { - // "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.endTime.minutes": { - // "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.endTime.month": { - // "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.endTime.nanos": { - // "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.endTime.seconds": { - // "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.endTime.timeZone.id": { - // "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", - // "location": "query", - // "type": "string" - // }, - // "interval.endTime.timeZone.version": { - // "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", - // "location": "query", - // "type": "string" - // }, - // "interval.endTime.utcOffset": { - // "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", - // "format": "google-duration", - // "location": "query", - // "type": "string" - // }, - // "interval.endTime.year": { - // "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.startTime.day": { - // "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.startTime.hours": { - // "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.startTime.minutes": { - // "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.startTime.month": { - // "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.startTime.nanos": { - // "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.startTime.seconds": { - // "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "interval.startTime.timeZone.id": { - // "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", - // "location": "query", - // "type": "string" - // }, - // "interval.startTime.timeZone.version": { - // "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", - // "location": "query", - // "type": "string" - // }, - // "interval.startTime.utcOffset": { - // "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", - // "format": "google-duration", - // "location": "query", - // "type": "string" - // }, - // "interval.startTime.year": { - // "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageSize": { - // "description": "The maximum number of reports to return. The service may return fewer than this value. If unspecified, at most 50 reports will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `SearchErrorReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchErrorReports` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. Parent resource of the reports, indicating the application for which they were received. Format: apps/{app}", + // "name": { + // "description": "Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet", // "location": "path", - // "pattern": "^apps/[^/]+$", + // "pattern": "^apps/[^/]+/slowRenderingRateMetricSet$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha1/{+parent}/errorReports:search", + // "path": "v1alpha1/{+name}:query", + // "request": { + // "$ref": "GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetRequest" + // }, // "response": { - // "$ref": "GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse" + // "$ref": "GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/playdeveloperreporting" @@ -4396,9 +5606,11 @@ func (c *VitalsErrorsReportsSearchCall) Do(opts ...googleapi.CallOption) (*Googl // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *VitalsErrorsReportsSearchCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse) error) error { +func (c *VitalsSlowrenderingrateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1alpha1QuerySlowRenderingRateMetricSetResponse) error) error { c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + defer func(pt string) { + c.googleplaydeveloperreportingv1alpha1queryslowrenderingratemetricsetrequest.PageToken = pt + }(c.googleplaydeveloperreportingv1alpha1queryslowrenderingratemetricsetrequest.PageToken) // reset paging to original point for { x, err := c.Do() if err != nil { @@ -4410,13 +5622,13 @@ func (c *VitalsErrorsReportsSearchCall) Pages(ctx context.Context, f func(*Googl if x.NextPageToken == "" { return nil } - c.PageToken(x.NextPageToken) + c.googleplaydeveloperreportingv1alpha1queryslowrenderingratemetricsetrequest.PageToken = x.NextPageToken } } -// method id "playdeveloperreporting.vitals.excessivewakeuprate.get": +// method id "playdeveloperreporting.vitals.slowstartrate.get": -type VitalsExcessivewakeuprateGetCall struct { +type VitalsSlowstartrateGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -4427,10 +5639,9 @@ type VitalsExcessivewakeuprateGetCall struct { // Get: Describes the properties of the metric set. // -// - name: The resource name. Format: -// apps/{app}/excessiveWakeupRateMetricSet. -func (r *VitalsExcessivewakeuprateService) Get(name string) *VitalsExcessivewakeuprateGetCall { - c := &VitalsExcessivewakeuprateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name. Format: apps/{app}/slowStartRateMetricSet. +func (r *VitalsSlowstartrateService) Get(name string) *VitalsSlowstartrateGetCall { + c := &VitalsSlowstartrateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -4438,7 +5649,7 @@ func (r *VitalsExcessivewakeuprateService) Get(name string) *VitalsExcessivewake // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *VitalsExcessivewakeuprateGetCall) Fields(s ...googleapi.Field) *VitalsExcessivewakeuprateGetCall { +func (c *VitalsSlowstartrateGetCall) Fields(s ...googleapi.Field) *VitalsSlowstartrateGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4448,7 +5659,7 @@ func (c *VitalsExcessivewakeuprateGetCall) Fields(s ...googleapi.Field) *VitalsE // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *VitalsExcessivewakeuprateGetCall) IfNoneMatch(entityTag string) *VitalsExcessivewakeuprateGetCall { +func (c *VitalsSlowstartrateGetCall) IfNoneMatch(entityTag string) *VitalsSlowstartrateGetCall { c.ifNoneMatch_ = entityTag return c } @@ -4456,21 +5667,21 @@ func (c *VitalsExcessivewakeuprateGetCall) IfNoneMatch(entityTag string) *Vitals // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *VitalsExcessivewakeuprateGetCall) Context(ctx context.Context) *VitalsExcessivewakeuprateGetCall { +func (c *VitalsSlowstartrateGetCall) Context(ctx context.Context) *VitalsSlowstartrateGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *VitalsExcessivewakeuprateGetCall) Header() http.Header { +func (c *VitalsSlowstartrateGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *VitalsExcessivewakeuprateGetCall) doRequest(alt string) (*http.Response, error) { +func (c *VitalsSlowstartrateGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -4496,17 +5707,17 @@ func (c *VitalsExcessivewakeuprateGetCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.get" call. +// Do executes the "playdeveloperreporting.vitals.slowstartrate.get" call. // Exactly one of -// *GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet or -// error will be non-nil. Any non-2xx status code is an error. Response +// *GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet.Serv -// erResponse.Header or (if a response was returned at all) in +// *GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet.ServerResp +// onse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *VitalsExcessivewakeuprateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet, error) { +func (c *VitalsSlowstartrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4525,7 +5736,7 @@ func (c *VitalsExcessivewakeuprateGetCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet{ + ret := &GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4538,24 +5749,24 @@ func (c *VitalsExcessivewakeuprateGetCall) Do(opts ...googleapi.CallOption) (*Go return ret, nil // { // "description": "Describes the properties of the metric set.", - // "flatPath": "v1alpha1/apps/{appsId}/excessiveWakeupRateMetricSet", + // "flatPath": "v1alpha1/apps/{appsId}/slowStartRateMetricSet", // "httpMethod": "GET", - // "id": "playdeveloperreporting.vitals.excessivewakeuprate.get", + // "id": "playdeveloperreporting.vitals.slowstartrate.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet", + // "description": "Required. The resource name. Format: apps/{app}/slowStartRateMetricSet", // "location": "path", - // "pattern": "^apps/[^/]+/excessiveWakeupRateMetricSet$", + // "pattern": "^apps/[^/]+/slowStartRateMetricSet$", // "required": true, // "type": "string" // } // }, // "path": "v1alpha1/{+name}", // "response": { - // "$ref": "GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet" + // "$ref": "GooglePlayDeveloperReportingV1alpha1SlowStartRateMetricSet" // }, // "scopes": [ // "https://www.googleapis.com/auth/playdeveloperreporting" @@ -4564,32 +5775,31 @@ func (c *VitalsExcessivewakeuprateGetCall) Do(opts ...googleapi.CallOption) (*Go } -// method id "playdeveloperreporting.vitals.excessivewakeuprate.query": +// method id "playdeveloperreporting.vitals.slowstartrate.query": -type VitalsExcessivewakeuprateQueryCall struct { - s *Service - name string - googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest *GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type VitalsSlowstartrateQueryCall struct { + s *Service + name string + googleplaydeveloperreportingv1alpha1queryslowstartratemetricsetrequest *GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } // Query: Queries the metrics in the metric set. // -// - name: The resource name. Format: -// apps/{app}/excessiveWakeupRateMetricSet. -func (r *VitalsExcessivewakeuprateService) Query(name string, googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest *GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetRequest) *VitalsExcessivewakeuprateQueryCall { - c := &VitalsExcessivewakeuprateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name. Format: apps/{app}/slowStartRateMetricSet. +func (r *VitalsSlowstartrateService) Query(name string, googleplaydeveloperreportingv1alpha1queryslowstartratemetricsetrequest *GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRequest) *VitalsSlowstartrateQueryCall { + c := &VitalsSlowstartrateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest = googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest + c.googleplaydeveloperreportingv1alpha1queryslowstartratemetricsetrequest = googleplaydeveloperreportingv1alpha1queryslowstartratemetricsetrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *VitalsExcessivewakeuprateQueryCall) Fields(s ...googleapi.Field) *VitalsExcessivewakeuprateQueryCall { +func (c *VitalsSlowstartrateQueryCall) Fields(s ...googleapi.Field) *VitalsSlowstartrateQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4597,21 +5807,21 @@ func (c *VitalsExcessivewakeuprateQueryCall) Fields(s ...googleapi.Field) *Vital // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *VitalsExcessivewakeuprateQueryCall) Context(ctx context.Context) *VitalsExcessivewakeuprateQueryCall { +func (c *VitalsSlowstartrateQueryCall) Context(ctx context.Context) *VitalsSlowstartrateQueryCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *VitalsExcessivewakeuprateQueryCall) Header() http.Header { +func (c *VitalsSlowstartrateQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *VitalsExcessivewakeuprateQueryCall) doRequest(alt string) (*http.Response, error) { +func (c *VitalsSlowstartrateQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -4619,7 +5829,7 @@ func (c *VitalsExcessivewakeuprateQueryCall) doRequest(alt string) (*http.Respon } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1alpha1queryslowstartratemetricsetrequest) if err != nil { return nil, err } @@ -4639,17 +5849,17 @@ func (c *VitalsExcessivewakeuprateQueryCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.query" call. +// Do executes the "playdeveloperreporting.vitals.slowstartrate.query" call. // Exactly one of -// *GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSet -// Response or error will be non-nil. Any non-2xx status code is an -// error. Response headers are in either -// *GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSet -// Response.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *VitalsExcessivewakeuprateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse, error) { +// *GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRespon +// se or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRespon +// se.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsSlowstartrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4668,7 +5878,7 @@ func (c *VitalsExcessivewakeuprateQueryCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse{ + ret := &GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4681,27 +5891,27 @@ func (c *VitalsExcessivewakeuprateQueryCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Queries the metrics in the metric set.", - // "flatPath": "v1alpha1/apps/{appsId}/excessiveWakeupRateMetricSet:query", + // "flatPath": "v1alpha1/apps/{appsId}/slowStartRateMetricSet:query", // "httpMethod": "POST", - // "id": "playdeveloperreporting.vitals.excessivewakeuprate.query", + // "id": "playdeveloperreporting.vitals.slowstartrate.query", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet", + // "description": "Required. The resource name. Format: apps/{app}/slowStartRateMetricSet", // "location": "path", - // "pattern": "^apps/[^/]+/excessiveWakeupRateMetricSet$", + // "pattern": "^apps/[^/]+/slowStartRateMetricSet$", // "required": true, // "type": "string" // } // }, // "path": "v1alpha1/{+name}:query", // "request": { - // "$ref": "GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetRequest" + // "$ref": "GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetRequest" // }, // "response": { - // "$ref": "GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse" + // "$ref": "GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/playdeveloperreporting" @@ -4713,11 +5923,11 @@ func (c *VitalsExcessivewakeuprateQueryCall) Do(opts ...googleapi.CallOption) (* // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *VitalsExcessivewakeuprateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse) error) error { +func (c *VitalsSlowstartrateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1alpha1QuerySlowStartRateMetricSetResponse) error) error { c.ctx_ = ctx defer func(pt string) { - c.googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest.PageToken = pt - }(c.googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest.PageToken) // reset paging to original point + c.googleplaydeveloperreportingv1alpha1queryslowstartratemetricsetrequest.PageToken = pt + }(c.googleplaydeveloperreportingv1alpha1queryslowstartratemetricsetrequest.PageToken) // reset paging to original point for { x, err := c.Do() if err != nil { @@ -4729,7 +5939,7 @@ func (c *VitalsExcessivewakeuprateQueryCall) Pages(ctx context.Context, f func(* if x.NextPageToken == "" { return nil } - c.googleplaydeveloperreportingv1alpha1queryexcessivewakeupratemetricsetrequest.PageToken = x.NextPageToken + c.googleplaydeveloperreportingv1alpha1queryslowstartratemetricsetrequest.PageToken = x.NextPageToken } } diff --git a/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json b/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json index 955b37fc371..424a7bb53cb 100644 --- a/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json +++ b/playdeveloperreporting/v1beta1/playdeveloperreporting-api.json @@ -266,6 +266,389 @@ } } }, + "errors": { + "resources": { + "counts": { + "methods": { + "get": { + "description": "Describes the properties of the metrics set.", + "flatPath": "v1beta1/apps/{appsId}/errorCountMetricSet", + "httpMethod": "GET", + "id": "playdeveloperreporting.vitals.errors.counts.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the errors metric set. Format: apps/{app}/errorCountMetricSet", + "location": "path", + "pattern": "^apps/[^/]+/errorCountMetricSet$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + }, + "query": { + "description": "Queries the metrics in the metrics set.", + "flatPath": "v1beta1/apps/{appsId}/errorCountMetricSet:query", + "httpMethod": "POST", + "id": "playdeveloperreporting.vitals.errors.counts.query", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/errorCountMetricSet", + "location": "path", + "pattern": "^apps/[^/]+/errorCountMetricSet$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:query", + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest" + }, + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + } + } + }, + "issues": { + "methods": { + "search": { + "description": "Searches all error issues in which reports have been grouped.", + "flatPath": "v1beta1/apps/{appsId}/errorIssues:search", + "httpMethod": "GET", + "id": "playdeveloperreporting.vitals.errors.issues.search", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "A selection predicate to retrieve only a subset of the issues. Counts in the returned error issues will only reflect occurrences that matched the filter. For filtering basics, please check [AIP-160](https://google.aip.dev/160). ** Supported field names:** * `apiLevel`: Matches error issues that occurred in the requested Android versions (specified as the numeric API level) only. Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches error issues that occurred in the requested app version codes only. Example: `versionCode = 123 OR versionCode = 456`. * `deviceModel`: Matches error issues that occurred in the requested devices. Example: `deviceModel = \"walleye\" OR deviceModel = \"marlin\"`. * `deviceType`: Matches error issues that occurred in the requested device types. Example: `deviceType = \"PHONE\"`. * `errorIssueType`: Matches error issues of the requested types only. Valid candidates: `CRASH`, `ANR`. Example: `errorIssueType = CRASH OR errorIssueType = ANR`. * `appProcessState`: Matches error issues on the process state of an app, indicating whether an app runs in the foreground (user-visible) or background. Valid candidates: `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. * `isUserPerceived`: Matches error issues that are user-perceived. It is not accompanied by any operators. Example: `isUserPerceived`. ** Supported operators:** * Comparison operators: The only supported comparison operator is equality. The filtered field must appear on the left hand side of the comparison. * Logical Operators: Logical operators `AND` and `OR` can be used to build complex filters following a conjunctive normal form (CNF), i.e., conjunctions of disjunctions. The `OR` operator takes precedence over `AND` so the use of parenthesis is not necessary when building CNF. The `OR` operator is only supported to build disjunctions that apply to the same field, e.g., `versionCode = 123 OR errorIssueType = ANR` is not a valid filter. ** Examples ** Some valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)`", + "location": "query", + "type": "string" + }, + "interval.endTime.day": { + "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.hours": { + "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.minutes": { + "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.month": { + "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.nanos": { + "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.seconds": { + "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.timeZone.id": { + "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "location": "query", + "type": "string" + }, + "interval.endTime.timeZone.version": { + "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "location": "query", + "type": "string" + }, + "interval.endTime.utcOffset": { + "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "interval.endTime.year": { + "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.day": { + "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.hours": { + "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.minutes": { + "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.month": { + "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.nanos": { + "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.seconds": { + "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.timeZone.id": { + "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "location": "query", + "type": "string" + }, + "interval.startTime.timeZone.version": { + "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "location": "query", + "type": "string" + }, + "interval.startTime.utcOffset": { + "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "interval.startTime.year": { + "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageSize": { + "description": "The maximum number of error issues to return. The service may return fewer than this value. If unspecified, at most 50 error issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource of the error issues, indicating the application for which they were received. Format: apps/{app}", + "location": "path", + "pattern": "^apps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/errorIssues:search", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + } + } + }, + "reports": { + "methods": { + "search": { + "description": "Searches all error reports received for an app.", + "flatPath": "v1beta1/apps/{appsId}/errorReports:search", + "httpMethod": "GET", + "id": "playdeveloperreporting.vitals.errors.reports.search", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "A selection predicate to retrieve only a subset of the reports. For filtering basics, please check [AIP-160](https://google.aip.dev/160). ** Supported field names:** * `apiLevel`: Matches error reports that occurred in the requested Android versions (specified as the numeric API level) only. Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches error reports that occurred in the requested app version codes only. Example: `versionCode = 123 OR versionCode = 456`. * `deviceModel`: Matches error reports that occurred in the requested devices. Example: `deviceModel = \"walleye\" OR deviceModel = \"marlin\"`. * `deviceType`: Matches error reports that occurred in the requested device types. Example: `deviceType = \"PHONE\"`. * `errorIssueType`: Matches error reports of the requested types only. Valid candidates: `JAVA_CRASH`, `NATIVE_CRASH`, `ANR`. Example: `errorIssueType = JAVA_CRASH OR errorIssueType = NATIVE_CRASH`. * `errorIssueId`: Matches error reports belonging to the requested error issue ids only. Example: `errorIssueId = 1234 OR errorIssueId = 4567`. * `appProcessState`: Matches error reports on the process state of an app, indicating whether an app runs in the foreground (user-visible) or background. Valid candidates: `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. * `isUserPerceived`: Matches error reports that are user-perceived. It is not accompanied by any operators. Example: `isUserPerceived`. ** Supported operators:** * Comparison operators: The only supported comparison operator is equality. The filtered field must appear on the left hand side of the comparison. * Logical Operators: Logical operators `AND` and `OR` can be used to build complex filters following a conjunctive normal form (CNF), i.e., conjunctions of disjunctions. The `OR` operator takes precedence over `AND` so the use of parenthesis is not necessary when building CNF. The `OR` operator is only supported to build disjunctions that apply to the same field, e.g., `versionCode = 123 OR versionCode = ANR`. The filter expression `versionCode = 123 OR errorIssueType = ANR` is not valid. ** Examples ** Some valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)`", + "location": "query", + "type": "string" + }, + "interval.endTime.day": { + "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.hours": { + "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.minutes": { + "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.month": { + "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.nanos": { + "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.seconds": { + "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.endTime.timeZone.id": { + "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "location": "query", + "type": "string" + }, + "interval.endTime.timeZone.version": { + "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "location": "query", + "type": "string" + }, + "interval.endTime.utcOffset": { + "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "interval.endTime.year": { + "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.day": { + "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.hours": { + "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.minutes": { + "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.month": { + "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.nanos": { + "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.seconds": { + "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "interval.startTime.timeZone.id": { + "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + "location": "query", + "type": "string" + }, + "interval.startTime.timeZone.version": { + "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + "location": "query", + "type": "string" + }, + "interval.startTime.utcOffset": { + "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "interval.startTime.year": { + "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageSize": { + "description": "The maximum number of reports to return. The service may return fewer than this value. If unspecified, at most 50 reports will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `SearchErrorReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchErrorReports` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent resource of the reports, indicating the application for which they were received. Format: apps/{app}", + "location": "path", + "pattern": "^apps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/errorReports:search", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + } + } + } + } + }, "excessivewakeuprate": { "methods": { "get": { @@ -323,6 +706,120 @@ } } }, + "slowrenderingrate": { + "methods": { + "get": { + "description": "Describes the properties of the metric set.", + "flatPath": "v1beta1/apps/{appsId}/slowRenderingRateMetricSet", + "httpMethod": "GET", + "id": "playdeveloperreporting.vitals.slowrenderingrate.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet", + "location": "path", + "pattern": "^apps/[^/]+/slowRenderingRateMetricSet$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + }, + "query": { + "description": "Queries the metrics in the metric set.", + "flatPath": "v1beta1/apps/{appsId}/slowRenderingRateMetricSet:query", + "httpMethod": "POST", + "id": "playdeveloperreporting.vitals.slowrenderingrate.query", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet", + "location": "path", + "pattern": "^apps/[^/]+/slowRenderingRateMetricSet$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:query", + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest" + }, + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + } + } + }, + "slowstartrate": { + "methods": { + "get": { + "description": "Describes the properties of the metric set.", + "flatPath": "v1beta1/apps/{appsId}/slowStartRateMetricSet", + "httpMethod": "GET", + "id": "playdeveloperreporting.vitals.slowstartrate.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/slowStartRateMetricSet", + "location": "path", + "pattern": "^apps/[^/]+/slowStartRateMetricSet$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + }, + "query": { + "description": "Queries the metrics in the metric set.", + "flatPath": "v1beta1/apps/{appsId}/slowStartRateMetricSet:query", + "httpMethod": "POST", + "id": "playdeveloperreporting.vitals.slowstartrate.query", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name. Format: apps/{app}/slowStartRateMetricSet", + "location": "path", + "pattern": "^apps/[^/]+/slowStartRateMetricSet$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:query", + "request": { + "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest" + }, + "response": { + "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/playdeveloperreporting" + ] + } + } + }, "stuckbackgroundwakelockrate": { "methods": { "get": { @@ -383,7 +880,7 @@ } } }, - "revision": "20230304", + "revision": "20230329", "rootUrl": "https://playdeveloperreporting.googleapis.com/", "schemas": { "GooglePlayDeveloperReportingV1beta1Anomaly": { @@ -417,7 +914,7 @@ "type": "object" }, "GooglePlayDeveloperReportingV1beta1AnrRateMetricSet": { - "description": "Singleton resource representing the set of ANR (Application not responding) metrics. This metric set contains ANRs data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `anrRate` and `userPerceivedAnrRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about crashes, another stability metric.", + "description": "Singleton resource representing the set of ANR (Application not responding) metrics. This metric set contains ANRs data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `anrRate` and `userPerceivedAnrRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about crashes, another stability metric.", "id": "GooglePlayDeveloperReportingV1beta1AnrRateMetricSet", "properties": { "freshnessInfo": { @@ -432,7 +929,7 @@ "type": "object" }, "GooglePlayDeveloperReportingV1beta1CrashRateMetricSet": { - "description": "Singleton resource representing the set of crashrate metrics. This metric set contains crashes data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `crashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `crashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about ANRs, another stability metric.", + "description": "Singleton resource representing the set of crashrate metrics. This metric set contains crashes data combined with usage data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `crashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `crashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors contains unnormalized version (absolute counts) of crashes. * vitals.errors contains normalized metrics about ANRs, another stability metric.", "id": "GooglePlayDeveloperReportingV1beta1CrashRateMetricSet", "properties": { "freshnessInfo": { @@ -446,6 +943,21 @@ }, "type": "object" }, + "GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval": { + "description": "Represents the confidence interval of a metric.", + "id": "GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval", + "properties": { + "lowerBound": { + "$ref": "GoogleTypeDecimal", + "description": "The confidence interval's lower bound." + }, + "upperBound": { + "$ref": "GoogleTypeDecimal", + "description": "The confidence interval's upper bound." + } + }, + "type": "object" + }, "GooglePlayDeveloperReportingV1beta1DimensionValue": { "description": "Represents the value of a single dimension.", "id": "GooglePlayDeveloperReportingV1beta1DimensionValue", @@ -470,8 +982,89 @@ }, "type": "object" }, + "GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet": { + "description": "Singleton resource representing the set of error report metrics. This metric set contains un-normalized error report counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. The default and only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `errorReportCount` (`google.type.Decimal`): Absolute count of individual error reports that have been received for an app. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which reports have been received. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. This value is not rounded, however it may be an approximation. **Required dimension:** This dimension must be always specified in all requests in the `dimensions` field in query requests. * `reportType` (string): the type of error. The value should correspond to one of the possible values in ErrorType. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): identifier of the device's form factor, e.g., PHONE. * `issueId` (string): the id an error was assigned to. The value should correspond to the `{issue}` component of the issue name. * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app. **Related metric sets:** * vitals.errors.counts contains normalized metrics about Crashes, another stability metric. * vitals.errors.counts contains normalized metrics about ANRs, another stability metric.", + "id": "GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet", + "properties": { + "freshnessInfo": { + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo", + "description": "Summary about data freshness in this resource." + }, + "name": { + "description": "The resource name. Format: apps/{app}/errorCountMetricSet", + "type": "string" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1ErrorIssue": { + "description": "A group of related ErrorReports received for an app. Similar error reports are grouped together into issues with a likely identical root cause. **Please note:** this resource is currently in Alpha. There could be changes to the issue grouping that would result in similar but more recent error reports being assigned to different issues. This could also cause some issues disappearing entirely and being replaced by new ones. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "id": "GooglePlayDeveloperReportingV1beta1ErrorIssue", + "properties": { + "cause": { + "description": "Cause of the issue. Depending on the type this can be either: * APPLICATION_NOT_RESPONDING: the type of ANR that occurred, e.g., 'Input dispatching timed out'. * CRASH: for Java unhandled exception errors, the type of the innermost exception that was thrown, e.g., IllegalArgumentException. For signals in native code, the signal that was raised, e.g. SIGSEGV.", + "type": "string" + }, + "location": { + "description": "Location where the issue happened. Depending on the type this can be either: * APPLICATION_NOT_RESPONDING: the name of the activity or service that stopped responding. * CRASH: the likely method name that caused the error.", + "type": "string" + }, + "name": { + "description": "The resource name of the issue. Format: apps/{app}/errorIssues/{issue}", + "type": "string" + }, + "type": { + "description": "Type of the errors grouped in this issue.", + "enum": [ + "ERROR_TYPE_UNSPECIFIED", + "APPLICATION_NOT_RESPONDING", + "CRASH" + ], + "enumDescriptions": [ + "Unspecified error type.", + "Application Not Responding (ANR) error. To learn more about this type of errors visit the corresponding Android Developers documentation.", + "Crash caused by an unhandled exception in Java (or Kotlin or any other JVM language) or a signal in native code such as SIGSEGV." + ], + "type": "string" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1ErrorReport": { + "description": "An error report received for an app. There reports are produced by the Android platform code when a (potentially fatal) error condition is detected. Identical reports from many users will be deduplicated and coalesced into a single ErrorReport. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "id": "GooglePlayDeveloperReportingV1beta1ErrorReport", + "properties": { + "issue": { + "description": "The issue this report was associated with. **Please note:** this resource is currently in Alpha. There could be changes to the issue grouping that would result in similar but more recent error reports being assigned to a different issue.", + "type": "string" + }, + "name": { + "description": "The resource name of the report. Format: apps/{app}/errorReports/{report}", + "type": "string" + }, + "reportText": { + "description": "Textual representation of the error report. These textual reports are produced by the platform. The reports are then sanitized and filtered to remove any potentially sensitive information. Although their format is fairly stable, they are not entirely meant for machine consumption and we cannot guarantee that there won't be subtle changes to the formatting that may break systems trying to parse information out of the reports.", + "type": "string" + }, + "type": { + "description": "Type of the error for which this report was generated.", + "enum": [ + "ERROR_TYPE_UNSPECIFIED", + "APPLICATION_NOT_RESPONDING", + "CRASH" + ], + "enumDescriptions": [ + "Unspecified error type.", + "Application Not Responding (ANR) error. To learn more about this type of errors visit the corresponding Android Developers documentation.", + "Crash caused by an unhandled exception in Java (or Kotlin or any other JVM language) or a signal in native code such as SIGSEGV." + ], + "type": "string" + } + }, + "type": "object" + }, "GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet": { - "description": "Singleton resource representing the set of Excessive Weakeups metrics. This metric set contains AlarmManager wakeup counts data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "description": "Singleton resource representing the set of Excessive Weakeups metrics. This metric set contains AlarmManager wakeup counts data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", "id": "GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet", "properties": { "freshnessInfo": { @@ -550,6 +1143,10 @@ "$ref": "GoogleTypeDecimal", "description": "Actual value, represented as a decimal number." }, + "decimalValueConfidenceInterval": { + "$ref": "GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval", + "description": "Confidence interval of a value that is of type type.Decimal." + }, "metric": { "description": "Name of the metric.", "type": "string" @@ -612,7 +1209,7 @@ "type": "string" }, "metrics": { - "description": "Metrics to aggregate. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `anrRate` and `userPerceivedAnrRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times.", + "description": "Metrics to aggregate. **Supported metrics:** * `anrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one ANR. * `anrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `anrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `anrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one user-perceived ANR. User-perceived ANRs are currently those of 'Input dispatching' type. * `userPerceivedAnrRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedAnrRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedAnrRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `anrRate` and `userPerceivedAnrRate` metrics. A user is counted in this metric if they used the app in the foreground during the aggregation period. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", "items": { "type": "string" }, @@ -684,7 +1281,7 @@ "type": "string" }, "metrics": { - "description": "Metrics to aggregate. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `crashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `crashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times.", + "description": "Metrics to aggregate. **Supported metrics:** * `crashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash. * `crashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `crashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `crashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that experienced at least one crash while they were actively using your app (a user-perceived crash). An app is considered to be in active use if it is displaying any activity or executing any foreground service. * `userPerceivedCrashRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `userPerceivedCrashRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `userPerceivedCrashRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `crashRate` and `userPerceivedCrashRate` metrics. A user is counted in this metric if they used the app actively during the aggregation period. An app is considered to be in active use if it is displaying any activity or executing any foreground service. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", "items": { "type": "string" }, @@ -740,6 +1337,62 @@ }, "type": "object" }, + "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest": { + "description": "Request message for QueryErrorCountMetricSet.", + "id": "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest", + "properties": { + "dimensions": { + "description": "Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): identifier of the device's form factor, e.g., PHONE. * `reportType` (string): the type of error. The value should correspond to one of the possible values in ErrorType. * `issueId` (string): the id an error was assigned to. The value should correspond to the `{issue}` component of the issue name. * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi.", + "items": { + "type": "string" + }, + "type": "array" + }, + "filter": { + "description": "Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions.", + "type": "string" + }, + "metrics": { + "description": "Metrics to aggregate. **Supported metrics:** * `errorReportCount` (`google.type.Decimal`): Absolute count of individual error reports that have been received for an app. * `distinctUsers` (`google.type.Decimal`): Count of distinct users for which reports have been received. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. This value is not rounded, however it may be an approximation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "pageSize": { + "description": "Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000.", + "format": "int32", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + "type": "string" + }, + "timelineSpec": { + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec", + "description": "Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. The default and only supported timezone is `America/Los_Angeles`." + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse": { + "description": "Error counts query response.", + "id": "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse", + "properties": { + "nextPageToken": { + "description": "Continuation token to fetch the next page of data.", + "type": "string" + }, + "rows": { + "description": "Returned rows.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "type": "array" + } + }, + "type": "object" + }, "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest": { "description": "Request message for QueryExcessiveWakeupRateMetricSet.", "id": "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest", @@ -756,7 +1409,7 @@ "type": "string" }, "metrics": { - "description": "Metrics to aggregate. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times.", + "description": "Metrics to aggregate. **Supported metrics:** * `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had more than 10 wakeups per hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `excessiveWakeupRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `excessiveWakeupRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", "items": { "type": "string" }, @@ -812,6 +1465,150 @@ }, "type": "object" }, + "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest": { + "description": "Request message for QuerySlowRenderingRateMetricSet.", + "id": "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest", + "properties": { + "dimensions": { + "description": "Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi.", + "items": { + "type": "string" + }, + "type": "array" + }, + "filter": { + "description": "Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions.", + "type": "string" + }, + "metrics": { + "description": "Metrics to aggregate. **Supported metrics:** * `slowRenderingRate20Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow rendering. * `slowRenderingRate20Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate20Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow rendering. * `slowRenderingRate30Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", + "items": { + "type": "string" + }, + "type": "array" + }, + "pageSize": { + "description": "Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000.", + "format": "int32", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + "type": "string" + }, + "timelineSpec": { + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec", + "description": "Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`." + }, + "userCohort": { + "description": "User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta Android versions only, excluding data from released Android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., \"T1B2.220916.004\".", + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ], + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "type": "string" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse": { + "description": "Response message for QuerySlowRenderingRateMetricSet.", + "id": "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse", + "properties": { + "nextPageToken": { + "description": "Continuation token to fetch the next page of data.", + "type": "string" + }, + "rows": { + "description": "Returned rows of data.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "type": "array" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest": { + "description": "Request message for QuerySlowStartRateMetricSet.", + "id": "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest", + "properties": { + "dimensions": { + "description": "Dimensions to slice the data by. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi.", + "items": { + "type": "string" + }, + "type": "array" + }, + "filter": { + "description": "Filters to apply to data. The filtering expression follows [AIP-160](https://google.aip.dev/160) standard and supports filtering by equality of all breakdown dimensions.", + "type": "string" + }, + "metrics": { + "description": "Metrics to aggregate. **Supported metrics:** * `slowStartRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow start. * `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowStartRate` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", + "items": { + "type": "string" + }, + "type": "array" + }, + "pageSize": { + "description": "Maximum size of the returned data. If unspecified, at most 1000 rows will be returned. The maximum value is 100000; values above 100000 will be coerced to 100000.", + "format": "int32", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + "type": "string" + }, + "timelineSpec": { + "$ref": "GooglePlayDeveloperReportingV1beta1TimelineSpec", + "description": "Specification of the timeline aggregation parameters. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`." + }, + "userCohort": { + "description": "User view to select. The output data will correspond to the selected view. **Supported values:** * `OS_PUBLIC` To select data from all publicly released Android versions. This is the default. Supports all the above dimensions. * `APP_TESTERS` To select data from users who have opted in to be testers. Supports all the above dimensions. * `OS_BETA` To select data from beta Android versions only, excluding data from released Android versions. Only the following dimensions are supported: * `versionCode` (int64): version of the app that was running on the user's device. * `osBuild` (string): OS build of the user's device, e.g., \"T1B2.220916.004\".", + "enum": [ + "USER_COHORT_UNSPECIFIED", + "OS_PUBLIC", + "OS_BETA", + "APP_TESTERS" + ], + "enumDescriptions": [ + "Unspecified User cohort. This will automatically choose the default value.", + "This is default view. Contains data from public released android versions only.", + "This is the view with just android beta data excluding released OS version data.", + "This is the view with data only from users who have opted in to be testers for a given app, excluding OS beta data." + ], + "type": "string" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse": { + "description": "Response message for QuerySlowStartRateMetricSet.", + "id": "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse", + "properties": { + "nextPageToken": { + "description": "Continuation token to fetch the next page of data.", + "type": "string" + }, + "rows": { + "description": "Returned rows of data.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1MetricsRow" + }, + "type": "array" + } + }, + "type": "object" + }, "GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest": { "description": "Request message for QueryStuckBackgroundWakelockRateMetricSet.", "id": "GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest", @@ -828,7 +1625,7 @@ "type": "string" }, "metrics": { - "description": "Metrics to aggregate. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `stuckBgWakelockRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times.", + "description": "Metrics to aggregate. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `stuckBgWakelockRate` metric. A user is counted in this metric if they app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value.", "items": { "type": "string" }, @@ -884,8 +1681,74 @@ }, "type": "object" }, + "GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse": { + "description": "Response with a paginated list of issues that matched the request.", + "id": "GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse", + "properties": { + "errorIssues": { + "description": "ErrorIssues that were found.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1ErrorIssue" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Continuation token to fetch the next page of data.", + "type": "string" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse": { + "description": "Response with a paginated list of error reports matching the search query.", + "id": "GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse", + "properties": { + "errorReports": { + "description": "Error reports that were found.", + "items": { + "$ref": "GooglePlayDeveloperReportingV1beta1ErrorReport" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Page token to fetch the next page of reports.", + "type": "string" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet": { + "description": "Singleton resource representing the set of Slow Rendering metrics. This metric set contains low-level rendering data captured by SurafeFlinger. Sessions are evaluated based on the present-to-present histogram of frames handled by any SurfaceFlinger layer owned by the app. A slow session is a session where more than 25% of frames for the session did not meet the metric's target frame rate (either 20fps, or 30fps). *NOTE:* This metric set is only available for games. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `slowRenderingRate20Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had slow rendering. * `slowRenderingRate20Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate20Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate20Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had slow rendering. * `slowRenderingRate30Fps7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowRenderingRate30Fps28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowRenderingRate30Fps` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is counted in this metric if their app rendered any frames. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "id": "GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet", + "properties": { + "freshnessInfo": { + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo", + "description": "Summary about data freshness in this resource." + }, + "name": { + "description": "The resource name. Format: apps/{app}/slowRenderingRateMetricSet", + "type": "string" + } + }, + "type": "object" + }, + "GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet": { + "description": "Singleton resource representing the set of Slow Start metrics. This metric set contains Activity start duration data. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `slowStartRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a slow start. * `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `slowStartRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `slowStartRate` metric. A user is counted in this metric if their app was launched in the device. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Required dimension:** This dimension must be specified with each request for the request to be valid. * `startType` (string): the type of start that was measured. Valid types are `HOT`, `WARM` and `COLD`. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "id": "GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet", + "properties": { + "freshnessInfo": { + "$ref": "GooglePlayDeveloperReportingV1beta1FreshnessInfo", + "description": "Summary about data freshness in this resource." + }, + "name": { + "description": "The resource name. Format: apps/{app}/slowStartRateMetricSet", + "type": "string" + } + }, + "type": "object" + }, "GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet": { - "description": "Singleton resource representing the set of Stuck Background Wakelocks metrics. This metric set contains PowerManager wakelock duration data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `stuckBgWakelockRate` metric. A user is counted in this metric if their app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", + "description": "Singleton resource representing the set of Stuck Background Wakelocks metrics. This metric set contains PowerManager wakelock duration data combined with process state data to produce a normalized metric independent of user counts. **Supported aggregation periods:** * DAILY: metrics are aggregated in calendar date intervals. Due to historical constraints, the only supported timezone is `America/Los_Angeles`. **Supported metrics:** * `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct users in the aggregation period that had a wakelock held in the background for longer than 1 hour. * `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 7 days. The daily values are weighted by the count of distinct users for the day. * `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling average value of `stuckBgWakelockRate` in the last 28 days. The daily values are weighted by the count of distinct users for the day. * `distinctUsers` (`google.type.Decimal`): Count of distinct users in the aggregation period that were used as normalization value for the `stuckBgWakelockRate` metric. A user is counted in this metric if their app was doing any work on the device, i.e., not just active foreground usage but also background work. Care must be taken not to aggregate this count further, as it may result in users being counted multiple times. The value is rounded to the nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the value. **Supported dimensions:** * `apiLevel` (string): the API level of Android that was running on the user's device. * `versionCode` (int64): version of the app that was running on the user's device. * `deviceModel` (string): unique identifier of the user's device model. * `deviceType` (string): the type (also known as form factor) of the user's device. * `countryCode` (string): the country or region of the user's device based on their IP address, represented as a 2-letter ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary system-on-chip, e.g., Samsung. [Reference](https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) * `deviceSocModel` (string): Model of the device's primary system-on-chip, e.g., \"Exynos 2100\". [Reference](https://developer.android.com/reference/android/os/Build#SOC_MODEL) * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. * `deviceCpuModel` (string): Model of the device's CPU, e.g., \"Kryo 240\". * `deviceGpuMake` (string): Make of the device's GPU, e.g., ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., Mali. * `deviceGpuVersion` (string): Version of the device's GPU, e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the device, e.g., \"4198400\". * `deviceGlEsVersion` (string): OpenGL ES version of the device, e.g., \"196610\". * `deviceScreenSize` (string): Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` (string): Screen density of the device, e.g., mdpi, hdpi. **Required permissions**: to access this resource, the calling user needs the _View app information (read-only)_ permission for the app.", "id": "GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet", "properties": { "freshnessInfo": { diff --git a/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go b/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go index b5f7fc2c93a..800a77fce45 100644 --- a/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go +++ b/playdeveloperreporting/v1beta1/playdeveloperreporting-gen.go @@ -154,7 +154,10 @@ func NewVitalsService(s *Service) *VitalsService { rs := &VitalsService{s: s} rs.Anrrate = NewVitalsAnrrateService(s) rs.Crashrate = NewVitalsCrashrateService(s) + rs.Errors = NewVitalsErrorsService(s) rs.Excessivewakeuprate = NewVitalsExcessivewakeuprateService(s) + rs.Slowrenderingrate = NewVitalsSlowrenderingrateService(s) + rs.Slowstartrate = NewVitalsSlowstartrateService(s) rs.Stuckbackgroundwakelockrate = NewVitalsStuckbackgroundwakelockrateService(s) return rs } @@ -166,8 +169,14 @@ type VitalsService struct { Crashrate *VitalsCrashrateService + Errors *VitalsErrorsService + Excessivewakeuprate *VitalsExcessivewakeuprateService + Slowrenderingrate *VitalsSlowrenderingrateService + + Slowstartrate *VitalsSlowstartrateService + Stuckbackgroundwakelockrate *VitalsStuckbackgroundwakelockrateService } @@ -189,6 +198,51 @@ type VitalsCrashrateService struct { s *Service } +func NewVitalsErrorsService(s *Service) *VitalsErrorsService { + rs := &VitalsErrorsService{s: s} + rs.Counts = NewVitalsErrorsCountsService(s) + rs.Issues = NewVitalsErrorsIssuesService(s) + rs.Reports = NewVitalsErrorsReportsService(s) + return rs +} + +type VitalsErrorsService struct { + s *Service + + Counts *VitalsErrorsCountsService + + Issues *VitalsErrorsIssuesService + + Reports *VitalsErrorsReportsService +} + +func NewVitalsErrorsCountsService(s *Service) *VitalsErrorsCountsService { + rs := &VitalsErrorsCountsService{s: s} + return rs +} + +type VitalsErrorsCountsService struct { + s *Service +} + +func NewVitalsErrorsIssuesService(s *Service) *VitalsErrorsIssuesService { + rs := &VitalsErrorsIssuesService{s: s} + return rs +} + +type VitalsErrorsIssuesService struct { + s *Service +} + +func NewVitalsErrorsReportsService(s *Service) *VitalsErrorsReportsService { + rs := &VitalsErrorsReportsService{s: s} + return rs +} + +type VitalsErrorsReportsService struct { + s *Service +} + func NewVitalsExcessivewakeuprateService(s *Service) *VitalsExcessivewakeuprateService { rs := &VitalsExcessivewakeuprateService{s: s} return rs @@ -198,6 +252,24 @@ type VitalsExcessivewakeuprateService struct { s *Service } +func NewVitalsSlowrenderingrateService(s *Service) *VitalsSlowrenderingrateService { + rs := &VitalsSlowrenderingrateService{s: s} + return rs +} + +type VitalsSlowrenderingrateService struct { + s *Service +} + +func NewVitalsSlowstartrateService(s *Service) *VitalsSlowstartrateService { + rs := &VitalsSlowstartrateService{s: s} + return rs +} + +type VitalsSlowstartrateService struct { + s *Service +} + func NewVitalsStuckbackgroundwakelockrateService(s *Service) *VitalsStuckbackgroundwakelockrateService { rs := &VitalsStuckbackgroundwakelockrateService{s: s} return rs @@ -292,11 +364,13 @@ func (s *GooglePlayDeveloperReportingV1beta1Anomaly) MarshalJSON() ([]byte, erro // counted in this metric if they used the app in the foreground during // the aggregation period. Care must be taken not to aggregate this // count further, as it may result in users being counted multiple -// times. **Supported dimensions:** * `apiLevel` (string): the API level -// of Android that was running on the user's device. * `versionCode` -// (int64): version of the app that was running on the user's device. * -// `deviceModel` (string): unique identifier of the user's device model. -// * `deviceType` (string): the type (also known as form factor) of the +// times. The value is rounded to the nearest multiple of 10, 100, 1,000 +// or 1,000,000, depending on the magnitude of the value. **Supported +// dimensions:** * `apiLevel` (string): the API level of Android that +// was running on the user's device. * `versionCode` (int64): version of +// the app that was running on the user's device. * `deviceModel` +// (string): unique identifier of the user's device model. * +// `deviceType` (string): the type (also known as form factor) of the // user's device. * `countryCode` (string): the country or region of the // user's device based on their IP address, represented as a 2-letter // ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` @@ -390,17 +464,19 @@ func (s *GooglePlayDeveloperReportingV1beta1AnrRateMetricSet) MarshalJSON() ([]b // period. An app is considered to be in active use if it is displaying // any activity or executing any foreground service. Care must be taken // not to aggregate this count further, as it may result in users being -// counted multiple times. **Supported dimensions:** * `apiLevel` -// (string): the API level of Android that was running on the user's -// device. * `versionCode` (int64): version of the app that was running -// on the user's device. * `deviceModel` (string): unique identifier of -// the user's device model. * `deviceType` (string): the type (also -// known as form factor) of the user's device. * `countryCode` (string): -// the country or region of the user's device based on their IP address, -// represented as a 2-letter ISO-3166 code (e.g. US for the United -// States). * `deviceRamBucket` (int64): RAM of the device, in MB, in -// buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the -// device's primary system-on-chip, e.g., Samsung. Reference +// counted multiple times. The value is rounded to the nearest multiple +// of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the +// value. **Supported dimensions:** * `apiLevel` (string): the API level +// of Android that was running on the user's device. * `versionCode` +// (int64): version of the app that was running on the user's device. * +// `deviceModel` (string): unique identifier of the user's device model. +// * `deviceType` (string): the type (also known as form factor) of the +// user's device. * `countryCode` (string): the country or region of the +// user's device based on their IP address, represented as a 2-letter +// ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` +// (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * +// `deviceSocMake` (string): Make of the device's primary +// system-on-chip, e.g., Samsung. Reference // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) // * `deviceSocModel` (string): Model of the device's primary // system-on-chip, e.g., "Exynos 2100". Reference @@ -454,6 +530,38 @@ func (s *GooglePlayDeveloperReportingV1beta1CrashRateMetricSet) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval: +// Represents the confidence interval of a metric. +type GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval struct { + // LowerBound: The confidence interval's lower bound. + LowerBound *GoogleTypeDecimal `json:"lowerBound,omitempty"` + + // UpperBound: The confidence interval's upper bound. + UpperBound *GoogleTypeDecimal `json:"upperBound,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LowerBound") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LowerBound") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePlayDeveloperReportingV1beta1DimensionValue: Represents the // value of a single dimension. type GooglePlayDeveloperReportingV1beta1DimensionValue struct { @@ -497,6 +605,211 @@ func (s *GooglePlayDeveloperReportingV1beta1DimensionValue) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet: Singleton +// resource representing the set of error report metrics. This metric +// set contains un-normalized error report counts. **Supported +// aggregation periods:** * DAILY: metrics are aggregated in calendar +// date intervals. The default and only supported timezone is +// `America/Los_Angeles`. **Supported metrics:** * `errorReportCount` +// (`google.type.Decimal`): Absolute count of individual error reports +// that have been received for an app. * `distinctUsers` +// (`google.type.Decimal`): Count of distinct users for which reports +// have been received. Care must be taken not to aggregate this count +// further, as it may result in users being counted multiple times. This +// value is not rounded, however it may be an approximation. **Required +// dimension:** This dimension must be always specified in all requests +// in the `dimensions` field in query requests. * `reportType` (string): +// the type of error. The value should correspond to one of the possible +// values in ErrorType. **Supported dimensions:** * `apiLevel` (string): +// the API level of Android that was running on the user's device. * +// `versionCode` (int64): version of the app that was running on the +// user's device. * `deviceModel` (string): unique identifier of the +// user's device model. * `deviceType` (string): identifier of the +// device's form factor, e.g., PHONE. * `issueId` (string): the id an +// error was assigned to. The value should correspond to the `{issue}` +// component of the issue name. * `deviceRamBucket` (int64): RAM of the +// device, in MB, in buckets (3GB, 4GB, etc.). * `deviceSocMake` +// (string): Make of the device's primary system-on-chip, e.g., Samsung. +// Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) +// * `deviceSocModel` (string): Model of the device's primary +// system-on-chip, e.g., "Exynos 2100". Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MODEL) +// * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. +// * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo +// 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., +// ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., +// Mali. * `deviceGpuVersion` (string): Version of the device's GPU, +// e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the +// device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES +// version of the device, e.g., "196610". * `deviceScreenSize` (string): +// Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` +// (string): Screen density of the device, e.g., mdpi, hdpi. **Required +// permissions**: to access this resource, the calling user needs the +// _View app information (read-only)_ permission for the app. **Related +// metric sets:** * vitals.errors.counts contains normalized metrics +// about Crashes, another stability metric. * vitals.errors.counts +// contains normalized metrics about ANRs, another stability metric. +type GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet struct { + // FreshnessInfo: Summary about data freshness in this resource. + FreshnessInfo *GooglePlayDeveloperReportingV1beta1FreshnessInfo `json:"freshnessInfo,omitempty"` + + // Name: The resource name. Format: apps/{app}/errorCountMetricSet + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FreshnessInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FreshnessInfo") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1beta1ErrorIssue: A group of related +// ErrorReports received for an app. Similar error reports are grouped +// together into issues with a likely identical root cause. **Please +// note:** this resource is currently in Alpha. There could be changes +// to the issue grouping that would result in similar but more recent +// error reports being assigned to different issues. This could also +// cause some issues disappearing entirely and being replaced by new +// ones. **Required permissions**: to access this resource, the calling +// user needs the _View app information (read-only)_ permission for the +// app. +type GooglePlayDeveloperReportingV1beta1ErrorIssue struct { + // Cause: Cause of the issue. Depending on the type this can be either: + // * APPLICATION_NOT_RESPONDING: the type of ANR that occurred, e.g., + // 'Input dispatching timed out'. * CRASH: for Java unhandled exception + // errors, the type of the innermost exception that was thrown, e.g., + // IllegalArgumentException. For signals in native code, the signal that + // was raised, e.g. SIGSEGV. + Cause string `json:"cause,omitempty"` + + // Location: Location where the issue happened. Depending on the type + // this can be either: * APPLICATION_NOT_RESPONDING: the name of the + // activity or service that stopped responding. * CRASH: the likely + // method name that caused the error. + Location string `json:"location,omitempty"` + + // Name: The resource name of the issue. Format: + // apps/{app}/errorIssues/{issue} + Name string `json:"name,omitempty"` + + // Type: Type of the errors grouped in this issue. + // + // Possible values: + // "ERROR_TYPE_UNSPECIFIED" - Unspecified error type. + // "APPLICATION_NOT_RESPONDING" - Application Not Responding (ANR) + // error. To learn more about this type of errors visit the + // corresponding Android Developers documentation. + // "CRASH" - Crash caused by an unhandled exception in Java (or Kotlin + // or any other JVM language) or a signal in native code such as + // SIGSEGV. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cause") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cause") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1ErrorIssue) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1ErrorIssue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1beta1ErrorReport: An error report +// received for an app. There reports are produced by the Android +// platform code when a (potentially fatal) error condition is detected. +// Identical reports from many users will be deduplicated and coalesced +// into a single ErrorReport. **Required permissions**: to access this +// resource, the calling user needs the _View app information +// (read-only)_ permission for the app. +type GooglePlayDeveloperReportingV1beta1ErrorReport struct { + // Issue: The issue this report was associated with. **Please note:** + // this resource is currently in Alpha. There could be changes to the + // issue grouping that would result in similar but more recent error + // reports being assigned to a different issue. + Issue string `json:"issue,omitempty"` + + // Name: The resource name of the report. Format: + // apps/{app}/errorReports/{report} + Name string `json:"name,omitempty"` + + // ReportText: Textual representation of the error report. These textual + // reports are produced by the platform. The reports are then sanitized + // and filtered to remove any potentially sensitive information. + // Although their format is fairly stable, they are not entirely meant + // for machine consumption and we cannot guarantee that there won't be + // subtle changes to the formatting that may break systems trying to + // parse information out of the reports. + ReportText string `json:"reportText,omitempty"` + + // Type: Type of the error for which this report was generated. + // + // Possible values: + // "ERROR_TYPE_UNSPECIFIED" - Unspecified error type. + // "APPLICATION_NOT_RESPONDING" - Application Not Responding (ANR) + // error. To learn more about this type of errors visit the + // corresponding Android Developers documentation. + // "CRASH" - Crash caused by an unhandled exception in Java (or Kotlin + // or any other JVM language) or a signal in native code such as + // SIGSEGV. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Issue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Issue") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1ErrorReport) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1ErrorReport + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet: // Singleton resource representing the set of Excessive Weakeups // metrics. This metric set contains AlarmManager wakeup counts data @@ -519,17 +832,19 @@ func (s *GooglePlayDeveloperReportingV1beta1DimensionValue) MarshalJSON() ([]byt // they app was doing any work on the device, i.e., not just active // foreground usage but also background work. Care must be taken not to // aggregate this count further, as it may result in users being counted -// multiple times. **Supported dimensions:** * `apiLevel` (string): the -// API level of Android that was running on the user's device. * -// `versionCode` (int64): version of the app that was running on the -// user's device. * `deviceModel` (string): unique identifier of the -// user's device model. * `deviceType` (string): the type (also known as -// form factor) of the user's device. * `countryCode` (string): the -// country or region of the user's device based on their IP address, -// represented as a 2-letter ISO-3166 code (e.g. US for the United -// States). * `deviceRamBucket` (int64): RAM of the device, in MB, in -// buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the -// device's primary system-on-chip, e.g., Samsung. Reference +// multiple times. The value is rounded to the nearest multiple of 10, +// 100, 1,000 or 1,000,000, depending on the magnitude of the value. +// **Supported dimensions:** * `apiLevel` (string): the API level of +// Android that was running on the user's device. * `versionCode` +// (int64): version of the app that was running on the user's device. * +// `deviceModel` (string): unique identifier of the user's device model. +// * `deviceType` (string): the type (also known as form factor) of the +// user's device. * `countryCode` (string): the country or region of the +// user's device based on their IP address, represented as a 2-letter +// ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` +// (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * +// `deviceSocMake` (string): Make of the device's primary +// system-on-chip, e.g., Samsung. Reference // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) // * `deviceSocModel` (string): Model of the device's primary // system-on-chip, e.g., "Exynos 2100". Reference @@ -702,6 +1017,10 @@ type GooglePlayDeveloperReportingV1beta1MetricValue struct { // DecimalValue: Actual value, represented as a decimal number. DecimalValue *GoogleTypeDecimal `json:"decimalValue,omitempty"` + // DecimalValueConfidenceInterval: Confidence interval of a value that + // is of type type.Decimal. + DecimalValueConfidenceInterval *GooglePlayDeveloperReportingV1beta1DecimalConfidenceInterval `json:"decimalValueConfidenceInterval,omitempty"` + // Metric: Name of the metric. Metric string `json:"metric,omitempty"` @@ -833,7 +1152,8 @@ type GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetRequest struct { // counted in this metric if they used the app in the foreground during // the aggregation period. Care must be taken not to aggregate this // count further, as it may result in users being counted multiple - // times. + // times. The value is rounded to the nearest multiple of 10, 100, 1,000 + // or 1,000,000, depending on the magnitude of the value. Metrics []string `json:"metrics,omitempty"` // PageSize: Maximum size of the returned data. If unspecified, at most @@ -998,7 +1318,9 @@ type GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest struct { // period. An app is considered to be in active use if it is displaying // any activity or executing any foreground service. Care must be taken // not to aggregate this count further, as it may result in users being - // counted multiple times. + // counted multiple times. The value is rounded to the nearest multiple + // of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the + // value. Metrics []string `json:"metrics,omitempty"` // PageSize: Maximum size of the returned data. If unspecified, at most @@ -1099,20 +1421,21 @@ func (s *GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse) Mar return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRe -// quest: Request message for QueryExcessiveWakeupRateMetricSet. -type GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest struct { +// GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest: +// Request message for QueryErrorCountMetricSet. +type GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest struct { // Dimensions: Dimensions to slice the data by. **Supported // dimensions:** * `apiLevel` (string): the API level of Android that // was running on the user's device. * `versionCode` (int64): version of // the app that was running on the user's device. * `deviceModel` // (string): unique identifier of the user's device model. * - // `deviceType` (string): the type (also known as form factor) of the - // user's device. * `countryCode` (string): the country or region of the - // user's device based on their IP address, represented as a 2-letter - // ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` - // (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * - // `deviceSocMake` (string): Make of the device's primary + // `deviceType` (string): identifier of the device's form factor, e.g., + // PHONE. * `reportType` (string): the type of error. The value should + // correspond to one of the possible values in ErrorType. * `issueId` + // (string): the id an error was assigned to. The value should + // correspond to the `{issue}` component of the issue name. * + // `deviceRamBucket` (int64): RAM of the device, in MB, in buckets (3GB, + // 4GB, etc.). * `deviceSocMake` (string): Make of the device's primary // system-on-chip, e.g., Samsung. Reference // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) // * `deviceSocModel` (string): Model of the device's primary @@ -1136,21 +1459,12 @@ type GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest Filter string `json:"filter,omitempty"` // Metrics: Metrics to aggregate. **Supported metrics:** * - // `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct - // users in the aggregation period that had more than 10 wakeups per - // hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): - // Rolling average value of `excessiveWakeupRate` in the last 7 days. - // The daily values are weighted by the count of distinct users for the - // day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): - // Rolling average value of `excessiveWakeupRate` in the last 28 days. - // The daily values are weighted by the count of distinct users for the - // day. * `distinctUsers` (`google.type.Decimal`): Count of distinct - // users in the aggregation period that were used as normalization value - // for the `excessiveWakeupRate` metric. A user is counted in this - // metric if they app was doing any work on the device, i.e., not just - // active foreground usage but also background work. Care must be taken - // not to aggregate this count further, as it may result in users being - // counted multiple times. + // `errorReportCount` (`google.type.Decimal`): Absolute count of + // individual error reports that have been received for an app. * + // `distinctUsers` (`google.type.Decimal`): Count of distinct users for + // which reports have been received. Care must be taken not to aggregate + // this count further, as it may result in users being counted multiple + // times. This value is not rounded, however it may be an approximation. Metrics []string `json:"metrics,omitempty"` // PageSize: Maximum size of the returned data. If unspecified, at most @@ -1166,32 +1480,10 @@ type GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest // TimelineSpec: Specification of the timeline aggregation parameters. // **Supported aggregation periods:** * DAILY: metrics are aggregated in - // calendar date intervals. Due to historical constraints, the only - // supported timezone is `America/Los_Angeles`. + // calendar date intervals. The default and only supported timezone is + // `America/Los_Angeles`. TimelineSpec *GooglePlayDeveloperReportingV1beta1TimelineSpec `json:"timelineSpec,omitempty"` - // UserCohort: User view to select. The output data will correspond to - // the selected view. **Supported values:** * `OS_PUBLIC` To select data - // from all publicly released Android versions. This is the default. - // Supports all the above dimensions. * `APP_TESTERS` To select data - // from users who have opted in to be testers. Supports all the above - // dimensions. * `OS_BETA` To select data from beta android versions - // only, excluding data from released android versions. Only the - // following dimensions are supported: * `versionCode` (int64): version - // of the app that was running on the user's device. * `osBuild` - // (string): OS build of the user's device, e.g., "T1B2.220916.004". - // - // Possible values: - // "USER_COHORT_UNSPECIFIED" - Unspecified User cohort. This will - // automatically choose the default value. - // "OS_PUBLIC" - This is default view. Contains data from public - // released android versions only. - // "OS_BETA" - This is the view with just android beta data excluding - // released OS version data. - // "APP_TESTERS" - This is the view with data only from users who have - // opted in to be testers for a given app, excluding OS beta data. - UserCohort string `json:"userCohort,omitempty"` - // ForceSendFields is a list of field names (e.g. "Dimensions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1209,19 +1501,19 @@ type GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest NullFields []string `json:"-"` } -func (s *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest) MarshalJSON() ([]byte, error) { - type NoMethod GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest +func (s *GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRe -// sponse: Response message for QueryExcessiveWakeupRateMetricSet. -type GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse struct { +// GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse: +// Error counts query response. +type GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse struct { // NextPageToken: Continuation token to fetch the next page of data. NextPageToken string `json:"nextPageToken,omitempty"` - // Rows: Returned rows of data. + // Rows: Returned rows. Rows []*GooglePlayDeveloperReportingV1beta1MetricsRow `json:"rows,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -1245,16 +1537,15 @@ type GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRespons NullFields []string `json:"-"` } -func (s *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse) MarshalJSON() ([]byte, error) { - type NoMethod GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse +func (s *GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMet -// ricSetRequest: Request message for -// QueryStuckBackgroundWakelockRateMetricSet. -type GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest struct { +// GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRe +// quest: Request message for QueryExcessiveWakeupRateMetricSet. +type GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest struct { // Dimensions: Dimensions to slice the data by. **Supported // dimensions:** * `apiLevel` (string): the API level of Android that // was running on the user's device. * `versionCode` (int64): version of @@ -1289,22 +1580,23 @@ type GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSe Filter string `json:"filter,omitempty"` // Metrics: Metrics to aggregate. **Supported metrics:** * - // `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct - // users in the aggregation period that had a wakelock held in the - // background for longer than 1 hour. * - // `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling - // average value of `stuckBgWakelockRate` in the last 7 days. The daily - // values are weighted by the count of distinct users for the day. * - // `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling - // average value of `stuckBgWakelockRate` in the last 28 days. The daily - // values are weighted by the count of distinct users for the day. * - // `distinctUsers` (`google.type.Decimal`): Count of distinct users in - // the aggregation period that were used as normalization value for the - // `stuckBgWakelockRate` metric. A user is counted in this metric if - // they app was doing any work on the device, i.e., not just active - // foreground usage but also background work. Care must be taken not to - // aggregate this count further, as it may result in users being counted - // multiple times. + // `excessiveWakeupRate` (`google.type.Decimal`): Percentage of distinct + // users in the aggregation period that had more than 10 wakeups per + // hour. * `excessiveWakeupRate7dUserWeighted` (`google.type.Decimal`): + // Rolling average value of `excessiveWakeupRate` in the last 7 days. + // The daily values are weighted by the count of distinct users for the + // day. * `excessiveWakeupRate28dUserWeighted` (`google.type.Decimal`): + // Rolling average value of `excessiveWakeupRate` in the last 28 days. + // The daily values are weighted by the count of distinct users for the + // day. * `distinctUsers` (`google.type.Decimal`): Count of distinct + // users in the aggregation period that were used as normalization value + // for the `excessiveWakeupRate` metric. A user is counted in this + // metric if they app was doing any work on the device, i.e., not just + // active foreground usage but also background work. Care must be taken + // not to aggregate this count further, as it may result in users being + // counted multiple times. The value is rounded to the nearest multiple + // of 10, 100, 1,000 or 1,000,000, depending on the magnitude of the + // value. Metrics []string `json:"metrics,omitempty"` // PageSize: Maximum size of the returned data. If unspecified, at most @@ -1363,16 +1655,15 @@ type GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSe NullFields []string `json:"-"` } -func (s *GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest) MarshalJSON() ([]byte, error) { - type NoMethod GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest +func (s *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMet -// ricSetResponse: Response message for -// QueryStuckBackgroundWakelockRateMetricSet. -type GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse struct { +// GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRe +// sponse: Response message for QueryExcessiveWakeupRateMetricSet. +type GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse struct { // NextPageToken: Continuation token to fetch the next page of data. NextPageToken string `json:"nextPageToken,omitempty"` @@ -1400,75 +1691,117 @@ type GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSe NullFields []string `json:"-"` } -func (s *GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse) MarshalJSON() ([]byte, error) { - type NoMethod GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse +func (s *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSe -// t: Singleton resource representing the set of Stuck Background -// Wakelocks metrics. This metric set contains PowerManager wakelock -// duration data combined with process state data to produce a -// normalized metric independent of user counts. **Supported aggregation -// periods:** * DAILY: metrics are aggregated in calendar date -// intervals. Due to historical constraints, the only supported timezone -// is `America/Los_Angeles`. **Supported metrics:** * -// `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct -// users in the aggregation period that had a wakelock held in the -// background for longer than 1 hour. * -// `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling -// average value of `stuckBgWakelockRate` in the last 7 days. The daily -// values are weighted by the count of distinct users for the day. * -// `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling -// average value of `stuckBgWakelockRate` in the last 28 days. The daily -// values are weighted by the count of distinct users for the day. * -// `distinctUsers` (`google.type.Decimal`): Count of distinct users in -// the aggregation period that were used as normalization value for the -// `stuckBgWakelockRate` metric. A user is counted in this metric if -// their app was doing any work on the device, i.e., not just active -// foreground usage but also background work. Care must be taken not to -// aggregate this count further, as it may result in users being counted -// multiple times. **Supported dimensions:** * `apiLevel` (string): the -// API level of Android that was running on the user's device. * -// `versionCode` (int64): version of the app that was running on the -// user's device. * `deviceModel` (string): unique identifier of the -// user's device model. * `deviceType` (string): the type (also known as -// form factor) of the user's device. * `countryCode` (string): the -// country or region of the user's device based on their IP address, -// represented as a 2-letter ISO-3166 code (e.g. US for the United -// States). * `deviceRamBucket` (int64): RAM of the device, in MB, in -// buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the -// device's primary system-on-chip, e.g., Samsung. Reference -// (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) -// * `deviceSocModel` (string): Model of the device's primary -// system-on-chip, e.g., "Exynos 2100". Reference -// (https://developer.android.com/reference/android/os/Build#SOC_MODEL) -// * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. -// * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo -// 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., -// ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., -// Mali. * `deviceGpuVersion` (string): Version of the device's GPU, -// e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the -// device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES -// version of the device, e.g., "196610". * `deviceScreenSize` (string): -// Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` -// (string): Screen density of the device, e.g., mdpi, hdpi. **Required -// permissions**: to access this resource, the calling user needs the -// _View app information (read-only)_ permission for the app. -type GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet struct { - // FreshnessInfo: Summary about data freshness in this resource. - FreshnessInfo *GooglePlayDeveloperReportingV1beta1FreshnessInfo `json:"freshnessInfo,omitempty"` +// GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequ +// est: Request message for QuerySlowRenderingRateMetricSet. +type GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest struct { + // Dimensions: Dimensions to slice the data by. **Supported + // dimensions:** * `apiLevel` (string): the API level of Android that + // was running on the user's device. * `versionCode` (int64): version of + // the app that was running on the user's device. * `deviceModel` + // (string): unique identifier of the user's device model. * + // `deviceType` (string): the type (also known as form factor) of the + // user's device. * `countryCode` (string): the country or region of the + // user's device based on their IP address, represented as a 2-letter + // ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` + // (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * + // `deviceSocMake` (string): Make of the device's primary + // system-on-chip, e.g., Samsung. Reference + // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) + // * `deviceSocModel` (string): Model of the device's primary + // system-on-chip, e.g., "Exynos 2100". Reference + // (https://developer.android.com/reference/android/os/Build#SOC_MODEL) + // * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. + // * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo + // 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., + // ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., + // Mali. * `deviceGpuVersion` (string): Version of the device's GPU, + // e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the + // device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES + // version of the device, e.g., "196610". * `deviceScreenSize` (string): + // Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` + // (string): Screen density of the device, e.g., mdpi, hdpi. + Dimensions []string `json:"dimensions,omitempty"` - // Name: The resource name. Format: - // apps/{app}/stuckBackgroundWakelockRateMetricSet - Name string `json:"name,omitempty"` + // Filter: Filters to apply to data. The filtering expression follows + // AIP-160 (https://google.aip.dev/160) standard and supports filtering + // by equality of all breakdown dimensions. + Filter string `json:"filter,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Metrics: Metrics to aggregate. **Supported metrics:** * + // `slowRenderingRate20Fps` (`google.type.Decimal`): Percentage of + // distinct users in the aggregation period that had a slow rendering. * + // `slowRenderingRate20Fps7dUserWeighted` (`google.type.Decimal`): + // Rolling average value of `slowRenderingRate20Fps` in the last 7 days. + // The daily values are weighted by the count of distinct users for the + // day. * `slowRenderingRate20Fps28dUserWeighted` + // (`google.type.Decimal`): Rolling average value of + // `slowRenderingRate20Fps` in the last 28 days. The daily values are + // weighted by the count of distinct users for the day. * + // `slowRenderingRate30Fps` (`google.type.Decimal`): Percentage of + // distinct users in the aggregation period that had a slow rendering. * + // `slowRenderingRate30Fps7dUserWeighted` (`google.type.Decimal`): + // Rolling average value of `slowRenderingRate30Fps` in the last 7 days. + // The daily values are weighted by the count of distinct users for the + // day. * `slowRenderingRate30Fps28dUserWeighted` + // (`google.type.Decimal`): Rolling average value of + // `slowRenderingRate30Fps` in the last 28 days. The daily values are + // weighted by the count of distinct users for the day. * + // `distinctUsers` (`google.type.Decimal`): Count of distinct users in + // the aggregation period that were used as normalization value for the + // `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is + // counted in this metric if their app was launched in the device. Care + // must be taken not to aggregate this count further, as it may result + // in users being counted multiple times. The value is rounded to the + // nearest multiple of 10, 100, 1,000 or 1,000,000, depending on the + // magnitude of the value. + Metrics []string `json:"metrics,omitempty"` - // ForceSendFields is a list of field names (e.g. "FreshnessInfo") to + // PageSize: Maximum size of the returned data. If unspecified, at most + // 1000 rows will be returned. The maximum value is 100000; values above + // 100000 will be coerced to 100000. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: A page token, received from a previous call. Provide this + // to retrieve the subsequent page. When paginating, all other + // parameters provided to the request must match the call that provided + // the page token. + PageToken string `json:"pageToken,omitempty"` + + // TimelineSpec: Specification of the timeline aggregation parameters. + // **Supported aggregation periods:** * DAILY: metrics are aggregated in + // calendar date intervals. Due to historical constraints, the only + // supported timezone is `America/Los_Angeles`. + TimelineSpec *GooglePlayDeveloperReportingV1beta1TimelineSpec `json:"timelineSpec,omitempty"` + + // UserCohort: User view to select. The output data will correspond to + // the selected view. **Supported values:** * `OS_PUBLIC` To select data + // from all publicly released Android versions. This is the default. + // Supports all the above dimensions. * `APP_TESTERS` To select data + // from users who have opted in to be testers. Supports all the above + // dimensions. * `OS_BETA` To select data from beta Android versions + // only, excluding data from released Android versions. Only the + // following dimensions are supported: * `versionCode` (int64): version + // of the app that was running on the user's device. * `osBuild` + // (string): OS build of the user's device, e.g., "T1B2.220916.004". + // + // Possible values: + // "USER_COHORT_UNSPECIFIED" - Unspecified User cohort. This will + // automatically choose the default value. + // "OS_PUBLIC" - This is default view. Contains data from public + // released android versions only. + // "OS_BETA" - This is the view with just android beta data excluding + // released OS version data. + // "APP_TESTERS" - This is the view with data only from users who have + // opted in to be testers for a given app, excluding OS beta data. + UserCohort string `json:"userCohort,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dimensions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1476,145 +1809,188 @@ type GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet str // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FreshnessInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Dimensions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet) MarshalJSON() ([]byte, error) { - type NoMethod GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet +func (s *GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GooglePlayDeveloperReportingV1beta1TimelineSpec: Specification of the -// time-related aggregation parameters of a timeline. Timelines have an -// aggregation period (`DAILY`, `HOURLY`, etc) which defines how events -// are aggregated in metrics. The points in a timeline are defined by -// the starting DateTime of the aggregation period. The duration is -// implicit in the AggregationPeriod. Hourly aggregation periods, when -// supported by a metric set, are always specified in UTC to avoid -// ambiguities around daylight saving time transitions, where an hour is -// skipped when adopting DST, and repeated when abandoning DST. For -// example, the timestamp '2021-11-07 01:00:00 America/Los_Angeles' is -// ambiguous since it can correspond to '2021-11-07 08:00:00 UTC' or -// '2021-11-07 09:00:00 UTC'. Daily aggregation periods require -// specifying a timezone which will determine the precise instants of -// the start and the end of the day. Not all metric sets support all -// timezones, so make sure to check which timezones are supported by the -// metric set you want to query. -type GooglePlayDeveloperReportingV1beta1TimelineSpec struct { - // AggregationPeriod: Type of the aggregation period of the datapoints - // in the timeline. Intervals are identified by the date and time at the - // start of the interval. - // - // Possible values: - // "AGGREGATION_PERIOD_UNSPECIFIED" - Unspecified granularity. - // "HOURLY" - Data is aggregated in hourly intervals. - // "DAILY" - Data is aggregated in daily intervals. - AggregationPeriod string `json:"aggregationPeriod,omitempty"` +// GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResp +// onse: Response message for QuerySlowRenderingRateMetricSet. +type GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse struct { + // NextPageToken: Continuation token to fetch the next page of data. + NextPageToken string `json:"nextPageToken,omitempty"` - // EndTime: Ending datapoint of the timeline (exclusive). See start_time - // for restrictions. The timezone of the end point must match the - // timezone of the start point. - EndTime *GoogleTypeDateTime `json:"endTime,omitempty"` + // Rows: Returned rows of data. + Rows []*GooglePlayDeveloperReportingV1beta1MetricsRow `json:"rows,omitempty"` - // StartTime: Starting datapoint of the timeline (inclusive). Must be - // aligned to the aggregation period as follows: * HOURLY: the - // 'minutes', 'seconds' and 'nanos' fields must be unset. The time_zone - // can be left unset (defaults to UTC) or set explicitly to "UTC". - // Setting any other utc_offset or timezone id will result in a - // validation error. * DAILY: the 'hours', 'minutes', 'seconds' and - // 'nanos' fields must be unset. Different metric sets support different - // timezones. It can be left unset to use the default timezone specified - // by the metric set. The timezone of the end point must match the - // timezone of the start point. - StartTime *GoogleTypeDateTime `json:"startTime,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AggregationPeriod") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AggregationPeriod") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` } -func (s *GooglePlayDeveloperReportingV1beta1TimelineSpec) MarshalJSON() ([]byte, error) { - type NoMethod GooglePlayDeveloperReportingV1beta1TimelineSpec +func (s *GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleTypeDateTime: Represents civil time (or occasionally physical -// time). This type can represent a civil time in one of a few possible -// ways: * When utc_offset is set and time_zone is unset: a civil time -// on a calendar day with a particular offset from UTC. * When time_zone -// is set and utc_offset is unset: a civil time on a calendar day in a -// particular time zone. * When neither time_zone nor utc_offset is set: -// a civil time on a calendar day in local time. The date is relative to -// the Proleptic Gregorian Calendar. If year, month, or day are 0, the -// DateTime is considered not to have a specific year, month, or day -// respectively. This type may also be used to represent a physical time -// if all the date and time fields are set and either case of the -// `time_offset` oneof is set. Consider using `Timestamp` message for -// physical time instead. If your use case also would like to store the -// user's timezone, that can be done in another field. This type is more -// flexible than some applications may want. Make sure to document and -// validate your application's limitations. -type GoogleTypeDateTime struct { - // Day: Optional. Day of month. Must be from 1 to 31 and valid for the - // year and month, or 0 if specifying a datetime without a day. - Day int64 `json:"day,omitempty"` +// GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest: +// +// Request message for QuerySlowStartRateMetricSet. +type GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest struct { + // Dimensions: Dimensions to slice the data by. **Supported + // dimensions:** * `apiLevel` (string): the API level of Android that + // was running on the user's device. * `versionCode` (int64): version of + // the app that was running on the user's device. * `deviceModel` + // (string): unique identifier of the user's device model. * + // `deviceType` (string): the type (also known as form factor) of the + // user's device. * `countryCode` (string): the country or region of the + // user's device based on their IP address, represented as a 2-letter + // ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` + // (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * + // `deviceSocMake` (string): Make of the device's primary + // system-on-chip, e.g., Samsung. Reference + // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) + // * `deviceSocModel` (string): Model of the device's primary + // system-on-chip, e.g., "Exynos 2100". Reference + // (https://developer.android.com/reference/android/os/Build#SOC_MODEL) + // * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. + // * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo + // 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., + // ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., + // Mali. * `deviceGpuVersion` (string): Version of the device's GPU, + // e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the + // device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES + // version of the device, e.g., "196610". * `deviceScreenSize` (string): + // Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` + // (string): Screen density of the device, e.g., mdpi, hdpi. + Dimensions []string `json:"dimensions,omitempty"` - // Hours: Optional. Hours of day in 24 hour format. Should be from 0 to - // 23, defaults to 0 (midnight). An API may choose to allow the value - // "24:00:00" for scenarios like business closing time. - Hours int64 `json:"hours,omitempty"` + // Filter: Filters to apply to data. The filtering expression follows + // AIP-160 (https://google.aip.dev/160) standard and supports filtering + // by equality of all breakdown dimensions. + Filter string `json:"filter,omitempty"` - // Minutes: Optional. Minutes of hour of day. Must be from 0 to 59, - // defaults to 0. - Minutes int64 `json:"minutes,omitempty"` + // Metrics: Metrics to aggregate. **Supported metrics:** * + // `slowStartRate` (`google.type.Decimal`): Percentage of distinct users + // in the aggregation period that had a slow start. * + // `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling + // average value of `slowStartRate` in the last 7 days. The daily values + // are weighted by the count of distinct users for the day. * + // `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling + // average value of `slowStartRate` in the last 28 days. The daily + // values are weighted by the count of distinct users for the day. * + // `distinctUsers` (`google.type.Decimal`): Count of distinct users in + // the aggregation period that were used as normalization value for the + // `slowStartRate` metric. A user is counted in this metric if their app + // was launched in the device. Care must be taken not to aggregate this + // count further, as it may result in users being counted multiple + // times. The value is rounded to the nearest multiple of 10, 100, 1,000 + // or 1,000,000, depending on the magnitude of the value. + Metrics []string `json:"metrics,omitempty"` - // Month: Optional. Month of year. Must be from 1 to 12, or 0 if - // specifying a datetime without a month. - Month int64 `json:"month,omitempty"` + // PageSize: Maximum size of the returned data. If unspecified, at most + // 1000 rows will be returned. The maximum value is 100000; values above + // 100000 will be coerced to 100000. + PageSize int64 `json:"pageSize,omitempty"` - // Nanos: Optional. Fractions of seconds in nanoseconds. Must be from 0 - // to 999,999,999, defaults to 0. - Nanos int64 `json:"nanos,omitempty"` + // PageToken: A page token, received from a previous call. Provide this + // to retrieve the subsequent page. When paginating, all other + // parameters provided to the request must match the call that provided + // the page token. + PageToken string `json:"pageToken,omitempty"` - // Seconds: Optional. Seconds of minutes of the time. Must normally be - // from 0 to 59, defaults to 0. An API may allow the value 60 if it - // allows leap-seconds. - Seconds int64 `json:"seconds,omitempty"` + // TimelineSpec: Specification of the timeline aggregation parameters. + // **Supported aggregation periods:** * DAILY: metrics are aggregated in + // calendar date intervals. Due to historical constraints, the only + // supported timezone is `America/Los_Angeles`. + TimelineSpec *GooglePlayDeveloperReportingV1beta1TimelineSpec `json:"timelineSpec,omitempty"` - // TimeZone: Time zone. - TimeZone *GoogleTypeTimeZone `json:"timeZone,omitempty"` + // UserCohort: User view to select. The output data will correspond to + // the selected view. **Supported values:** * `OS_PUBLIC` To select data + // from all publicly released Android versions. This is the default. + // Supports all the above dimensions. * `APP_TESTERS` To select data + // from users who have opted in to be testers. Supports all the above + // dimensions. * `OS_BETA` To select data from beta Android versions + // only, excluding data from released Android versions. Only the + // following dimensions are supported: * `versionCode` (int64): version + // of the app that was running on the user's device. * `osBuild` + // (string): OS build of the user's device, e.g., "T1B2.220916.004". + // + // Possible values: + // "USER_COHORT_UNSPECIFIED" - Unspecified User cohort. This will + // automatically choose the default value. + // "OS_PUBLIC" - This is default view. Contains data from public + // released android versions only. + // "OS_BETA" - This is the view with just android beta data excluding + // released OS version data. + // "APP_TESTERS" - This is the view with data only from users who have + // opted in to be testers for a given app, excluding OS beta data. + UserCohort string `json:"userCohort,omitempty"` - // UtcOffset: UTC offset. Must be whole seconds, between -18 hours and - // +18 hours. For example, a UTC offset of -4:00 would be represented as - // { seconds: -14400 }. - UtcOffset string `json:"utcOffset,omitempty"` + // ForceSendFields is a list of field names (e.g. "Dimensions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` - // Year: Optional. Year of date. Must be from 1 to 9999, or 0 if - // specifying a datetime without a year. - Year int64 `json:"year,omitempty"` + // NullFields is a list of field names (e.g. "Dimensions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} - // ForceSendFields is a list of field names (e.g. "Day") to +func (s *GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse +// : Response message for QuerySlowStartRateMetricSet. +type GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse struct { + // NextPageToken: Continuation token to fetch the next page of data. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Rows: Returned rows of data. + Rows []*GooglePlayDeveloperReportingV1beta1MetricsRow `json:"rows,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1622,178 +1998,2710 @@ type GoogleTypeDateTime struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Day") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMet +// ricSetRequest: Request message for +// QueryStuckBackgroundWakelockRateMetricSet. +type GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest struct { + // Dimensions: Dimensions to slice the data by. **Supported + // dimensions:** * `apiLevel` (string): the API level of Android that + // was running on the user's device. * `versionCode` (int64): version of + // the app that was running on the user's device. * `deviceModel` + // (string): unique identifier of the user's device model. * + // `deviceType` (string): the type (also known as form factor) of the + // user's device. * `countryCode` (string): the country or region of the + // user's device based on their IP address, represented as a 2-letter + // ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` + // (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * + // `deviceSocMake` (string): Make of the device's primary + // system-on-chip, e.g., Samsung. Reference + // (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) + // * `deviceSocModel` (string): Model of the device's primary + // system-on-chip, e.g., "Exynos 2100". Reference + // (https://developer.android.com/reference/android/os/Build#SOC_MODEL) + // * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. + // * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo + // 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., + // ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., + // Mali. * `deviceGpuVersion` (string): Version of the device's GPU, + // e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the + // device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES + // version of the device, e.g., "196610". * `deviceScreenSize` (string): + // Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` + // (string): Screen density of the device, e.g., mdpi, hdpi. + Dimensions []string `json:"dimensions,omitempty"` + + // Filter: Filters to apply to data. The filtering expression follows + // AIP-160 (https://google.aip.dev/160) standard and supports filtering + // by equality of all breakdown dimensions. + Filter string `json:"filter,omitempty"` + + // Metrics: Metrics to aggregate. **Supported metrics:** * + // `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct + // users in the aggregation period that had a wakelock held in the + // background for longer than 1 hour. * + // `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling + // average value of `stuckBgWakelockRate` in the last 7 days. The daily + // values are weighted by the count of distinct users for the day. * + // `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling + // average value of `stuckBgWakelockRate` in the last 28 days. The daily + // values are weighted by the count of distinct users for the day. * + // `distinctUsers` (`google.type.Decimal`): Count of distinct users in + // the aggregation period that were used as normalization value for the + // `stuckBgWakelockRate` metric. A user is counted in this metric if + // they app was doing any work on the device, i.e., not just active + // foreground usage but also background work. Care must be taken not to + // aggregate this count further, as it may result in users being counted + // multiple times. The value is rounded to the nearest multiple of 10, + // 100, 1,000 or 1,000,000, depending on the magnitude of the value. + Metrics []string `json:"metrics,omitempty"` + + // PageSize: Maximum size of the returned data. If unspecified, at most + // 1000 rows will be returned. The maximum value is 100000; values above + // 100000 will be coerced to 100000. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: A page token, received from a previous call. Provide this + // to retrieve the subsequent page. When paginating, all other + // parameters provided to the request must match the call that provided + // the page token. + PageToken string `json:"pageToken,omitempty"` + + // TimelineSpec: Specification of the timeline aggregation parameters. + // **Supported aggregation periods:** * DAILY: metrics are aggregated in + // calendar date intervals. Due to historical constraints, the only + // supported timezone is `America/Los_Angeles`. + TimelineSpec *GooglePlayDeveloperReportingV1beta1TimelineSpec `json:"timelineSpec,omitempty"` + + // UserCohort: User view to select. The output data will correspond to + // the selected view. **Supported values:** * `OS_PUBLIC` To select data + // from all publicly released Android versions. This is the default. + // Supports all the above dimensions. * `APP_TESTERS` To select data + // from users who have opted in to be testers. Supports all the above + // dimensions. * `OS_BETA` To select data from beta android versions + // only, excluding data from released android versions. Only the + // following dimensions are supported: * `versionCode` (int64): version + // of the app that was running on the user's device. * `osBuild` + // (string): OS build of the user's device, e.g., "T1B2.220916.004". + // + // Possible values: + // "USER_COHORT_UNSPECIFIED" - Unspecified User cohort. This will + // automatically choose the default value. + // "OS_PUBLIC" - This is default view. Contains data from public + // released android versions only. + // "OS_BETA" - This is the view with just android beta data excluding + // released OS version data. + // "APP_TESTERS" - This is the view with data only from users who have + // opted in to be testers for a given app, excluding OS beta data. + UserCohort string `json:"userCohort,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dimensions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dimensions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMet +// ricSetResponse: Response message for +// QueryStuckBackgroundWakelockRateMetricSet. +type GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse struct { + // NextPageToken: Continuation token to fetch the next page of data. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Rows: Returned rows of data. + Rows []*GooglePlayDeveloperReportingV1beta1MetricsRow `json:"rows,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1QueryStuckBackgroundWakelockRateMetricSetResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse: +// Response with a paginated list of issues that matched the request. +type GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse struct { + // ErrorIssues: ErrorIssues that were found. + ErrorIssues []*GooglePlayDeveloperReportingV1beta1ErrorIssue `json:"errorIssues,omitempty"` + + // NextPageToken: Continuation token to fetch the next page of data. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ErrorIssues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorIssues") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse: +// Response with a paginated list of error reports matching the search +// query. +type GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse struct { + // ErrorReports: Error reports that were found. + ErrorReports []*GooglePlayDeveloperReportingV1beta1ErrorReport `json:"errorReports,omitempty"` + + // NextPageToken: Page token to fetch the next page of reports. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ErrorReports") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorReports") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet: +// Singleton resource representing the set of Slow Rendering metrics. +// This metric set contains low-level rendering data captured by +// SurafeFlinger. Sessions are evaluated based on the present-to-present +// histogram of frames handled by any SurfaceFlinger layer owned by the +// app. A slow session is a session where more than 25% of frames for +// the session did not meet the metric's target frame rate (either +// 20fps, or 30fps). *NOTE:* This metric set is only available for +// games. **Supported aggregation periods:** * DAILY: metrics are +// aggregated in calendar date intervals. Due to historical constraints, +// the only supported timezone is `America/Los_Angeles`. **Supported +// metrics:** * `slowRenderingRate20Fps` (`google.type.Decimal`): +// Percentage of distinct users in the aggregation period that had slow +// rendering. * `slowRenderingRate20Fps7dUserWeighted` +// (`google.type.Decimal`): Rolling average value of +// `slowRenderingRate20Fps` in the last 7 days. The daily values are +// weighted by the count of distinct users for the day. * +// `slowRenderingRate20Fps28dUserWeighted` (`google.type.Decimal`): +// Rolling average value of `slowRenderingRate20Fps` in the last 28 +// days. The daily values are weighted by the count of distinct users +// for the day. * `slowRenderingRate30Fps` (`google.type.Decimal`): +// Percentage of distinct users in the aggregation period that had slow +// rendering. * `slowRenderingRate30Fps7dUserWeighted` +// (`google.type.Decimal`): Rolling average value of +// `slowRenderingRate30Fps` in the last 7 days. The daily values are +// weighted by the count of distinct users for the day. * +// `slowRenderingRate30Fps28dUserWeighted` (`google.type.Decimal`): +// Rolling average value of `slowRenderingRate30Fps` in the last 28 +// days. The daily values are weighted by the count of distinct users +// for the day. * `distinctUsers` (`google.type.Decimal`): Count of +// distinct users in the aggregation period that were used as +// normalization value for the +// `slowRenderingRate20Fps`/`slowRenderingRate30Fps` metric. A user is +// counted in this metric if their app rendered any frames. Care must be +// taken not to aggregate this count further, as it may result in users +// being counted multiple times. The value is rounded to the nearest +// multiple of 10, 100, 1,000 or 1,000,000, depending on the magnitude +// of the value. **Supported dimensions:** * `apiLevel` (string): the +// API level of Android that was running on the user's device. * +// `versionCode` (int64): version of the app that was running on the +// user's device. * `deviceModel` (string): unique identifier of the +// user's device model. * `deviceType` (string): the type (also known as +// form factor) of the user's device. * `countryCode` (string): the +// country or region of the user's device based on their IP address, +// represented as a 2-letter ISO-3166 code (e.g. US for the United +// States). * `deviceRamBucket` (int64): RAM of the device, in MB, in +// buckets (3GB, 4GB, etc.). * `deviceSocMake` (string): Make of the +// device's primary system-on-chip, e.g., Samsung. Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) +// * `deviceSocModel` (string): Model of the device's primary +// system-on-chip, e.g., "Exynos 2100". Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MODEL) +// * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. +// * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo +// 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., +// ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., +// Mali. * `deviceGpuVersion` (string): Version of the device's GPU, +// e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the +// device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES +// version of the device, e.g., "196610". * `deviceScreenSize` (string): +// Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` +// (string): Screen density of the device, e.g., mdpi, hdpi. **Required +// permissions**: to access this resource, the calling user needs the +// _View app information (read-only)_ permission for the app. +type GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet struct { + // FreshnessInfo: Summary about data freshness in this resource. + FreshnessInfo *GooglePlayDeveloperReportingV1beta1FreshnessInfo `json:"freshnessInfo,omitempty"` + + // Name: The resource name. Format: + // apps/{app}/slowRenderingRateMetricSet + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FreshnessInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FreshnessInfo") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet: Singleton +// resource representing the set of Slow Start metrics. This metric set +// contains Activity start duration data. **Supported aggregation +// periods:** * DAILY: metrics are aggregated in calendar date +// intervals. Due to historical constraints, the only supported timezone +// is `America/Los_Angeles`. **Supported metrics:** * `slowStartRate` +// (`google.type.Decimal`): Percentage of distinct users in the +// aggregation period that had a slow start. * +// `slowStartRate7dUserWeighted` (`google.type.Decimal`): Rolling +// average value of `slowStartRate` in the last 7 days. The daily values +// are weighted by the count of distinct users for the day. * +// `slowStartRate28dUserWeighted` (`google.type.Decimal`): Rolling +// average value of `slowStartRate` in the last 28 days. The daily +// values are weighted by the count of distinct users for the day. * +// `distinctUsers` (`google.type.Decimal`): Count of distinct users in +// the aggregation period that were used as normalization value for the +// `slowStartRate` metric. A user is counted in this metric if their app +// was launched in the device. Care must be taken not to aggregate this +// count further, as it may result in users being counted multiple +// times. The value is rounded to the nearest multiple of 10, 100, 1,000 +// or 1,000,000, depending on the magnitude of the value. **Required +// dimension:** This dimension must be specified with each request for +// the request to be valid. * `startType` (string): the type of start +// that was measured. Valid types are `HOT`, `WARM` and `COLD`. +// **Supported dimensions:** * `apiLevel` (string): the API level of +// Android that was running on the user's device. * `versionCode` +// (int64): version of the app that was running on the user's device. * +// `deviceModel` (string): unique identifier of the user's device model. +// * `deviceType` (string): the type (also known as form factor) of the +// user's device. * `countryCode` (string): the country or region of the +// user's device based on their IP address, represented as a 2-letter +// ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` +// (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * +// `deviceSocMake` (string): Make of the device's primary +// system-on-chip, e.g., Samsung. Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) +// * `deviceSocModel` (string): Model of the device's primary +// system-on-chip, e.g., "Exynos 2100". Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MODEL) +// * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. +// * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo +// 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., +// ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., +// Mali. * `deviceGpuVersion` (string): Version of the device's GPU, +// e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the +// device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES +// version of the device, e.g., "196610". * `deviceScreenSize` (string): +// Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` +// (string): Screen density of the device, e.g., mdpi, hdpi. **Required +// permissions**: to access this resource, the calling user needs the +// _View app information (read-only)_ permission for the app. +type GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet struct { + // FreshnessInfo: Summary about data freshness in this resource. + FreshnessInfo *GooglePlayDeveloperReportingV1beta1FreshnessInfo `json:"freshnessInfo,omitempty"` + + // Name: The resource name. Format: apps/{app}/slowStartRateMetricSet + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FreshnessInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FreshnessInfo") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSe +// t: Singleton resource representing the set of Stuck Background +// Wakelocks metrics. This metric set contains PowerManager wakelock +// duration data combined with process state data to produce a +// normalized metric independent of user counts. **Supported aggregation +// periods:** * DAILY: metrics are aggregated in calendar date +// intervals. Due to historical constraints, the only supported timezone +// is `America/Los_Angeles`. **Supported metrics:** * +// `stuckBgWakelockRate` (`google.type.Decimal`): Percentage of distinct +// users in the aggregation period that had a wakelock held in the +// background for longer than 1 hour. * +// `stuckBgWakelockRate7dUserWeighted` (`google.type.Decimal`): Rolling +// average value of `stuckBgWakelockRate` in the last 7 days. The daily +// values are weighted by the count of distinct users for the day. * +// `stuckBgWakelockRate28dUserWeighted` (`google.type.Decimal`): Rolling +// average value of `stuckBgWakelockRate` in the last 28 days. The daily +// values are weighted by the count of distinct users for the day. * +// `distinctUsers` (`google.type.Decimal`): Count of distinct users in +// the aggregation period that were used as normalization value for the +// `stuckBgWakelockRate` metric. A user is counted in this metric if +// their app was doing any work on the device, i.e., not just active +// foreground usage but also background work. Care must be taken not to +// aggregate this count further, as it may result in users being counted +// multiple times. The value is rounded to the nearest multiple of 10, +// 100, 1,000 or 1,000,000, depending on the magnitude of the value. +// **Supported dimensions:** * `apiLevel` (string): the API level of +// Android that was running on the user's device. * `versionCode` +// (int64): version of the app that was running on the user's device. * +// `deviceModel` (string): unique identifier of the user's device model. +// * `deviceType` (string): the type (also known as form factor) of the +// user's device. * `countryCode` (string): the country or region of the +// user's device based on their IP address, represented as a 2-letter +// ISO-3166 code (e.g. US for the United States). * `deviceRamBucket` +// (int64): RAM of the device, in MB, in buckets (3GB, 4GB, etc.). * +// `deviceSocMake` (string): Make of the device's primary +// system-on-chip, e.g., Samsung. Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MANUFACTURER) +// * `deviceSocModel` (string): Model of the device's primary +// system-on-chip, e.g., "Exynos 2100". Reference +// (https://developer.android.com/reference/android/os/Build#SOC_MODEL) +// * `deviceCpuMake` (string): Make of the device's CPU, e.g., Qualcomm. +// * `deviceCpuModel` (string): Model of the device's CPU, e.g., "Kryo +// 240". * `deviceGpuMake` (string): Make of the device's GPU, e.g., +// ARM. * `deviceGpuModel` (string): Model of the device's GPU, e.g., +// Mali. * `deviceGpuVersion` (string): Version of the device's GPU, +// e.g., T750. * `deviceVulkanVersion` (string): Vulkan version of the +// device, e.g., "4198400". * `deviceGlEsVersion` (string): OpenGL ES +// version of the device, e.g., "196610". * `deviceScreenSize` (string): +// Screen size of the device, e.g., NORMAL, LARGE. * `deviceScreenDpi` +// (string): Screen density of the device, e.g., mdpi, hdpi. **Required +// permissions**: to access this resource, the calling user needs the +// _View app information (read-only)_ permission for the app. +type GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet struct { + // FreshnessInfo: Summary about data freshness in this resource. + FreshnessInfo *GooglePlayDeveloperReportingV1beta1FreshnessInfo `json:"freshnessInfo,omitempty"` + + // Name: The resource name. Format: + // apps/{app}/stuckBackgroundWakelockRateMetricSet + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FreshnessInfo") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FreshnessInfo") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1StuckBackgroundWakelockRateMetricSet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GooglePlayDeveloperReportingV1beta1TimelineSpec: Specification of the +// time-related aggregation parameters of a timeline. Timelines have an +// aggregation period (`DAILY`, `HOURLY`, etc) which defines how events +// are aggregated in metrics. The points in a timeline are defined by +// the starting DateTime of the aggregation period. The duration is +// implicit in the AggregationPeriod. Hourly aggregation periods, when +// supported by a metric set, are always specified in UTC to avoid +// ambiguities around daylight saving time transitions, where an hour is +// skipped when adopting DST, and repeated when abandoning DST. For +// example, the timestamp '2021-11-07 01:00:00 America/Los_Angeles' is +// ambiguous since it can correspond to '2021-11-07 08:00:00 UTC' or +// '2021-11-07 09:00:00 UTC'. Daily aggregation periods require +// specifying a timezone which will determine the precise instants of +// the start and the end of the day. Not all metric sets support all +// timezones, so make sure to check which timezones are supported by the +// metric set you want to query. +type GooglePlayDeveloperReportingV1beta1TimelineSpec struct { + // AggregationPeriod: Type of the aggregation period of the datapoints + // in the timeline. Intervals are identified by the date and time at the + // start of the interval. + // + // Possible values: + // "AGGREGATION_PERIOD_UNSPECIFIED" - Unspecified granularity. + // "HOURLY" - Data is aggregated in hourly intervals. + // "DAILY" - Data is aggregated in daily intervals. + AggregationPeriod string `json:"aggregationPeriod,omitempty"` + + // EndTime: Ending datapoint of the timeline (exclusive). See start_time + // for restrictions. The timezone of the end point must match the + // timezone of the start point. + EndTime *GoogleTypeDateTime `json:"endTime,omitempty"` + + // StartTime: Starting datapoint of the timeline (inclusive). Must be + // aligned to the aggregation period as follows: * HOURLY: the + // 'minutes', 'seconds' and 'nanos' fields must be unset. The time_zone + // can be left unset (defaults to UTC) or set explicitly to "UTC". + // Setting any other utc_offset or timezone id will result in a + // validation error. * DAILY: the 'hours', 'minutes', 'seconds' and + // 'nanos' fields must be unset. Different metric sets support different + // timezones. It can be left unset to use the default timezone specified + // by the metric set. The timezone of the end point must match the + // timezone of the start point. + StartTime *GoogleTypeDateTime `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AggregationPeriod") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AggregationPeriod") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GooglePlayDeveloperReportingV1beta1TimelineSpec) MarshalJSON() ([]byte, error) { + type NoMethod GooglePlayDeveloperReportingV1beta1TimelineSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleTypeDateTime: Represents civil time (or occasionally physical +// time). This type can represent a civil time in one of a few possible +// ways: * When utc_offset is set and time_zone is unset: a civil time +// on a calendar day with a particular offset from UTC. * When time_zone +// is set and utc_offset is unset: a civil time on a calendar day in a +// particular time zone. * When neither time_zone nor utc_offset is set: +// a civil time on a calendar day in local time. The date is relative to +// the Proleptic Gregorian Calendar. If year, month, or day are 0, the +// DateTime is considered not to have a specific year, month, or day +// respectively. This type may also be used to represent a physical time +// if all the date and time fields are set and either case of the +// `time_offset` oneof is set. Consider using `Timestamp` message for +// physical time instead. If your use case also would like to store the +// user's timezone, that can be done in another field. This type is more +// flexible than some applications may want. Make sure to document and +// validate your application's limitations. +type GoogleTypeDateTime struct { + // Day: Optional. Day of month. Must be from 1 to 31 and valid for the + // year and month, or 0 if specifying a datetime without a day. + Day int64 `json:"day,omitempty"` + + // Hours: Optional. Hours of day in 24 hour format. Should be from 0 to + // 23, defaults to 0 (midnight). An API may choose to allow the value + // "24:00:00" for scenarios like business closing time. + Hours int64 `json:"hours,omitempty"` + + // Minutes: Optional. Minutes of hour of day. Must be from 0 to 59, + // defaults to 0. + Minutes int64 `json:"minutes,omitempty"` + + // Month: Optional. Month of year. Must be from 1 to 12, or 0 if + // specifying a datetime without a month. + Month int64 `json:"month,omitempty"` + + // Nanos: Optional. Fractions of seconds in nanoseconds. Must be from 0 + // to 999,999,999, defaults to 0. + Nanos int64 `json:"nanos,omitempty"` + + // Seconds: Optional. Seconds of minutes of the time. Must normally be + // from 0 to 59, defaults to 0. An API may allow the value 60 if it + // allows leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + + // TimeZone: Time zone. + TimeZone *GoogleTypeTimeZone `json:"timeZone,omitempty"` + + // UtcOffset: UTC offset. Must be whole seconds, between -18 hours and + // +18 hours. For example, a UTC offset of -4:00 would be represented as + // { seconds: -14400 }. + UtcOffset string `json:"utcOffset,omitempty"` + + // Year: Optional. Year of date. Must be from 1 to 9999, or 0 if + // specifying a datetime without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleTypeDateTime) MarshalJSON() ([]byte, error) { + type NoMethod GoogleTypeDateTime + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleTypeDecimal: A representation of a decimal value, such as 2.5. +// Clients may convert values into language-native decimal formats, such +// as Java's BigDecimal or Python's decimal.Decimal. [BigDecimal]: +// https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html +// [decimal.Decimal]: https://docs.python.org/3/library/decimal.html +type GoogleTypeDecimal struct { + // Value: The decimal value, as a string. The string representation + // consists of an optional sign, `+` (`U+002B`) or `-` (`U+002D`), + // followed by a sequence of zero or more decimal digits ("the + // integer"), optionally followed by a fraction, optionally followed by + // an exponent. An empty string **should** be interpreted as `0`. The + // fraction consists of a decimal point followed by zero or more decimal + // digits. The string must contain at least one digit in either the + // integer or the fraction. The number formed by the sign, the integer + // and the fraction is referred to as the significand. The exponent + // consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed + // by one or more decimal digits. Services **should** normalize decimal + // values before storing them by: - Removing an explicitly-provided `+` + // sign (`+2.5` -> `2.5`). - Replacing a zero-length integer value with + // `0` (`.5` -> `0.5`). - Coercing the exponent character to upper-case, + // with explicit sign (`2.5e8` -> `2.5E+8`). - Removing an + // explicitly-provided zero exponent (`2.5E0` -> `2.5`). Services + // **may** perform additional normalization based on its own needs and + // the internal decimal implementation selected, such as shifting the + // decimal point and exponent value together (example: `2.5E-1` <-> + // `0.25`). Additionally, services **may** preserve trailing zeroes in + // the fraction to indicate increased precision, but are not required to + // do so. Note that only the `.` character is supported to divide the + // integer and the fraction; `,` **should not** be supported regardless + // of locale. Additionally, thousand separators **should not** be + // supported. If a service does support them, values **must** be + // normalized. The ENBF grammar is: DecimalString = '' | [Sign] + // Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | + // [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { + // '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services + // **should** clearly document the range of supported values, the + // maximum supported precision (total number of digits), and, if + // applicable, the scale (number of digits after the decimal point), as + // well as how it behaves when receiving out-of-bounds values. Services + // **may** choose to accept values passed as input even when the value + // has a higher precision or scale than the service supports, and + // **should** round the value to fit the supported scale. Alternatively, + // the service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` + // in gRPC) if precision would be lost. Services **should** error with + // `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service + // receives a value outside of the supported range. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Value") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Value") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleTypeDecimal) MarshalJSON() ([]byte, error) { + type NoMethod GoogleTypeDecimal + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleTypeTimeZone: Represents a time zone from the IANA Time Zone +// Database (https://www.iana.org/time-zones). +type GoogleTypeTimeZone struct { + // Id: IANA Time Zone Database time zone, e.g. "America/New_York". + Id string `json:"id,omitempty"` + + // Version: Optional. IANA Time Zone Database version number, e.g. + // "2019a". + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleTypeTimeZone) MarshalJSON() ([]byte, error) { + type NoMethod GoogleTypeTimeZone + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "playdeveloperreporting.anomalies.list": + +type AnomaliesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists anomalies in any of the datasets. +// +// - parent: Parent app for which anomalies were detected. Format: +// apps/{app}. +func (r *AnomaliesService) List(parent string) *AnomaliesListCall { + c := &AnomaliesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering criteria for +// anomalies. For basic filter guidance, please check: +// https://google.aip.dev/160. **Supported functions:** * +// `activeBetween(startTime, endTime)`: If specified, only list +// anomalies that were active in between `startTime` (inclusive) and +// `endTime` (exclusive). Both parameters are expected to conform to an +// RFC-3339 formatted string (e.g. `2012-04-21T11:30:00-04:00`). UTC +// offsets are supported. Both `startTime` and `endTime` accept the +// special value `UNBOUNDED`, to signify intervals with no lower or +// upper bound, respectively. Examples: * +// `activeBetween("2021-04-21T11:30:00Z", "2021-07-21T00:00:00Z")` * +// `activeBetween(UNBOUNDED, "2021-11-21T00:00:00-04:00")` * +// `activeBetween("2021-07-21T00:00:00-04:00", UNBOUNDED)` +func (c *AnomaliesListCall) Filter(filter string) *AnomaliesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum size of the +// returned data. If unspecified, at most 10 anomalies will be returned. +// The maximum value is 100; values above 100 will be coerced to 100. +func (c *AnomaliesListCall) PageSize(pageSize int64) *AnomaliesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListErrorReports` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListErrorReports` must match the call that provided the +// page token. +func (c *AnomaliesListCall) PageToken(pageToken string) *AnomaliesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *AnomaliesListCall) Fields(s ...googleapi.Field) *AnomaliesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *AnomaliesListCall) IfNoneMatch(entityTag string) *AnomaliesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *AnomaliesListCall) Context(ctx context.Context) *AnomaliesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *AnomaliesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AnomaliesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/anomalies") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.anomalies.list" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *AnomaliesListCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists anomalies in any of the datasets.", + // "flatPath": "v1beta1/apps/{appsId}/anomalies", + // "httpMethod": "GET", + // "id": "playdeveloperreporting.anomalies.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filtering criteria for anomalies. For basic filter guidance, please check: https://google.aip.dev/160. **Supported functions:** * `activeBetween(startTime, endTime)`: If specified, only list anomalies that were active in between `startTime` (inclusive) and `endTime` (exclusive). Both parameters are expected to conform to an RFC-3339 formatted string (e.g. `2012-04-21T11:30:00-04:00`). UTC offsets are supported. Both `startTime` and `endTime` accept the special value `UNBOUNDED`, to signify intervals with no lower or upper bound, respectively. Examples: * `activeBetween(\"2021-04-21T11:30:00Z\", \"2021-07-21T00:00:00Z\")` * `activeBetween(UNBOUNDED, \"2021-11-21T00:00:00-04:00\")` * `activeBetween(\"2021-07-21T00:00:00-04:00\", UNBOUNDED)`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Maximum size of the returned data. If unspecified, at most 10 anomalies will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListErrorReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListErrorReports` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent app for which anomalies were detected. Format: apps/{app}", + // "location": "path", + // "pattern": "^apps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/anomalies", + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *AnomaliesListCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "playdeveloperreporting.vitals.anrrate.get": + +type VitalsAnrrateGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Describes the properties of the metric set. +// +// - name: The resource name. Format: apps/{app}/anrRateMetricSet. +func (r *VitalsAnrrateService) Get(name string) *VitalsAnrrateGetCall { + c := &VitalsAnrrateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *VitalsAnrrateGetCall) Fields(s ...googleapi.Field) *VitalsAnrrateGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *VitalsAnrrateGetCall) IfNoneMatch(entityTag string) *VitalsAnrrateGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *VitalsAnrrateGetCall) Context(ctx context.Context) *VitalsAnrrateGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *VitalsAnrrateGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VitalsAnrrateGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.vitals.anrrate.get" call. +// Exactly one of *GooglePlayDeveloperReportingV1beta1AnrRateMetricSet +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GooglePlayDeveloperReportingV1beta1AnrRateMetricSet.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsAnrrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1AnrRateMetricSet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1beta1AnrRateMetricSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Describes the properties of the metric set.", + // "flatPath": "v1beta1/apps/{appsId}/anrRateMetricSet", + // "httpMethod": "GET", + // "id": "playdeveloperreporting.vitals.anrrate.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name. Format: apps/{app}/anrRateMetricSet", + // "location": "path", + // "pattern": "^apps/[^/]+/anrRateMetricSet$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1beta1AnrRateMetricSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// method id "playdeveloperreporting.vitals.anrrate.query": + +type VitalsAnrrateQueryCall struct { + s *Service + name string + googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Query: Queries the metrics in the metric set. +// +// - name: The resource name. Format: apps/{app}/anrRateMetricSet. +func (r *VitalsAnrrateService) Query(name string, googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetRequest) *VitalsAnrrateQueryCall { + c := &VitalsAnrrateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest = googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *VitalsAnrrateQueryCall) Fields(s ...googleapi.Field) *VitalsAnrrateQueryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *VitalsAnrrateQueryCall) Context(ctx context.Context) *VitalsAnrrateQueryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *VitalsAnrrateQueryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VitalsAnrrateQueryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:query") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.vitals.anrrate.query" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse.Serv +// erResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsAnrrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Queries the metrics in the metric set.", + // "flatPath": "v1beta1/apps/{appsId}/anrRateMetricSet:query", + // "httpMethod": "POST", + // "id": "playdeveloperreporting.vitals.anrrate.query", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name. Format: apps/{app}/anrRateMetricSet", + // "location": "path", + // "pattern": "^apps/[^/]+/anrRateMetricSet$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:query", + // "request": { + // "$ref": "GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetRequest" + // }, + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *VitalsAnrrateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest.PageToken = pt }(c.googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest.PageToken = x.NextPageToken + } +} + +// method id "playdeveloperreporting.vitals.crashrate.get": + +type VitalsCrashrateGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Describes the properties of the metric set. +// +// - name: The resource name. Format: apps/{app}/crashRateMetricSet. +func (r *VitalsCrashrateService) Get(name string) *VitalsCrashrateGetCall { + c := &VitalsCrashrateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *VitalsCrashrateGetCall) Fields(s ...googleapi.Field) *VitalsCrashrateGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *VitalsCrashrateGetCall) IfNoneMatch(entityTag string) *VitalsCrashrateGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *VitalsCrashrateGetCall) Context(ctx context.Context) *VitalsCrashrateGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *VitalsCrashrateGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VitalsCrashrateGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.vitals.crashrate.get" call. +// Exactly one of *GooglePlayDeveloperReportingV1beta1CrashRateMetricSet +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GooglePlayDeveloperReportingV1beta1CrashRateMetricSet.ServerResponse. +// Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsCrashrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1CrashRateMetricSet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1beta1CrashRateMetricSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Describes the properties of the metric set.", + // "flatPath": "v1beta1/apps/{appsId}/crashRateMetricSet", + // "httpMethod": "GET", + // "id": "playdeveloperreporting.vitals.crashrate.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name. Format: apps/{app}/crashRateMetricSet", + // "location": "path", + // "pattern": "^apps/[^/]+/crashRateMetricSet$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1beta1CrashRateMetricSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// method id "playdeveloperreporting.vitals.crashrate.query": + +type VitalsCrashrateQueryCall struct { + s *Service + name string + googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Query: Queries the metrics in the metric set. +// +// - name: The resource name. Format: apps/{app}/crashRateMetricSet. +func (r *VitalsCrashrateService) Query(name string, googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest) *VitalsCrashrateQueryCall { + c := &VitalsCrashrateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest = googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *VitalsCrashrateQueryCall) Fields(s ...googleapi.Field) *VitalsCrashrateQueryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *VitalsCrashrateQueryCall) Context(ctx context.Context) *VitalsCrashrateQueryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *VitalsCrashrateQueryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VitalsCrashrateQueryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:query") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.vitals.crashrate.query" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse.Se +// rverResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsCrashrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Queries the metrics in the metric set.", + // "flatPath": "v1beta1/apps/{appsId}/crashRateMetricSet:query", + // "httpMethod": "POST", + // "id": "playdeveloperreporting.vitals.crashrate.query", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name. Format: apps/{app}/crashRateMetricSet", + // "location": "path", + // "pattern": "^apps/[^/]+/crashRateMetricSet$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:query", + // "request": { + // "$ref": "GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest" + // }, + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *VitalsCrashrateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest.PageToken = pt }(c.googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest.PageToken = x.NextPageToken + } +} + +// method id "playdeveloperreporting.vitals.errors.counts.get": + +type VitalsErrorsCountsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Describes the properties of the metrics set. +// +// - name: Name of the errors metric set. Format: +// apps/{app}/errorCountMetricSet. +func (r *VitalsErrorsCountsService) Get(name string) *VitalsErrorsCountsGetCall { + c := &VitalsErrorsCountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *VitalsErrorsCountsGetCall) Fields(s ...googleapi.Field) *VitalsErrorsCountsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *VitalsErrorsCountsGetCall) IfNoneMatch(entityTag string) *VitalsErrorsCountsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *VitalsErrorsCountsGetCall) Context(ctx context.Context) *VitalsErrorsCountsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *VitalsErrorsCountsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VitalsErrorsCountsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.vitals.errors.counts.get" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsErrorsCountsGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Describes the properties of the metrics set.", + // "flatPath": "v1beta1/apps/{appsId}/errorCountMetricSet", + // "httpMethod": "GET", + // "id": "playdeveloperreporting.vitals.errors.counts.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the errors metric set. Format: apps/{app}/errorCountMetricSet", + // "location": "path", + // "pattern": "^apps/[^/]+/errorCountMetricSet$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// method id "playdeveloperreporting.vitals.errors.counts.query": + +type VitalsErrorsCountsQueryCall struct { + s *Service + name string + googleplaydeveloperreportingv1beta1queryerrorcountmetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Query: Queries the metrics in the metrics set. +// +// - name: The resource name. Format: apps/{app}/errorCountMetricSet. +func (r *VitalsErrorsCountsService) Query(name string, googleplaydeveloperreportingv1beta1queryerrorcountmetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest) *VitalsErrorsCountsQueryCall { + c := &VitalsErrorsCountsQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleplaydeveloperreportingv1beta1queryerrorcountmetricsetrequest = googleplaydeveloperreportingv1beta1queryerrorcountmetricsetrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *VitalsErrorsCountsQueryCall) Fields(s ...googleapi.Field) *VitalsErrorsCountsQueryCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *VitalsErrorsCountsQueryCall) Context(ctx context.Context) *VitalsErrorsCountsQueryCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *VitalsErrorsCountsQueryCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VitalsErrorsCountsQueryCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1beta1queryerrorcountmetricsetrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:query") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.vitals.errors.counts.query" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse.S +// erverResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsErrorsCountsQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Queries the metrics in the metrics set.", + // "flatPath": "v1beta1/apps/{appsId}/errorCountMetricSet:query", + // "httpMethod": "POST", + // "id": "playdeveloperreporting.vitals.errors.counts.query", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name. Format: apps/{app}/errorCountMetricSet", + // "location": "path", + // "pattern": "^apps/[^/]+/errorCountMetricSet$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:query", + // "request": { + // "$ref": "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetRequest" + // }, + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *VitalsErrorsCountsQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1QueryErrorCountMetricSetResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.googleplaydeveloperreportingv1beta1queryerrorcountmetricsetrequest.PageToken = pt }(c.googleplaydeveloperreportingv1beta1queryerrorcountmetricsetrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.googleplaydeveloperreportingv1beta1queryerrorcountmetricsetrequest.PageToken = x.NextPageToken + } +} + +// method id "playdeveloperreporting.vitals.errors.issues.search": + +type VitalsErrorsIssuesSearchCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Search: Searches all error issues in which reports have been grouped. +// +// - parent: Parent resource of the error issues, indicating the +// application for which they were received. Format: apps/{app}. +func (r *VitalsErrorsIssuesService) Search(parent string) *VitalsErrorsIssuesSearchCall { + c := &VitalsErrorsIssuesSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A selection predicate to +// retrieve only a subset of the issues. Counts in the returned error +// issues will only reflect occurrences that matched the filter. For +// filtering basics, please check AIP-160 (https://google.aip.dev/160). +// ** Supported field names:** * `apiLevel`: Matches error issues that +// occurred in the requested Android versions (specified as the numeric +// API level) only. Example: `apiLevel = 28 OR apiLevel = 29`. * +// `versionCode`: Matches error issues that occurred in the requested +// app version codes only. Example: `versionCode = 123 OR versionCode = +// 456`. * `deviceModel`: Matches error issues that occurred in the +// requested devices. Example: `deviceModel = "walleye" OR deviceModel = +// "marlin". * `deviceType`: Matches error issues that occurred in the +// requested device types. Example: `deviceType = "PHONE". * +// `errorIssueType`: Matches error issues of the requested types only. +// Valid candidates: `CRASH`, `ANR`. Example: `errorIssueType = CRASH OR +// errorIssueType = ANR`. * `appProcessState`: Matches error issues on +// the process state of an app, indicating whether an app runs in the +// foreground (user-visible) or background. Valid candidates: +// `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. +// * `isUserPerceived`: Matches error issues that are user-perceived. It +// is not accompanied by any operators. Example: `isUserPerceived`. ** +// Supported operators:** * Comparison operators: The only supported +// comparison operator is equality. The filtered field must appear on +// the left hand side of the comparison. * Logical Operators: Logical +// operators `AND` and `OR` can be used to build complex filters +// following a conjunctive normal form (CNF), i.e., conjunctions of +// disjunctions. The `OR` operator takes precedence over `AND` so the +// use of parenthesis is not necessary when building CNF. The `OR` +// operator is only supported to build disjunctions that apply to the +// same field, e.g., `versionCode = 123 OR errorIssueType = ANR` is not +// a valid filter. ** Examples ** Some valid filtering expressions: * +// `versionCode = 123 AND errorIssueType = ANR` * `versionCode = 123 AND +// errorIssueType = OR errorIssueType = CRASH` * `versionCode = 123 AND +// (errorIssueType = OR errorIssueType = CRASH)` +func (c *VitalsErrorsIssuesSearchCall) Filter(filter string) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("filter", filter) + return c +} + +// IntervalEndTimeDay sets the optional parameter +// "interval.endTime.day": Day of month. Must be from 1 to 31 and valid +// for the year and month, or 0 if specifying a datetime without a day. +func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeDay(intervalEndTimeDay int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.endTime.day", fmt.Sprint(intervalEndTimeDay)) + return c +} + +// IntervalEndTimeHours sets the optional parameter +// "interval.endTime.hours": Hours of day in 24 hour format. Should be +// from 0 to 23, defaults to 0 (midnight). An API may choose to allow +// the value "24:00:00" for scenarios like business closing time. +func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeHours(intervalEndTimeHours int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.endTime.hours", fmt.Sprint(intervalEndTimeHours)) + return c +} + +// IntervalEndTimeMinutes sets the optional parameter +// "interval.endTime.minutes": Minutes of hour of day. Must be from 0 to +// 59, defaults to 0. +func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeMinutes(intervalEndTimeMinutes int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.endTime.minutes", fmt.Sprint(intervalEndTimeMinutes)) + return c +} + +// IntervalEndTimeMonth sets the optional parameter +// "interval.endTime.month": Month of year. Must be from 1 to 12, or 0 +// if specifying a datetime without a month. +func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeMonth(intervalEndTimeMonth int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.endTime.month", fmt.Sprint(intervalEndTimeMonth)) + return c +} + +// IntervalEndTimeNanos sets the optional parameter +// "interval.endTime.nanos": Fractions of seconds in nanoseconds. Must +// be from 0 to 999,999,999, defaults to 0. +func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeNanos(intervalEndTimeNanos int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.endTime.nanos", fmt.Sprint(intervalEndTimeNanos)) + return c +} + +// IntervalEndTimeSeconds sets the optional parameter +// "interval.endTime.seconds": Seconds of minutes of the time. Must +// normally be from 0 to 59, defaults to 0. An API may allow the value +// 60 if it allows leap-seconds. +func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeSeconds(intervalEndTimeSeconds int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.endTime.seconds", fmt.Sprint(intervalEndTimeSeconds)) + return c +} + +// IntervalEndTimeTimeZoneId sets the optional parameter +// "interval.endTime.timeZone.id": IANA Time Zone Database time zone, +// e.g. "America/New_York". +func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeTimeZoneId(intervalEndTimeTimeZoneId string) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.endTime.timeZone.id", intervalEndTimeTimeZoneId) + return c +} + +// IntervalEndTimeTimeZoneVersion sets the optional parameter +// "interval.endTime.timeZone.version": IANA Time Zone Database version +// number, e.g. "2019a". +func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeTimeZoneVersion(intervalEndTimeTimeZoneVersion string) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.endTime.timeZone.version", intervalEndTimeTimeZoneVersion) + return c +} + +// IntervalEndTimeUtcOffset sets the optional parameter +// "interval.endTime.utcOffset": UTC offset. Must be whole seconds, +// between -18 hours and +18 hours. For example, a UTC offset of -4:00 +// would be represented as { seconds: -14400 }. +func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeUtcOffset(intervalEndTimeUtcOffset string) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.endTime.utcOffset", intervalEndTimeUtcOffset) + return c +} + +// IntervalEndTimeYear sets the optional parameter +// "interval.endTime.year": Year of date. Must be from 1 to 9999, or 0 +// if specifying a datetime without a year. +func (c *VitalsErrorsIssuesSearchCall) IntervalEndTimeYear(intervalEndTimeYear int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.endTime.year", fmt.Sprint(intervalEndTimeYear)) + return c +} + +// IntervalStartTimeDay sets the optional parameter +// "interval.startTime.day": Day of month. Must be from 1 to 31 and +// valid for the year and month, or 0 if specifying a datetime without a +// day. +func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeDay(intervalStartTimeDay int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.startTime.day", fmt.Sprint(intervalStartTimeDay)) + return c +} + +// IntervalStartTimeHours sets the optional parameter +// "interval.startTime.hours": Hours of day in 24 hour format. Should be +// from 0 to 23, defaults to 0 (midnight). An API may choose to allow +// the value "24:00:00" for scenarios like business closing time. +func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeHours(intervalStartTimeHours int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.startTime.hours", fmt.Sprint(intervalStartTimeHours)) + return c +} + +// IntervalStartTimeMinutes sets the optional parameter +// "interval.startTime.minutes": Minutes of hour of day. Must be from 0 +// to 59, defaults to 0. +func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeMinutes(intervalStartTimeMinutes int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.startTime.minutes", fmt.Sprint(intervalStartTimeMinutes)) + return c +} + +// IntervalStartTimeMonth sets the optional parameter +// "interval.startTime.month": Month of year. Must be from 1 to 12, or 0 +// if specifying a datetime without a month. +func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeMonth(intervalStartTimeMonth int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.startTime.month", fmt.Sprint(intervalStartTimeMonth)) + return c +} + +// IntervalStartTimeNanos sets the optional parameter +// "interval.startTime.nanos": Fractions of seconds in nanoseconds. Must +// be from 0 to 999,999,999, defaults to 0. +func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeNanos(intervalStartTimeNanos int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.startTime.nanos", fmt.Sprint(intervalStartTimeNanos)) + return c +} + +// IntervalStartTimeSeconds sets the optional parameter +// "interval.startTime.seconds": Seconds of minutes of the time. Must +// normally be from 0 to 59, defaults to 0. An API may allow the value +// 60 if it allows leap-seconds. +func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeSeconds(intervalStartTimeSeconds int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.startTime.seconds", fmt.Sprint(intervalStartTimeSeconds)) + return c +} + +// IntervalStartTimeTimeZoneId sets the optional parameter +// "interval.startTime.timeZone.id": IANA Time Zone Database time zone, +// e.g. "America/New_York". +func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeTimeZoneId(intervalStartTimeTimeZoneId string) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.startTime.timeZone.id", intervalStartTimeTimeZoneId) + return c +} + +// IntervalStartTimeTimeZoneVersion sets the optional parameter +// "interval.startTime.timeZone.version": IANA Time Zone Database +// version number, e.g. "2019a". +func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeTimeZoneVersion(intervalStartTimeTimeZoneVersion string) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.startTime.timeZone.version", intervalStartTimeTimeZoneVersion) + return c +} + +// IntervalStartTimeUtcOffset sets the optional parameter +// "interval.startTime.utcOffset": UTC offset. Must be whole seconds, +// between -18 hours and +18 hours. For example, a UTC offset of -4:00 +// would be represented as { seconds: -14400 }. +func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeUtcOffset(intervalStartTimeUtcOffset string) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.startTime.utcOffset", intervalStartTimeUtcOffset) + return c +} + +// IntervalStartTimeYear sets the optional parameter +// "interval.startTime.year": Year of date. Must be from 1 to 9999, or 0 +// if specifying a datetime without a year. +func (c *VitalsErrorsIssuesSearchCall) IntervalStartTimeYear(intervalStartTimeYear int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("interval.startTime.year", fmt.Sprint(intervalStartTimeYear)) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of error issues to return. The service may return fewer than this +// value. If unspecified, at most 50 error issues will be returned. The +// maximum value is 1000; values above 1000 will be coerced to 1000. +func (c *VitalsErrorsIssuesSearchCall) PageSize(pageSize int64) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// the request must match the call that provided the page token. +func (c *VitalsErrorsIssuesSearchCall) PageToken(pageToken string) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *VitalsErrorsIssuesSearchCall) Fields(s ...googleapi.Field) *VitalsErrorsIssuesSearchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *VitalsErrorsIssuesSearchCall) IfNoneMatch(entityTag string) *VitalsErrorsIssuesSearchCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *VitalsErrorsIssuesSearchCall) Context(ctx context.Context) *VitalsErrorsIssuesSearchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *VitalsErrorsIssuesSearchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *VitalsErrorsIssuesSearchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/errorIssues:search") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "playdeveloperreporting.vitals.errors.issues.search" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse.ServerRe +// sponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsErrorsIssuesSearchCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Searches all error issues in which reports have been grouped.", + // "flatPath": "v1beta1/apps/{appsId}/errorIssues:search", + // "httpMethod": "GET", + // "id": "playdeveloperreporting.vitals.errors.issues.search", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "A selection predicate to retrieve only a subset of the issues. Counts in the returned error issues will only reflect occurrences that matched the filter. For filtering basics, please check [AIP-160](https://google.aip.dev/160). ** Supported field names:** * `apiLevel`: Matches error issues that occurred in the requested Android versions (specified as the numeric API level) only. Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches error issues that occurred in the requested app version codes only. Example: `versionCode = 123 OR versionCode = 456`. * `deviceModel`: Matches error issues that occurred in the requested devices. Example: `deviceModel = \"walleye\" OR deviceModel = \"marlin\"`. * `deviceType`: Matches error issues that occurred in the requested device types. Example: `deviceType = \"PHONE\"`. * `errorIssueType`: Matches error issues of the requested types only. Valid candidates: `CRASH`, `ANR`. Example: `errorIssueType = CRASH OR errorIssueType = ANR`. * `appProcessState`: Matches error issues on the process state of an app, indicating whether an app runs in the foreground (user-visible) or background. Valid candidates: `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. * `isUserPerceived`: Matches error issues that are user-perceived. It is not accompanied by any operators. Example: `isUserPerceived`. ** Supported operators:** * Comparison operators: The only supported comparison operator is equality. The filtered field must appear on the left hand side of the comparison. * Logical Operators: Logical operators `AND` and `OR` can be used to build complex filters following a conjunctive normal form (CNF), i.e., conjunctions of disjunctions. The `OR` operator takes precedence over `AND` so the use of parenthesis is not necessary when building CNF. The `OR` operator is only supported to build disjunctions that apply to the same field, e.g., `versionCode = 123 OR errorIssueType = ANR` is not a valid filter. ** Examples ** Some valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)`", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.day": { + // "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.hours": { + // "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.minutes": { + // "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.month": { + // "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.nanos": { + // "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.seconds": { + // "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.timeZone.id": { + // "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.timeZone.version": { + // "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.utcOffset": { + // "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.year": { + // "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.day": { + // "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.hours": { + // "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.minutes": { + // "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.month": { + // "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.nanos": { + // "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.seconds": { + // "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.timeZone.id": { + // "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + // "location": "query", + // "type": "string" + // }, + // "interval.startTime.timeZone.version": { + // "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + // "location": "query", + // "type": "string" + // }, + // "interval.startTime.utcOffset": { + // "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // }, + // "interval.startTime.year": { + // "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageSize": { + // "description": "The maximum number of error issues to return. The service may return fewer than this value. If unspecified, at most 50 error issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to the request must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Parent resource of the error issues, indicating the application for which they were received. Format: apps/{app}", + // "location": "path", + // "pattern": "^apps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/errorIssues:search", + // "response": { + // "$ref": "GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/playdeveloperreporting" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *VitalsErrorsIssuesSearchCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1SearchErrorIssuesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "playdeveloperreporting.vitals.errors.reports.search": + +type VitalsErrorsReportsSearchCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Search: Searches all error reports received for an app. +// +// - parent: Parent resource of the reports, indicating the application +// for which they were received. Format: apps/{app}. +func (r *VitalsErrorsReportsService) Search(parent string) *VitalsErrorsReportsSearchCall { + c := &VitalsErrorsReportsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A selection predicate to +// retrieve only a subset of the reports. For filtering basics, please +// check AIP-160 (https://google.aip.dev/160). ** Supported field +// names:** * `apiLevel`: Matches error reports that occurred in the +// requested Android versions (specified as the numeric API level) only. +// Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches +// error reports that occurred in the requested app version codes only. +// Example: `versionCode = 123 OR versionCode = 456`. * `deviceModel`: +// Matches error reports that occurred in the requested devices. +// Example: `deviceModel = "walleye" OR deviceModel = "marlin". * +// `deviceType`: Matches error reports that occurred in the requested +// device types. Example: `deviceType = "PHONE". * `errorIssueType`: +// Matches error reports of the requested types only. Valid candidates: +// `JAVA_CRASH`, `NATIVE_CRASH`, `ANR`. Example: `errorIssueType = +// JAVA_CRASH OR errorIssueType = NATIVE_CRASH`. * `errorIssueId`: +// Matches error reports belonging to the requested error issue ids +// only. Example: `errorIssueId = 1234 OR errorIssueId = 4567`. * +// `appProcessState`: Matches error reports on the process state of an +// app, indicating whether an app runs in the foreground (user-visible) +// or background. Valid candidates: `FOREGROUND`, `BACKGROUND`. Example: +// `appProcessState = FOREGROUND`. * `isUserPerceived`: Matches error +// reports that are user-perceived. It is not accompanied by any +// operators. Example: `isUserPerceived`. ** Supported operators:** * +// Comparison operators: The only supported comparison operator is +// equality. The filtered field must appear on the left hand side of the +// comparison. * Logical Operators: Logical operators `AND` and `OR` can +// be used to build complex filters following a conjunctive normal form +// (CNF), i.e., conjunctions of disjunctions. The `OR` operator takes +// precedence over `AND` so the use of parenthesis is not necessary when +// building CNF. The `OR` operator is only supported to build +// disjunctions that apply to the same field, e.g., `versionCode = 123 +// OR versionCode = ANR`. The filter expression `versionCode = 123 OR +// errorIssueType = ANR` is not valid. ** Examples ** Some valid +// filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` +// * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` +// * `versionCode = 123 AND (errorIssueType = OR errorIssueType = +// CRASH)` +func (c *VitalsErrorsReportsSearchCall) Filter(filter string) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("filter", filter) + return c +} + +// IntervalEndTimeDay sets the optional parameter +// "interval.endTime.day": Day of month. Must be from 1 to 31 and valid +// for the year and month, or 0 if specifying a datetime without a day. +func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeDay(intervalEndTimeDay int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.endTime.day", fmt.Sprint(intervalEndTimeDay)) + return c +} + +// IntervalEndTimeHours sets the optional parameter +// "interval.endTime.hours": Hours of day in 24 hour format. Should be +// from 0 to 23, defaults to 0 (midnight). An API may choose to allow +// the value "24:00:00" for scenarios like business closing time. +func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeHours(intervalEndTimeHours int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.endTime.hours", fmt.Sprint(intervalEndTimeHours)) + return c +} + +// IntervalEndTimeMinutes sets the optional parameter +// "interval.endTime.minutes": Minutes of hour of day. Must be from 0 to +// 59, defaults to 0. +func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeMinutes(intervalEndTimeMinutes int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.endTime.minutes", fmt.Sprint(intervalEndTimeMinutes)) + return c +} + +// IntervalEndTimeMonth sets the optional parameter +// "interval.endTime.month": Month of year. Must be from 1 to 12, or 0 +// if specifying a datetime without a month. +func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeMonth(intervalEndTimeMonth int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.endTime.month", fmt.Sprint(intervalEndTimeMonth)) + return c +} + +// IntervalEndTimeNanos sets the optional parameter +// "interval.endTime.nanos": Fractions of seconds in nanoseconds. Must +// be from 0 to 999,999,999, defaults to 0. +func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeNanos(intervalEndTimeNanos int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.endTime.nanos", fmt.Sprint(intervalEndTimeNanos)) + return c +} + +// IntervalEndTimeSeconds sets the optional parameter +// "interval.endTime.seconds": Seconds of minutes of the time. Must +// normally be from 0 to 59, defaults to 0. An API may allow the value +// 60 if it allows leap-seconds. +func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeSeconds(intervalEndTimeSeconds int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.endTime.seconds", fmt.Sprint(intervalEndTimeSeconds)) + return c } -func (s *GoogleTypeDateTime) MarshalJSON() ([]byte, error) { - type NoMethod GoogleTypeDateTime - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +// IntervalEndTimeTimeZoneId sets the optional parameter +// "interval.endTime.timeZone.id": IANA Time Zone Database time zone, +// e.g. "America/New_York". +func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeTimeZoneId(intervalEndTimeTimeZoneId string) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.endTime.timeZone.id", intervalEndTimeTimeZoneId) + return c } -// GoogleTypeDecimal: A representation of a decimal value, such as 2.5. -// Clients may convert values into language-native decimal formats, such -// as Java's BigDecimal or Python's decimal.Decimal. [BigDecimal]: -// https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html -// [decimal.Decimal]: https://docs.python.org/3/library/decimal.html -type GoogleTypeDecimal struct { - // Value: The decimal value, as a string. The string representation - // consists of an optional sign, `+` (`U+002B`) or `-` (`U+002D`), - // followed by a sequence of zero or more decimal digits ("the - // integer"), optionally followed by a fraction, optionally followed by - // an exponent. An empty string **should** be interpreted as `0`. The - // fraction consists of a decimal point followed by zero or more decimal - // digits. The string must contain at least one digit in either the - // integer or the fraction. The number formed by the sign, the integer - // and the fraction is referred to as the significand. The exponent - // consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed - // by one or more decimal digits. Services **should** normalize decimal - // values before storing them by: - Removing an explicitly-provided `+` - // sign (`+2.5` -> `2.5`). - Replacing a zero-length integer value with - // `0` (`.5` -> `0.5`). - Coercing the exponent character to upper-case, - // with explicit sign (`2.5e8` -> `2.5E+8`). - Removing an - // explicitly-provided zero exponent (`2.5E0` -> `2.5`). Services - // **may** perform additional normalization based on its own needs and - // the internal decimal implementation selected, such as shifting the - // decimal point and exponent value together (example: `2.5E-1` <-> - // `0.25`). Additionally, services **may** preserve trailing zeroes in - // the fraction to indicate increased precision, but are not required to - // do so. Note that only the `.` character is supported to divide the - // integer and the fraction; `,` **should not** be supported regardless - // of locale. Additionally, thousand separators **should not** be - // supported. If a service does support them, values **must** be - // normalized. The ENBF grammar is: DecimalString = '' | [Sign] - // Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | - // [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { - // '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services - // **should** clearly document the range of supported values, the - // maximum supported precision (total number of digits), and, if - // applicable, the scale (number of digits after the decimal point), as - // well as how it behaves when receiving out-of-bounds values. Services - // **may** choose to accept values passed as input even when the value - // has a higher precision or scale than the service supports, and - // **should** round the value to fit the supported scale. Alternatively, - // the service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` - // in gRPC) if precision would be lost. Services **should** error with - // `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service - // receives a value outside of the supported range. - Value string `json:"value,omitempty"` +// IntervalEndTimeTimeZoneVersion sets the optional parameter +// "interval.endTime.timeZone.version": IANA Time Zone Database version +// number, e.g. "2019a". +func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeTimeZoneVersion(intervalEndTimeTimeZoneVersion string) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.endTime.timeZone.version", intervalEndTimeTimeZoneVersion) + return c +} - // ForceSendFields is a list of field names (e.g. "Value") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` +// IntervalEndTimeUtcOffset sets the optional parameter +// "interval.endTime.utcOffset": UTC offset. Must be whole seconds, +// between -18 hours and +18 hours. For example, a UTC offset of -4:00 +// would be represented as { seconds: -14400 }. +func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeUtcOffset(intervalEndTimeUtcOffset string) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.endTime.utcOffset", intervalEndTimeUtcOffset) + return c +} - // NullFields is a list of field names (e.g. "Value") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` +// IntervalEndTimeYear sets the optional parameter +// "interval.endTime.year": Year of date. Must be from 1 to 9999, or 0 +// if specifying a datetime without a year. +func (c *VitalsErrorsReportsSearchCall) IntervalEndTimeYear(intervalEndTimeYear int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.endTime.year", fmt.Sprint(intervalEndTimeYear)) + return c } -func (s *GoogleTypeDecimal) MarshalJSON() ([]byte, error) { - type NoMethod GoogleTypeDecimal - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +// IntervalStartTimeDay sets the optional parameter +// "interval.startTime.day": Day of month. Must be from 1 to 31 and +// valid for the year and month, or 0 if specifying a datetime without a +// day. +func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeDay(intervalStartTimeDay int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.startTime.day", fmt.Sprint(intervalStartTimeDay)) + return c } -// GoogleTypeTimeZone: Represents a time zone from the IANA Time Zone -// Database (https://www.iana.org/time-zones). -type GoogleTypeTimeZone struct { - // Id: IANA Time Zone Database time zone, e.g. "America/New_York". - Id string `json:"id,omitempty"` +// IntervalStartTimeHours sets the optional parameter +// "interval.startTime.hours": Hours of day in 24 hour format. Should be +// from 0 to 23, defaults to 0 (midnight). An API may choose to allow +// the value "24:00:00" for scenarios like business closing time. +func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeHours(intervalStartTimeHours int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.startTime.hours", fmt.Sprint(intervalStartTimeHours)) + return c +} - // Version: Optional. IANA Time Zone Database version number, e.g. - // "2019a". - Version string `json:"version,omitempty"` +// IntervalStartTimeMinutes sets the optional parameter +// "interval.startTime.minutes": Minutes of hour of day. Must be from 0 +// to 59, defaults to 0. +func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeMinutes(intervalStartTimeMinutes int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.startTime.minutes", fmt.Sprint(intervalStartTimeMinutes)) + return c +} - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` +// IntervalStartTimeMonth sets the optional parameter +// "interval.startTime.month": Month of year. Must be from 1 to 12, or 0 +// if specifying a datetime without a month. +func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeMonth(intervalStartTimeMonth int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.startTime.month", fmt.Sprint(intervalStartTimeMonth)) + return c +} - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` +// IntervalStartTimeNanos sets the optional parameter +// "interval.startTime.nanos": Fractions of seconds in nanoseconds. Must +// be from 0 to 999,999,999, defaults to 0. +func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeNanos(intervalStartTimeNanos int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.startTime.nanos", fmt.Sprint(intervalStartTimeNanos)) + return c } -func (s *GoogleTypeTimeZone) MarshalJSON() ([]byte, error) { - type NoMethod GoogleTypeTimeZone - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +// IntervalStartTimeSeconds sets the optional parameter +// "interval.startTime.seconds": Seconds of minutes of the time. Must +// normally be from 0 to 59, defaults to 0. An API may allow the value +// 60 if it allows leap-seconds. +func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeSeconds(intervalStartTimeSeconds int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.startTime.seconds", fmt.Sprint(intervalStartTimeSeconds)) + return c } -// method id "playdeveloperreporting.anomalies.list": +// IntervalStartTimeTimeZoneId sets the optional parameter +// "interval.startTime.timeZone.id": IANA Time Zone Database time zone, +// e.g. "America/New_York". +func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeTimeZoneId(intervalStartTimeTimeZoneId string) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.startTime.timeZone.id", intervalStartTimeTimeZoneId) + return c +} -type AnomaliesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// IntervalStartTimeTimeZoneVersion sets the optional parameter +// "interval.startTime.timeZone.version": IANA Time Zone Database +// version number, e.g. "2019a". +func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeTimeZoneVersion(intervalStartTimeTimeZoneVersion string) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.startTime.timeZone.version", intervalStartTimeTimeZoneVersion) + return c } -// List: Lists anomalies in any of the datasets. -// -// - parent: Parent app for which anomalies were detected. Format: -// apps/{app}. -func (r *AnomaliesService) List(parent string) *AnomaliesListCall { - c := &AnomaliesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// IntervalStartTimeUtcOffset sets the optional parameter +// "interval.startTime.utcOffset": UTC offset. Must be whole seconds, +// between -18 hours and +18 hours. For example, a UTC offset of -4:00 +// would be represented as { seconds: -14400 }. +func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeUtcOffset(intervalStartTimeUtcOffset string) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.startTime.utcOffset", intervalStartTimeUtcOffset) return c } -// Filter sets the optional parameter "filter": Filtering criteria for -// anomalies. For basic filter guidance, please check: -// https://google.aip.dev/160. **Supported functions:** * -// `activeBetween(startTime, endTime)`: If specified, only list -// anomalies that were active in between `startTime` (inclusive) and -// `endTime` (exclusive). Both parameters are expected to conform to an -// RFC-3339 formatted string (e.g. `2012-04-21T11:30:00-04:00`). UTC -// offsets are supported. Both `startTime` and `endTime` accept the -// special value `UNBOUNDED`, to signify intervals with no lower or -// upper bound, respectively. Examples: * -// `activeBetween("2021-04-21T11:30:00Z", "2021-07-21T00:00:00Z")` * -// `activeBetween(UNBOUNDED, "2021-11-21T00:00:00-04:00")` * -// `activeBetween("2021-07-21T00:00:00-04:00", UNBOUNDED)` -func (c *AnomaliesListCall) Filter(filter string) *AnomaliesListCall { - c.urlParams_.Set("filter", filter) +// IntervalStartTimeYear sets the optional parameter +// "interval.startTime.year": Year of date. Must be from 1 to 9999, or 0 +// if specifying a datetime without a year. +func (c *VitalsErrorsReportsSearchCall) IntervalStartTimeYear(intervalStartTimeYear int64) *VitalsErrorsReportsSearchCall { + c.urlParams_.Set("interval.startTime.year", fmt.Sprint(intervalStartTimeYear)) return c } -// PageSize sets the optional parameter "pageSize": Maximum size of the -// returned data. If unspecified, at most 10 anomalies will be returned. -// The maximum value is 100; values above 100 will be coerced to 100. -func (c *AnomaliesListCall) PageSize(pageSize int64) *AnomaliesListCall { +// PageSize sets the optional parameter "pageSize": The maximum number +// of reports to return. The service may return fewer than this value. +// If unspecified, at most 50 reports will be returned. The maximum +// value is 1000; values above 1000 will be coerced to 1000. +func (c *VitalsErrorsReportsSearchCall) PageSize(pageSize int64) *VitalsErrorsReportsSearchCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListErrorReports` call. Provide this to +// received from a previous `SearchErrorReports` call. Provide this to // retrieve the subsequent page. When paginating, all other parameters -// provided to `ListErrorReports` must match the call that provided the -// page token. -func (c *AnomaliesListCall) PageToken(pageToken string) *AnomaliesListCall { +// provided to `SearchErrorReports` must match the call that provided +// the page token. +func (c *VitalsErrorsReportsSearchCall) PageToken(pageToken string) *VitalsErrorsReportsSearchCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -1801,7 +4709,7 @@ func (c *AnomaliesListCall) PageToken(pageToken string) *AnomaliesListCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *AnomaliesListCall) Fields(s ...googleapi.Field) *AnomaliesListCall { +func (c *VitalsErrorsReportsSearchCall) Fields(s ...googleapi.Field) *VitalsErrorsReportsSearchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1811,7 +4719,7 @@ func (c *AnomaliesListCall) Fields(s ...googleapi.Field) *AnomaliesListCall { // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *AnomaliesListCall) IfNoneMatch(entityTag string) *AnomaliesListCall { +func (c *VitalsErrorsReportsSearchCall) IfNoneMatch(entityTag string) *VitalsErrorsReportsSearchCall { c.ifNoneMatch_ = entityTag return c } @@ -1819,21 +4727,21 @@ func (c *AnomaliesListCall) IfNoneMatch(entityTag string) *AnomaliesListCall { // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *AnomaliesListCall) Context(ctx context.Context) *AnomaliesListCall { +func (c *VitalsErrorsReportsSearchCall) Context(ctx context.Context) *VitalsErrorsReportsSearchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *AnomaliesListCall) Header() http.Header { +func (c *VitalsErrorsReportsSearchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *AnomaliesListCall) doRequest(alt string) (*http.Response, error) { +func (c *VitalsErrorsReportsSearchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -1846,7 +4754,7 @@ func (c *AnomaliesListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/anomalies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/errorReports:search") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -1859,17 +4767,17 @@ func (c *AnomaliesListCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "playdeveloperreporting.anomalies.list" call. +// Do executes the "playdeveloperreporting.vitals.errors.reports.search" call. // Exactly one of -// *GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response +// *GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse.ServerRespon -// se.Header or (if a response was returned at all) in +// *GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse.ServerR +// esponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *AnomaliesListCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse, error) { +func (c *VitalsErrorsReportsSearchCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1888,7 +4796,7 @@ func (c *AnomaliesListCall) Do(opts ...googleapi.CallOption) (*GooglePlayDevelop if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse{ + ret := &GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1900,41 +4808,157 @@ func (c *AnomaliesListCall) Do(opts ...googleapi.CallOption) (*GooglePlayDevelop } return ret, nil // { - // "description": "Lists anomalies in any of the datasets.", - // "flatPath": "v1beta1/apps/{appsId}/anomalies", + // "description": "Searches all error reports received for an app.", + // "flatPath": "v1beta1/apps/{appsId}/errorReports:search", // "httpMethod": "GET", - // "id": "playdeveloperreporting.anomalies.list", + // "id": "playdeveloperreporting.vitals.errors.reports.search", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Filtering criteria for anomalies. For basic filter guidance, please check: https://google.aip.dev/160. **Supported functions:** * `activeBetween(startTime, endTime)`: If specified, only list anomalies that were active in between `startTime` (inclusive) and `endTime` (exclusive). Both parameters are expected to conform to an RFC-3339 formatted string (e.g. `2012-04-21T11:30:00-04:00`). UTC offsets are supported. Both `startTime` and `endTime` accept the special value `UNBOUNDED`, to signify intervals with no lower or upper bound, respectively. Examples: * `activeBetween(\"2021-04-21T11:30:00Z\", \"2021-07-21T00:00:00Z\")` * `activeBetween(UNBOUNDED, \"2021-11-21T00:00:00-04:00\")` * `activeBetween(\"2021-07-21T00:00:00-04:00\", UNBOUNDED)`", + // "description": "A selection predicate to retrieve only a subset of the reports. For filtering basics, please check [AIP-160](https://google.aip.dev/160). ** Supported field names:** * `apiLevel`: Matches error reports that occurred in the requested Android versions (specified as the numeric API level) only. Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches error reports that occurred in the requested app version codes only. Example: `versionCode = 123 OR versionCode = 456`. * `deviceModel`: Matches error reports that occurred in the requested devices. Example: `deviceModel = \"walleye\" OR deviceModel = \"marlin\"`. * `deviceType`: Matches error reports that occurred in the requested device types. Example: `deviceType = \"PHONE\"`. * `errorIssueType`: Matches error reports of the requested types only. Valid candidates: `JAVA_CRASH`, `NATIVE_CRASH`, `ANR`. Example: `errorIssueType = JAVA_CRASH OR errorIssueType = NATIVE_CRASH`. * `errorIssueId`: Matches error reports belonging to the requested error issue ids only. Example: `errorIssueId = 1234 OR errorIssueId = 4567`. * `appProcessState`: Matches error reports on the process state of an app, indicating whether an app runs in the foreground (user-visible) or background. Valid candidates: `FOREGROUND`, `BACKGROUND`. Example: `appProcessState = FOREGROUND`. * `isUserPerceived`: Matches error reports that are user-perceived. It is not accompanied by any operators. Example: `isUserPerceived`. ** Supported operators:** * Comparison operators: The only supported comparison operator is equality. The filtered field must appear on the left hand side of the comparison. * Logical Operators: Logical operators `AND` and `OR` can be used to build complex filters following a conjunctive normal form (CNF), i.e., conjunctions of disjunctions. The `OR` operator takes precedence over `AND` so the use of parenthesis is not necessary when building CNF. The `OR` operator is only supported to build disjunctions that apply to the same field, e.g., `versionCode = 123 OR versionCode = ANR`. The filter expression `versionCode = 123 OR errorIssueType = ANR` is not valid. ** Examples ** Some valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)`", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.day": { + // "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.hours": { + // "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.minutes": { + // "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.month": { + // "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.nanos": { + // "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.seconds": { + // "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.endTime.timeZone.id": { + // "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.timeZone.version": { + // "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.utcOffset": { + // "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // }, + // "interval.endTime.year": { + // "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.day": { + // "description": "Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.hours": { + // "description": "Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.minutes": { + // "description": "Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.month": { + // "description": "Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.nanos": { + // "description": "Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.seconds": { + // "description": "Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "interval.startTime.timeZone.id": { + // "description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".", + // "location": "query", + // "type": "string" + // }, + // "interval.startTime.timeZone.version": { + // "description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".", + // "location": "query", + // "type": "string" + // }, + // "interval.startTime.utcOffset": { + // "description": "UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.", + // "format": "google-duration", // "location": "query", // "type": "string" // }, + // "interval.startTime.year": { + // "description": "Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, // "pageSize": { - // "description": "Maximum size of the returned data. If unspecified, at most 10 anomalies will be returned. The maximum value is 100; values above 100 will be coerced to 100.", + // "description": "The maximum number of reports to return. The service may return fewer than this value. If unspecified, at most 50 reports will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous `ListErrorReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListErrorReports` must match the call that provided the page token.", + // "description": "A page token, received from a previous `SearchErrorReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchErrorReports` must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. Parent app for which anomalies were detected. Format: apps/{app}", + // "description": "Required. Parent resource of the reports, indicating the application for which they were received. Format: apps/{app}", // "location": "path", // "pattern": "^apps/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/anomalies", + // "path": "v1beta1/{+parent}/errorReports:search", // "response": { - // "$ref": "GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse" + // "$ref": "GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/playdeveloperreporting" @@ -1946,7 +4970,7 @@ func (c *AnomaliesListCall) Do(opts ...googleapi.CallOption) (*GooglePlayDevelop // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *AnomaliesListCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse) error) error { +func (c *VitalsErrorsReportsSearchCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1SearchErrorReportsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -1964,9 +4988,9 @@ func (c *AnomaliesListCall) Pages(ctx context.Context, f func(*GooglePlayDevelop } } -// method id "playdeveloperreporting.vitals.anrrate.get": +// method id "playdeveloperreporting.vitals.excessivewakeuprate.get": -type VitalsAnrrateGetCall struct { +type VitalsExcessivewakeuprateGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -1977,9 +5001,10 @@ type VitalsAnrrateGetCall struct { // Get: Describes the properties of the metric set. // -// - name: The resource name. Format: apps/{app}/anrRateMetricSet. -func (r *VitalsAnrrateService) Get(name string) *VitalsAnrrateGetCall { - c := &VitalsAnrrateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name. Format: +// apps/{app}/excessiveWakeupRateMetricSet. +func (r *VitalsExcessivewakeuprateService) Get(name string) *VitalsExcessivewakeuprateGetCall { + c := &VitalsExcessivewakeuprateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -1987,7 +5012,7 @@ func (r *VitalsAnrrateService) Get(name string) *VitalsAnrrateGetCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *VitalsAnrrateGetCall) Fields(s ...googleapi.Field) *VitalsAnrrateGetCall { +func (c *VitalsExcessivewakeuprateGetCall) Fields(s ...googleapi.Field) *VitalsExcessivewakeuprateGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1997,7 +5022,7 @@ func (c *VitalsAnrrateGetCall) Fields(s ...googleapi.Field) *VitalsAnrrateGetCal // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *VitalsAnrrateGetCall) IfNoneMatch(entityTag string) *VitalsAnrrateGetCall { +func (c *VitalsExcessivewakeuprateGetCall) IfNoneMatch(entityTag string) *VitalsExcessivewakeuprateGetCall { c.ifNoneMatch_ = entityTag return c } @@ -2005,21 +5030,21 @@ func (c *VitalsAnrrateGetCall) IfNoneMatch(entityTag string) *VitalsAnrrateGetCa // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *VitalsAnrrateGetCall) Context(ctx context.Context) *VitalsAnrrateGetCall { +func (c *VitalsExcessivewakeuprateGetCall) Context(ctx context.Context) *VitalsExcessivewakeuprateGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *VitalsAnrrateGetCall) Header() http.Header { +func (c *VitalsExcessivewakeuprateGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *VitalsAnrrateGetCall) doRequest(alt string) (*http.Response, error) { +func (c *VitalsExcessivewakeuprateGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -2045,16 +5070,17 @@ func (c *VitalsAnrrateGetCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "playdeveloperreporting.vitals.anrrate.get" call. -// Exactly one of *GooglePlayDeveloperReportingV1beta1AnrRateMetricSet -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GooglePlayDeveloperReportingV1beta1AnrRateMetricSet.ServerResponse.He -// ader or (if a response was returned at all) in +// Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.get" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet.Serve +// rResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *VitalsAnrrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1AnrRateMetricSet, error) { +func (c *VitalsExcessivewakeuprateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2073,7 +5099,7 @@ func (c *VitalsAnrrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeve if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GooglePlayDeveloperReportingV1beta1AnrRateMetricSet{ + ret := &GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2086,24 +5112,24 @@ func (c *VitalsAnrrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeve return ret, nil // { // "description": "Describes the properties of the metric set.", - // "flatPath": "v1beta1/apps/{appsId}/anrRateMetricSet", + // "flatPath": "v1beta1/apps/{appsId}/excessiveWakeupRateMetricSet", // "httpMethod": "GET", - // "id": "playdeveloperreporting.vitals.anrrate.get", + // "id": "playdeveloperreporting.vitals.excessivewakeuprate.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name. Format: apps/{app}/anrRateMetricSet", + // "description": "Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet", // "location": "path", - // "pattern": "^apps/[^/]+/anrRateMetricSet$", + // "pattern": "^apps/[^/]+/excessiveWakeupRateMetricSet$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GooglePlayDeveloperReportingV1beta1AnrRateMetricSet" + // "$ref": "GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet" // }, // "scopes": [ // "https://www.googleapis.com/auth/playdeveloperreporting" @@ -2112,31 +5138,32 @@ func (c *VitalsAnrrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeve } -// method id "playdeveloperreporting.vitals.anrrate.query": +// method id "playdeveloperreporting.vitals.excessivewakeuprate.query": -type VitalsAnrrateQueryCall struct { - s *Service - name string - googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type VitalsExcessivewakeuprateQueryCall struct { + s *Service + name string + googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } // Query: Queries the metrics in the metric set. // -// - name: The resource name. Format: apps/{app}/anrRateMetricSet. -func (r *VitalsAnrrateService) Query(name string, googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetRequest) *VitalsAnrrateQueryCall { - c := &VitalsAnrrateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name. Format: +// apps/{app}/excessiveWakeupRateMetricSet. +func (r *VitalsExcessivewakeuprateService) Query(name string, googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest) *VitalsExcessivewakeuprateQueryCall { + c := &VitalsExcessivewakeuprateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest = googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest + c.googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest = googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *VitalsAnrrateQueryCall) Fields(s ...googleapi.Field) *VitalsAnrrateQueryCall { +func (c *VitalsExcessivewakeuprateQueryCall) Fields(s ...googleapi.Field) *VitalsExcessivewakeuprateQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2144,21 +5171,21 @@ func (c *VitalsAnrrateQueryCall) Fields(s ...googleapi.Field) *VitalsAnrrateQuer // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *VitalsAnrrateQueryCall) Context(ctx context.Context) *VitalsAnrrateQueryCall { +func (c *VitalsExcessivewakeuprateQueryCall) Context(ctx context.Context) *VitalsExcessivewakeuprateQueryCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *VitalsAnrrateQueryCall) Header() http.Header { +func (c *VitalsExcessivewakeuprateQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *VitalsAnrrateQueryCall) doRequest(alt string) (*http.Response, error) { +func (c *VitalsExcessivewakeuprateQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -2166,7 +5193,7 @@ func (c *VitalsAnrrateQueryCall) doRequest(alt string) (*http.Response, error) { } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest) if err != nil { return nil, err } @@ -2186,17 +5213,17 @@ func (c *VitalsAnrrateQueryCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "playdeveloperreporting.vitals.anrrate.query" call. +// Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.query" call. // Exactly one of -// *GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse.Serv -// erResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *VitalsAnrrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse, error) { +// *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetR +// esponse or error will be non-nil. Any non-2xx status code is an +// error. Response headers are in either +// *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetR +// esponse.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *VitalsExcessivewakeuprateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2215,7 +5242,7 @@ func (c *VitalsAnrrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDe if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse{ + ret := &GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2228,27 +5255,27 @@ func (c *VitalsAnrrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDe return ret, nil // { // "description": "Queries the metrics in the metric set.", - // "flatPath": "v1beta1/apps/{appsId}/anrRateMetricSet:query", + // "flatPath": "v1beta1/apps/{appsId}/excessiveWakeupRateMetricSet:query", // "httpMethod": "POST", - // "id": "playdeveloperreporting.vitals.anrrate.query", + // "id": "playdeveloperreporting.vitals.excessivewakeuprate.query", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name. Format: apps/{app}/anrRateMetricSet", + // "description": "Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet", // "location": "path", - // "pattern": "^apps/[^/]+/anrRateMetricSet$", + // "pattern": "^apps/[^/]+/excessiveWakeupRateMetricSet$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}:query", // "request": { - // "$ref": "GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetRequest" + // "$ref": "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest" // }, // "response": { - // "$ref": "GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse" + // "$ref": "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/playdeveloperreporting" @@ -2260,9 +5287,11 @@ func (c *VitalsAnrrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDe // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *VitalsAnrrateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1QueryAnrRateMetricSetResponse) error) error { +func (c *VitalsExcessivewakeuprateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse) error) error { c.ctx_ = ctx - defer func(pt string) { c.googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest.PageToken = pt }(c.googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest.PageToken) // reset paging to original point + defer func(pt string) { + c.googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest.PageToken = pt + }(c.googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest.PageToken) // reset paging to original point for { x, err := c.Do() if err != nil { @@ -2274,13 +5303,13 @@ func (c *VitalsAnrrateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDe if x.NextPageToken == "" { return nil } - c.googleplaydeveloperreportingv1beta1queryanrratemetricsetrequest.PageToken = x.NextPageToken + c.googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest.PageToken = x.NextPageToken } } -// method id "playdeveloperreporting.vitals.crashrate.get": +// method id "playdeveloperreporting.vitals.slowrenderingrate.get": -type VitalsCrashrateGetCall struct { +type VitalsSlowrenderingrateGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -2291,9 +5320,10 @@ type VitalsCrashrateGetCall struct { // Get: Describes the properties of the metric set. // -// - name: The resource name. Format: apps/{app}/crashRateMetricSet. -func (r *VitalsCrashrateService) Get(name string) *VitalsCrashrateGetCall { - c := &VitalsCrashrateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name. Format: +// apps/{app}/slowRenderingRateMetricSet. +func (r *VitalsSlowrenderingrateService) Get(name string) *VitalsSlowrenderingrateGetCall { + c := &VitalsSlowrenderingrateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -2301,7 +5331,7 @@ func (r *VitalsCrashrateService) Get(name string) *VitalsCrashrateGetCall { // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *VitalsCrashrateGetCall) Fields(s ...googleapi.Field) *VitalsCrashrateGetCall { +func (c *VitalsSlowrenderingrateGetCall) Fields(s ...googleapi.Field) *VitalsSlowrenderingrateGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2311,7 +5341,7 @@ func (c *VitalsCrashrateGetCall) Fields(s ...googleapi.Field) *VitalsCrashrateGe // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *VitalsCrashrateGetCall) IfNoneMatch(entityTag string) *VitalsCrashrateGetCall { +func (c *VitalsSlowrenderingrateGetCall) IfNoneMatch(entityTag string) *VitalsSlowrenderingrateGetCall { c.ifNoneMatch_ = entityTag return c } @@ -2319,21 +5349,21 @@ func (c *VitalsCrashrateGetCall) IfNoneMatch(entityTag string) *VitalsCrashrateG // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *VitalsCrashrateGetCall) Context(ctx context.Context) *VitalsCrashrateGetCall { +func (c *VitalsSlowrenderingrateGetCall) Context(ctx context.Context) *VitalsSlowrenderingrateGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *VitalsCrashrateGetCall) Header() http.Header { +func (c *VitalsSlowrenderingrateGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *VitalsCrashrateGetCall) doRequest(alt string) (*http.Response, error) { +func (c *VitalsSlowrenderingrateGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -2359,16 +5389,17 @@ func (c *VitalsCrashrateGetCall) doRequest(alt string) (*http.Response, error) { return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "playdeveloperreporting.vitals.crashrate.get" call. -// Exactly one of *GooglePlayDeveloperReportingV1beta1CrashRateMetricSet -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GooglePlayDeveloperReportingV1beta1CrashRateMetricSet.ServerResponse. -// Header or (if a response was returned at all) in +// Do executes the "playdeveloperreporting.vitals.slowrenderingrate.get" call. +// Exactly one of +// *GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet.ServerR +// esponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *VitalsCrashrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1CrashRateMetricSet, error) { +func (c *VitalsSlowrenderingrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2387,7 +5418,7 @@ func (c *VitalsCrashrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDe if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GooglePlayDeveloperReportingV1beta1CrashRateMetricSet{ + ret := &GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2400,24 +5431,24 @@ func (c *VitalsCrashrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDe return ret, nil // { // "description": "Describes the properties of the metric set.", - // "flatPath": "v1beta1/apps/{appsId}/crashRateMetricSet", + // "flatPath": "v1beta1/apps/{appsId}/slowRenderingRateMetricSet", // "httpMethod": "GET", - // "id": "playdeveloperreporting.vitals.crashrate.get", + // "id": "playdeveloperreporting.vitals.slowrenderingrate.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name. Format: apps/{app}/crashRateMetricSet", + // "description": "Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet", // "location": "path", - // "pattern": "^apps/[^/]+/crashRateMetricSet$", + // "pattern": "^apps/[^/]+/slowRenderingRateMetricSet$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GooglePlayDeveloperReportingV1beta1CrashRateMetricSet" + // "$ref": "GooglePlayDeveloperReportingV1beta1SlowRenderingRateMetricSet" // }, // "scopes": [ // "https://www.googleapis.com/auth/playdeveloperreporting" @@ -2426,31 +5457,32 @@ func (c *VitalsCrashrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDe } -// method id "playdeveloperreporting.vitals.crashrate.query": +// method id "playdeveloperreporting.vitals.slowrenderingrate.query": -type VitalsCrashrateQueryCall struct { - s *Service - name string - googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type VitalsSlowrenderingrateQueryCall struct { + s *Service + name string + googleplaydeveloperreportingv1beta1queryslowrenderingratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } // Query: Queries the metrics in the metric set. // -// - name: The resource name. Format: apps/{app}/crashRateMetricSet. -func (r *VitalsCrashrateService) Query(name string, googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest) *VitalsCrashrateQueryCall { - c := &VitalsCrashrateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name. Format: +// apps/{app}/slowRenderingRateMetricSet. +func (r *VitalsSlowrenderingrateService) Query(name string, googleplaydeveloperreportingv1beta1queryslowrenderingratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest) *VitalsSlowrenderingrateQueryCall { + c := &VitalsSlowrenderingrateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest = googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest + c.googleplaydeveloperreportingv1beta1queryslowrenderingratemetricsetrequest = googleplaydeveloperreportingv1beta1queryslowrenderingratemetricsetrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *VitalsCrashrateQueryCall) Fields(s ...googleapi.Field) *VitalsCrashrateQueryCall { +func (c *VitalsSlowrenderingrateQueryCall) Fields(s ...googleapi.Field) *VitalsSlowrenderingrateQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2458,21 +5490,21 @@ func (c *VitalsCrashrateQueryCall) Fields(s ...googleapi.Field) *VitalsCrashrate // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *VitalsCrashrateQueryCall) Context(ctx context.Context) *VitalsCrashrateQueryCall { +func (c *VitalsSlowrenderingrateQueryCall) Context(ctx context.Context) *VitalsSlowrenderingrateQueryCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *VitalsCrashrateQueryCall) Header() http.Header { +func (c *VitalsSlowrenderingrateQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *VitalsCrashrateQueryCall) doRequest(alt string) (*http.Response, error) { +func (c *VitalsSlowrenderingrateQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -2480,7 +5512,7 @@ func (c *VitalsCrashrateQueryCall) doRequest(alt string) (*http.Response, error) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1beta1queryslowrenderingratemetricsetrequest) if err != nil { return nil, err } @@ -2500,17 +5532,17 @@ func (c *VitalsCrashrateQueryCall) doRequest(alt string) (*http.Response, error) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "playdeveloperreporting.vitals.crashrate.query" call. +// Do executes the "playdeveloperreporting.vitals.slowrenderingrate.query" call. // Exactly one of -// *GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse -// or error will be non-nil. Any non-2xx status code is an error. +// *GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRes +// ponse or error will be non-nil. Any non-2xx status code is an error. // Response headers are in either -// *GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse.Se -// rverResponse.Header or (if a response was returned at all) in +// *GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRes +// ponse.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *VitalsCrashrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse, error) { +func (c *VitalsSlowrenderingrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2529,7 +5561,7 @@ func (c *VitalsCrashrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlay if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse{ + ret := &GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2542,27 +5574,27 @@ func (c *VitalsCrashrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlay return ret, nil // { // "description": "Queries the metrics in the metric set.", - // "flatPath": "v1beta1/apps/{appsId}/crashRateMetricSet:query", + // "flatPath": "v1beta1/apps/{appsId}/slowRenderingRateMetricSet:query", // "httpMethod": "POST", - // "id": "playdeveloperreporting.vitals.crashrate.query", + // "id": "playdeveloperreporting.vitals.slowrenderingrate.query", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name. Format: apps/{app}/crashRateMetricSet", + // "description": "Required. The resource name. Format: apps/{app}/slowRenderingRateMetricSet", // "location": "path", - // "pattern": "^apps/[^/]+/crashRateMetricSet$", + // "pattern": "^apps/[^/]+/slowRenderingRateMetricSet$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}:query", // "request": { - // "$ref": "GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetRequest" + // "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetRequest" // }, // "response": { - // "$ref": "GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse" + // "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/playdeveloperreporting" @@ -2574,9 +5606,11 @@ func (c *VitalsCrashrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlay // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *VitalsCrashrateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1QueryCrashRateMetricSetResponse) error) error { +func (c *VitalsSlowrenderingrateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1QuerySlowRenderingRateMetricSetResponse) error) error { c.ctx_ = ctx - defer func(pt string) { c.googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest.PageToken = pt }(c.googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest.PageToken) // reset paging to original point + defer func(pt string) { + c.googleplaydeveloperreportingv1beta1queryslowrenderingratemetricsetrequest.PageToken = pt + }(c.googleplaydeveloperreportingv1beta1queryslowrenderingratemetricsetrequest.PageToken) // reset paging to original point for { x, err := c.Do() if err != nil { @@ -2588,13 +5622,13 @@ func (c *VitalsCrashrateQueryCall) Pages(ctx context.Context, f func(*GooglePlay if x.NextPageToken == "" { return nil } - c.googleplaydeveloperreportingv1beta1querycrashratemetricsetrequest.PageToken = x.NextPageToken + c.googleplaydeveloperreportingv1beta1queryslowrenderingratemetricsetrequest.PageToken = x.NextPageToken } } -// method id "playdeveloperreporting.vitals.excessivewakeuprate.get": +// method id "playdeveloperreporting.vitals.slowstartrate.get": -type VitalsExcessivewakeuprateGetCall struct { +type VitalsSlowstartrateGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -2605,10 +5639,9 @@ type VitalsExcessivewakeuprateGetCall struct { // Get: Describes the properties of the metric set. // -// - name: The resource name. Format: -// apps/{app}/excessiveWakeupRateMetricSet. -func (r *VitalsExcessivewakeuprateService) Get(name string) *VitalsExcessivewakeuprateGetCall { - c := &VitalsExcessivewakeuprateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name. Format: apps/{app}/slowStartRateMetricSet. +func (r *VitalsSlowstartrateService) Get(name string) *VitalsSlowstartrateGetCall { + c := &VitalsSlowstartrateGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -2616,7 +5649,7 @@ func (r *VitalsExcessivewakeuprateService) Get(name string) *VitalsExcessivewake // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *VitalsExcessivewakeuprateGetCall) Fields(s ...googleapi.Field) *VitalsExcessivewakeuprateGetCall { +func (c *VitalsSlowstartrateGetCall) Fields(s ...googleapi.Field) *VitalsSlowstartrateGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2626,7 +5659,7 @@ func (c *VitalsExcessivewakeuprateGetCall) Fields(s ...googleapi.Field) *VitalsE // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *VitalsExcessivewakeuprateGetCall) IfNoneMatch(entityTag string) *VitalsExcessivewakeuprateGetCall { +func (c *VitalsSlowstartrateGetCall) IfNoneMatch(entityTag string) *VitalsSlowstartrateGetCall { c.ifNoneMatch_ = entityTag return c } @@ -2634,21 +5667,21 @@ func (c *VitalsExcessivewakeuprateGetCall) IfNoneMatch(entityTag string) *Vitals // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *VitalsExcessivewakeuprateGetCall) Context(ctx context.Context) *VitalsExcessivewakeuprateGetCall { +func (c *VitalsSlowstartrateGetCall) Context(ctx context.Context) *VitalsSlowstartrateGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *VitalsExcessivewakeuprateGetCall) Header() http.Header { +func (c *VitalsSlowstartrateGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *VitalsExcessivewakeuprateGetCall) doRequest(alt string) (*http.Response, error) { +func (c *VitalsSlowstartrateGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -2674,17 +5707,17 @@ func (c *VitalsExcessivewakeuprateGetCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.get" call. +// Do executes the "playdeveloperreporting.vitals.slowstartrate.get" call. // Exactly one of -// *GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet or -// error will be non-nil. Any non-2xx status code is an error. Response +// *GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet.Serve -// rResponse.Header or (if a response was returned at all) in +// *GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet.ServerRespo +// nse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *VitalsExcessivewakeuprateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet, error) { +func (c *VitalsSlowstartrateGetCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2703,7 +5736,7 @@ func (c *VitalsExcessivewakeuprateGetCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet{ + ret := &GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2716,24 +5749,24 @@ func (c *VitalsExcessivewakeuprateGetCall) Do(opts ...googleapi.CallOption) (*Go return ret, nil // { // "description": "Describes the properties of the metric set.", - // "flatPath": "v1beta1/apps/{appsId}/excessiveWakeupRateMetricSet", + // "flatPath": "v1beta1/apps/{appsId}/slowStartRateMetricSet", // "httpMethod": "GET", - // "id": "playdeveloperreporting.vitals.excessivewakeuprate.get", + // "id": "playdeveloperreporting.vitals.slowstartrate.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet", + // "description": "Required. The resource name. Format: apps/{app}/slowStartRateMetricSet", // "location": "path", - // "pattern": "^apps/[^/]+/excessiveWakeupRateMetricSet$", + // "pattern": "^apps/[^/]+/slowStartRateMetricSet$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GooglePlayDeveloperReportingV1beta1ExcessiveWakeupRateMetricSet" + // "$ref": "GooglePlayDeveloperReportingV1beta1SlowStartRateMetricSet" // }, // "scopes": [ // "https://www.googleapis.com/auth/playdeveloperreporting" @@ -2742,32 +5775,31 @@ func (c *VitalsExcessivewakeuprateGetCall) Do(opts ...googleapi.CallOption) (*Go } -// method id "playdeveloperreporting.vitals.excessivewakeuprate.query": +// method id "playdeveloperreporting.vitals.slowstartrate.query": -type VitalsExcessivewakeuprateQueryCall struct { - s *Service - name string - googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type VitalsSlowstartrateQueryCall struct { + s *Service + name string + googleplaydeveloperreportingv1beta1queryslowstartratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } // Query: Queries the metrics in the metric set. // -// - name: The resource name. Format: -// apps/{app}/excessiveWakeupRateMetricSet. -func (r *VitalsExcessivewakeuprateService) Query(name string, googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest) *VitalsExcessivewakeuprateQueryCall { - c := &VitalsExcessivewakeuprateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name. Format: apps/{app}/slowStartRateMetricSet. +func (r *VitalsSlowstartrateService) Query(name string, googleplaydeveloperreportingv1beta1queryslowstartratemetricsetrequest *GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest) *VitalsSlowstartrateQueryCall { + c := &VitalsSlowstartrateQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest = googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest + c.googleplaydeveloperreportingv1beta1queryslowstartratemetricsetrequest = googleplaydeveloperreportingv1beta1queryslowstartratemetricsetrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *VitalsExcessivewakeuprateQueryCall) Fields(s ...googleapi.Field) *VitalsExcessivewakeuprateQueryCall { +func (c *VitalsSlowstartrateQueryCall) Fields(s ...googleapi.Field) *VitalsSlowstartrateQueryCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2775,21 +5807,21 @@ func (c *VitalsExcessivewakeuprateQueryCall) Fields(s ...googleapi.Field) *Vital // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *VitalsExcessivewakeuprateQueryCall) Context(ctx context.Context) *VitalsExcessivewakeuprateQueryCall { +func (c *VitalsSlowstartrateQueryCall) Context(ctx context.Context) *VitalsSlowstartrateQueryCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *VitalsExcessivewakeuprateQueryCall) Header() http.Header { +func (c *VitalsSlowstartrateQueryCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *VitalsExcessivewakeuprateQueryCall) doRequest(alt string) (*http.Response, error) { +func (c *VitalsSlowstartrateQueryCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -2797,7 +5829,7 @@ func (c *VitalsExcessivewakeuprateQueryCall) doRequest(alt string) (*http.Respon } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleplaydeveloperreportingv1beta1queryslowstartratemetricsetrequest) if err != nil { return nil, err } @@ -2817,17 +5849,17 @@ func (c *VitalsExcessivewakeuprateQueryCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "playdeveloperreporting.vitals.excessivewakeuprate.query" call. +// Do executes the "playdeveloperreporting.vitals.slowstartrate.query" call. // Exactly one of -// *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetR -// esponse or error will be non-nil. Any non-2xx status code is an -// error. Response headers are in either -// *GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetR -// esponse.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *VitalsExcessivewakeuprateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse, error) { +// *GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRespons +// e or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRespons +// e.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *VitalsSlowstartrateQueryCall) Do(opts ...googleapi.CallOption) (*GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2846,7 +5878,7 @@ func (c *VitalsExcessivewakeuprateQueryCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse{ + ret := &GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2859,27 +5891,27 @@ func (c *VitalsExcessivewakeuprateQueryCall) Do(opts ...googleapi.CallOption) (* return ret, nil // { // "description": "Queries the metrics in the metric set.", - // "flatPath": "v1beta1/apps/{appsId}/excessiveWakeupRateMetricSet:query", + // "flatPath": "v1beta1/apps/{appsId}/slowStartRateMetricSet:query", // "httpMethod": "POST", - // "id": "playdeveloperreporting.vitals.excessivewakeuprate.query", + // "id": "playdeveloperreporting.vitals.slowstartrate.query", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name. Format: apps/{app}/excessiveWakeupRateMetricSet", + // "description": "Required. The resource name. Format: apps/{app}/slowStartRateMetricSet", // "location": "path", - // "pattern": "^apps/[^/]+/excessiveWakeupRateMetricSet$", + // "pattern": "^apps/[^/]+/slowStartRateMetricSet$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}:query", // "request": { - // "$ref": "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetRequest" + // "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetRequest" // }, // "response": { - // "$ref": "GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse" + // "$ref": "GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/playdeveloperreporting" @@ -2891,11 +5923,11 @@ func (c *VitalsExcessivewakeuprateQueryCall) Do(opts ...googleapi.CallOption) (* // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *VitalsExcessivewakeuprateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1QueryExcessiveWakeupRateMetricSetResponse) error) error { +func (c *VitalsSlowstartrateQueryCall) Pages(ctx context.Context, f func(*GooglePlayDeveloperReportingV1beta1QuerySlowStartRateMetricSetResponse) error) error { c.ctx_ = ctx defer func(pt string) { - c.googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest.PageToken = pt - }(c.googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest.PageToken) // reset paging to original point + c.googleplaydeveloperreportingv1beta1queryslowstartratemetricsetrequest.PageToken = pt + }(c.googleplaydeveloperreportingv1beta1queryslowstartratemetricsetrequest.PageToken) // reset paging to original point for { x, err := c.Do() if err != nil { @@ -2907,7 +5939,7 @@ func (c *VitalsExcessivewakeuprateQueryCall) Pages(ctx context.Context, f func(* if x.NextPageToken == "" { return nil } - c.googleplaydeveloperreportingv1beta1queryexcessivewakeupratemetricsetrequest.PageToken = x.NextPageToken + c.googleplaydeveloperreportingv1beta1queryslowstartratemetricsetrequest.PageToken = x.NextPageToken } } diff --git a/privateca/v1/privateca-api.json b/privateca/v1/privateca-api.json index 7b8eb76caaa..cd1f73be747 100644 --- a/privateca/v1/privateca-api.json +++ b/privateca/v1/privateca-api.json @@ -1548,7 +1548,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "privateca.projects.locations.operations.list", @@ -1595,7 +1595,7 @@ } } }, - "revision": "20230222", + "revision": "20230315", "rootUrl": "https://privateca.googleapis.com/", "schemas": { "AccessUrls": { diff --git a/privateca/v1/privateca-gen.go b/privateca/v1/privateca-gen.go index 70fc05edfad..187e4c0a5b0 100644 --- a/privateca/v1/privateca-gen.go +++ b/privateca/v1/privateca-gen.go @@ -10709,14 +10709,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -10845,7 +10838,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "privateca.projects.locations.operations.list", diff --git a/privateca/v1beta1/privateca-api.json b/privateca/v1beta1/privateca-api.json index 39c8f106c4d..3e00be6bd85 100644 --- a/privateca/v1beta1/privateca-api.json +++ b/privateca/v1beta1/privateca-api.json @@ -442,7 +442,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "privateca.projects.locations.operations.list", @@ -580,7 +580,7 @@ } } }, - "revision": "20230202", + "revision": "20230315", "rootUrl": "https://privateca.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/privateca/v1beta1/privateca-gen.go b/privateca/v1beta1/privateca-gen.go index d624fe5582a..22e9accf768 100644 --- a/privateca/v1beta1/privateca-gen.go +++ b/privateca/v1beta1/privateca-gen.go @@ -2692,14 +2692,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -2828,7 +2821,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "privateca.projects.locations.operations.list", diff --git a/realtimebidding/v1/realtimebidding-api.json b/realtimebidding/v1/realtimebidding-api.json index 4d953a79c99..e627d9a72ea 100644 --- a/realtimebidding/v1/realtimebidding-api.json +++ b/realtimebidding/v1/realtimebidding-api.json @@ -1305,7 +1305,7 @@ } } }, - "revision": "20230308", + "revision": "20230330", "rootUrl": "https://realtimebidding.googleapis.com/", "schemas": { "ActivatePretargetingConfigRequest": { @@ -2712,6 +2712,10 @@ "description": "URL of the help center article describing this policy topic.", "type": "string" }, + "missingCertificate": { + "description": "Whether or not the policy topic is missing a certificate. Some policy topics require a certificate to unblock serving in some regions. For more information about creative certification, refer to: https://support.google.com/authorizedbuyers/answer/7450776", + "type": "boolean" + }, "policyTopic": { "description": "Policy topic this entry refers to. For example, \"ALCOHOL\", \"TRADEMARKS_IN_AD_TEXT\", or \"DESTINATION_NOT_WORKING\". The set of possible policy topics is not fixed for a particular API version and may change at any time. Can be used to filter the response of the creatives.list method", "type": "string" diff --git a/realtimebidding/v1/realtimebidding-gen.go b/realtimebidding/v1/realtimebidding-gen.go index c54ba3649e7..c4acb00bfc1 100644 --- a/realtimebidding/v1/realtimebidding-gen.go +++ b/realtimebidding/v1/realtimebidding-gen.go @@ -2281,6 +2281,13 @@ type PolicyTopicEntry struct { // topic. HelpCenterUrl string `json:"helpCenterUrl,omitempty"` + // MissingCertificate: Whether or not the policy topic is missing a + // certificate. Some policy topics require a certificate to unblock + // serving in some regions. For more information about creative + // certification, refer to: + // https://support.google.com/authorizedbuyers/answer/7450776 + MissingCertificate bool `json:"missingCertificate,omitempty"` + // PolicyTopic: Policy topic this entry refers to. For example, // "ALCOHOL", "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The // set of possible policy topics is not fixed for a particular API diff --git a/recaptchaenterprise/v1/recaptchaenterprise-api.json b/recaptchaenterprise/v1/recaptchaenterprise-api.json index c28f4fe370a..9958550a2ac 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-api.json +++ b/recaptchaenterprise/v1/recaptchaenterprise-api.json @@ -167,6 +167,158 @@ } } }, + "firewallpolicies": { + "methods": { + "create": { + "description": "Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed. A project may have a maximum of 1000 policies.", + "flatPath": "v1/projects/{projectsId}/firewallpolicies", + "httpMethod": "POST", + "id": "recaptchaenterprise.projects.firewallpolicies.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the project this policy will apply to, in the format \"projects/{project}\".", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/firewallpolicies", + "request": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy" + }, + "response": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the specified firewall policy.", + "flatPath": "v1/projects/{projectsId}/firewallpolicies/{firewallpoliciesId}", + "httpMethod": "DELETE", + "id": "recaptchaenterprise.projects.firewallpolicies.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the policy to be deleted, in the format \"projects/{project}/firewallpolicies/{firewallpolicy}\".", + "location": "path", + "pattern": "^projects/[^/]+/firewallpolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the specified firewall policy.", + "flatPath": "v1/projects/{projectsId}/firewallpolicies/{firewallpoliciesId}", + "httpMethod": "GET", + "id": "recaptchaenterprise.projects.firewallpolicies.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the requested policy, in the format \"projects/{project}/firewallpolicies/{firewallpolicy}\".", + "location": "path", + "pattern": "^projects/[^/]+/firewallpolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns the list of all firewall policies that belong to a project.", + "flatPath": "v1/projects/{projectsId}/firewallpolicies", + "httpMethod": "GET", + "id": "recaptchaenterprise.projects.firewallpolicies.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of policies to return. Default is 10. Max limit is 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The next_page_token value returned from a previous. ListFirewallPoliciesRequest, if any.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the project to list the policies for, in the format \"projects/{project}\".", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/firewallpolicies", + "response": { + "$ref": "GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the specified firewall policy.", + "flatPath": "v1/projects/{projectsId}/firewallpolicies/{firewallpoliciesId}", + "httpMethod": "PATCH", + "id": "recaptchaenterprise.projects.firewallpolicies.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name for the FirewallPolicy in the format \"projects/{project}/firewallpolicies/{firewallpolicy}\".", + "location": "path", + "pattern": "^projects/[^/]+/firewallpolicies/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields will be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy" + }, + "response": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "keys": { "methods": { "create": { @@ -514,7 +666,7 @@ } } }, - "revision": "20230312", + "revision": "20230328", "rootUrl": "https://recaptchaenterprise.googleapis.com/", "schemas": { "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": { @@ -610,6 +762,10 @@ "type": "string" }, "type": "array" + }, + "supportNonGoogleAppStoreDistribution": { + "description": "Set to true for keys that are used in an Android application that is available for download in app stores in addition to the Google Play Store.", + "type": "boolean" } }, "type": "object" @@ -711,6 +867,10 @@ "$ref": "GoogleCloudRecaptchaenterpriseV1Event", "description": "The event being assessed." }, + "firewallPolicyAssessment": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment", + "description": "Assessment returned when firewall policies belonging to the project are evaluated using the field firewall_policy_evaluation." + }, "fraudPreventionAssessment": { "$ref": "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment", "description": "Assessment returned by Fraud Prevention when TransactionData is provided." @@ -799,7 +959,11 @@ "type": "string" }, "express": { - "description": "Optional. Optional flag for a reCAPTCHA express request for an assessment without a token. If enabled, `site_key` must reference a SCORE key with WAF feature set to EXPRESS.", + "description": "Optional. Flag for a reCAPTCHA express request for an assessment without a token. If enabled, `site_key` must reference a SCORE key with WAF feature set to EXPRESS.", + "type": "boolean" + }, + "firewallPolicyEvaluation": { + "description": "Optional. Flag for enabling firewall policy config assessment. If this flag is enabled, the firewall policy will be evaluated and a suggested firewall action will be returned in the response.", "type": "boolean" }, "hashedAccountId": { @@ -808,7 +972,7 @@ "type": "string" }, "headers": { - "description": "Optional. Optional HTTP header information about the request.", + "description": "Optional. HTTP header information about the request.", "items": { "type": "string" }, @@ -841,6 +1005,127 @@ "userIpAddress": { "description": "Optional. The IP address in the request from the user's device related to this event.", "type": "string" + }, + "wafTokenAssessment": { + "description": "Optional. Flag for running WAF token assessment. If enabled, the token must be specified, and have been created by a WAF-enabled key.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudRecaptchaenterpriseV1FirewallAction": { + "description": "An individual action. Each action represents what to do if a policy matches.", + "id": "GoogleCloudRecaptchaenterpriseV1FirewallAction", + "properties": { + "allow": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction", + "description": "The user request did not match any policy and should be allowed access to the requested resource." + }, + "block": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction", + "description": "This action will deny access to a given page. The user will get an HTTP error code." + }, + "redirect": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction", + "description": "This action will redirect the request to a ReCaptcha interstitial to attach a token." + }, + "setHeader": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction", + "description": "This action will set a custom header but allow the request to continue to the customer backend." + }, + "substitute": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction", + "description": "This action will transparently serve a different page to an offending user." + } + }, + "type": "object" + }, + "GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction": { + "description": "An allow action continues processing a request unimpeded.", + "id": "GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction", + "properties": {}, + "type": "object" + }, + "GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction": { + "description": "A block action serves an HTTP error code a prevents the request from hitting the backend.", + "id": "GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction", + "properties": {}, + "type": "object" + }, + "GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction": { + "description": "A redirect action returns a 307 (temporary redirect) response, pointing the user to a ReCaptcha interstitial page to attach a token.", + "id": "GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction", + "properties": {}, + "type": "object" + }, + "GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction": { + "description": "A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend.", + "id": "GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction", + "properties": { + "key": { + "description": "The header key to set in the request to the backend server.", + "type": "string" + }, + "value": { + "description": "The header value to set in the request to the backend server.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction": { + "description": "A substitute action transparently serves a different page than the one requested.", + "id": "GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction", + "properties": { + "path": { + "description": "The address to redirect to. The target is a relative path in the current host. Example: \"/blog/404.html\".", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRecaptchaenterpriseV1FirewallPolicy": { + "description": "A FirewallPolicy represents a single matching pattern and resulting actions to take.", + "id": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy", + "properties": { + "actions": { + "description": "The actions that the caller should take regarding user access. There should be at most one terminal action. A terminal action is any action that forces a response, such as AllowAction, BlockAction or SubstituteAction. Zero or more non-terminal actions such as SetHeader might be specified. A single policy can contain up to 16 actions.", + "items": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallAction" + }, + "type": "array" + }, + "condition": { + "description": "A CEL (Common Expression Language) conditional expression that specifies if this policy applies to an incoming user request. If this condition evaluates to true and the requested path matched the path pattern, the associated actions should be executed by the caller. The condition string is checked for CEL syntax correctness on creation. For more information, see the [CEL spec](https://github.com/google/cel-spec) and its [language definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max length of 500 characters.", + "type": "string" + }, + "description": { + "description": "A description of what this policy aims to achieve, for convenience purposes. The description can at most include 256 UTF-8 characters.", + "type": "string" + }, + "name": { + "description": "The resource name for the FirewallPolicy in the format \"projects/{project}/firewallpolicies/{firewallpolicy}\".", + "type": "string" + }, + "path": { + "description": "The path for which this policy applies, specified as a glob pattern. For more information on glob, see the [manual page](https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max length of 200 characters.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment": { + "description": "Policy config assessment.", + "id": "GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment", + "properties": { + "error": { + "$ref": "GoogleRpcStatus", + "description": "If the processing of a policy config fails, an error will be populated and the firewall_policy will be left empty." + }, + "firewallPolicy": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy", + "description": "Output only. The policy that matched the request. If more than one policy may match, this is the first match. If no policy matches the incoming request, the policy field will be left empty.", + "readOnly": true } }, "type": "object" @@ -849,6 +1134,10 @@ "description": "Assessment for Fraud Prevention.", "id": "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment", "properties": { + "behavioralTrustVerdict": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict", + "description": "Assessment of this transaction for behavioral trust." + }, "cardTestingVerdict": { "$ref": "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict", "description": "Assessment of this transaction for risk of being part of a card testing attack." @@ -865,6 +1154,18 @@ }, "type": "object" }, + "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict": { + "description": "Information about behavioral trust of the transaction.", + "id": "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict", + "properties": { + "trust": { + "description": "Probability (0-1) of this transaction attempt being executed in a behaviorally trustworthy way.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict": { "description": "Information about card testing fraud, where an adversary is testing fraudulently obtained cards or brute forcing their details.", "id": "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict", @@ -916,7 +1217,7 @@ "description": "Settings for keys that can be used by Android apps." }, "createTime": { - "description": "Output only. The timestamp corresponding to the creation of this Key.", + "description": "Output only. The timestamp corresponding to the creation of this key.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -955,6 +1256,24 @@ }, "type": "object" }, + "GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse": { + "description": "Response to request to list firewall policies belonging to a key.", + "id": "GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse", + "properties": { + "firewallPolicies": { + "description": "Policy details.", + "items": { + "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Token to retrieve the next page of results. It is set to empty if no policies remain in results.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRecaptchaenterpriseV1ListKeysResponse": { "description": "Response to request to list keys in a project.", "id": "GoogleCloudRecaptchaenterpriseV1ListKeysResponse", @@ -1578,7 +1897,7 @@ "Redirects suspicious traffic to reCAPTCHA.", "Use reCAPTCHA session-tokens to protect the whole user session on the site's domain.", "Use reCAPTCHA action-tokens to protect user actions.", - "Use reCAPTCHA WAF express protection to protect any context other than web pages, like APIs and IoT devices." + "Use reCAPTCHA WAF express protection to protect any content other than web pages, like APIs and IoT devices." ], "type": "string" }, @@ -1658,6 +1977,33 @@ "id": "GoogleProtobufEmpty", "properties": {}, "type": "object" + }, + "GoogleRpcStatus": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "GoogleRpcStatus", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index 565c9a8256a..e0494071229 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -141,6 +141,7 @@ func (s *Service) userAgent() string { func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} rs.Assessments = NewProjectsAssessmentsService(s) + rs.Firewallpolicies = NewProjectsFirewallpoliciesService(s) rs.Keys = NewProjectsKeysService(s) rs.Relatedaccountgroupmemberships = NewProjectsRelatedaccountgroupmembershipsService(s) rs.Relatedaccountgroups = NewProjectsRelatedaccountgroupsService(s) @@ -152,6 +153,8 @@ type ProjectsService struct { Assessments *ProjectsAssessmentsService + Firewallpolicies *ProjectsFirewallpoliciesService + Keys *ProjectsKeysService Relatedaccountgroupmemberships *ProjectsRelatedaccountgroupmembershipsService @@ -168,6 +171,15 @@ type ProjectsAssessmentsService struct { s *Service } +func NewProjectsFirewallpoliciesService(s *Service) *ProjectsFirewallpoliciesService { + rs := &ProjectsFirewallpoliciesService{s: s} + return rs +} + +type ProjectsFirewallpoliciesService struct { + s *Service +} + func NewProjectsKeysService(s *Service) *ProjectsKeysService { rs := &ProjectsKeysService{s: s} return rs @@ -327,6 +339,11 @@ type GoogleCloudRecaptchaenterpriseV1AndroidKeySettings struct { // key. Example: 'com.companyname.appname' AllowedPackageNames []string `json:"allowedPackageNames,omitempty"` + // SupportNonGoogleAppStoreDistribution: Set to true for keys that are + // used in an Android application that is available for download in app + // stores in addition to the Google Play Store. + SupportNonGoogleAppStoreDistribution bool `json:"supportNonGoogleAppStoreDistribution,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AllowAllPackageNames") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -481,6 +498,11 @@ type GoogleCloudRecaptchaenterpriseV1Assessment struct { // Event: The event being assessed. Event *GoogleCloudRecaptchaenterpriseV1Event `json:"event,omitempty"` + // FirewallPolicyAssessment: Assessment returned when firewall policies + // belonging to the project are evaluated using the field + // firewall_policy_evaluation. + FirewallPolicyAssessment *GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment `json:"firewallPolicyAssessment,omitempty"` + // FraudPreventionAssessment: Assessment returned by Fraud Prevention // when TransactionData is provided. FraudPreventionAssessment *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment `json:"fraudPreventionAssessment,omitempty"` @@ -624,18 +646,23 @@ type GoogleCloudRecaptchaenterpriseV1Event struct { // client-side platforms already integrated with recaptcha enterprise. ExpectedAction string `json:"expectedAction,omitempty"` - // Express: Optional. Optional flag for a reCAPTCHA express request for - // an assessment without a token. If enabled, `site_key` must reference - // a SCORE key with WAF feature set to EXPRESS. + // Express: Optional. Flag for a reCAPTCHA express request for an + // assessment without a token. If enabled, `site_key` must reference a + // SCORE key with WAF feature set to EXPRESS. Express bool `json:"express,omitempty"` + // FirewallPolicyEvaluation: Optional. Flag for enabling firewall policy + // config assessment. If this flag is enabled, the firewall policy will + // be evaluated and a suggested firewall action will be returned in the + // response. + FirewallPolicyEvaluation bool `json:"firewallPolicyEvaluation,omitempty"` + // HashedAccountId: Optional. Unique stable hashed user identifier for // the request. The identifier must be hashed using hmac-sha256 with // stable secret. HashedAccountId string `json:"hashedAccountId,omitempty"` - // Headers: Optional. Optional HTTP header information about the - // request. + // Headers: Optional. HTTP header information about the request. Headers []string `json:"headers,omitempty"` // Ja3: Optional. Optional JA3 fingerprint for SSL clients. @@ -667,6 +694,11 @@ type GoogleCloudRecaptchaenterpriseV1Event struct { // user's device related to this event. UserIpAddress string `json:"userIpAddress,omitempty"` + // WafTokenAssessment: Optional. Flag for running WAF token assessment. + // If enabled, the token must be specified, and have been created by a + // WAF-enabled key. + WafTokenAssessment bool `json:"wafTokenAssessment,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExpectedAction") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -691,9 +723,240 @@ func (s *GoogleCloudRecaptchaenterpriseV1Event) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRecaptchaenterpriseV1FirewallAction: An individual action. +// Each action represents what to do if a policy matches. +type GoogleCloudRecaptchaenterpriseV1FirewallAction struct { + // Allow: The user request did not match any policy and should be + // allowed access to the requested resource. + Allow *GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction `json:"allow,omitempty"` + + // Block: This action will deny access to a given page. The user will + // get an HTTP error code. + Block *GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction `json:"block,omitempty"` + + // Redirect: This action will redirect the request to a ReCaptcha + // interstitial to attach a token. + Redirect *GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction `json:"redirect,omitempty"` + + // SetHeader: This action will set a custom header but allow the request + // to continue to the customer backend. + SetHeader *GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction `json:"setHeader,omitempty"` + + // Substitute: This action will transparently serve a different page to + // an offending user. + Substitute *GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction `json:"substitute,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allow") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Allow") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRecaptchaenterpriseV1FirewallAction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecaptchaenterpriseV1FirewallAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction: An allow +// action continues processing a request unimpeded. +type GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction struct { +} + +// GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction: A block +// action serves an HTTP error code a prevents the request from hitting +// the backend. +type GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction struct { +} + +// GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction: A +// redirect action returns a 307 (temporary redirect) response, pointing +// the user to a ReCaptcha interstitial page to attach a token. +type GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction struct { +} + +// GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction: A set +// header action sets a header and forwards the request to the backend. +// This can be used to trigger custom protection implemented on the +// backend. +type GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction struct { + // Key: The header key to set in the request to the backend server. + Key string `json:"key,omitempty"` + + // Value: The header value to set in the request to the backend server. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction: A +// substitute action transparently serves a different page than the one +// requested. +type GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction struct { + // Path: The address to redirect to. The target is a relative path in + // the current host. Example: "/blog/404.html". + Path string `json:"path,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Path") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRecaptchaenterpriseV1FirewallPolicy: A FirewallPolicy +// represents a single matching pattern and resulting actions to take. +type GoogleCloudRecaptchaenterpriseV1FirewallPolicy struct { + // Actions: The actions that the caller should take regarding user + // access. There should be at most one terminal action. A terminal + // action is any action that forces a response, such as AllowAction, + // BlockAction or SubstituteAction. Zero or more non-terminal actions + // such as SetHeader might be specified. A single policy can contain up + // to 16 actions. + Actions []*GoogleCloudRecaptchaenterpriseV1FirewallAction `json:"actions,omitempty"` + + // Condition: A CEL (Common Expression Language) conditional expression + // that specifies if this policy applies to an incoming user request. If + // this condition evaluates to true and the requested path matched the + // path pattern, the associated actions should be executed by the + // caller. The condition string is checked for CEL syntax correctness on + // creation. For more information, see the CEL spec + // (https://github.com/google/cel-spec) and its language definition + // (https://github.com/google/cel-spec/blob/master/doc/langdef.md). A + // condition has a max length of 500 characters. + Condition string `json:"condition,omitempty"` + + // Description: A description of what this policy aims to achieve, for + // convenience purposes. The description can at most include 256 UTF-8 + // characters. + Description string `json:"description,omitempty"` + + // Name: The resource name for the FirewallPolicy in the format + // "projects/{project}/firewallpolicies/{firewallpolicy}". + Name string `json:"name,omitempty"` + + // Path: The path for which this policy applies, specified as a glob + // pattern. For more information on glob, see the manual page + // (https://man7.org/linux/man-pages/man7/glob.7.html). A path has a max + // length of 200 characters. + Path string `json:"path,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Actions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Actions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRecaptchaenterpriseV1FirewallPolicy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecaptchaenterpriseV1FirewallPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment: Policy +// config assessment. +type GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment struct { + // Error: If the processing of a policy config fails, an error will be + // populated and the firewall_policy will be left empty. + Error *GoogleRpcStatus `json:"error,omitempty"` + + // FirewallPolicy: Output only. The policy that matched the request. If + // more than one policy may match, this is the first match. If no policy + // matches the incoming request, the policy field will be left empty. + FirewallPolicy *GoogleCloudRecaptchaenterpriseV1FirewallPolicy `json:"firewallPolicy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Error") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Error") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment: Assessment // for Fraud Prevention. type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment struct { + // BehavioralTrustVerdict: Assessment of this transaction for behavioral + // trust. + BehavioralTrustVerdict *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict `json:"behavioralTrustVerdict,omitempty"` + // CardTestingVerdict: Assessment of this transaction for risk of being // part of a card testing attack. CardTestingVerdict *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict `json:"cardTestingVerdict,omitempty"` @@ -706,18 +969,19 @@ type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment struct { // fraudulent. Summarizes the combined risk of attack vectors below. TransactionRisk float64 `json:"transactionRisk,omitempty"` - // ForceSendFields is a list of field names (e.g. "CardTestingVerdict") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "BehavioralTrustVerdict") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CardTestingVerdict") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the + // NullFields is a list of field names (e.g. "BehavioralTrustVerdict") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. @@ -744,6 +1008,50 @@ func (s *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment) UnmarshalJSO return nil } +// GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTru +// stVerdict: Information about behavioral trust of the transaction. +type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict struct { + // Trust: Probability (0-1) of this transaction attempt being executed + // in a behaviorally trustworthy way. + Trust float64 `json:"trust,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Trust") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Trust") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict + var s1 struct { + Trust gensupport.JSONFloat64 `json:"trust"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Trust = float64(s1.Trust) + return nil +} + // GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVe // rdict: Information about card testing fraud, where an adversary is // testing fraudulently obtained cards or brute forcing their details. @@ -878,7 +1186,7 @@ type GoogleCloudRecaptchaenterpriseV1Key struct { AndroidSettings *GoogleCloudRecaptchaenterpriseV1AndroidKeySettings `json:"androidSettings,omitempty"` // CreateTime: Output only. The timestamp corresponding to the creation - // of this Key. + // of this key. CreateTime string `json:"createTime,omitempty"` // DisplayName: Human-readable display name of this key. Modifiable by @@ -932,6 +1240,44 @@ func (s *GoogleCloudRecaptchaenterpriseV1Key) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse: +// Response to request to list firewall policies belonging to a key. +type GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse struct { + // FirewallPolicies: Policy details. + FirewallPolicies []*GoogleCloudRecaptchaenterpriseV1FirewallPolicy `json:"firewallPolicies,omitempty"` + + // NextPageToken: Token to retrieve the next page of results. It is set + // to empty if no policies remain in results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FirewallPolicies") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FirewallPolicies") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRecaptchaenterpriseV1ListKeysResponse: Response to request // to list keys in a project. type GoogleCloudRecaptchaenterpriseV1ListKeysResponse struct { @@ -2062,7 +2408,7 @@ type GoogleCloudRecaptchaenterpriseV1WafSettings struct { // "ACTION_TOKEN" - Use reCAPTCHA action-tokens to protect user // actions. // "EXPRESS" - Use reCAPTCHA WAF express protection to protect any - // context other than web pages, like APIs and IoT devices. + // content other than web pages, like APIs and IoT devices. WafFeature string `json:"wafFeature,omitempty"` // WafService: Required. The WAF service that uses this key. @@ -2177,6 +2523,50 @@ type GoogleProtobufEmpty struct { googleapi.ServerResponse `json:"-"` } +// GoogleRpcStatus: The `Status` type defines a logical error model that +// is suitable for different programming environments, including REST +// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type GoogleRpcStatus struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleRpcStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "recaptchaenterprise.projects.assessments.annotate": type ProjectsAssessmentsAnnotateCall struct { @@ -2471,6 +2861,792 @@ func (c *ProjectsAssessmentsCreateCall) Do(opts ...googleapi.CallOption) (*Googl } +// method id "recaptchaenterprise.projects.firewallpolicies.create": + +type ProjectsFirewallpoliciesCreateCall struct { + s *Service + parent string + googlecloudrecaptchaenterprisev1firewallpolicy *GoogleCloudRecaptchaenterpriseV1FirewallPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new FirewallPolicy, specifying conditions at which +// reCAPTCHA Enterprise actions can be executed. A project may have a +// maximum of 1000 policies. +// +// - parent: The name of the project this policy will apply to, in the +// format "projects/{project}". +func (r *ProjectsFirewallpoliciesService) Create(parent string, googlecloudrecaptchaenterprisev1firewallpolicy *GoogleCloudRecaptchaenterpriseV1FirewallPolicy) *ProjectsFirewallpoliciesCreateCall { + c := &ProjectsFirewallpoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudrecaptchaenterprisev1firewallpolicy = googlecloudrecaptchaenterprisev1firewallpolicy + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsFirewallpoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsFirewallpoliciesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsFirewallpoliciesCreateCall) Context(ctx context.Context) *ProjectsFirewallpoliciesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsFirewallpoliciesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsFirewallpoliciesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrecaptchaenterprisev1firewallpolicy) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/firewallpolicies") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "recaptchaenterprise.projects.firewallpolicies.create" call. +// Exactly one of *GoogleCloudRecaptchaenterpriseV1FirewallPolicy or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudRecaptchaenterpriseV1FirewallPolicy.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsFirewallpoliciesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecaptchaenterpriseV1FirewallPolicy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudRecaptchaenterpriseV1FirewallPolicy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed. A project may have a maximum of 1000 policies.", + // "flatPath": "v1/projects/{projectsId}/firewallpolicies", + // "httpMethod": "POST", + // "id": "recaptchaenterprise.projects.firewallpolicies.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The name of the project this policy will apply to, in the format \"projects/{project}\".", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/firewallpolicies", + // "request": { + // "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy" + // }, + // "response": { + // "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "recaptchaenterprise.projects.firewallpolicies.delete": + +type ProjectsFirewallpoliciesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified firewall policy. +// +// - name: The name of the policy to be deleted, in the format +// "projects/{project}/firewallpolicies/{firewallpolicy}". +func (r *ProjectsFirewallpoliciesService) Delete(name string) *ProjectsFirewallpoliciesDeleteCall { + c := &ProjectsFirewallpoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsFirewallpoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsFirewallpoliciesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsFirewallpoliciesDeleteCall) Context(ctx context.Context) *ProjectsFirewallpoliciesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsFirewallpoliciesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsFirewallpoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "recaptchaenterprise.projects.firewallpolicies.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsFirewallpoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the specified firewall policy.", + // "flatPath": "v1/projects/{projectsId}/firewallpolicies/{firewallpoliciesId}", + // "httpMethod": "DELETE", + // "id": "recaptchaenterprise.projects.firewallpolicies.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the policy to be deleted, in the format \"projects/{project}/firewallpolicies/{firewallpolicy}\".", + // "location": "path", + // "pattern": "^projects/[^/]+/firewallpolicies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "recaptchaenterprise.projects.firewallpolicies.get": + +type ProjectsFirewallpoliciesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the specified firewall policy. +// +// - name: The name of the requested policy, in the format +// "projects/{project}/firewallpolicies/{firewallpolicy}". +func (r *ProjectsFirewallpoliciesService) Get(name string) *ProjectsFirewallpoliciesGetCall { + c := &ProjectsFirewallpoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsFirewallpoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsFirewallpoliciesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsFirewallpoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsFirewallpoliciesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsFirewallpoliciesGetCall) Context(ctx context.Context) *ProjectsFirewallpoliciesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsFirewallpoliciesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsFirewallpoliciesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "recaptchaenterprise.projects.firewallpolicies.get" call. +// Exactly one of *GoogleCloudRecaptchaenterpriseV1FirewallPolicy or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudRecaptchaenterpriseV1FirewallPolicy.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsFirewallpoliciesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecaptchaenterpriseV1FirewallPolicy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudRecaptchaenterpriseV1FirewallPolicy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the specified firewall policy.", + // "flatPath": "v1/projects/{projectsId}/firewallpolicies/{firewallpoliciesId}", + // "httpMethod": "GET", + // "id": "recaptchaenterprise.projects.firewallpolicies.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the requested policy, in the format \"projects/{project}/firewallpolicies/{firewallpolicy}\".", + // "location": "path", + // "pattern": "^projects/[^/]+/firewallpolicies/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "recaptchaenterprise.projects.firewallpolicies.list": + +type ProjectsFirewallpoliciesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns the list of all firewall policies that belong to a +// project. +// +// - parent: The name of the project to list the policies for, in the +// format "projects/{project}". +func (r *ProjectsFirewallpoliciesService) List(parent string) *ProjectsFirewallpoliciesListCall { + c := &ProjectsFirewallpoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of policies to return. Default is 10. Max limit is 1000. +func (c *ProjectsFirewallpoliciesListCall) PageSize(pageSize int64) *ProjectsFirewallpoliciesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous. +// ListFirewallPoliciesRequest, if any. +func (c *ProjectsFirewallpoliciesListCall) PageToken(pageToken string) *ProjectsFirewallpoliciesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsFirewallpoliciesListCall) Fields(s ...googleapi.Field) *ProjectsFirewallpoliciesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsFirewallpoliciesListCall) IfNoneMatch(entityTag string) *ProjectsFirewallpoliciesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsFirewallpoliciesListCall) Context(ctx context.Context) *ProjectsFirewallpoliciesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsFirewallpoliciesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsFirewallpoliciesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/firewallpolicies") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "recaptchaenterprise.projects.firewallpolicies.list" call. +// Exactly one of +// *GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse.ServerRe +// sponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsFirewallpoliciesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the list of all firewall policies that belong to a project.", + // "flatPath": "v1/projects/{projectsId}/firewallpolicies", + // "httpMethod": "GET", + // "id": "recaptchaenterprise.projects.firewallpolicies.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of policies to return. Default is 10. Max limit is 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. The next_page_token value returned from a previous. ListFirewallPoliciesRequest, if any.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the project to list the policies for, in the format \"projects/{project}\".", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/firewallpolicies", + // "response": { + // "$ref": "GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsFirewallpoliciesListCall) Pages(ctx context.Context, f func(*GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "recaptchaenterprise.projects.firewallpolicies.patch": + +type ProjectsFirewallpoliciesPatchCall struct { + s *Service + name string + googlecloudrecaptchaenterprisev1firewallpolicy *GoogleCloudRecaptchaenterpriseV1FirewallPolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the specified firewall policy. +// +// - name: The resource name for the FirewallPolicy in the format +// "projects/{project}/firewallpolicies/{firewallpolicy}". +func (r *ProjectsFirewallpoliciesService) Patch(name string, googlecloudrecaptchaenterprisev1firewallpolicy *GoogleCloudRecaptchaenterpriseV1FirewallPolicy) *ProjectsFirewallpoliciesPatchCall { + c := &ProjectsFirewallpoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudrecaptchaenterprisev1firewallpolicy = googlecloudrecaptchaenterprisev1firewallpolicy + return c +} + +// UpdateMask sets the optional parameter "updateMask": The mask to +// control which fields of the policy get updated. If the mask is not +// present, all fields will be updated. +func (c *ProjectsFirewallpoliciesPatchCall) UpdateMask(updateMask string) *ProjectsFirewallpoliciesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsFirewallpoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsFirewallpoliciesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsFirewallpoliciesPatchCall) Context(ctx context.Context) *ProjectsFirewallpoliciesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsFirewallpoliciesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsFirewallpoliciesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrecaptchaenterprisev1firewallpolicy) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "recaptchaenterprise.projects.firewallpolicies.patch" call. +// Exactly one of *GoogleCloudRecaptchaenterpriseV1FirewallPolicy or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudRecaptchaenterpriseV1FirewallPolicy.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsFirewallpoliciesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecaptchaenterpriseV1FirewallPolicy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudRecaptchaenterpriseV1FirewallPolicy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the specified firewall policy.", + // "flatPath": "v1/projects/{projectsId}/firewallpolicies/{firewallpoliciesId}", + // "httpMethod": "PATCH", + // "id": "recaptchaenterprise.projects.firewallpolicies.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name for the FirewallPolicy in the format \"projects/{project}/firewallpolicies/{firewallpolicy}\".", + // "location": "path", + // "pattern": "^projects/[^/]+/firewallpolicies/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields will be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy" + // }, + // "response": { + // "$ref": "GoogleCloudRecaptchaenterpriseV1FirewallPolicy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "recaptchaenterprise.projects.keys.create": type ProjectsKeysCreateCall struct { diff --git a/recommendationengine/v1beta1/recommendationengine-api.json b/recommendationengine/v1beta1/recommendationengine-api.json index e2d89f5f466..d7af9b50855 100644 --- a/recommendationengine/v1beta1/recommendationengine-api.json +++ b/recommendationengine/v1beta1/recommendationengine-api.json @@ -398,7 +398,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/eventStores/{eventStoresId}/operations", "httpMethod": "GET", "id": "recommendationengine.projects.locations.catalogs.eventStores.operations.list", @@ -792,7 +792,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/operations", "httpMethod": "GET", "id": "recommendationengine.projects.locations.catalogs.operations.list", @@ -841,7 +841,7 @@ } } }, - "revision": "20220622", + "revision": "20230321", "rootUrl": "https://recommendationengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { diff --git a/recommendationengine/v1beta1/recommendationengine-gen.go b/recommendationengine/v1beta1/recommendationengine-gen.go index 2d6f45bb7cc..5440fe756e4 100644 --- a/recommendationengine/v1beta1/recommendationengine-gen.go +++ b/recommendationengine/v1beta1/recommendationengine-gen.go @@ -4088,14 +4088,7 @@ type ProjectsLocationsCatalogsEventStoresOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsCatalogsEventStoresOperationsService) List(name string) *ProjectsLocationsCatalogsEventStoresOperationsListCall { @@ -4225,7 +4218,7 @@ func (c *ProjectsLocationsCatalogsEventStoresOperationsListCall) Do(opts ...goog } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/eventStores/{eventStoresId}/operations", // "httpMethod": "GET", // "id": "recommendationengine.projects.locations.catalogs.eventStores.operations.list", @@ -6120,14 +6113,7 @@ type ProjectsLocationsCatalogsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsCatalogsOperationsService) List(name string) *ProjectsLocationsCatalogsOperationsListCall { @@ -6257,7 +6243,7 @@ func (c *ProjectsLocationsCatalogsOperationsListCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/operations", // "httpMethod": "GET", // "id": "recommendationengine.projects.locations.catalogs.operations.list", diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index c5b5a02b95d..5b49e01fe3b 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -624,7 +624,7 @@ } } }, - "revision": "20230309", + "revision": "20230318", "rootUrl": "https://redis.googleapis.com/", "schemas": { "Empty": { @@ -1314,7 +1314,7 @@ ], "enumDescriptions": [ "Unknown repair action.", - "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel. For more information - go/ccfe-delete-on-upsert, go/ccfe-reconciliation-protocol-ug#apply_delete", + "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel.", "This resource could not be repaired but the repair should be tried again at a later time. This can happen if there is a dependency that needs to be resolved first- e.g. if a parent resource must be repaired before a child resource." ], "type": "string" diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index 93d6430b8f9..eabf7f4b2b9 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -1215,9 +1215,7 @@ type ReconciliationOperationMetadata struct { // "UNKNOWN_REPAIR_ACTION" - Unknown repair action. // "DELETE" - The resource has to be deleted. When using this bit, the // CLH should fail the operation. DEPRECATED. Instead use - // DELETE_RESOURCE OperationSignal in SideChannel. For more information - // - go/ccfe-delete-on-upsert, - // go/ccfe-reconciliation-protocol-ug#apply_delete + // DELETE_RESOURCE OperationSignal in SideChannel. // "RETRY" - This resource could not be repaired but the repair should // be tried again at a later time. This can happen if there is a // dependency that needs to be resolved first- e.g. if a parent resource diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index d5c7f24bc0f..0767b042e57 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -624,7 +624,7 @@ } } }, - "revision": "20230309", + "revision": "20230318", "rootUrl": "https://redis.googleapis.com/", "schemas": { "Empty": { @@ -1321,7 +1321,7 @@ ], "enumDescriptions": [ "Unknown repair action.", - "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel. For more information - go/ccfe-delete-on-upsert, go/ccfe-reconciliation-protocol-ug#apply_delete", + "The resource has to be deleted. When using this bit, the CLH should fail the operation. DEPRECATED. Instead use DELETE_RESOURCE OperationSignal in SideChannel.", "This resource could not be repaired but the repair should be tried again at a later time. This can happen if there is a dependency that needs to be resolved first- e.g. if a parent resource must be repaired before a child resource." ], "type": "string" diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index e50bf36c9b2..f7efdbd3736 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -1220,9 +1220,7 @@ type ReconciliationOperationMetadata struct { // "UNKNOWN_REPAIR_ACTION" - Unknown repair action. // "DELETE" - The resource has to be deleted. When using this bit, the // CLH should fail the operation. DEPRECATED. Instead use - // DELETE_RESOURCE OperationSignal in SideChannel. For more information - // - go/ccfe-delete-on-upsert, - // go/ccfe-reconciliation-protocol-ug#apply_delete + // DELETE_RESOURCE OperationSignal in SideChannel. // "RETRY" - This resource could not be repaired but the repair should // be tried again at a later time. This can happen if there is a // dependency that needs to be resolved first- e.g. if a parent resource diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 4b5a690c7a4..4a330d48c1b 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -120,6 +120,11 @@ "catalog" ], "parameters": { + "banner": { + "description": "The banner context for completion suggestions.", + "location": "query", + "type": "string" + }, "catalog": { "description": "Required. Catalog for which the completion is performed. Full resource name of catalog, such as `projects/*/locations/global/catalogs/default_catalog`.", "location": "path", @@ -2026,7 +2031,7 @@ } } }, - "revision": "20230309", + "revision": "20230330", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3385,7 +3390,7 @@ "id": "GoogleCloudRetailV2PredictRequest", "properties": { "filter": { - "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (brands: ANY(\"Pixel\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\")) For more information, see [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs).", + "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (availability: ANY(\"IN_STOCK\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\")) For more information, see [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs).", "type": "string" }, "labels": { @@ -4255,6 +4260,10 @@ "description": "Request message for SearchService.Search method.", "id": "GoogleCloudRetailV2SearchRequest", "properties": { + "banner": { + "description": "Represents the banner in request, for projects that combine banners. For example: a retailer can sell products under different banners like retailer-main, retailer-baby, retailer-meds, etc. under one project.", + "type": "string" + }, "boostSpec": { "$ref": "GoogleCloudRetailV2SearchRequestBoostSpec", "description": "Boost specification to boost certain products. See more details at this [user guide](https://cloud.google.com/retail/docs/boosting). Notice that if both ServingConfig.boost_control_ids and SearchRequest.boost_spec are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions." @@ -4970,6 +4979,10 @@ "description": "Highly recommended for user events that are the result of PredictionService.Predict. This field enables accurate attribution of recommendation model performance. The value must be a valid PredictResponse.attribution_token for user events that are the result of PredictionService.Predict. The value must be a valid SearchResponse.attribution_token for user events that are the result of SearchService.Search. This token enables us to accurately attribute page view or purchase back to the event and the particular predict response containing this clicked/purchased product. If user clicks on product K in the recommendation results, pass PredictResponse.attribution_token as a URL parameter to product K's page. When recording events on product K's page, log the PredictResponse.attribution_token to this field.", "type": "string" }, + "banner": { + "description": "Represents the banner of the user event, for projects that combine banners. For example: retailer can have events from multiple banners like retailer-main, retailer-baby, retailer-meds, etc. under one project.", + "type": "string" + }, "cartId": { "description": "The ID or name of the associated shopping cart. This ID is used to associate multiple items added or present in the cart before purchase. This can only be set for `add-to-cart`, `purchase-complete`, or `shopping-cart-page-view` events.", "type": "string" @@ -4978,10 +4991,6 @@ "$ref": "GoogleCloudRetailV2CompletionDetail", "description": "The main auto-completion details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for search." }, - "domain": { - "description": "Represents the domain of the user event, for projects that combine domains. For example: retailer can have events from multiple domains like retailer-main, retailer-baby, retailer-meds, etc. under one project.", - "type": "string" - }, "eventTime": { "description": "Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened.", "format": "google-datetime", @@ -5172,6 +5181,23 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata": { + "description": "Common metadata related to the progress of the operations.", + "id": "GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaCreateModelMetadata": { "description": "Metadata associated with a create operation.", "id": "GoogleCloudRetailV2alphaCreateModelMetadata", @@ -5370,6 +5396,85 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaMerchantCenterAccountLink": { + "description": "Represents a link between a Merchant Center account and a branch. Once a link is established, products from the linked merchant center account will be streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)", + "id": "GoogleCloudRetailV2alphaMerchantCenterAccountLink", + "properties": { + "branchId": { + "description": "Required. The branch id (e.g. 0/1/2) within the catalog that products from merchant_center_account_id are streamed to. When updating this field, an empty value will use the currently configured default branch. However, changing the default branch later on won't change the linked branch here. A single branch id can only have one linked merchant center account id.", + "type": "string" + }, + "feedFilters": { + "description": "Criteria for the Merchant Center feeds to be ingested via the link. All offers will be ingested if the list is empty. Otherwise the offers will be ingested from selected feeds.", + "items": { + "$ref": "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter" + }, + "type": "array" + }, + "feedLabel": { + "description": "The FeedLabel used to perform filtering. Note: this replaces [region_id](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). Example value: `US`. Example value: `FeedLabel1`.", + "type": "string" + }, + "id": { + "description": "Output only. Immutable. MerchantCenterAccountLink identifier, which is the final component of name. This field is auto generated and follows the convention: `BranchId_MerchantCenterAccountId`. `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1`.", + "readOnly": true, + "type": "string" + }, + "languageCode": { + "description": "Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This specifies the language of offers in Merchant Center that will be accepted. If empty, no language filtering will be performed. Example value: `en`.", + "type": "string" + }, + "merchantCenterAccountId": { + "description": "Required. The linked [Merchant center account id](https://developers.google.com/shopping-content/guides/accountstatuses). The account must be a standalone account or a sub-account of a MCA.", + "format": "int64", + "type": "string" + }, + "name": { + "description": "Output only. Immutable. Full resource name of the Merchant Center Account Link, such as `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.", + "readOnly": true, + "type": "string" + }, + "projectId": { + "description": "Output only. GCP project ID.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Represents the state of the link.", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "ACTIVE", + "FAILED" + ], + "enumDescriptions": [ + "Default value.", + "Link is created and LRO is not complete.", + "Link is active.", + "Link creation failed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter": { + "description": "Merchant Center Feed filter criterion.", + "id": "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter", + "properties": { + "primaryFeedId": { + "description": "Merchant Center primary feed ID.", + "format": "int64", + "type": "string" + }, + "primaryFeedName": { + "description": "Merchant Center primary feed name. The name is used for the display purposes only.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaModel": { "description": "Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict API.", "id": "GoogleCloudRetailV2alphaModel", @@ -5816,6 +5921,23 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata": { + "description": "Common metadata related to the progress of the operations.", + "id": "GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaCreateModelMetadata": { "description": "Metadata associated with a create operation.", "id": "GoogleCloudRetailV2betaCreateModelMetadata", @@ -6010,6 +6132,85 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaMerchantCenterAccountLink": { + "description": "Represents a link between a Merchant Center account and a branch. Once a link is established, products from the linked merchant center account will be streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)", + "id": "GoogleCloudRetailV2betaMerchantCenterAccountLink", + "properties": { + "branchId": { + "description": "Required. The branch id (e.g. 0/1/2) within the catalog that products from merchant_center_account_id are streamed to. When updating this field, an empty value will use the currently configured default branch. However, changing the default branch later on won't change the linked branch here. A single branch id can only have one linked merchant center account id.", + "type": "string" + }, + "feedFilters": { + "description": "Criteria for the Merchant Center feeds to be ingested via the link. All offers will be ingested if the list is empty. Otherwise the offers will be ingested from selected feeds.", + "items": { + "$ref": "GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter" + }, + "type": "array" + }, + "feedLabel": { + "description": "The FeedLabel used to perform filtering. Note: this replaces [region_id](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). Example value: `US`. Example value: `FeedLabel1`.", + "type": "string" + }, + "id": { + "description": "Output only. Immutable. MerchantCenterAccountLink identifier, which is the final component of name. This field is auto generated and follows the convention: `BranchId_MerchantCenterAccountId`. `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1`.", + "readOnly": true, + "type": "string" + }, + "languageCode": { + "description": "Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This specifies the language of offers in Merchant Center that will be accepted. If empty, no language filtering will be performed. Example value: `en`.", + "type": "string" + }, + "merchantCenterAccountId": { + "description": "Required. The linked [Merchant center account id](https://developers.google.com/shopping-content/guides/accountstatuses). The account must be a standalone account or a sub-account of a MCA.", + "format": "int64", + "type": "string" + }, + "name": { + "description": "Output only. Immutable. Full resource name of the Merchant Center Account Link, such as `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.", + "readOnly": true, + "type": "string" + }, + "projectId": { + "description": "Output only. GCP project ID.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Represents the state of the link.", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "ACTIVE", + "FAILED" + ], + "enumDescriptions": [ + "Default value.", + "Link is created and LRO is not complete.", + "Link is active.", + "Link creation failed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter": { + "description": "Merchant Center Feed filter criterion.", + "id": "GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter", + "properties": { + "primaryFeedId": { + "description": "Merchant Center primary feed ID.", + "format": "int64", + "type": "string" + }, + "primaryFeedName": { + "description": "Merchant Center primary feed name. The name is used for the display purposes only.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaModel": { "description": "Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict API.", "id": "GoogleCloudRetailV2betaModel", diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index c754b895e3a..45b5d6251bd 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -2891,9 +2891,9 @@ type GoogleCloudRetailV2PredictRequest struct { // true under the `params` field, then attribute-based expressions are // expected instead of the above described tag-based syntax. Examples: * // (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones")) * - // (brands: ANY("Pixel")) AND (colors: ANY("Red") OR categories: - // ANY("Phones")) For more information, see Filter recommendations - // (https://cloud.google.com/retail/docs/filter-recs). + // (availability: ANY("IN_STOCK")) AND (colors: ANY("Red") OR + // categories: ANY("Phones")) For more information, see Filter + // recommendations (https://cloud.google.com/retail/docs/filter-recs). Filter string `json:"filter,omitempty"` // Labels: The labels applied to a resource must meet the following @@ -4649,6 +4649,12 @@ func (s *GoogleCloudRetailV2RuleTwowaySynonymsAction) MarshalJSON() ([]byte, err // GoogleCloudRetailV2SearchRequest: Request message for // SearchService.Search method. type GoogleCloudRetailV2SearchRequest struct { + // Banner: Represents the banner in request, for projects that combine + // banners. For example: a retailer can sell products under different + // banners like retailer-main, retailer-baby, retailer-meds, etc. under + // one project. + Banner string `json:"banner,omitempty"` + // BoostSpec: Boost specification to boost certain products. See more // details at this user guide // (https://cloud.google.com/retail/docs/boosting). Notice that if both @@ -4839,7 +4845,7 @@ type GoogleCloudRetailV2SearchRequest struct { // is returned. VisitorId string `json:"visitorId,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoostSpec") to + // ForceSendFields is a list of field names (e.g. "Banner") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4847,8 +4853,8 @@ type GoogleCloudRetailV2SearchRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BoostSpec") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Banner") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -5993,6 +5999,12 @@ type GoogleCloudRetailV2UserEvent struct { // PredictResponse.attribution_token to this field. AttributionToken string `json:"attributionToken,omitempty"` + // Banner: Represents the banner of the user event, for projects that + // combine banners. For example: retailer can have events from multiple + // banners like retailer-main, retailer-baby, retailer-meds, etc. under + // one project. + Banner string `json:"banner,omitempty"` + // CartId: The ID or name of the associated shopping cart. This ID is // used to associate multiple items added or present in the cart before // purchase. This can only be set for `add-to-cart`, @@ -6004,12 +6016,6 @@ type GoogleCloudRetailV2UserEvent struct { // function is enabled and the user clicks a suggestion for search. CompletionDetail *GoogleCloudRetailV2CompletionDetail `json:"completionDetail,omitempty"` - // Domain: Represents the domain of the user event, for projects that - // combine domains. For example: retailer can have events from multiple - // domains like retailer-main, retailer-baby, retailer-meds, etc. under - // one project. - Domain string `json:"domain,omitempty"` - // EventTime: Only required for UserEventService.ImportUserEvents // method. Timestamp of when the user event happened. EventTime string `json:"eventTime,omitempty"` @@ -6388,6 +6394,39 @@ func (s *GoogleCloudRetailV2alphaBigQueryOutputResult) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata: +// Common metadata related to the progress of the operations. +type GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaCreateModelMetadata: Metadata associated with // a create operation. type GoogleCloudRetailV2alphaCreateModelMetadata struct { @@ -6791,6 +6830,126 @@ func (s *GoogleCloudRetailV2alphaImportUserEventsResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaMerchantCenterAccountLink: Represents a link +// between a Merchant Center account and a branch. Once a link is +// established, products from the linked merchant center account will be +// streamed to the linked branch. +// LINT.IfChange(MerchantCenterAccountLink) +type GoogleCloudRetailV2alphaMerchantCenterAccountLink struct { + // BranchId: Required. The branch id (e.g. 0/1/2) within the catalog + // that products from merchant_center_account_id are streamed to. When + // updating this field, an empty value will use the currently configured + // default branch. However, changing the default branch later on won't + // change the linked branch here. A single branch id can only have one + // linked merchant center account id. + BranchId string `json:"branchId,omitempty"` + + // FeedFilters: Criteria for the Merchant Center feeds to be ingested + // via the link. All offers will be ingested if the list is empty. + // Otherwise the offers will be ingested from selected feeds. + FeedFilters []*GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter `json:"feedFilters,omitempty"` + + // FeedLabel: The FeedLabel used to perform filtering. Note: this + // replaces region_id + // (https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). + // Example value: `US`. Example value: `FeedLabel1`. + FeedLabel string `json:"feedLabel,omitempty"` + + // Id: Output only. Immutable. MerchantCenterAccountLink identifier, + // which is the final component of name. This field is auto generated + // and follows the convention: `BranchId_MerchantCenterAccountId`. + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/id_1`. + Id string `json:"id,omitempty"` + + // LanguageCode: Language of the title/description and other string + // attributes. Use language tags defined by BCP 47 + // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This + // specifies the language of offers in Merchant Center that will be + // accepted. If empty, no language filtering will be performed. Example + // value: `en`. + LanguageCode string `json:"languageCode,omitempty"` + + // MerchantCenterAccountId: Required. The linked Merchant center account + // id + // (https://developers.google.com/shopping-content/guides/accountstatuses). + // The account must be a standalone account or a sub-account of a MCA. + MerchantCenterAccountId int64 `json:"merchantCenterAccountId,omitempty,string"` + + // Name: Output only. Immutable. Full resource name of the Merchant + // Center Account Link, such as + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/merchant_center_account_link`. + Name string `json:"name,omitempty"` + + // ProjectId: Output only. GCP project ID. + ProjectId string `json:"projectId,omitempty"` + + // State: Output only. Represents the state of the link. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. + // "PENDING" - Link is created and LRO is not complete. + // "ACTIVE" - Link is active. + // "FAILED" - Link creation failed. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BranchId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BranchId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaMerchantCenterAccountLink) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaMerchantCenterAccountLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFil +// ter: Merchant Center Feed filter criterion. +type GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter struct { + // PrimaryFeedId: Merchant Center primary feed ID. + PrimaryFeedId int64 `json:"primaryFeedId,omitempty,string"` + + // PrimaryFeedName: Merchant Center primary feed name. The name is used + // for the display purposes only. + PrimaryFeedName string `json:"primaryFeedName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PrimaryFeedId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PrimaryFeedId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaModel: Metadata that describes the training // and serving parameters of a Model. A Model can be associated with a // ServingConfig and then queried through the Predict API. @@ -7566,6 +7725,39 @@ func (s *GoogleCloudRetailV2betaBigQueryOutputResult) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata: +// Common metadata related to the progress of the operations. +type GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaCreateModelMetadata: Metadata associated with // a create operation. type GoogleCloudRetailV2betaCreateModelMetadata struct { @@ -7965,6 +8157,126 @@ func (s *GoogleCloudRetailV2betaImportUserEventsResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaMerchantCenterAccountLink: Represents a link +// between a Merchant Center account and a branch. Once a link is +// established, products from the linked merchant center account will be +// streamed to the linked branch. +// LINT.IfChange(MerchantCenterAccountLink) +type GoogleCloudRetailV2betaMerchantCenterAccountLink struct { + // BranchId: Required. The branch id (e.g. 0/1/2) within the catalog + // that products from merchant_center_account_id are streamed to. When + // updating this field, an empty value will use the currently configured + // default branch. However, changing the default branch later on won't + // change the linked branch here. A single branch id can only have one + // linked merchant center account id. + BranchId string `json:"branchId,omitempty"` + + // FeedFilters: Criteria for the Merchant Center feeds to be ingested + // via the link. All offers will be ingested if the list is empty. + // Otherwise the offers will be ingested from selected feeds. + FeedFilters []*GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter `json:"feedFilters,omitempty"` + + // FeedLabel: The FeedLabel used to perform filtering. Note: this + // replaces region_id + // (https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). + // Example value: `US`. Example value: `FeedLabel1`. + FeedLabel string `json:"feedLabel,omitempty"` + + // Id: Output only. Immutable. MerchantCenterAccountLink identifier, + // which is the final component of name. This field is auto generated + // and follows the convention: `BranchId_MerchantCenterAccountId`. + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/id_1`. + Id string `json:"id,omitempty"` + + // LanguageCode: Language of the title/description and other string + // attributes. Use language tags defined by BCP 47 + // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This + // specifies the language of offers in Merchant Center that will be + // accepted. If empty, no language filtering will be performed. Example + // value: `en`. + LanguageCode string `json:"languageCode,omitempty"` + + // MerchantCenterAccountId: Required. The linked Merchant center account + // id + // (https://developers.google.com/shopping-content/guides/accountstatuses). + // The account must be a standalone account or a sub-account of a MCA. + MerchantCenterAccountId int64 `json:"merchantCenterAccountId,omitempty,string"` + + // Name: Output only. Immutable. Full resource name of the Merchant + // Center Account Link, such as + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/merchant_center_account_link`. + Name string `json:"name,omitempty"` + + // ProjectId: Output only. GCP project ID. + ProjectId string `json:"projectId,omitempty"` + + // State: Output only. Represents the state of the link. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. + // "PENDING" - Link is created and LRO is not complete. + // "ACTIVE" - Link is active. + // "FAILED" - Link creation failed. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BranchId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BranchId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaMerchantCenterAccountLink) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaMerchantCenterAccountLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilt +// er: Merchant Center Feed filter criterion. +type GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter struct { + // PrimaryFeedId: Merchant Center primary feed ID. + PrimaryFeedId int64 `json:"primaryFeedId,omitempty,string"` + + // PrimaryFeedName: Merchant Center primary feed name. The name is used + // for the display purposes only. + PrimaryFeedName string `json:"primaryFeedName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PrimaryFeedId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PrimaryFeedId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaModel: Metadata that describes the training // and serving parameters of a Model. A Model can be associated with a // ServingConfig and then queried through the Predict API. @@ -8610,6 +8922,13 @@ func (r *ProjectsLocationsCatalogsService) CompleteQuery(catalog string) *Projec return c } +// Banner sets the optional parameter "banner": The banner context for +// completion suggestions. +func (c *ProjectsLocationsCatalogsCompleteQueryCall) Banner(banner string) *ProjectsLocationsCatalogsCompleteQueryCall { + c.urlParams_.Set("banner", banner) + return c +} + // Dataset sets the optional parameter "dataset": Determines which // dataset to use for fetching completion. "user-data" will use the // imported dataset through CompletionService.ImportCompletionData. @@ -8789,6 +9108,11 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Do(opts ...googleapi.CallOp // "catalog" // ], // "parameters": { + // "banner": { + // "description": "The banner context for completion suggestions.", + // "location": "query", + // "type": "string" + // }, // "catalog": { // "description": "Required. Catalog for which the completion is performed. Full resource name of catalog, such as `projects/*/locations/global/catalogs/default_catalog`.", // "location": "path", diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index ee3fda36250..b4fcd4fbe82 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -120,6 +120,11 @@ "catalog" ], "parameters": { + "banner": { + "description": "The banner context for completion suggestions.", + "location": "query", + "type": "string" + }, "catalog": { "description": "Required. Catalog for which the completion is performed. Full resource name of catalog, such as `projects/*/locations/global/catalogs/default_catalog`.", "location": "path", @@ -1171,6 +1176,93 @@ } } }, + "merchantCenterAccountLinks": { + "methods": { + "createMerchantCenterAccountLink": { + "description": "Creates a MerchantCenterAccountLink. MerchantCenterAccountLink cannot be set to a different oneof field, if so an INVALID_ARGUMENT is returned.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/merchantCenterAccountLinks/{merchantCenterAccountLinksId}", + "httpMethod": "POST", + "id": "retail.projects.locations.catalogs.merchantCenterAccountLinks.createMerchantCenterAccountLink", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Immutable. Full resource name of the Merchant Center Account Link, such as `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/merchantCenterAccountLinks/[^/]+$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. The branch resource where this MerchantCenterAccountLink will be created. Format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}", + "location": "query", + "type": "string" + } + }, + "path": "v2alpha/{+name}", + "request": { + "$ref": "GoogleCloudRetailV2alphaMerchantCenterAccountLink" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a MerchantCenterAccountLink. If the MerchantCenterAccountLink to delete does not exist, a NOT_FOUND error is returned.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/merchantCenterAccountLinks/{merchantCenterAccountLinksId}", + "httpMethod": "DELETE", + "id": "retail.projects.locations.catalogs.merchantCenterAccountLinks.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Full resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/merchantCenterAccountLinks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all MerchantCenterAccountLinks under the specified parent Catalog.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/merchantCenterAccountLinks", + "httpMethod": "GET", + "id": "retail.projects.locations.catalogs.merchantCenterAccountLinks.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent Catalog of the resource. It must match this format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+parent}/merchantCenterAccountLinks", + "response": { + "$ref": "GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "models": { "methods": { "create": { @@ -2130,7 +2222,7 @@ } } }, - "revision": "20230309", + "revision": "20230330", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3346,6 +3438,23 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata": { + "description": "Common metadata related to the progress of the operations.", + "id": "GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaCreateModelMetadata": { "description": "Metadata associated with a create operation.", "id": "GoogleCloudRetailV2alphaCreateModelMetadata", @@ -3820,6 +3929,20 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse": { + "description": "Response for MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks method.", + "id": "GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse", + "properties": { + "merchantCenterAccountLinks": { + "description": "The links.", + "items": { + "$ref": "GoogleCloudRetailV2alphaMerchantCenterAccountLink" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaListModelsResponse": { "description": "Response to a ListModelRequest.", "id": "GoogleCloudRetailV2alphaListModelsResponse", @@ -3908,6 +4031,85 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaMerchantCenterAccountLink": { + "description": "Represents a link between a Merchant Center account and a branch. Once a link is established, products from the linked merchant center account will be streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)", + "id": "GoogleCloudRetailV2alphaMerchantCenterAccountLink", + "properties": { + "branchId": { + "description": "Required. The branch id (e.g. 0/1/2) within the catalog that products from merchant_center_account_id are streamed to. When updating this field, an empty value will use the currently configured default branch. However, changing the default branch later on won't change the linked branch here. A single branch id can only have one linked merchant center account id.", + "type": "string" + }, + "feedFilters": { + "description": "Criteria for the Merchant Center feeds to be ingested via the link. All offers will be ingested if the list is empty. Otherwise the offers will be ingested from selected feeds.", + "items": { + "$ref": "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter" + }, + "type": "array" + }, + "feedLabel": { + "description": "The FeedLabel used to perform filtering. Note: this replaces [region_id](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). Example value: `US`. Example value: `FeedLabel1`.", + "type": "string" + }, + "id": { + "description": "Output only. Immutable. MerchantCenterAccountLink identifier, which is the final component of name. This field is auto generated and follows the convention: `BranchId_MerchantCenterAccountId`. `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1`.", + "readOnly": true, + "type": "string" + }, + "languageCode": { + "description": "Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This specifies the language of offers in Merchant Center that will be accepted. If empty, no language filtering will be performed. Example value: `en`.", + "type": "string" + }, + "merchantCenterAccountId": { + "description": "Required. The linked [Merchant center account id](https://developers.google.com/shopping-content/guides/accountstatuses). The account must be a standalone account or a sub-account of a MCA.", + "format": "int64", + "type": "string" + }, + "name": { + "description": "Output only. Immutable. Full resource name of the Merchant Center Account Link, such as `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.", + "readOnly": true, + "type": "string" + }, + "projectId": { + "description": "Output only. GCP project ID.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Represents the state of the link.", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "ACTIVE", + "FAILED" + ], + "enumDescriptions": [ + "Default value.", + "Link is created and LRO is not complete.", + "Link is active.", + "Link creation failed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter": { + "description": "Merchant Center Feed filter criterion.", + "id": "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter", + "properties": { + "primaryFeedId": { + "description": "Merchant Center primary feed ID.", + "format": "int64", + "type": "string" + }, + "primaryFeedName": { + "description": "Merchant Center primary feed name. The name is used for the display purposes only.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaMerchantCenterFeedFilter": { "description": "Merchant Center Feed filter criterion.", "id": "GoogleCloudRetailV2alphaMerchantCenterFeedFilter", @@ -4225,7 +4427,7 @@ "id": "GoogleCloudRetailV2alphaPredictRequest", "properties": { "filter": { - "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (brands: ANY(\"Pixel\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\")) For more information, see [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs).", + "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (availability: ANY(\"IN_STOCK\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\")) For more information, see [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs).", "type": "string" }, "labels": { @@ -5156,6 +5358,10 @@ "description": "Request message for SearchService.Search method.", "id": "GoogleCloudRetailV2alphaSearchRequest", "properties": { + "banner": { + "description": "Represents the banner in request, for projects that combine banners. For example: a retailer can sell products under different banners like retailer-main, retailer-baby, retailer-meds, etc. under one project.", + "type": "string" + }, "boostSpec": { "$ref": "GoogleCloudRetailV2alphaSearchRequestBoostSpec", "description": "Boost specification to boost certain products. See more details at this [user guide](https://cloud.google.com/retail/docs/boosting). Notice that if both ServingConfig.boost_control_ids and SearchRequest.boost_spec are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions." @@ -5906,6 +6112,10 @@ "description": "Highly recommended for user events that are the result of PredictionService.Predict. This field enables accurate attribution of recommendation model performance. The value must be a valid PredictResponse.attribution_token for user events that are the result of PredictionService.Predict. The value must be a valid SearchResponse.attribution_token for user events that are the result of SearchService.Search. This token enables us to accurately attribute page view or purchase back to the event and the particular predict response containing this clicked/purchased product. If user clicks on product K in the recommendation results, pass PredictResponse.attribution_token as a URL parameter to product K's page. When recording events on product K's page, log the PredictResponse.attribution_token to this field.", "type": "string" }, + "banner": { + "description": "Represents the banner of the user event, for projects that combine banners. For example: retailer can have events from multiple banners like retailer-main, retailer-baby, retailer-meds, etc. under one project.", + "type": "string" + }, "cartId": { "description": "The ID or name of the associated shopping cart. This ID is used to associate multiple items added or present in the cart before purchase. This can only be set for `add-to-cart`, `purchase-complete`, or `shopping-cart-page-view` events.", "type": "string" @@ -5914,10 +6124,6 @@ "$ref": "GoogleCloudRetailV2alphaCompletionDetail", "description": "The main auto-completion details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for search." }, - "domain": { - "description": "Represents the domain of the user event, for projects that combine domains. For example: retailer can have events from multiple domains like retailer-main, retailer-baby, retailer-meds, etc. under one project.", - "type": "string" - }, "eventTime": { "description": "Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened.", "format": "google-datetime", @@ -6108,6 +6314,23 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata": { + "description": "Common metadata related to the progress of the operations.", + "id": "GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaCreateModelMetadata": { "description": "Metadata associated with a create operation.", "id": "GoogleCloudRetailV2betaCreateModelMetadata", @@ -6302,6 +6525,85 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaMerchantCenterAccountLink": { + "description": "Represents a link between a Merchant Center account and a branch. Once a link is established, products from the linked merchant center account will be streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)", + "id": "GoogleCloudRetailV2betaMerchantCenterAccountLink", + "properties": { + "branchId": { + "description": "Required. The branch id (e.g. 0/1/2) within the catalog that products from merchant_center_account_id are streamed to. When updating this field, an empty value will use the currently configured default branch. However, changing the default branch later on won't change the linked branch here. A single branch id can only have one linked merchant center account id.", + "type": "string" + }, + "feedFilters": { + "description": "Criteria for the Merchant Center feeds to be ingested via the link. All offers will be ingested if the list is empty. Otherwise the offers will be ingested from selected feeds.", + "items": { + "$ref": "GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter" + }, + "type": "array" + }, + "feedLabel": { + "description": "The FeedLabel used to perform filtering. Note: this replaces [region_id](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). Example value: `US`. Example value: `FeedLabel1`.", + "type": "string" + }, + "id": { + "description": "Output only. Immutable. MerchantCenterAccountLink identifier, which is the final component of name. This field is auto generated and follows the convention: `BranchId_MerchantCenterAccountId`. `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1`.", + "readOnly": true, + "type": "string" + }, + "languageCode": { + "description": "Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This specifies the language of offers in Merchant Center that will be accepted. If empty, no language filtering will be performed. Example value: `en`.", + "type": "string" + }, + "merchantCenterAccountId": { + "description": "Required. The linked [Merchant center account id](https://developers.google.com/shopping-content/guides/accountstatuses). The account must be a standalone account or a sub-account of a MCA.", + "format": "int64", + "type": "string" + }, + "name": { + "description": "Output only. Immutable. Full resource name of the Merchant Center Account Link, such as `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.", + "readOnly": true, + "type": "string" + }, + "projectId": { + "description": "Output only. GCP project ID.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Represents the state of the link.", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "ACTIVE", + "FAILED" + ], + "enumDescriptions": [ + "Default value.", + "Link is created and LRO is not complete.", + "Link is active.", + "Link creation failed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter": { + "description": "Merchant Center Feed filter criterion.", + "id": "GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter", + "properties": { + "primaryFeedId": { + "description": "Merchant Center primary feed ID.", + "format": "int64", + "type": "string" + }, + "primaryFeedName": { + "description": "Merchant Center primary feed name. The name is used for the display purposes only.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaModel": { "description": "Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict API.", "id": "GoogleCloudRetailV2betaModel", diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index bb9c92e3567..c04f728568b 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -174,6 +174,7 @@ func NewProjectsLocationsCatalogsService(s *Service) *ProjectsLocationsCatalogsS rs.Branches = NewProjectsLocationsCatalogsBranchesService(s) rs.CompletionData = NewProjectsLocationsCatalogsCompletionDataService(s) rs.Controls = NewProjectsLocationsCatalogsControlsService(s) + rs.MerchantCenterAccountLinks = NewProjectsLocationsCatalogsMerchantCenterAccountLinksService(s) rs.Models = NewProjectsLocationsCatalogsModelsService(s) rs.Operations = NewProjectsLocationsCatalogsOperationsService(s) rs.Placements = NewProjectsLocationsCatalogsPlacementsService(s) @@ -193,6 +194,8 @@ type ProjectsLocationsCatalogsService struct { Controls *ProjectsLocationsCatalogsControlsService + MerchantCenterAccountLinks *ProjectsLocationsCatalogsMerchantCenterAccountLinksService + Models *ProjectsLocationsCatalogsModelsService Operations *ProjectsLocationsCatalogsOperationsService @@ -288,6 +291,15 @@ type ProjectsLocationsCatalogsControlsService struct { s *Service } +func NewProjectsLocationsCatalogsMerchantCenterAccountLinksService(s *Service) *ProjectsLocationsCatalogsMerchantCenterAccountLinksService { + rs := &ProjectsLocationsCatalogsMerchantCenterAccountLinksService{s: s} + return rs +} + +type ProjectsLocationsCatalogsMerchantCenterAccountLinksService struct { + s *Service +} + func NewProjectsLocationsCatalogsModelsService(s *Service) *ProjectsLocationsCatalogsModelsService { rs := &ProjectsLocationsCatalogsModelsService{s: s} return rs @@ -2520,6 +2532,39 @@ func (s *GoogleCloudRetailV2alphaControl) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata: +// Common metadata related to the progress of the operations. +type GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaCreateModelMetadata: Metadata associated with // a create operation. type GoogleCloudRetailV2alphaCreateModelMetadata struct { @@ -3512,6 +3557,43 @@ func (s *GoogleCloudRetailV2alphaListControlsResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse: +// Response for +// MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks +// method. +type GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse struct { + // MerchantCenterAccountLinks: The links. + MerchantCenterAccountLinks []*GoogleCloudRetailV2alphaMerchantCenterAccountLink `json:"merchantCenterAccountLinks,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "MerchantCenterAccountLinks") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "MerchantCenterAccountLinks") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaListModelsResponse: Response to a // ListModelRequest. type GoogleCloudRetailV2alphaListModelsResponse struct { @@ -3690,6 +3772,126 @@ func (s *GoogleCloudRetailV2alphaLocalInventory) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaMerchantCenterAccountLink: Represents a link +// between a Merchant Center account and a branch. Once a link is +// established, products from the linked merchant center account will be +// streamed to the linked branch. +// LINT.IfChange(MerchantCenterAccountLink) +type GoogleCloudRetailV2alphaMerchantCenterAccountLink struct { + // BranchId: Required. The branch id (e.g. 0/1/2) within the catalog + // that products from merchant_center_account_id are streamed to. When + // updating this field, an empty value will use the currently configured + // default branch. However, changing the default branch later on won't + // change the linked branch here. A single branch id can only have one + // linked merchant center account id. + BranchId string `json:"branchId,omitempty"` + + // FeedFilters: Criteria for the Merchant Center feeds to be ingested + // via the link. All offers will be ingested if the list is empty. + // Otherwise the offers will be ingested from selected feeds. + FeedFilters []*GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter `json:"feedFilters,omitempty"` + + // FeedLabel: The FeedLabel used to perform filtering. Note: this + // replaces region_id + // (https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). + // Example value: `US`. Example value: `FeedLabel1`. + FeedLabel string `json:"feedLabel,omitempty"` + + // Id: Output only. Immutable. MerchantCenterAccountLink identifier, + // which is the final component of name. This field is auto generated + // and follows the convention: `BranchId_MerchantCenterAccountId`. + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/id_1`. + Id string `json:"id,omitempty"` + + // LanguageCode: Language of the title/description and other string + // attributes. Use language tags defined by BCP 47 + // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This + // specifies the language of offers in Merchant Center that will be + // accepted. If empty, no language filtering will be performed. Example + // value: `en`. + LanguageCode string `json:"languageCode,omitempty"` + + // MerchantCenterAccountId: Required. The linked Merchant center account + // id + // (https://developers.google.com/shopping-content/guides/accountstatuses). + // The account must be a standalone account or a sub-account of a MCA. + MerchantCenterAccountId int64 `json:"merchantCenterAccountId,omitempty,string"` + + // Name: Output only. Immutable. Full resource name of the Merchant + // Center Account Link, such as + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/merchant_center_account_link`. + Name string `json:"name,omitempty"` + + // ProjectId: Output only. GCP project ID. + ProjectId string `json:"projectId,omitempty"` + + // State: Output only. Represents the state of the link. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. + // "PENDING" - Link is created and LRO is not complete. + // "ACTIVE" - Link is active. + // "FAILED" - Link creation failed. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BranchId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BranchId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaMerchantCenterAccountLink) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaMerchantCenterAccountLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFil +// ter: Merchant Center Feed filter criterion. +type GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter struct { + // PrimaryFeedId: Merchant Center primary feed ID. + PrimaryFeedId int64 `json:"primaryFeedId,omitempty,string"` + + // PrimaryFeedName: Merchant Center primary feed name. The name is used + // for the display purposes only. + PrimaryFeedName string `json:"primaryFeedName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PrimaryFeedId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PrimaryFeedId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaMerchantCenterFeedFilter: Merchant Center // Feed filter criterion. type GoogleCloudRetailV2alphaMerchantCenterFeedFilter struct { @@ -4269,9 +4471,9 @@ type GoogleCloudRetailV2alphaPredictRequest struct { // true under the `params` field, then attribute-based expressions are // expected instead of the above described tag-based syntax. Examples: * // (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones")) * - // (brands: ANY("Pixel")) AND (colors: ANY("Red") OR categories: - // ANY("Phones")) For more information, see Filter recommendations - // (https://cloud.google.com/retail/docs/filter-recs). + // (availability: ANY("IN_STOCK")) AND (colors: ANY("Red") OR + // categories: ANY("Phones")) For more information, see Filter + // recommendations (https://cloud.google.com/retail/docs/filter-recs). Filter string `json:"filter,omitempty"` // Labels: The labels applied to a resource must meet the following @@ -6156,6 +6358,12 @@ func (s *GoogleCloudRetailV2alphaRuleTwowaySynonymsAction) MarshalJSON() ([]byte // GoogleCloudRetailV2alphaSearchRequest: Request message for // SearchService.Search method. type GoogleCloudRetailV2alphaSearchRequest struct { + // Banner: Represents the banner in request, for projects that combine + // banners. For example: a retailer can sell products under different + // banners like retailer-main, retailer-baby, retailer-meds, etc. under + // one project. + Banner string `json:"banner,omitempty"` + // BoostSpec: Boost specification to boost certain products. See more // details at this user guide // (https://cloud.google.com/retail/docs/boosting). Notice that if both @@ -6361,7 +6569,7 @@ type GoogleCloudRetailV2alphaSearchRequest struct { // is returned. VisitorId string `json:"visitorId,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoostSpec") to + // ForceSendFields is a list of field names (e.g. "Banner") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -6369,8 +6577,8 @@ type GoogleCloudRetailV2alphaSearchRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BoostSpec") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Banner") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -7552,6 +7760,12 @@ type GoogleCloudRetailV2alphaUserEvent struct { // PredictResponse.attribution_token to this field. AttributionToken string `json:"attributionToken,omitempty"` + // Banner: Represents the banner of the user event, for projects that + // combine banners. For example: retailer can have events from multiple + // banners like retailer-main, retailer-baby, retailer-meds, etc. under + // one project. + Banner string `json:"banner,omitempty"` + // CartId: The ID or name of the associated shopping cart. This ID is // used to associate multiple items added or present in the cart before // purchase. This can only be set for `add-to-cart`, @@ -7563,12 +7777,6 @@ type GoogleCloudRetailV2alphaUserEvent struct { // function is enabled and the user clicks a suggestion for search. CompletionDetail *GoogleCloudRetailV2alphaCompletionDetail `json:"completionDetail,omitempty"` - // Domain: Represents the domain of the user event, for projects that - // combine domains. For example: retailer can have events from multiple - // domains like retailer-main, retailer-baby, retailer-meds, etc. under - // one project. - Domain string `json:"domain,omitempty"` - // EventTime: Only required for UserEventService.ImportUserEvents // method. Timestamp of when the user event happened. EventTime string `json:"eventTime,omitempty"` @@ -7947,6 +8155,39 @@ func (s *GoogleCloudRetailV2betaBigQueryOutputResult) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata: +// Common metadata related to the progress of the operations. +type GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaCreateModelMetadata: Metadata associated with // a create operation. type GoogleCloudRetailV2betaCreateModelMetadata struct { @@ -8346,6 +8587,126 @@ func (s *GoogleCloudRetailV2betaImportUserEventsResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaMerchantCenterAccountLink: Represents a link +// between a Merchant Center account and a branch. Once a link is +// established, products from the linked merchant center account will be +// streamed to the linked branch. +// LINT.IfChange(MerchantCenterAccountLink) +type GoogleCloudRetailV2betaMerchantCenterAccountLink struct { + // BranchId: Required. The branch id (e.g. 0/1/2) within the catalog + // that products from merchant_center_account_id are streamed to. When + // updating this field, an empty value will use the currently configured + // default branch. However, changing the default branch later on won't + // change the linked branch here. A single branch id can only have one + // linked merchant center account id. + BranchId string `json:"branchId,omitempty"` + + // FeedFilters: Criteria for the Merchant Center feeds to be ingested + // via the link. All offers will be ingested if the list is empty. + // Otherwise the offers will be ingested from selected feeds. + FeedFilters []*GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter `json:"feedFilters,omitempty"` + + // FeedLabel: The FeedLabel used to perform filtering. Note: this + // replaces region_id + // (https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). + // Example value: `US`. Example value: `FeedLabel1`. + FeedLabel string `json:"feedLabel,omitempty"` + + // Id: Output only. Immutable. MerchantCenterAccountLink identifier, + // which is the final component of name. This field is auto generated + // and follows the convention: `BranchId_MerchantCenterAccountId`. + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/id_1`. + Id string `json:"id,omitempty"` + + // LanguageCode: Language of the title/description and other string + // attributes. Use language tags defined by BCP 47 + // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This + // specifies the language of offers in Merchant Center that will be + // accepted. If empty, no language filtering will be performed. Example + // value: `en`. + LanguageCode string `json:"languageCode,omitempty"` + + // MerchantCenterAccountId: Required. The linked Merchant center account + // id + // (https://developers.google.com/shopping-content/guides/accountstatuses). + // The account must be a standalone account or a sub-account of a MCA. + MerchantCenterAccountId int64 `json:"merchantCenterAccountId,omitempty,string"` + + // Name: Output only. Immutable. Full resource name of the Merchant + // Center Account Link, such as + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/merchant_center_account_link`. + Name string `json:"name,omitempty"` + + // ProjectId: Output only. GCP project ID. + ProjectId string `json:"projectId,omitempty"` + + // State: Output only. Represents the state of the link. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. + // "PENDING" - Link is created and LRO is not complete. + // "ACTIVE" - Link is active. + // "FAILED" - Link creation failed. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BranchId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BranchId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaMerchantCenterAccountLink) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaMerchantCenterAccountLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilt +// er: Merchant Center Feed filter criterion. +type GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter struct { + // PrimaryFeedId: Merchant Center primary feed ID. + PrimaryFeedId int64 `json:"primaryFeedId,omitempty,string"` + + // PrimaryFeedName: Merchant Center primary feed name. The name is used + // for the display purposes only. + PrimaryFeedName string `json:"primaryFeedName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PrimaryFeedId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PrimaryFeedId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaModel: Metadata that describes the training // and serving parameters of a Model. A Model can be associated with a // ServingConfig and then queried through the Predict API. @@ -8991,6 +9352,13 @@ func (r *ProjectsLocationsCatalogsService) CompleteQuery(catalog string) *Projec return c } +// Banner sets the optional parameter "banner": The banner context for +// completion suggestions. +func (c *ProjectsLocationsCatalogsCompleteQueryCall) Banner(banner string) *ProjectsLocationsCatalogsCompleteQueryCall { + c.urlParams_.Set("banner", banner) + return c +} + // Dataset sets the optional parameter "dataset": Determines which // dataset to use for fetching completion. "user-data" will use the // imported dataset through CompletionService.ImportCompletionData. @@ -9179,6 +9547,11 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Do(opts ...googleapi.CallOp // "catalog" // ], // "parameters": { + // "banner": { + // "description": "The banner context for completion suggestions.", + // "location": "query", + // "type": "string" + // }, // "catalog": { // "description": "Required. Catalog for which the completion is performed. Full resource name of catalog, such as `projects/*/locations/global/catalogs/default_catalog`.", // "location": "path", @@ -14405,6 +14778,455 @@ func (c *ProjectsLocationsCatalogsControlsPatchCall) Do(opts ...googleapi.CallOp } +// method id "retail.projects.locations.catalogs.merchantCenterAccountLinks.createMerchantCenterAccountLink": + +type ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall struct { + s *Service + name string + googlecloudretailv2alphamerchantcenteraccountlink *GoogleCloudRetailV2alphaMerchantCenterAccountLink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CreateMerchantCenterAccountLink: Creates a MerchantCenterAccountLink. +// MerchantCenterAccountLink cannot be set to a different oneof field, +// if so an INVALID_ARGUMENT is returned. +// +// - name: Output only. Immutable. Full resource name of the Merchant +// Center Account Link, such as +// `projects/*/locations/global/catalogs/default_catalog/merchantCenter +// AccountLinks/merchant_center_account_link`. +func (r *ProjectsLocationsCatalogsMerchantCenterAccountLinksService) CreateMerchantCenterAccountLink(name string, googlecloudretailv2alphamerchantcenteraccountlink *GoogleCloudRetailV2alphaMerchantCenterAccountLink) *ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall { + c := &ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudretailv2alphamerchantcenteraccountlink = googlecloudretailv2alphamerchantcenteraccountlink + return c +} + +// Parent sets the optional parameter "parent": Required. The branch +// resource where this MerchantCenterAccountLink will be created. +// Format: +// projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}} +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall) Parent(parent string) *ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall { + c.urlParams_.Set("parent", parent) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall) Context(ctx context.Context) *ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudretailv2alphamerchantcenteraccountlink) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.merchantCenterAccountLinks.createMerchantCenterAccountLink" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksCreateMerchantCenterAccountLinkCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a MerchantCenterAccountLink. MerchantCenterAccountLink cannot be set to a different oneof field, if so an INVALID_ARGUMENT is returned.", + // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/merchantCenterAccountLinks/{merchantCenterAccountLinksId}", + // "httpMethod": "POST", + // "id": "retail.projects.locations.catalogs.merchantCenterAccountLinks.createMerchantCenterAccountLink", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Immutable. Full resource name of the Merchant Center Account Link, such as `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/merchantCenterAccountLinks/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "parent": { + // "description": "Required. The branch resource where this MerchantCenterAccountLink will be created. Format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v2alpha/{+name}", + // "request": { + // "$ref": "GoogleCloudRetailV2alphaMerchantCenterAccountLink" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "retail.projects.locations.catalogs.merchantCenterAccountLinks.delete": + +type ProjectsLocationsCatalogsMerchantCenterAccountLinksDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a MerchantCenterAccountLink. If the +// MerchantCenterAccountLink to delete does not exist, a NOT_FOUND error +// is returned. +// +// - name: Full resource name. Format: +// projects/{project_number}/locations/{location_id}/catalogs/{catalog_ +// id}/merchantCenterAccountLinks/{merchant_center_account_link_id}. +func (r *ProjectsLocationsCatalogsMerchantCenterAccountLinksService) Delete(name string) *ProjectsLocationsCatalogsMerchantCenterAccountLinksDeleteCall { + c := &ProjectsLocationsCatalogsMerchantCenterAccountLinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsMerchantCenterAccountLinksDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksDeleteCall) Context(ctx context.Context) *ProjectsLocationsCatalogsMerchantCenterAccountLinksDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.merchantCenterAccountLinks.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a MerchantCenterAccountLink. If the MerchantCenterAccountLink to delete does not exist, a NOT_FOUND error is returned.", + // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/merchantCenterAccountLinks/{merchantCenterAccountLinksId}", + // "httpMethod": "DELETE", + // "id": "retail.projects.locations.catalogs.merchantCenterAccountLinks.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Full resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/merchantCenterAccountLinks/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2alpha/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "retail.projects.locations.catalogs.merchantCenterAccountLinks.list": + +type ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all MerchantCenterAccountLinks under the specified parent +// Catalog. +// +// - parent: The parent Catalog of the resource. It must match this +// format: +// projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}. +func (r *ProjectsLocationsCatalogsMerchantCenterAccountLinksService) List(parent string) *ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall { + c := &ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall) Context(ctx context.Context) *ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha/{+parent}/merchantCenterAccountLinks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.merchantCenterAccountLinks.list" call. +// Exactly one of +// *GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse.Server +// Response.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsCatalogsMerchantCenterAccountLinksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all MerchantCenterAccountLinks under the specified parent Catalog.", + // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/merchantCenterAccountLinks", + // "httpMethod": "GET", + // "id": "retail.projects.locations.catalogs.merchantCenterAccountLinks.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent Catalog of the resource. It must match this format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2alpha/{+parent}/merchantCenterAccountLinks", + // "response": { + // "$ref": "GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "retail.projects.locations.catalogs.models.create": type ProjectsLocationsCatalogsModelsCreateCall struct { diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 2090c62753e..8879c27f2b0 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -120,6 +120,11 @@ "catalog" ], "parameters": { + "banner": { + "description": "The banner context for completion suggestions.", + "location": "query", + "type": "string" + }, "catalog": { "description": "Required. Catalog for which the completion is performed. Full resource name of catalog, such as `projects/*/locations/global/catalogs/default_catalog`.", "location": "path", @@ -2054,7 +2059,7 @@ } } }, - "revision": "20230309", + "revision": "20230330", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2631,6 +2636,23 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata": { + "description": "Common metadata related to the progress of the operations.", + "id": "GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaCreateModelMetadata": { "description": "Metadata associated with a create operation.", "id": "GoogleCloudRetailV2alphaCreateModelMetadata", @@ -2829,6 +2851,85 @@ }, "type": "object" }, + "GoogleCloudRetailV2alphaMerchantCenterAccountLink": { + "description": "Represents a link between a Merchant Center account and a branch. Once a link is established, products from the linked merchant center account will be streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)", + "id": "GoogleCloudRetailV2alphaMerchantCenterAccountLink", + "properties": { + "branchId": { + "description": "Required. The branch id (e.g. 0/1/2) within the catalog that products from merchant_center_account_id are streamed to. When updating this field, an empty value will use the currently configured default branch. However, changing the default branch later on won't change the linked branch here. A single branch id can only have one linked merchant center account id.", + "type": "string" + }, + "feedFilters": { + "description": "Criteria for the Merchant Center feeds to be ingested via the link. All offers will be ingested if the list is empty. Otherwise the offers will be ingested from selected feeds.", + "items": { + "$ref": "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter" + }, + "type": "array" + }, + "feedLabel": { + "description": "The FeedLabel used to perform filtering. Note: this replaces [region_id](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). Example value: `US`. Example value: `FeedLabel1`.", + "type": "string" + }, + "id": { + "description": "Output only. Immutable. MerchantCenterAccountLink identifier, which is the final component of name. This field is auto generated and follows the convention: `BranchId_MerchantCenterAccountId`. `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1`.", + "readOnly": true, + "type": "string" + }, + "languageCode": { + "description": "Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This specifies the language of offers in Merchant Center that will be accepted. If empty, no language filtering will be performed. Example value: `en`.", + "type": "string" + }, + "merchantCenterAccountId": { + "description": "Required. The linked [Merchant center account id](https://developers.google.com/shopping-content/guides/accountstatuses). The account must be a standalone account or a sub-account of a MCA.", + "format": "int64", + "type": "string" + }, + "name": { + "description": "Output only. Immutable. Full resource name of the Merchant Center Account Link, such as `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.", + "readOnly": true, + "type": "string" + }, + "projectId": { + "description": "Output only. GCP project ID.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Represents the state of the link.", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "ACTIVE", + "FAILED" + ], + "enumDescriptions": [ + "Default value.", + "Link is created and LRO is not complete.", + "Link is active.", + "Link creation failed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter": { + "description": "Merchant Center Feed filter criterion.", + "id": "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter", + "properties": { + "primaryFeedId": { + "description": "Merchant Center primary feed ID.", + "format": "int64", + "type": "string" + }, + "primaryFeedName": { + "description": "Merchant Center primary feed name. The name is used for the display purposes only.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2alphaModel": { "description": "Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict API.", "id": "GoogleCloudRetailV2alphaModel", @@ -3893,6 +3994,23 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata": { + "description": "Common metadata related to the progress of the operations.", + "id": "GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaCreateModelMetadata": { "description": "Metadata associated with a create operation.", "id": "GoogleCloudRetailV2betaCreateModelMetadata", @@ -4442,6 +4560,85 @@ }, "type": "object" }, + "GoogleCloudRetailV2betaMerchantCenterAccountLink": { + "description": "Represents a link between a Merchant Center account and a branch. Once a link is established, products from the linked merchant center account will be streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)", + "id": "GoogleCloudRetailV2betaMerchantCenterAccountLink", + "properties": { + "branchId": { + "description": "Required. The branch id (e.g. 0/1/2) within the catalog that products from merchant_center_account_id are streamed to. When updating this field, an empty value will use the currently configured default branch. However, changing the default branch later on won't change the linked branch here. A single branch id can only have one linked merchant center account id.", + "type": "string" + }, + "feedFilters": { + "description": "Criteria for the Merchant Center feeds to be ingested via the link. All offers will be ingested if the list is empty. Otherwise the offers will be ingested from selected feeds.", + "items": { + "$ref": "GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter" + }, + "type": "array" + }, + "feedLabel": { + "description": "The FeedLabel used to perform filtering. Note: this replaces [region_id](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). Example value: `US`. Example value: `FeedLabel1`.", + "type": "string" + }, + "id": { + "description": "Output only. Immutable. MerchantCenterAccountLink identifier, which is the final component of name. This field is auto generated and follows the convention: `BranchId_MerchantCenterAccountId`. `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1`.", + "readOnly": true, + "type": "string" + }, + "languageCode": { + "description": "Language of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This specifies the language of offers in Merchant Center that will be accepted. If empty, no language filtering will be performed. Example value: `en`.", + "type": "string" + }, + "merchantCenterAccountId": { + "description": "Required. The linked [Merchant center account id](https://developers.google.com/shopping-content/guides/accountstatuses). The account must be a standalone account or a sub-account of a MCA.", + "format": "int64", + "type": "string" + }, + "name": { + "description": "Output only. Immutable. Full resource name of the Merchant Center Account Link, such as `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.", + "readOnly": true, + "type": "string" + }, + "projectId": { + "description": "Output only. GCP project ID.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Represents the state of the link.", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "ACTIVE", + "FAILED" + ], + "enumDescriptions": [ + "Default value.", + "Link is created and LRO is not complete.", + "Link is active.", + "Link creation failed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter": { + "description": "Merchant Center Feed filter criterion.", + "id": "GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter", + "properties": { + "primaryFeedId": { + "description": "Merchant Center primary feed ID.", + "format": "int64", + "type": "string" + }, + "primaryFeedName": { + "description": "Merchant Center primary feed name. The name is used for the display purposes only.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2betaMerchantCenterFeedFilter": { "description": "Merchant Center Feed filter criterion.", "id": "GoogleCloudRetailV2betaMerchantCenterFeedFilter", @@ -4686,7 +4883,7 @@ "id": "GoogleCloudRetailV2betaPredictRequest", "properties": { "filter": { - "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (brands: ANY(\"Pixel\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\")) For more information, see [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs).", + "description": "Filter for restricting prediction results with a length limit of 5,000 characters. Accepts values for tags and the `filterOutOfStockItems` flag. * Tag expressions. Restricts predictions to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses, and must be separated from the tag values by a space. `-\"tagA\"` is also supported and is equivalent to `NOT \"tagA\"`. Tag values must be double quoted UTF-8 encoded strings with a size limit of 1,000 characters. Note: \"Recently viewed\" models don't support tag filtering at the moment. * filterOutOfStockItems. Restricts predictions to products that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") * filterOutOfStockItems tag=(-\"promotional\") * filterOutOfStockItems If your filter blocks all prediction results, the API will return *no* results. If instead you want empty result sets to return generic (unfiltered) popular products, set `strictFiltering` to False in `PredictRequest.params`. Note that the API will never return items with storageStatus of \"EXPIRED\" or \"DELETED\" regardless of filter choices. If `filterSyntaxV2` is set to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (colors: ANY(\"Red\", \"Blue\")) AND NOT (categories: ANY(\"Phones\")) * (availability: ANY(\"IN_STOCK\")) AND (colors: ANY(\"Red\") OR categories: ANY(\"Phones\")) For more information, see [Filter recommendations](https://cloud.google.com/retail/docs/filter-recs).", "type": "string" }, "labels": { @@ -5556,6 +5753,10 @@ "description": "Request message for SearchService.Search method.", "id": "GoogleCloudRetailV2betaSearchRequest", "properties": { + "banner": { + "description": "Represents the banner in request, for projects that combine banners. For example: a retailer can sell products under different banners like retailer-main, retailer-baby, retailer-meds, etc. under one project.", + "type": "string" + }, "boostSpec": { "$ref": "GoogleCloudRetailV2betaSearchRequestBoostSpec", "description": "Boost specification to boost certain products. See more details at this [user guide](https://cloud.google.com/retail/docs/boosting). Notice that if both ServingConfig.boost_control_ids and SearchRequest.boost_spec are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions." @@ -6271,6 +6472,10 @@ "description": "Highly recommended for user events that are the result of PredictionService.Predict. This field enables accurate attribution of recommendation model performance. The value must be a valid PredictResponse.attribution_token for user events that are the result of PredictionService.Predict. The value must be a valid SearchResponse.attribution_token for user events that are the result of SearchService.Search. This token enables us to accurately attribute page view or purchase back to the event and the particular predict response containing this clicked/purchased product. If user clicks on product K in the recommendation results, pass PredictResponse.attribution_token as a URL parameter to product K's page. When recording events on product K's page, log the PredictResponse.attribution_token to this field.", "type": "string" }, + "banner": { + "description": "Represents the banner of the user event, for projects that combine banners. For example: retailer can have events from multiple banners like retailer-main, retailer-baby, retailer-meds, etc. under one project.", + "type": "string" + }, "cartId": { "description": "The ID or name of the associated shopping cart. This ID is used to associate multiple items added or present in the cart before purchase. This can only be set for `add-to-cart`, `purchase-complete`, or `shopping-cart-page-view` events.", "type": "string" @@ -6279,10 +6484,6 @@ "$ref": "GoogleCloudRetailV2betaCompletionDetail", "description": "The main auto-completion details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for search." }, - "domain": { - "description": "Represents the domain of the user event, for projects that combine domains. For example: retailer can have events from multiple domains like retailer-main, retailer-baby, retailer-meds, etc. under one project.", - "type": "string" - }, "eventTime": { "description": "Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened.", "format": "google-datetime", diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index f5ee6175ca3..7582016bb81 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -1317,6 +1317,39 @@ func (s *GoogleCloudRetailV2alphaBigQueryOutputResult) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata: +// Common metadata related to the progress of the operations. +type GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaCreateModelMetadata: Metadata associated with // a create operation. type GoogleCloudRetailV2alphaCreateModelMetadata struct { @@ -1720,6 +1753,126 @@ func (s *GoogleCloudRetailV2alphaImportUserEventsResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2alphaMerchantCenterAccountLink: Represents a link +// between a Merchant Center account and a branch. Once a link is +// established, products from the linked merchant center account will be +// streamed to the linked branch. +// LINT.IfChange(MerchantCenterAccountLink) +type GoogleCloudRetailV2alphaMerchantCenterAccountLink struct { + // BranchId: Required. The branch id (e.g. 0/1/2) within the catalog + // that products from merchant_center_account_id are streamed to. When + // updating this field, an empty value will use the currently configured + // default branch. However, changing the default branch later on won't + // change the linked branch here. A single branch id can only have one + // linked merchant center account id. + BranchId string `json:"branchId,omitempty"` + + // FeedFilters: Criteria for the Merchant Center feeds to be ingested + // via the link. All offers will be ingested if the list is empty. + // Otherwise the offers will be ingested from selected feeds. + FeedFilters []*GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter `json:"feedFilters,omitempty"` + + // FeedLabel: The FeedLabel used to perform filtering. Note: this + // replaces region_id + // (https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). + // Example value: `US`. Example value: `FeedLabel1`. + FeedLabel string `json:"feedLabel,omitempty"` + + // Id: Output only. Immutable. MerchantCenterAccountLink identifier, + // which is the final component of name. This field is auto generated + // and follows the convention: `BranchId_MerchantCenterAccountId`. + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/id_1`. + Id string `json:"id,omitempty"` + + // LanguageCode: Language of the title/description and other string + // attributes. Use language tags defined by BCP 47 + // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This + // specifies the language of offers in Merchant Center that will be + // accepted. If empty, no language filtering will be performed. Example + // value: `en`. + LanguageCode string `json:"languageCode,omitempty"` + + // MerchantCenterAccountId: Required. The linked Merchant center account + // id + // (https://developers.google.com/shopping-content/guides/accountstatuses). + // The account must be a standalone account or a sub-account of a MCA. + MerchantCenterAccountId int64 `json:"merchantCenterAccountId,omitempty,string"` + + // Name: Output only. Immutable. Full resource name of the Merchant + // Center Account Link, such as + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/merchant_center_account_link`. + Name string `json:"name,omitempty"` + + // ProjectId: Output only. GCP project ID. + ProjectId string `json:"projectId,omitempty"` + + // State: Output only. Represents the state of the link. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. + // "PENDING" - Link is created and LRO is not complete. + // "ACTIVE" - Link is active. + // "FAILED" - Link creation failed. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BranchId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BranchId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaMerchantCenterAccountLink) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaMerchantCenterAccountLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFil +// ter: Merchant Center Feed filter criterion. +type GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter struct { + // PrimaryFeedId: Merchant Center primary feed ID. + PrimaryFeedId int64 `json:"primaryFeedId,omitempty,string"` + + // PrimaryFeedName: Merchant Center primary feed name. The name is used + // for the display purposes only. + PrimaryFeedName string `json:"primaryFeedName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PrimaryFeedId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PrimaryFeedId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2alphaModel: Metadata that describes the training // and serving parameters of a Model. A Model can be associated with a // ServingConfig and then queried through the Predict API. @@ -3639,6 +3792,39 @@ func (s *GoogleCloudRetailV2betaControl) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata: +// Common metadata related to the progress of the operations. +type GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaCreateModelMetadata: Metadata associated with // a create operation. type GoogleCloudRetailV2betaCreateModelMetadata struct { @@ -4791,6 +4977,126 @@ func (s *GoogleCloudRetailV2betaLocalInventory) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2betaMerchantCenterAccountLink: Represents a link +// between a Merchant Center account and a branch. Once a link is +// established, products from the linked merchant center account will be +// streamed to the linked branch. +// LINT.IfChange(MerchantCenterAccountLink) +type GoogleCloudRetailV2betaMerchantCenterAccountLink struct { + // BranchId: Required. The branch id (e.g. 0/1/2) within the catalog + // that products from merchant_center_account_id are streamed to. When + // updating this field, an empty value will use the currently configured + // default branch. However, changing the default branch later on won't + // change the linked branch here. A single branch id can only have one + // linked merchant center account id. + BranchId string `json:"branchId,omitempty"` + + // FeedFilters: Criteria for the Merchant Center feeds to be ingested + // via the link. All offers will be ingested if the list is empty. + // Otherwise the offers will be ingested from selected feeds. + FeedFilters []*GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter `json:"feedFilters,omitempty"` + + // FeedLabel: The FeedLabel used to perform filtering. Note: this + // replaces region_id + // (https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label). + // Example value: `US`. Example value: `FeedLabel1`. + FeedLabel string `json:"feedLabel,omitempty"` + + // Id: Output only. Immutable. MerchantCenterAccountLink identifier, + // which is the final component of name. This field is auto generated + // and follows the convention: `BranchId_MerchantCenterAccountId`. + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/id_1`. + Id string `json:"id,omitempty"` + + // LanguageCode: Language of the title/description and other string + // attributes. Use language tags defined by BCP 47 + // (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO 639-1. This + // specifies the language of offers in Merchant Center that will be + // accepted. If empty, no language filtering will be performed. Example + // value: `en`. + LanguageCode string `json:"languageCode,omitempty"` + + // MerchantCenterAccountId: Required. The linked Merchant center account + // id + // (https://developers.google.com/shopping-content/guides/accountstatuses). + // The account must be a standalone account or a sub-account of a MCA. + MerchantCenterAccountId int64 `json:"merchantCenterAccountId,omitempty,string"` + + // Name: Output only. Immutable. Full resource name of the Merchant + // Center Account Link, such as + // `projects/*/locations/global/catalogs/default_catalog/merchantCenterAc + // countLinks/merchant_center_account_link`. + Name string `json:"name,omitempty"` + + // ProjectId: Output only. GCP project ID. + ProjectId string `json:"projectId,omitempty"` + + // State: Output only. Represents the state of the link. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. + // "PENDING" - Link is created and LRO is not complete. + // "ACTIVE" - Link is active. + // "FAILED" - Link creation failed. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BranchId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BranchId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaMerchantCenterAccountLink) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaMerchantCenterAccountLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilt +// er: Merchant Center Feed filter criterion. +type GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter struct { + // PrimaryFeedId: Merchant Center primary feed ID. + PrimaryFeedId int64 `json:"primaryFeedId,omitempty,string"` + + // PrimaryFeedName: Merchant Center primary feed name. The name is used + // for the display purposes only. + PrimaryFeedName string `json:"primaryFeedName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PrimaryFeedId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PrimaryFeedId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2betaMerchantCenterFeedFilter: Merchant Center Feed // filter criterion. type GoogleCloudRetailV2betaMerchantCenterFeedFilter struct { @@ -5188,9 +5494,9 @@ type GoogleCloudRetailV2betaPredictRequest struct { // true under the `params` field, then attribute-based expressions are // expected instead of the above described tag-based syntax. Examples: * // (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones")) * - // (brands: ANY("Pixel")) AND (colors: ANY("Red") OR categories: - // ANY("Phones")) For more information, see Filter recommendations - // (https://cloud.google.com/retail/docs/filter-recs). + // (availability: ANY("IN_STOCK")) AND (colors: ANY("Red") OR + // categories: ANY("Phones")) For more information, see Filter + // recommendations (https://cloud.google.com/retail/docs/filter-recs). Filter string `json:"filter,omitempty"` // Labels: The labels applied to a resource must meet the following @@ -6946,6 +7252,12 @@ func (s *GoogleCloudRetailV2betaRuleTwowaySynonymsAction) MarshalJSON() ([]byte, // GoogleCloudRetailV2betaSearchRequest: Request message for // SearchService.Search method. type GoogleCloudRetailV2betaSearchRequest struct { + // Banner: Represents the banner in request, for projects that combine + // banners. For example: a retailer can sell products under different + // banners like retailer-main, retailer-baby, retailer-meds, etc. under + // one project. + Banner string `json:"banner,omitempty"` + // BoostSpec: Boost specification to boost certain products. See more // details at this user guide // (https://cloud.google.com/retail/docs/boosting). Notice that if both @@ -7136,7 +7448,7 @@ type GoogleCloudRetailV2betaSearchRequest struct { // is returned. VisitorId string `json:"visitorId,omitempty"` - // ForceSendFields is a list of field names (e.g. "BoostSpec") to + // ForceSendFields is a list of field names (e.g. "Banner") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -7144,8 +7456,8 @@ type GoogleCloudRetailV2betaSearchRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BoostSpec") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Banner") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -8290,6 +8602,12 @@ type GoogleCloudRetailV2betaUserEvent struct { // PredictResponse.attribution_token to this field. AttributionToken string `json:"attributionToken,omitempty"` + // Banner: Represents the banner of the user event, for projects that + // combine banners. For example: retailer can have events from multiple + // banners like retailer-main, retailer-baby, retailer-meds, etc. under + // one project. + Banner string `json:"banner,omitempty"` + // CartId: The ID or name of the associated shopping cart. This ID is // used to associate multiple items added or present in the cart before // purchase. This can only be set for `add-to-cart`, @@ -8301,12 +8619,6 @@ type GoogleCloudRetailV2betaUserEvent struct { // function is enabled and the user clicks a suggestion for search. CompletionDetail *GoogleCloudRetailV2betaCompletionDetail `json:"completionDetail,omitempty"` - // Domain: Represents the domain of the user event, for projects that - // combine domains. For example: retailer can have events from multiple - // domains like retailer-main, retailer-baby, retailer-meds, etc. under - // one project. - Domain string `json:"domain,omitempty"` - // EventTime: Only required for UserEventService.ImportUserEvents // method. Timestamp of when the user event happened. EventTime string `json:"eventTime,omitempty"` @@ -8851,6 +9163,13 @@ func (r *ProjectsLocationsCatalogsService) CompleteQuery(catalog string) *Projec return c } +// Banner sets the optional parameter "banner": The banner context for +// completion suggestions. +func (c *ProjectsLocationsCatalogsCompleteQueryCall) Banner(banner string) *ProjectsLocationsCatalogsCompleteQueryCall { + c.urlParams_.Set("banner", banner) + return c +} + // Dataset sets the optional parameter "dataset": Determines which // dataset to use for fetching completion. "user-data" will use the // imported dataset through CompletionService.ImportCompletionData. @@ -9030,6 +9349,11 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Do(opts ...googleapi.CallOp // "catalog" // ], // "parameters": { + // "banner": { + // "description": "The banner context for completion suggestions.", + // "location": "query", + // "type": "string" + // }, // "catalog": { // "description": "Required. Catalog for which the completion is performed. Full resource name of catalog, such as `projects/*/locations/global/catalogs/default_catalog`.", // "location": "path", diff --git a/searchads360/v0/searchads360-api.json b/searchads360/v0/searchads360-api.json index 938bc2f2542..3c8f014626f 100644 --- a/searchads360/v0/searchads360-api.json +++ b/searchads360/v0/searchads360-api.json @@ -271,7 +271,7 @@ } } }, - "revision": "20221208", + "revision": "20230330", "rootUrl": "https://searchads360.googleapis.com/", "schemas": { "GoogleAdsSearchads360V0Common__AgeRangeInfo": { @@ -963,6 +963,11 @@ "description": "Biddable conversions value by conversion date divided by biddable conversions by conversion date. Shows how much, on average, each of the biddable conversions is worth (by conversion date). When this column is selected with date, the values in date column means the conversion date.", "format": "double", "type": "number" + }, + "visits": { + "description": "Clicks that Search Ads 360 has successfully recorded and forwarded to an advertiser's landing page.", + "format": "double", + "type": "number" } }, "type": "object" @@ -994,6 +999,38 @@ }, "type": "object" }, + "GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo": { + "description": "A Search Ads 360 text ad.", + "id": "GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo", + "properties": { + "adTrackId": { + "description": "The tracking id of the ad.", + "format": "int64", + "type": "string" + }, + "description1": { + "description": "The first line of the ad's description.", + "type": "string" + }, + "description2": { + "description": "The second line of the ad's description.", + "type": "string" + }, + "displayMobileUrl": { + "description": "The displayed mobile URL of the ad.", + "type": "string" + }, + "displayUrl": { + "description": "The displayed URL of the ad.", + "type": "string" + }, + "headline": { + "description": "The headline of the ad.", + "type": "string" + } + }, + "type": "object" + }, "GoogleAdsSearchads360V0Common__Segments": { "description": "Segment only fields.", "id": "GoogleAdsSearchads360V0Common__Segments", @@ -1209,6 +1246,45 @@ }, "type": "object" }, + "GoogleAdsSearchads360V0Common__TargetRestriction": { + "description": "The list of per-targeting-dimension targeting settings.", + "id": "GoogleAdsSearchads360V0Common__TargetRestriction", + "properties": { + "bidOnly": { + "description": "Indicates whether to restrict your ads to show only for the criteria you have selected for this targeting_dimension, or to target all values for this targeting_dimension and show ads based on your targeting in other TargetingDimensions. A value of `true` means that these criteria will only apply bid modifiers, and not affect targeting. A value of `false` means that these criteria will restrict targeting as well as applying bid modifiers.", + "type": "boolean" + }, + "targetingDimension": { + "description": "The targeting dimension that these settings apply to.", + "enum": [ + "UNSPECIFIED", + "UNKNOWN", + "KEYWORD", + "AUDIENCE", + "TOPIC", + "GENDER", + "AGE_RANGE", + "PLACEMENT", + "PARENTAL_STATUS", + "INCOME_RANGE" + ], + "enumDescriptions": [ + "Not specified.", + "Used for return value only. Represents value unknown in this version.", + "Keyword criteria, for example, 'mars cruise'. KEYWORD may be used as a custom bid dimension. Keywords are always a targeting dimension, so may not be set as a target \"ALL\" dimension with TargetRestriction.", + "Audience criteria, which include user list, user interest, custom affinity, and custom in market.", + "Topic criteria for targeting categories of content, for example, 'category::Animals\u003ePets' Used for Display and Video targeting.", + "Criteria for targeting gender.", + "Criteria for targeting age ranges.", + "Placement criteria, which include websites like 'www.flowers4sale.com', as well as mobile applications, mobile app categories, YouTube videos, and YouTube channels.", + "Criteria for parental status targeting.", + "Criteria for income range targeting." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleAdsSearchads360V0Common__TargetRoas": { "description": "An automated bidding strategy that helps you maximize revenue while averaging a specific target return on ad spend (ROAS).", "id": "GoogleAdsSearchads360V0Common__TargetRoas", @@ -1248,6 +1324,46 @@ }, "type": "object" }, + "GoogleAdsSearchads360V0Common__TargetingSetting": { + "description": "Settings for the targeting-related features, at the campaign and ad group levels. For more details about the targeting setting, visit https://support.google.com/google-ads/answer/7365594", + "id": "GoogleAdsSearchads360V0Common__TargetingSetting", + "properties": { + "targetRestrictions": { + "description": "The per-targeting-dimension setting to restrict the reach of your campaign or ad group.", + "items": { + "$ref": "GoogleAdsSearchads360V0Common__TargetRestriction" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleAdsSearchads360V0Common__TextLabel": { + "description": "A type of label displaying text on a colored background.", + "id": "GoogleAdsSearchads360V0Common__TextLabel", + "properties": { + "backgroundColor": { + "description": "Background color of the label in RGB format. This string must match the regular expression '^\\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'. Note: The background color may not be visible for manager accounts.", + "type": "string" + }, + "description": { + "description": "A short description of the label. The length must be no more than 200 characters.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAdsSearchads360V0Common__UserListInfo": { + "description": "A User List criterion. Represents a user list that is defined by the advertiser to be targeted.", + "id": "GoogleAdsSearchads360V0Common__UserListInfo", + "properties": { + "userList": { + "description": "The User List resource name.", + "type": "string" + } + }, + "type": "object" + }, "GoogleAdsSearchads360V0Common__Value": { "description": "A generic data container.", "id": "GoogleAdsSearchads360V0Common__Value", @@ -1686,14 +1802,12 @@ "UNSPECIFIED", "UNKNOWN", "RESOURCE_EXHAUSTED", - "ACCESS_PROHIBITED", "RESOURCE_TEMPORARILY_EXHAUSTED" ], "enumDescriptions": [ "Enum unspecified.", "The received error code is not known in this version.", "Too many requests.", - "Access is prohibited.", "Too many requests in a short amount of time." ], "type": "string" @@ -2165,6 +2279,117 @@ }, "type": "object" }, + "GoogleAdsSearchads360V0Resources__Ad": { + "description": "An ad.", + "id": "GoogleAdsSearchads360V0Resources__Ad", + "properties": { + "displayUrl": { + "description": "The URL that appears in the ad description for some ad formats.", + "type": "string" + }, + "finalUrls": { + "description": "The list of possible final URLs after all cross-domain redirects for the ad.", + "items": { + "type": "string" + }, + "type": "array" + }, + "id": { + "description": "Output only. The ID of the ad.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Immutable. The name of the ad. This is only used to be able to identify the ad. It does not need to be unique and does not affect the served ad. The name field is currently only supported for DisplayUploadAd, ImageAd, ShoppingComparisonListingAd and VideoAd.", + "type": "string" + }, + "resourceName": { + "description": "Immutable. The resource name of the ad. Ad resource names have the form: `customers/{customer_id}/ads/{ad_id}`", + "type": "string" + }, + "textAd": { + "$ref": "GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo", + "description": "Immutable. Details pertaining to a text ad." + }, + "type": { + "description": "Output only. The type of ad.", + "enum": [ + "UNSPECIFIED", + "UNKNOWN", + "TEXT_AD", + "EXPANDED_TEXT_AD", + "CALL_ONLY_AD", + "EXPANDED_DYNAMIC_SEARCH_AD", + "HOTEL_AD", + "SHOPPING_SMART_AD", + "SHOPPING_PRODUCT_AD", + "VIDEO_AD", + "GMAIL_AD", + "IMAGE_AD", + "RESPONSIVE_SEARCH_AD", + "LEGACY_RESPONSIVE_DISPLAY_AD", + "APP_AD", + "LEGACY_APP_INSTALL_AD", + "RESPONSIVE_DISPLAY_AD", + "LOCAL_AD", + "HTML5_UPLOAD_AD", + "DYNAMIC_HTML5_AD", + "APP_ENGAGEMENT_AD", + "SHOPPING_COMPARISON_LISTING_AD", + "VIDEO_BUMPER_AD", + "VIDEO_NON_SKIPPABLE_IN_STREAM_AD", + "VIDEO_OUTSTREAM_AD", + "VIDEO_TRUEVIEW_DISCOVERY_AD", + "VIDEO_TRUEVIEW_IN_STREAM_AD", + "VIDEO_RESPONSIVE_AD", + "SMART_CAMPAIGN_AD", + "APP_PRE_REGISTRATION_AD", + "DISCOVERY_MULTI_ASSET_AD", + "DISCOVERY_CAROUSEL_AD", + "TRAVEL_AD" + ], + "enumDescriptions": [ + "No value has been specified.", + "The received value is not known in this version. This is a response-only value.", + "The ad is a text ad.", + "The ad is an expanded text ad.", + "The ad is a call only ad.", + "The ad is an expanded dynamic search ad.", + "The ad is a hotel ad.", + "The ad is a Smart Shopping ad.", + "The ad is a standard Shopping ad.", + "The ad is a video ad.", + "This ad is a Gmail ad.", + "This ad is an Image ad.", + "The ad is a responsive search ad.", + "The ad is a legacy responsive display ad.", + "The ad is an app ad.", + "The ad is a legacy app install ad.", + "The ad is a responsive display ad.", + "The ad is a local ad.", + "The ad is a display upload ad with the HTML5_UPLOAD_AD product type.", + "The ad is a display upload ad with one of the DYNAMIC_HTML5_* product types.", + "The ad is an app engagement ad.", + "The ad is a Shopping Comparison Listing ad.", + "Video bumper ad.", + "Video non-skippable in-stream ad.", + "Video outstream ad.", + "Video TrueView in-display ad.", + "Video TrueView in-stream ad.", + "Video responsive ad.", + "Smart campaign ad.", + "Universal app pre-registration ad.", + "Discovery multi asset ad.", + "Discovery carousel ad.", + "Travel ad." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleAdsSearchads360V0Resources__AdGroup": { "description": "An ad group.", "id": "GoogleAdsSearchads360V0Resources__AdGroup", @@ -2190,12 +2415,76 @@ "format": "int64", "type": "string" }, + "creationTime": { + "description": "Output only. The timestamp when this ad_group was created. The timestamp is in the customer's time zone and in \"yyyy-MM-dd HH:mm:ss\" format.", + "readOnly": true, + "type": "string" + }, + "endDate": { + "description": "Output only. Date when the ad group ends serving ads. By default, the ad group ends on the ad group's end date. If this field is set, then the ad group ends at the end of the specified date in the customer's time zone. This field is only available for Microsoft Advertising and Facebook gateway accounts. Format: YYYY-MM-DD Example: 2019-03-14", + "readOnly": true, + "type": "string" + }, + "engineId": { + "description": "Output only. ID of the ad group in the external engine account. This field is for non-Google Ads account only, for example, Yahoo Japan, Microsoft, Baidu etc. For Google Ads entity, use \"ad_group.id\" instead.", + "readOnly": true, + "type": "string" + }, + "engineStatus": { + "description": "Output only. The Engine Status for ad group.", + "enum": [ + "UNSPECIFIED", + "UNKNOWN", + "AD_GROUP_ELIGIBLE", + "AD_GROUP_EXPIRED", + "AD_GROUP_REMOVED", + "AD_GROUP_DRAFT", + "AD_GROUP_PAUSED", + "AD_GROUP_SERVING", + "AD_GROUP_SUBMITTED", + "CAMPAIGN_PAUSED", + "ACCOUNT_PAUSED" + ], + "enumDescriptions": [ + "Not specified.", + "Used for return value only. Represents value unknown in this version.", + "Deprecated. Do not use.", + "No ads are running for this ad group, because the ad group's end date has passed.", + "The ad group has been deleted.", + "No ads are running for this ad group because the associated ad group is still in draft form.", + "The ad group has been paused.", + "The ad group is active and currently serving ads.", + "The ad group has been submitted (Microsoft Bing Ads legacy status).", + "No ads are running for this ad group, because the campaign has been paused.", + "No ads are running for this ad group, because the account has been paused." + ], + "readOnly": true, + "type": "string" + }, "id": { "description": "Output only. The ID of the ad group.", "format": "int64", "readOnly": true, "type": "string" }, + "labels": { + "description": "Output only. The resource names of labels attached to this ad group.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "languageCode": { + "description": "Output only. The language of the ads and keywords in an ad group. This field is only available for Microsoft Advertising accounts. More details: https://docs.microsoft.com/en-us/advertising/guides/ad-languages?view=bingads-13#adlanguage", + "readOnly": true, + "type": "string" + }, + "lastModifiedTime": { + "description": "Output only. The datetime when this ad group was last modified. The datetime is in the customer's time zone and in \"yyyy-MM-dd HH:mm:ss.ssssss\" format.", + "readOnly": true, + "type": "string" + }, "name": { "description": "The name of the ad group. This field is required and should not be empty when creating new ad groups. It must contain fewer than 255 UTF-8 full-width characters. It must not contain any null (code point 0x0), NL line feed (code point 0xA) or carriage return (code point 0xD) characters.", "type": "string" @@ -2204,6 +2493,11 @@ "description": "Immutable. The resource name of the ad group. Ad group resource names have the form: `customers/{customer_id}/adGroups/{ad_group_id}`", "type": "string" }, + "startDate": { + "description": "Output only. Date when this ad group starts serving ads. By default, the ad group starts now or the ad group's start date, whichever is later. If this field is set, then the ad group starts at the beginning of the specified date in the customer's time zone. This field is only available for Microsoft Advertising and Facebook gateway accounts. Format: YYYY-MM-DD Example: 2019-03-14", + "readOnly": true, + "type": "string" + }, "status": { "description": "The status of the ad group.", "enum": [ @@ -2222,6 +2516,10 @@ ], "type": "string" }, + "targetingSetting": { + "$ref": "GoogleAdsSearchads360V0Common__TargetingSetting", + "description": "Setting for targeting related features." + }, "type": { "description": "Immutable. The type of the ad group.", "enum": [ @@ -2243,7 +2541,8 @@ "PROMOTED_HOTEL_ADS", "VIDEO_RESPONSIVE", "VIDEO_EFFICIENT_REACH", - "SMART_CAMPAIGN_ADS" + "SMART_CAMPAIGN_ADS", + "TRAVEL_ADS" ], "enumDescriptions": [ "The type has not been specified.", @@ -2264,13 +2563,148 @@ "The ad group type for Promoted Hotel ad groups.", "Video responsive ad groups.", "Video efficient reach ad groups.", - "Ad group type for Smart campaigns." + "Ad group type for Smart campaigns.", + "Ad group type for Travel campaigns." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleAdsSearchads360V0Resources__AdGroupAd": { + "description": "An ad group ad.", + "id": "GoogleAdsSearchads360V0Resources__AdGroupAd", + "properties": { + "ad": { + "$ref": "GoogleAdsSearchads360V0Resources__Ad", + "description": "Immutable. The ad." + }, + "creationTime": { + "description": "Output only. The timestamp when this ad_group_ad was created. The datetime is in the customer's time zone and in \"yyyy-MM-dd HH:mm:ss.ssssss\" format.", + "readOnly": true, + "type": "string" + }, + "engineId": { + "description": "Output only. ID of the ad in the external engine account. This field is for SearchAds 360 account only, for example, Yahoo Japan, Microsoft, Baidu etc. For non-SearchAds 360 entity, use \"ad_group_ad.ad.id\" instead.", + "readOnly": true, + "type": "string" + }, + "engineStatus": { + "description": "Output only. Additional status of the ad in the external engine account. Possible statuses (depending on the type of external account) include active, eligible, pending review, etc.", + "enum": [ + "UNSPECIFIED", + "UNKNOWN", + "AD_GROUP_AD_ELIGIBLE", + "AD_GROUP_AD_INAPPROPRIATE_FOR_CAMPAIGN", + "AD_GROUP_AD_MOBILE_URL_UNDER_REVIEW", + "AD_GROUP_AD_PARTIALLY_INVALID", + "AD_GROUP_AD_TO_BE_ACTIVATED", + "AD_GROUP_AD_NOT_REVIEWED", + "AD_GROUP_AD_ON_HOLD", + "AD_GROUP_AD_PAUSED", + "AD_GROUP_AD_REMOVED", + "AD_GROUP_AD_PENDING_REVIEW", + "AD_GROUP_AD_UNDER_REVIEW", + "AD_GROUP_AD_APPROVED", + "AD_GROUP_AD_DISAPPROVED", + "AD_GROUP_AD_SERVING", + "AD_GROUP_AD_ACCOUNT_PAUSED", + "AD_GROUP_AD_CAMPAIGN_PAUSED", + "AD_GROUP_AD_AD_GROUP_PAUSED" + ], + "enumDescriptions": [ + "No value has been specified.", + "Used for return value only. Represents value unknown in this version.", + "Deprecated. Do not use.", + "Baidu: Creative was not approved.", + "Baidu: Mobile URL in process to be reviewed.", + "Baidu: Creative is invalid on mobile device but valid on desktop.", + "Baidu: Creative is ready for activation.", + "Baidu: Creative not reviewed.", + "Deprecated. Do not use. Previously used by Gemini", + "Creative has been paused.", + "Creative has been removed.", + "Creative is pending review.", + "Creative is under review.", + "Creative has been approved.", + "Creative has been disapproved.", + "Creative is serving.", + "Creative has been paused because the account is paused.", + "Creative has been paused because the campaign is paused.", + "Creative has been paused because the ad group is paused." + ], + "readOnly": true, + "type": "string" + }, + "labels": { + "description": "Output only. The resource names of labels attached to this ad group ad.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "lastModifiedTime": { + "description": "Output only. The datetime when this ad group ad was last modified. The datetime is in the customer's time zone and in \"yyyy-MM-dd HH:mm:ss.ssssss\" format.", + "readOnly": true, + "type": "string" + }, + "resourceName": { + "description": "Immutable. The resource name of the ad. Ad group ad resource names have the form: `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}`", + "type": "string" + }, + "status": { + "description": "The status of the ad.", + "enum": [ + "UNSPECIFIED", + "UNKNOWN", + "ENABLED", + "PAUSED", + "REMOVED" + ], + "enumDescriptions": [ + "No value has been specified.", + "The received value is not known in this version. This is a response-only value.", + "The ad group ad is enabled.", + "The ad group ad is paused.", + "The ad group ad is removed." ], "type": "string" } }, "type": "object" }, + "GoogleAdsSearchads360V0Resources__AdGroupAdLabel": { + "description": "A relationship between an ad group ad and a label.", + "id": "GoogleAdsSearchads360V0Resources__AdGroupAdLabel", + "properties": { + "adGroupAd": { + "description": "Immutable. The ad group ad to which the label is attached.", + "type": "string" + }, + "label": { + "description": "Immutable. The label assigned to the ad group ad.", + "type": "string" + }, + "resourceName": { + "description": "Immutable. The resource name of the ad group ad label. Ad group ad label resource names have the form: `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAdsSearchads360V0Resources__AdGroupAudienceView": { + "description": "An ad group audience view. Includes performance data from interests and remarketing lists for Display Network and YouTube Network ads, and remarketing lists for search ads (RLSA), aggregated at the audience level.", + "id": "GoogleAdsSearchads360V0Resources__AdGroupAudienceView", + "properties": { + "resourceName": { + "description": "Output only. The resource name of the ad group audience view. Ad group audience view resource names have the form: `customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}`", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleAdsSearchads360V0Resources__AdGroupBidModifier": { "description": "Represents an ad group bid modifier.", "id": "GoogleAdsSearchads360V0Resources__AdGroupBidModifier", @@ -2280,6 +2714,10 @@ "format": "double", "type": "number" }, + "device": { + "$ref": "GoogleAdsSearchads360V0Common__DeviceInfo", + "description": "Immutable. A device criterion." + }, "resourceName": { "description": "Immutable. The resource name of the ad group bid modifier. Ad group bid modifier resource names have the form: `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`", "type": "string" @@ -2309,6 +2747,11 @@ "format": "int64", "type": "string" }, + "creationTime": { + "description": "Output only. The timestamp when this ad group criterion was created. The timestamp is in the customer's time zone and in \"yyyy-MM-dd HH:mm:ss\" format.", + "readOnly": true, + "type": "string" + }, "criterionId": { "description": "Output only. The ID of the criterion.", "format": "int64", @@ -2321,6 +2764,11 @@ "readOnly": true, "type": "string" }, + "engineId": { + "description": "Output only. ID of the ad group criterion in the external engine account. This field is for non-Google Ads account only, for example, Yahoo Japan, Microsoft, Baidu etc. For Google Ads entity, use \"ad_group_criterion.criterion_id\" instead.", + "readOnly": true, + "type": "string" + }, "engineStatus": { "description": "Output only. The Engine Status for ad group criterion.", "enum": [ @@ -2391,6 +2839,14 @@ "$ref": "GoogleAdsSearchads360V0Common__KeywordInfo", "description": "Immutable. Keyword." }, + "labels": { + "description": "Output only. The resource names of labels attached to this ad group criterion.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "lastModifiedTime": { "description": "Output only. The datetime when this ad group criterion was last modified. The datetime is in the customer's time zone and in \"yyyy-MM-dd HH:mm:ss.ssssss\" format.", "readOnly": true, @@ -2400,6 +2856,14 @@ "$ref": "GoogleAdsSearchads360V0Common__ListingGroupInfo", "description": "Immutable. Listing group." }, + "location": { + "$ref": "GoogleAdsSearchads360V0Common__LocationInfo", + "description": "Immutable. Location." + }, + "negative": { + "description": "Immutable. Whether to target (`false`) or exclude (`true`) the criterion. This field is immutable. To switch a criterion from positive to negative, remove then re-add it.", + "type": "boolean" + }, "qualityInfo": { "$ref": "GoogleAdsSearchads360V0Resources_AdGroupCriterion_QualityInfo", "description": "Output only. Information regarding the quality of the criterion.", @@ -2509,11 +2973,15 @@ "Combined audience", "Smart Campaign keyword theme", "Audience", - "Google Local Services (GLS) Service ID." + "Local Services Ads Service ID." ], "readOnly": true, "type": "string" }, + "userList": { + "$ref": "GoogleAdsSearchads360V0Common__UserListInfo", + "description": "Immutable. User List. The Similar Audiences sunset starts May 2023. Refer to https://ads-developers.googleblog.com/2022/11/announcing-deprecation-and-sunset-of.html for other options." + }, "webpage": { "$ref": "GoogleAdsSearchads360V0Common__WebpageInfo", "description": "Immutable. Webpage" @@ -2521,6 +2989,56 @@ }, "type": "object" }, + "GoogleAdsSearchads360V0Resources__AdGroupCriterionLabel": { + "description": "A relationship between an ad group criterion and a label.", + "id": "GoogleAdsSearchads360V0Resources__AdGroupCriterionLabel", + "properties": { + "adGroupCriterion": { + "description": "Immutable. The ad group criterion to which the label is attached.", + "type": "string" + }, + "label": { + "description": "Immutable. The label assigned to the ad group criterion.", + "type": "string" + }, + "resourceName": { + "description": "Immutable. The resource name of the ad group criterion label. Ad group criterion label resource names have the form: `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAdsSearchads360V0Resources__AdGroupLabel": { + "description": "A relationship between an ad group and a label.", + "id": "GoogleAdsSearchads360V0Resources__AdGroupLabel", + "properties": { + "adGroup": { + "description": "Immutable. The ad group to which the label is attached.", + "type": "string" + }, + "label": { + "description": "Immutable. The label assigned to the ad group.", + "type": "string" + }, + "resourceName": { + "description": "Immutable. The resource name of the ad group label. Ad group label resource names have the form: `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAdsSearchads360V0Resources__AgeRangeView": { + "description": "An age range view.", + "id": "GoogleAdsSearchads360V0Resources__AgeRangeView", + "properties": { + "resourceName": { + "description": "Output only. The resource name of the age range view. Age range view resource names have the form: `customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}`", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleAdsSearchads360V0Resources__BiddingStrategy": { "description": "A bidding strategy.", "id": "GoogleAdsSearchads360V0Resources__BiddingStrategy", @@ -2707,7 +3225,8 @@ "SMART_CAMPAIGN", "VIDEO_SEQUENCE", "APP_CAMPAIGN_FOR_PRE_REGISTRATION", - "VIDEO_REACH_TARGET_FREQUENCY" + "VIDEO_REACH_TARGET_FREQUENCY", + "TRAVEL_ACTIVITIES" ], "enumDescriptions": [ "Not specified.", @@ -2718,7 +3237,7 @@ "AdWords Express campaigns for display.", "Smart Shopping campaigns.", "Gmail Ad campaigns.", - "Smart display campaigns.", + "Smart display campaigns. New campaigns of this sub type cannot be created.", "Video Outstream campaigns.", "Video TrueView for Action campaigns.", "Video campaigns with non-skippable video ads.", @@ -2729,7 +3248,8 @@ "Standard Smart campaigns.", "Video campaigns with sequence video ads.", "App Campaign for pre registration, specialized for advertising mobile app pre-registration, that targets multiple advertising channels across Google Play, YouTube and Display Network.", - "Video reach campaign with Target Frequency bidding strategy." + "Video reach campaign with Target Frequency bidding strategy.", + "Travel Activities campaigns." ], "type": "string" }, @@ -2748,7 +3268,8 @@ "SMART", "PERFORMANCE_MAX", "LOCAL_SERVICES", - "DISCOVERY" + "DISCOVERY", + "TRAVEL" ], "enumDescriptions": [ "Not specified.", @@ -2763,7 +3284,8 @@ "Smart campaigns.", "Performance Max campaigns.", "Local services campaigns.", - "Discovery campaigns." + "Discovery campaigns.", + "Travel campaigns." ], "type": "string" }, @@ -2886,7 +3408,12 @@ "type": "string" }, "createTime": { - "description": "Output only. Timestamp of the campaign's creation time, formatted in ISO 8601.", + "description": "Output only. The timestamp when this campaign was created. The timestamp is in the customer's time zone and in \"yyyy-MM-dd HH:mm:ss\" format. create_time will be deprecated in v1. Use creation_time instead.", + "readOnly": true, + "type": "string" + }, + "creationTime": { + "description": "Output only. The timestamp when this campaign was created. The timestamp is in the customer's time zone and in \"yyyy-MM-dd HH:mm:ss\" format.", "readOnly": true, "type": "string" }, @@ -2933,7 +3460,9 @@ "LANDSCAPE_LOGO", "VIDEO", "CALL_TO_ACTION_SELECTION", - "AD_IMAGE" + "AD_IMAGE", + "BUSINESS_LOGO", + "HOTEL_PROPERTY" ], "enumDescriptions": [ "Not specified.", @@ -2962,7 +3491,9 @@ "The asset is linked for use as a landscape logo.", "The asset is linked for use as a non YouTube logo.", "The asset is linked for use to select a call-to-action.", - "The asset is linked for use to select an ad image." + "The asset is linked for use to select an ad image.", + "The asset is linked for use as a business logo.", + "The asset is linked for use as a hotel property in a Performance Max for travel goals campaign." ], "type": "string" }, @@ -3142,6 +3673,18 @@ }, "type": "object" }, + "GoogleAdsSearchads360V0Resources__CampaignAudienceView": { + "description": "A campaign audience view. Includes performance data from interests and remarketing lists for Display Network and YouTube Network ads, and remarketing lists for search ads (RLSA), aggregated by campaign and audience criterion. This view only includes audiences attached at the campaign level.", + "id": "GoogleAdsSearchads360V0Resources__CampaignAudienceView", + "properties": { + "resourceName": { + "description": "Output only. The resource name of the campaign audience view. Campaign audience view resource names have the form: `customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}`", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleAdsSearchads360V0Resources__CampaignBudget": { "description": "A campaign budget.", "id": "GoogleAdsSearchads360V0Resources__CampaignBudget", @@ -3196,6 +3739,10 @@ "description": "A campaign criterion.", "id": "GoogleAdsSearchads360V0Resources__CampaignCriterion", "properties": { + "ageRange": { + "$ref": "GoogleAdsSearchads360V0Common__AgeRangeInfo", + "description": "Immutable. Age range." + }, "bidModifier": { "description": "The modifier for the bids when the criterion matches. The modifier must be in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. Use 0 to opt out of a Device type.", "format": "float", @@ -3216,10 +3763,23 @@ "readOnly": true, "type": "string" }, + "gender": { + "$ref": "GoogleAdsSearchads360V0Common__GenderInfo", + "description": "Immutable. Gender." + }, + "keyword": { + "$ref": "GoogleAdsSearchads360V0Common__KeywordInfo", + "description": "Immutable. Keyword." + }, "language": { "$ref": "GoogleAdsSearchads360V0Common__LanguageInfo", "description": "Immutable. Language." }, + "lastModifiedTime": { + "description": "Output only. The datetime when this campaign criterion was last modified. The datetime is in the customer's time zone and in \"yyyy-MM-dd HH:mm:ss.ssssss\" format.", + "readOnly": true, + "type": "string" + }, "location": { "$ref": "GoogleAdsSearchads360V0Common__LocationInfo", "description": "Immutable. Location." @@ -3236,6 +3796,24 @@ "description": "Immutable. The resource name of the campaign criterion. Campaign criterion resource names have the form: `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`", "type": "string" }, + "status": { + "description": "The status of the criterion.", + "enum": [ + "UNSPECIFIED", + "UNKNOWN", + "ENABLED", + "PAUSED", + "REMOVED" + ], + "enumDescriptions": [ + "No value has been specified.", + "The received value is not known in this version. This is a response-only value.", + "The campaign criterion is enabled.", + "The campaign criterion is paused.", + "The campaign criterion is removed." + ], + "type": "string" + }, "type": { "description": "Output only. The type of the criterion.", "enum": [ @@ -3314,10 +3892,37 @@ "Combined audience", "Smart Campaign keyword theme", "Audience", - "Google Local Services (GLS) Service ID." + "Local Services Ads Service ID." ], "readOnly": true, "type": "string" + }, + "userList": { + "$ref": "GoogleAdsSearchads360V0Common__UserListInfo", + "description": "Immutable. User List. The Similar Audiences sunset starts May 2023. Refer to https://ads-developers.googleblog.com/2022/11/announcing-deprecation-and-sunset-of.html for other options." + }, + "webpage": { + "$ref": "GoogleAdsSearchads360V0Common__WebpageInfo", + "description": "Immutable. Webpage." + } + }, + "type": "object" + }, + "GoogleAdsSearchads360V0Resources__CampaignLabel": { + "description": "Represents a relationship between a campaign and a label.", + "id": "GoogleAdsSearchads360V0Resources__CampaignLabel", + "properties": { + "campaign": { + "description": "Immutable. The campaign to which the label is attached.", + "type": "string" + }, + "label": { + "description": "Immutable. The label assigned to the campaign.", + "type": "string" + }, + "resourceName": { + "description": "Immutable. Name of the resource. Campaign label resource names have the form: `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}`", + "type": "string" } }, "type": "object" @@ -3494,7 +4099,8 @@ "SMART_CAMPAIGN_MAP_CLICKS_TO_CALL", "SMART_CAMPAIGN_MAP_DIRECTIONS", "SMART_CAMPAIGN_TRACKED_CALLS", - "STORE_VISITS" + "STORE_VISITS", + "WEBPAGE_CODELESS" ], "enumDescriptions": [ "Not specified.", @@ -3533,7 +4139,8 @@ "The user clicks on a call element within Google Maps. Smart campaign only. Read only.", "The user requests directions to a business location within Google Maps. Smart campaign only. Read only.", "Call conversions that occur on Smart campaign Ads with call tracking setup, using Smart campaign custom criteria. Read only.", - "Conversions that occur when a user visits an advertiser's retail store. Read only." + "Conversions that occur when a user visits an advertiser's retail store. Read only.", + "Conversions created from website events (such as form submissions or page loads), that don't use individually coded event snippets." ], "type": "string" }, @@ -3741,6 +4348,11 @@ "description": "Output only. Conversion tracking setting for a customer.", "readOnly": true }, + "creationTime": { + "description": "Output only. The timestamp when this customer was created. The timestamp is in the customer's time zone and in \"yyyy-MM-dd HH:mm:ss\" format.", + "readOnly": true, + "type": "string" + }, "currencyCode": { "description": "Immutable. The currency in which the account operates. A subset of the currency codes from the ISO 4217 standard is supported.", "type": "string" @@ -3760,7 +4372,7 @@ "type": "string" }, "finalUrlSuffix": { - "description": "The URL template for appending params to the final URL", + "description": "The URL template for appending params to the final URL.", "type": "string" }, "id": { @@ -3971,6 +4583,35 @@ }, "type": "object" }, + "GoogleAdsSearchads360V0Resources__DynamicSearchAdsSearchTermView": { + "description": "A dynamic search ads search term view.", + "id": "GoogleAdsSearchads360V0Resources__DynamicSearchAdsSearchTermView", + "properties": { + "landingPage": { + "description": "Output only. The dynamically selected landing page URL of the impression. This field is read-only.", + "readOnly": true, + "type": "string" + }, + "resourceName": { + "description": "Output only. The resource name of the dynamic search ads search term view. Dynamic search ads search term view resource names have the form: `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}`", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleAdsSearchads360V0Resources__GenderView": { + "description": "A gender view.", + "id": "GoogleAdsSearchads360V0Resources__GenderView", + "properties": { + "resourceName": { + "description": "Output only. The resource name of the gender view. Gender view resource names have the form: `customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}`", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleAdsSearchads360V0Resources__KeywordView": { "description": "A keyword view.", "id": "GoogleAdsSearchads360V0Resources__KeywordView", @@ -3983,6 +4624,60 @@ }, "type": "object" }, + "GoogleAdsSearchads360V0Resources__Label": { + "description": "A label.", + "id": "GoogleAdsSearchads360V0Resources__Label", + "properties": { + "id": { + "description": "Output only. ID of the label. Read only.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "The name of the label. This field is required and should not be empty when creating a new label. The length of this string should be between 1 and 80, inclusive.", + "type": "string" + }, + "resourceName": { + "description": "Immutable. Name of the resource. Label resource names have the form: `customers/{customer_id}/labels/{label_id}`", + "type": "string" + }, + "status": { + "description": "Output only. Status of the label. Read only.", + "enum": [ + "UNSPECIFIED", + "UNKNOWN", + "ENABLED", + "REMOVED" + ], + "enumDescriptions": [ + "Not specified.", + "Used for return value only. Represents value unknown in this version.", + "Label is enabled.", + "Label is removed." + ], + "readOnly": true, + "type": "string" + }, + "textLabel": { + "$ref": "GoogleAdsSearchads360V0Common__TextLabel", + "description": "A type of label displaying text on a colored background." + } + }, + "type": "object" + }, + "GoogleAdsSearchads360V0Resources__LocationView": { + "description": "A location view summarizes the performance of campaigns by Location criteria.", + "id": "GoogleAdsSearchads360V0Resources__LocationView", + "properties": { + "resourceName": { + "description": "Output only. The resource name of the location view. Location view resource names have the form: `customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}`", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleAdsSearchads360V0Resources__ProductGroupView": { "description": "A product group view.", "id": "GoogleAdsSearchads360V0Resources__ProductGroupView", @@ -4133,6 +4828,64 @@ }, "type": "object" }, + "GoogleAdsSearchads360V0Resources__UserList": { + "description": "A user list. This is a list of users a customer may target.", + "id": "GoogleAdsSearchads360V0Resources__UserList", + "properties": { + "id": { + "description": "Output only. Id of the user list.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Name of this user list. Depending on its access_reason, the user list name may not be unique (for example, if access_reason=SHARED)", + "type": "string" + }, + "resourceName": { + "description": "Immutable. The resource name of the user list. User list resource names have the form: `customers/{customer_id}/userLists/{user_list_id}`", + "type": "string" + }, + "type": { + "description": "Output only. Type of this list. This field is read-only.", + "enum": [ + "UNSPECIFIED", + "UNKNOWN", + "REMARKETING", + "LOGICAL", + "EXTERNAL_REMARKETING", + "RULE_BASED", + "SIMILAR", + "CRM_BASED" + ], + "enumDescriptions": [ + "Not specified.", + "Used for return value only. Represents value unknown in this version.", + "UserList represented as a collection of conversion types.", + "UserList represented as a combination of other user lists/interests.", + "UserList created in the Google Ad Manager platform.", + "UserList associated with a rule.", + "UserList with users similar to users of another UserList.", + "UserList of first-party CRM data provided by advertiser in the form of emails or other formats." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleAdsSearchads360V0Resources__WebpageView": { + "description": "A webpage view.", + "id": "GoogleAdsSearchads360V0Resources__WebpageView", + "properties": { + "resourceName": { + "description": "Output only. The resource name of the webpage view. Webpage view resource names have the form: `customers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}`", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleAdsSearchads360V0Services__CustomColumnHeader": { "description": "Message for custom column header.", "id": "GoogleAdsSearchads360V0Services__CustomColumnHeader", @@ -4175,6 +4928,18 @@ "$ref": "GoogleAdsSearchads360V0Resources__AdGroup", "description": "The ad group referenced in the query." }, + "adGroupAd": { + "$ref": "GoogleAdsSearchads360V0Resources__AdGroupAd", + "description": "The ad referenced in the query." + }, + "adGroupAdLabel": { + "$ref": "GoogleAdsSearchads360V0Resources__AdGroupAdLabel", + "description": "The ad group ad label referenced in the query." + }, + "adGroupAudienceView": { + "$ref": "GoogleAdsSearchads360V0Resources__AdGroupAudienceView", + "description": "The ad group audience view referenced in the query." + }, "adGroupBidModifier": { "$ref": "GoogleAdsSearchads360V0Resources__AdGroupBidModifier", "description": "The bid modifier referenced in the query." @@ -4183,6 +4948,18 @@ "$ref": "GoogleAdsSearchads360V0Resources__AdGroupCriterion", "description": "The criterion referenced in the query." }, + "adGroupCriterionLabel": { + "$ref": "GoogleAdsSearchads360V0Resources__AdGroupCriterionLabel", + "description": "The ad group criterion label referenced in the query." + }, + "adGroupLabel": { + "$ref": "GoogleAdsSearchads360V0Resources__AdGroupLabel", + "description": "The ad group label referenced in the query." + }, + "ageRangeView": { + "$ref": "GoogleAdsSearchads360V0Resources__AgeRangeView", + "description": "The age range view referenced in the query." + }, "biddingStrategy": { "$ref": "GoogleAdsSearchads360V0Resources__BiddingStrategy", "description": "The bidding strategy referenced in the query." @@ -4191,6 +4968,10 @@ "$ref": "GoogleAdsSearchads360V0Resources__Campaign", "description": "The campaign referenced in the query." }, + "campaignAudienceView": { + "$ref": "GoogleAdsSearchads360V0Resources__CampaignAudienceView", + "description": "The campaign audience view referenced in the query." + }, "campaignBudget": { "$ref": "GoogleAdsSearchads360V0Resources__CampaignBudget", "description": "The campaign budget referenced in the query." @@ -4199,6 +4980,10 @@ "$ref": "GoogleAdsSearchads360V0Resources__CampaignCriterion", "description": "The campaign criterion referenced in the query." }, + "campaignLabel": { + "$ref": "GoogleAdsSearchads360V0Resources__CampaignLabel", + "description": "The campaign label referenced in the query." + }, "conversionAction": { "$ref": "GoogleAdsSearchads360V0Resources__ConversionAction", "description": "The conversion action referenced in the query." @@ -4222,10 +5007,26 @@ "$ref": "GoogleAdsSearchads360V0Resources__CustomerManagerLink", "description": "The CustomerManagerLink referenced in the query." }, + "dynamicSearchAdsSearchTermView": { + "$ref": "GoogleAdsSearchads360V0Resources__DynamicSearchAdsSearchTermView", + "description": "The dynamic search ads search term view referenced in the query." + }, + "genderView": { + "$ref": "GoogleAdsSearchads360V0Resources__GenderView", + "description": "The gender view referenced in the query." + }, "keywordView": { "$ref": "GoogleAdsSearchads360V0Resources__KeywordView", "description": "The keyword view referenced in the query." }, + "label": { + "$ref": "GoogleAdsSearchads360V0Resources__Label", + "description": "The label referenced in the query." + }, + "locationView": { + "$ref": "GoogleAdsSearchads360V0Resources__LocationView", + "description": "The location view referenced in the query." + }, "metrics": { "$ref": "GoogleAdsSearchads360V0Common__Metrics", "description": "The metrics." @@ -4237,6 +5038,14 @@ "segments": { "$ref": "GoogleAdsSearchads360V0Common__Segments", "description": "The segments." + }, + "userList": { + "$ref": "GoogleAdsSearchads360V0Resources__UserList", + "description": "The user list referenced in the query." + }, + "webpageView": { + "$ref": "GoogleAdsSearchads360V0Resources__WebpageView", + "description": "The webpage view referenced in the query." } }, "type": "object" diff --git a/searchads360/v0/searchads360-gen.go b/searchads360/v0/searchads360-gen.go index 5896514a572..2bed88fc3db 100644 --- a/searchads360/v0/searchads360-gen.go +++ b/searchads360/v0/searchads360-gen.go @@ -1072,6 +1072,10 @@ type GoogleAdsSearchads360V0Common__Metrics struct { // values in date column means the conversion date. ValuePerConversionsByConversionDate float64 `json:"valuePerConversionsByConversionDate,omitempty"` + // Visits: Clicks that Search Ads 360 has successfully recorded and + // forwarded to an advertiser's landing page. + Visits float64 `json:"visits,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AbsoluteTopImpressionPercentage") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -1155,6 +1159,7 @@ func (s *GoogleAdsSearchads360V0Common__Metrics) UnmarshalJSON(data []byte) erro ValuePerAllConversionsByConversionDate gensupport.JSONFloat64 `json:"valuePerAllConversionsByConversionDate"` ValuePerConversion gensupport.JSONFloat64 `json:"valuePerConversion"` ValuePerConversionsByConversionDate gensupport.JSONFloat64 `json:"valuePerConversionsByConversionDate"` + Visits gensupport.JSONFloat64 `json:"visits"` *NoMethod } s1.NoMethod = (*NoMethod)(s) @@ -1216,6 +1221,7 @@ func (s *GoogleAdsSearchads360V0Common__Metrics) UnmarshalJSON(data []byte) erro s.ValuePerAllConversionsByConversionDate = float64(s1.ValuePerAllConversionsByConversionDate) s.ValuePerConversion = float64(s1.ValuePerConversion) s.ValuePerConversionsByConversionDate = float64(s1.ValuePerConversionsByConversionDate) + s.Visits = float64(s1.Visits) return nil } @@ -1288,6 +1294,50 @@ func (s *GoogleAdsSearchads360V0Common__RealTimeBiddingSetting) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo: A Search Ads +// 360 text ad. +type GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo struct { + // AdTrackId: The tracking id of the ad. + AdTrackId int64 `json:"adTrackId,omitempty,string"` + + // Description1: The first line of the ad's description. + Description1 string `json:"description1,omitempty"` + + // Description2: The second line of the ad's description. + Description2 string `json:"description2,omitempty"` + + // DisplayMobileUrl: The displayed mobile URL of the ad. + DisplayMobileUrl string `json:"displayMobileUrl,omitempty"` + + // DisplayUrl: The displayed URL of the ad. + DisplayUrl string `json:"displayUrl,omitempty"` + + // Headline: The headline of the ad. + Headline string `json:"headline,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdTrackId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdTrackId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAdsSearchads360V0Common__Segments: Segment only fields. type GoogleAdsSearchads360V0Common__Segments struct { // ConversionAction: Resource name of the conversion action. @@ -1545,6 +1595,66 @@ func (s *GoogleAdsSearchads360V0Common__TargetOutrankShare) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAdsSearchads360V0Common__TargetRestriction: The list of +// per-targeting-dimension targeting settings. +type GoogleAdsSearchads360V0Common__TargetRestriction struct { + // BidOnly: Indicates whether to restrict your ads to show only for the + // criteria you have selected for this targeting_dimension, or to target + // all values for this targeting_dimension and show ads based on your + // targeting in other TargetingDimensions. A value of `true` means that + // these criteria will only apply bid modifiers, and not affect + // targeting. A value of `false` means that these criteria will restrict + // targeting as well as applying bid modifiers. + BidOnly bool `json:"bidOnly,omitempty"` + + // TargetingDimension: The targeting dimension that these settings apply + // to. + // + // Possible values: + // "UNSPECIFIED" - Not specified. + // "UNKNOWN" - Used for return value only. Represents value unknown in + // this version. + // "KEYWORD" - Keyword criteria, for example, 'mars cruise'. KEYWORD + // may be used as a custom bid dimension. Keywords are always a + // targeting dimension, so may not be set as a target "ALL" dimension + // with TargetRestriction. + // "AUDIENCE" - Audience criteria, which include user list, user + // interest, custom affinity, and custom in market. + // "TOPIC" - Topic criteria for targeting categories of content, for + // example, 'category::Animals>Pets' Used for Display and Video + // targeting. + // "GENDER" - Criteria for targeting gender. + // "AGE_RANGE" - Criteria for targeting age ranges. + // "PLACEMENT" - Placement criteria, which include websites like + // 'www.flowers4sale.com', as well as mobile applications, mobile app + // categories, YouTube videos, and YouTube channels. + // "PARENTAL_STATUS" - Criteria for parental status targeting. + // "INCOME_RANGE" - Criteria for income range targeting. + TargetingDimension string `json:"targetingDimension,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BidOnly") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BidOnly") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Common__TargetRestriction) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Common__TargetRestriction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAdsSearchads360V0Common__TargetRoas: An automated bidding // strategy that helps you maximize revenue while averaging a specific // target return on ad spend (ROAS). @@ -1642,6 +1752,106 @@ func (s *GoogleAdsSearchads360V0Common__TargetSpend) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAdsSearchads360V0Common__TargetingSetting: Settings for the +// targeting-related features, at the campaign and ad group levels. For +// more details about the targeting setting, visit +// https://support.google.com/google-ads/answer/7365594 +type GoogleAdsSearchads360V0Common__TargetingSetting struct { + // TargetRestrictions: The per-targeting-dimension setting to restrict + // the reach of your campaign or ad group. + TargetRestrictions []*GoogleAdsSearchads360V0Common__TargetRestriction `json:"targetRestrictions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TargetRestrictions") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TargetRestrictions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Common__TargetingSetting) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Common__TargetingSetting + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAdsSearchads360V0Common__TextLabel: A type of label displaying +// text on a colored background. +type GoogleAdsSearchads360V0Common__TextLabel struct { + // BackgroundColor: Background color of the label in RGB format. This + // string must match the regular expression + // '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'. Note: The background color may + // not be visible for manager accounts. + BackgroundColor string `json:"backgroundColor,omitempty"` + + // Description: A short description of the label. The length must be no + // more than 200 characters. + Description string `json:"description,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackgroundColor") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BackgroundColor") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Common__TextLabel) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Common__TextLabel + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAdsSearchads360V0Common__UserListInfo: A User List criterion. +// Represents a user list that is defined by the advertiser to be +// targeted. +type GoogleAdsSearchads360V0Common__UserListInfo struct { + // UserList: The User List resource name. + UserList string `json:"userList,omitempty"` + + // ForceSendFields is a list of field names (e.g. "UserList") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "UserList") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Common__UserListInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Common__UserListInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAdsSearchads360V0Common__Value: A generic data container. type GoogleAdsSearchads360V0Common__Value struct { // BooleanValue: A boolean. @@ -2115,7 +2325,6 @@ type GoogleAdsSearchads360V0Errors__ErrorCode struct { // "UNSPECIFIED" - Enum unspecified. // "UNKNOWN" - The received error code is not known in this version. // "RESOURCE_EXHAUSTED" - Too many requests. - // "ACCESS_PROHIBITED" - Access is prohibited. // "RESOURCE_TEMPORARILY_EXHAUSTED" - Too many requests in a short // amount of time. QuotaError string `json:"quotaError,omitempty"` @@ -2911,6 +3120,100 @@ func (s *GoogleAdsSearchads360V0ResourcesConversionActionValueSettings) Unmarsha return nil } +// GoogleAdsSearchads360V0Resources__Ad: An ad. +type GoogleAdsSearchads360V0Resources__Ad struct { + // DisplayUrl: The URL that appears in the ad description for some ad + // formats. + DisplayUrl string `json:"displayUrl,omitempty"` + + // FinalUrls: The list of possible final URLs after all cross-domain + // redirects for the ad. + FinalUrls []string `json:"finalUrls,omitempty"` + + // Id: Output only. The ID of the ad. + Id int64 `json:"id,omitempty,string"` + + // Name: Immutable. The name of the ad. This is only used to be able to + // identify the ad. It does not need to be unique and does not affect + // the served ad. The name field is currently only supported for + // DisplayUploadAd, ImageAd, ShoppingComparisonListingAd and VideoAd. + Name string `json:"name,omitempty"` + + // ResourceName: Immutable. The resource name of the ad. Ad resource + // names have the form: `customers/{customer_id}/ads/{ad_id}` + ResourceName string `json:"resourceName,omitempty"` + + // TextAd: Immutable. Details pertaining to a text ad. + TextAd *GoogleAdsSearchads360V0Common__SearchAds360TextAdInfo `json:"textAd,omitempty"` + + // Type: Output only. The type of ad. + // + // Possible values: + // "UNSPECIFIED" - No value has been specified. + // "UNKNOWN" - The received value is not known in this version. This + // is a response-only value. + // "TEXT_AD" - The ad is a text ad. + // "EXPANDED_TEXT_AD" - The ad is an expanded text ad. + // "CALL_ONLY_AD" - The ad is a call only ad. + // "EXPANDED_DYNAMIC_SEARCH_AD" - The ad is an expanded dynamic search + // ad. + // "HOTEL_AD" - The ad is a hotel ad. + // "SHOPPING_SMART_AD" - The ad is a Smart Shopping ad. + // "SHOPPING_PRODUCT_AD" - The ad is a standard Shopping ad. + // "VIDEO_AD" - The ad is a video ad. + // "GMAIL_AD" - This ad is a Gmail ad. + // "IMAGE_AD" - This ad is an Image ad. + // "RESPONSIVE_SEARCH_AD" - The ad is a responsive search ad. + // "LEGACY_RESPONSIVE_DISPLAY_AD" - The ad is a legacy responsive + // display ad. + // "APP_AD" - The ad is an app ad. + // "LEGACY_APP_INSTALL_AD" - The ad is a legacy app install ad. + // "RESPONSIVE_DISPLAY_AD" - The ad is a responsive display ad. + // "LOCAL_AD" - The ad is a local ad. + // "HTML5_UPLOAD_AD" - The ad is a display upload ad with the + // HTML5_UPLOAD_AD product type. + // "DYNAMIC_HTML5_AD" - The ad is a display upload ad with one of the + // DYNAMIC_HTML5_* product types. + // "APP_ENGAGEMENT_AD" - The ad is an app engagement ad. + // "SHOPPING_COMPARISON_LISTING_AD" - The ad is a Shopping Comparison + // Listing ad. + // "VIDEO_BUMPER_AD" - Video bumper ad. + // "VIDEO_NON_SKIPPABLE_IN_STREAM_AD" - Video non-skippable in-stream + // ad. + // "VIDEO_OUTSTREAM_AD" - Video outstream ad. + // "VIDEO_TRUEVIEW_DISCOVERY_AD" - Video TrueView in-display ad. + // "VIDEO_TRUEVIEW_IN_STREAM_AD" - Video TrueView in-stream ad. + // "VIDEO_RESPONSIVE_AD" - Video responsive ad. + // "SMART_CAMPAIGN_AD" - Smart campaign ad. + // "APP_PRE_REGISTRATION_AD" - Universal app pre-registration ad. + // "DISCOVERY_MULTI_ASSET_AD" - Discovery multi asset ad. + // "DISCOVERY_CAROUSEL_AD" - Discovery carousel ad. + // "TRAVEL_AD" - Travel ad. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayUrl") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayUrl") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__Ad) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__Ad + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAdsSearchads360V0Resources__AdGroup: An ad group. type GoogleAdsSearchads360V0Resources__AdGroup struct { // AdRotationMode: The ad rotation mode of the ad group. @@ -2926,9 +3229,66 @@ type GoogleAdsSearchads360V0Resources__AdGroup struct { // CpcBidMicros: The maximum CPC (cost-per-click) bid. CpcBidMicros int64 `json:"cpcBidMicros,omitempty,string"` + // CreationTime: Output only. The timestamp when this ad_group was + // created. The timestamp is in the customer's time zone and in + // "yyyy-MM-dd HH:mm:ss" format. + CreationTime string `json:"creationTime,omitempty"` + + // EndDate: Output only. Date when the ad group ends serving ads. By + // default, the ad group ends on the ad group's end date. If this field + // is set, then the ad group ends at the end of the specified date in + // the customer's time zone. This field is only available for Microsoft + // Advertising and Facebook gateway accounts. Format: YYYY-MM-DD + // Example: 2019-03-14 + EndDate string `json:"endDate,omitempty"` + + // EngineId: Output only. ID of the ad group in the external engine + // account. This field is for non-Google Ads account only, for example, + // Yahoo Japan, Microsoft, Baidu etc. For Google Ads entity, use + // "ad_group.id" instead. + EngineId string `json:"engineId,omitempty"` + + // EngineStatus: Output only. The Engine Status for ad group. + // + // Possible values: + // "UNSPECIFIED" - Not specified. + // "UNKNOWN" - Used for return value only. Represents value unknown in + // this version. + // "AD_GROUP_ELIGIBLE" - Deprecated. Do not use. + // "AD_GROUP_EXPIRED" - No ads are running for this ad group, because + // the ad group's end date has passed. + // "AD_GROUP_REMOVED" - The ad group has been deleted. + // "AD_GROUP_DRAFT" - No ads are running for this ad group because the + // associated ad group is still in draft form. + // "AD_GROUP_PAUSED" - The ad group has been paused. + // "AD_GROUP_SERVING" - The ad group is active and currently serving + // ads. + // "AD_GROUP_SUBMITTED" - The ad group has been submitted (Microsoft + // Bing Ads legacy status). + // "CAMPAIGN_PAUSED" - No ads are running for this ad group, because + // the campaign has been paused. + // "ACCOUNT_PAUSED" - No ads are running for this ad group, because + // the account has been paused. + EngineStatus string `json:"engineStatus,omitempty"` + // Id: Output only. The ID of the ad group. Id int64 `json:"id,omitempty,string"` + // Labels: Output only. The resource names of labels attached to this ad + // group. + Labels []string `json:"labels,omitempty"` + + // LanguageCode: Output only. The language of the ads and keywords in an + // ad group. This field is only available for Microsoft Advertising + // accounts. More details: + // https://docs.microsoft.com/en-us/advertising/guides/ad-languages?view=bingads-13#adlanguage + LanguageCode string `json:"languageCode,omitempty"` + + // LastModifiedTime: Output only. The datetime when this ad group was + // last modified. The datetime is in the customer's time zone and in + // "yyyy-MM-dd HH:mm:ss.ssssss" format. + LastModifiedTime string `json:"lastModifiedTime,omitempty"` + // Name: The name of the ad group. This field is required and should not // be empty when creating new ad groups. It must contain fewer than 255 // UTF-8 full-width characters. It must not contain any null (code point @@ -2941,6 +3301,14 @@ type GoogleAdsSearchads360V0Resources__AdGroup struct { // `customers/{customer_id}/adGroups/{ad_group_id}` ResourceName string `json:"resourceName,omitempty"` + // StartDate: Output only. Date when this ad group starts serving ads. + // By default, the ad group starts now or the ad group's start date, + // whichever is later. If this field is set, then the ad group starts at + // the beginning of the specified date in the customer's time zone. This + // field is only available for Microsoft Advertising and Facebook + // gateway accounts. Format: YYYY-MM-DD Example: 2019-03-14 + StartDate string `json:"startDate,omitempty"` + // Status: The status of the ad group. // // Possible values: @@ -2952,6 +3320,9 @@ type GoogleAdsSearchads360V0Resources__AdGroup struct { // "REMOVED" - The ad group is removed. Status string `json:"status,omitempty"` + // TargetingSetting: Setting for targeting related features. + TargetingSetting *GoogleAdsSearchads360V0Common__TargetingSetting `json:"targetingSetting,omitempty"` + // Type: Immutable. The type of the ad group. // // Possible values: @@ -2983,6 +3354,7 @@ type GoogleAdsSearchads360V0Resources__AdGroup struct { // "VIDEO_RESPONSIVE" - Video responsive ad groups. // "VIDEO_EFFICIENT_REACH" - Video efficient reach ad groups. // "SMART_CAMPAIGN_ADS" - Ad group type for Smart campaigns. + // "TRAVEL_ADS" - Ad group type for Travel campaigns. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "AdRotationMode") to @@ -3009,21 +3381,83 @@ func (s *GoogleAdsSearchads360V0Resources__AdGroup) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleAdsSearchads360V0Resources__AdGroupBidModifier: Represents an -// ad group bid modifier. -type GoogleAdsSearchads360V0Resources__AdGroupBidModifier struct { - // BidModifier: The modifier for the bid when the criterion matches. The - // modifier must be in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for - // PreferredContent. Use 0 to opt out of a Device type. - BidModifier float64 `json:"bidModifier,omitempty"` +// GoogleAdsSearchads360V0Resources__AdGroupAd: An ad group ad. +type GoogleAdsSearchads360V0Resources__AdGroupAd struct { + // Ad: Immutable. The ad. + Ad *GoogleAdsSearchads360V0Resources__Ad `json:"ad,omitempty"` - // ResourceName: Immutable. The resource name of the ad group bid - // modifier. Ad group bid modifier resource names have the form: - // `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_ - // id}` + // CreationTime: Output only. The timestamp when this ad_group_ad was + // created. The datetime is in the customer's time zone and in + // "yyyy-MM-dd HH:mm:ss.ssssss" format. + CreationTime string `json:"creationTime,omitempty"` + + // EngineId: Output only. ID of the ad in the external engine account. + // This field is for SearchAds 360 account only, for example, Yahoo + // Japan, Microsoft, Baidu etc. For non-SearchAds 360 entity, use + // "ad_group_ad.ad.id" instead. + EngineId string `json:"engineId,omitempty"` + + // EngineStatus: Output only. Additional status of the ad in the + // external engine account. Possible statuses (depending on the type of + // external account) include active, eligible, pending review, etc. + // + // Possible values: + // "UNSPECIFIED" - No value has been specified. + // "UNKNOWN" - Used for return value only. Represents value unknown in + // this version. + // "AD_GROUP_AD_ELIGIBLE" - Deprecated. Do not use. + // "AD_GROUP_AD_INAPPROPRIATE_FOR_CAMPAIGN" - Baidu: Creative was not + // approved. + // "AD_GROUP_AD_MOBILE_URL_UNDER_REVIEW" - Baidu: Mobile URL in + // process to be reviewed. + // "AD_GROUP_AD_PARTIALLY_INVALID" - Baidu: Creative is invalid on + // mobile device but valid on desktop. + // "AD_GROUP_AD_TO_BE_ACTIVATED" - Baidu: Creative is ready for + // activation. + // "AD_GROUP_AD_NOT_REVIEWED" - Baidu: Creative not reviewed. + // "AD_GROUP_AD_ON_HOLD" - Deprecated. Do not use. Previously used by + // Gemini + // "AD_GROUP_AD_PAUSED" - Creative has been paused. + // "AD_GROUP_AD_REMOVED" - Creative has been removed. + // "AD_GROUP_AD_PENDING_REVIEW" - Creative is pending review. + // "AD_GROUP_AD_UNDER_REVIEW" - Creative is under review. + // "AD_GROUP_AD_APPROVED" - Creative has been approved. + // "AD_GROUP_AD_DISAPPROVED" - Creative has been disapproved. + // "AD_GROUP_AD_SERVING" - Creative is serving. + // "AD_GROUP_AD_ACCOUNT_PAUSED" - Creative has been paused because the + // account is paused. + // "AD_GROUP_AD_CAMPAIGN_PAUSED" - Creative has been paused because + // the campaign is paused. + // "AD_GROUP_AD_AD_GROUP_PAUSED" - Creative has been paused because + // the ad group is paused. + EngineStatus string `json:"engineStatus,omitempty"` + + // Labels: Output only. The resource names of labels attached to this ad + // group ad. + Labels []string `json:"labels,omitempty"` + + // LastModifiedTime: Output only. The datetime when this ad group ad was + // last modified. The datetime is in the customer's time zone and in + // "yyyy-MM-dd HH:mm:ss.ssssss" format. + LastModifiedTime string `json:"lastModifiedTime,omitempty"` + + // ResourceName: Immutable. The resource name of the ad. Ad group ad + // resource names have the form: + // `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` ResourceName string `json:"resourceName,omitempty"` - // ForceSendFields is a list of field names (e.g. "BidModifier") to + // Status: The status of the ad. + // + // Possible values: + // "UNSPECIFIED" - No value has been specified. + // "UNKNOWN" - The received value is not known in this version. This + // is a response-only value. + // "ENABLED" - The ad group ad is enabled. + // "PAUSED" - The ad group ad is paused. + // "REMOVED" - The ad group ad is removed. + Status string `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Ad") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3031,52 +3465,170 @@ type GoogleAdsSearchads360V0Resources__AdGroupBidModifier struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BidModifier") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Ad") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *GoogleAdsSearchads360V0Resources__AdGroupBidModifier) MarshalJSON() ([]byte, error) { - type NoMethod GoogleAdsSearchads360V0Resources__AdGroupBidModifier +func (s *GoogleAdsSearchads360V0Resources__AdGroupAd) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__AdGroupAd raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (s *GoogleAdsSearchads360V0Resources__AdGroupBidModifier) UnmarshalJSON(data []byte) error { - type NoMethod GoogleAdsSearchads360V0Resources__AdGroupBidModifier - var s1 struct { - BidModifier gensupport.JSONFloat64 `json:"bidModifier"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.BidModifier = float64(s1.BidModifier) - return nil -} - -// GoogleAdsSearchads360V0Resources__AdGroupCriterion: An ad group -// criterion. -type GoogleAdsSearchads360V0Resources__AdGroupCriterion struct { - // AdGroup: Immutable. The ad group to which the criterion belongs. - AdGroup string `json:"adGroup,omitempty"` +// GoogleAdsSearchads360V0Resources__AdGroupAdLabel: A relationship +// between an ad group ad and a label. +type GoogleAdsSearchads360V0Resources__AdGroupAdLabel struct { + // AdGroupAd: Immutable. The ad group ad to which the label is attached. + AdGroupAd string `json:"adGroupAd,omitempty"` - // AgeRange: Immutable. Age range. - AgeRange *GoogleAdsSearchads360V0Common__AgeRangeInfo `json:"ageRange,omitempty"` + // Label: Immutable. The label assigned to the ad group ad. + Label string `json:"label,omitempty"` - // BidModifier: The modifier for the bid when the criterion matches. The - // modifier must be in the range: 0.1 - 10.0. Most targetable criteria - // types support modifiers. - BidModifier float64 `json:"bidModifier,omitempty"` + // ResourceName: Immutable. The resource name of the ad group ad label. + // Ad group ad label resource names have the form: + // `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_ + // id}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdGroupAd") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdGroupAd") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__AdGroupAdLabel) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__AdGroupAdLabel + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAdsSearchads360V0Resources__AdGroupAudienceView: An ad group +// audience view. Includes performance data from interests and +// remarketing lists for Display Network and YouTube Network ads, and +// remarketing lists for search ads (RLSA), aggregated at the audience +// level. +type GoogleAdsSearchads360V0Resources__AdGroupAudienceView struct { + // ResourceName: Output only. The resource name of the ad group audience + // view. Ad group audience view resource names have the form: + // `customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion + // _id}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__AdGroupAudienceView) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__AdGroupAudienceView + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAdsSearchads360V0Resources__AdGroupBidModifier: Represents an +// ad group bid modifier. +type GoogleAdsSearchads360V0Resources__AdGroupBidModifier struct { + // BidModifier: The modifier for the bid when the criterion matches. The + // modifier must be in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for + // PreferredContent. Use 0 to opt out of a Device type. + BidModifier float64 `json:"bidModifier,omitempty"` + + // Device: Immutable. A device criterion. + Device *GoogleAdsSearchads360V0Common__DeviceInfo `json:"device,omitempty"` + + // ResourceName: Immutable. The resource name of the ad group bid + // modifier. Ad group bid modifier resource names have the form: + // `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_ + // id}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BidModifier") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BidModifier") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__AdGroupBidModifier) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__AdGroupBidModifier + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleAdsSearchads360V0Resources__AdGroupBidModifier) UnmarshalJSON(data []byte) error { + type NoMethod GoogleAdsSearchads360V0Resources__AdGroupBidModifier + var s1 struct { + BidModifier gensupport.JSONFloat64 `json:"bidModifier"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.BidModifier = float64(s1.BidModifier) + return nil +} + +// GoogleAdsSearchads360V0Resources__AdGroupCriterion: An ad group +// criterion. +type GoogleAdsSearchads360V0Resources__AdGroupCriterion struct { + // AdGroup: Immutable. The ad group to which the criterion belongs. + AdGroup string `json:"adGroup,omitempty"` + + // AgeRange: Immutable. Age range. + AgeRange *GoogleAdsSearchads360V0Common__AgeRangeInfo `json:"ageRange,omitempty"` + + // BidModifier: The modifier for the bid when the criterion matches. The + // modifier must be in the range: 0.1 - 10.0. Most targetable criteria + // types support modifiers. + BidModifier float64 `json:"bidModifier,omitempty"` // CpcBidMicros: The CPC (cost-per-click) bid. CpcBidMicros int64 `json:"cpcBidMicros,omitempty,string"` + // CreationTime: Output only. The timestamp when this ad group criterion + // was created. The timestamp is in the customer's time zone and in + // "yyyy-MM-dd HH:mm:ss" format. + CreationTime string `json:"creationTime,omitempty"` + // CriterionId: Output only. The ID of the criterion. CriterionId int64 `json:"criterionId,omitempty,string"` @@ -3084,6 +3636,12 @@ type GoogleAdsSearchads360V0Resources__AdGroupCriterion struct { // (cost-per-click) bid. EffectiveCpcBidMicros int64 `json:"effectiveCpcBidMicros,omitempty,string"` + // EngineId: Output only. ID of the ad group criterion in the external + // engine account. This field is for non-Google Ads account only, for + // example, Yahoo Japan, Microsoft, Baidu etc. For Google Ads entity, + // use "ad_group_criterion.criterion_id" instead. + EngineId string `json:"engineId,omitempty"` + // EngineStatus: Output only. The Engine Status for ad group criterion. // // Possible values: @@ -3139,6 +3697,10 @@ type GoogleAdsSearchads360V0Resources__AdGroupCriterion struct { // Keyword: Immutable. Keyword. Keyword *GoogleAdsSearchads360V0Common__KeywordInfo `json:"keyword,omitempty"` + // Labels: Output only. The resource names of labels attached to this ad + // group criterion. + Labels []string `json:"labels,omitempty"` + // LastModifiedTime: Output only. The datetime when this ad group // criterion was last modified. The datetime is in the customer's time // zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. @@ -3147,6 +3709,14 @@ type GoogleAdsSearchads360V0Resources__AdGroupCriterion struct { // ListingGroup: Immutable. Listing group. ListingGroup *GoogleAdsSearchads360V0Common__ListingGroupInfo `json:"listingGroup,omitempty"` + // Location: Immutable. Location. + Location *GoogleAdsSearchads360V0Common__LocationInfo `json:"location,omitempty"` + + // Negative: Immutable. Whether to target (`false`) or exclude (`true`) + // the criterion. This field is immutable. To switch a criterion from + // positive to negative, remove then re-add it. + Negative bool `json:"negative,omitempty"` + // QualityInfo: Output only. Information regarding the quality of the // criterion. QualityInfo *GoogleAdsSearchads360V0ResourcesAdGroupCriterionQualityInfo `json:"qualityInfo,omitempty"` @@ -3221,9 +3791,15 @@ type GoogleAdsSearchads360V0Resources__AdGroupCriterion struct { // "COMBINED_AUDIENCE" - Combined audience // "KEYWORD_THEME" - Smart Campaign keyword theme // "AUDIENCE" - Audience - // "LOCAL_SERVICE_ID" - Google Local Services (GLS) Service ID. + // "LOCAL_SERVICE_ID" - Local Services Ads Service ID. Type string `json:"type,omitempty"` + // UserList: Immutable. User List. The Similar Audiences sunset starts + // May 2023. Refer to + // https://ads-developers.googleblog.com/2022/11/announcing-deprecation-and-sunset-of.html + // for other options. + UserList *GoogleAdsSearchads360V0Common__UserListInfo `json:"userList,omitempty"` + // Webpage: Immutable. Webpage Webpage *GoogleAdsSearchads360V0Common__WebpageInfo `json:"webpage,omitempty"` @@ -3264,6 +3840,113 @@ func (s *GoogleAdsSearchads360V0Resources__AdGroupCriterion) UnmarshalJSON(data return nil } +// GoogleAdsSearchads360V0Resources__AdGroupCriterionLabel: A +// relationship between an ad group criterion and a label. +type GoogleAdsSearchads360V0Resources__AdGroupCriterionLabel struct { + // AdGroupCriterion: Immutable. The ad group criterion to which the + // label is attached. + AdGroupCriterion string `json:"adGroupCriterion,omitempty"` + + // Label: Immutable. The label assigned to the ad group criterion. + Label string `json:"label,omitempty"` + + // ResourceName: Immutable. The resource name of the ad group criterion + // label. Ad group criterion label resource names have the form: + // `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criteri + // on_id}~{label_id}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdGroupCriterion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdGroupCriterion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__AdGroupCriterionLabel) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__AdGroupCriterionLabel + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAdsSearchads360V0Resources__AdGroupLabel: A relationship +// between an ad group and a label. +type GoogleAdsSearchads360V0Resources__AdGroupLabel struct { + // AdGroup: Immutable. The ad group to which the label is attached. + AdGroup string `json:"adGroup,omitempty"` + + // Label: Immutable. The label assigned to the ad group. + Label string `json:"label,omitempty"` + + // ResourceName: Immutable. The resource name of the ad group label. Ad + // group label resource names have the form: + // `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdGroup") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdGroup") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__AdGroupLabel) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__AdGroupLabel + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAdsSearchads360V0Resources__AgeRangeView: An age range view. +type GoogleAdsSearchads360V0Resources__AgeRangeView struct { + // ResourceName: Output only. The resource name of the age range view. + // Age range view resource names have the form: + // `customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__AgeRangeView) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__AgeRangeView + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAdsSearchads360V0Resources__BiddingStrategy: A bidding // strategy. type GoogleAdsSearchads360V0Resources__BiddingStrategy struct { @@ -3471,7 +4154,8 @@ type GoogleAdsSearchads360V0Resources__Campaign struct { // "DISPLAY_EXPRESS" - AdWords Express campaigns for display. // "SHOPPING_SMART_ADS" - Smart Shopping campaigns. // "DISPLAY_GMAIL_AD" - Gmail Ad campaigns. - // "DISPLAY_SMART_CAMPAIGN" - Smart display campaigns. + // "DISPLAY_SMART_CAMPAIGN" - Smart display campaigns. New campaigns + // of this sub type cannot be created. // "VIDEO_OUTSTREAM" - Video Outstream campaigns. // "VIDEO_ACTION" - Video TrueView for Action campaigns. // "VIDEO_NON_SKIPPABLE" - Video campaigns with non-skippable video @@ -3494,6 +4178,7 @@ type GoogleAdsSearchads360V0Resources__Campaign struct { // Google Play, YouTube and Display Network. // "VIDEO_REACH_TARGET_FREQUENCY" - Video reach campaign with Target // Frequency bidding strategy. + // "TRAVEL_ACTIVITIES" - Travel Activities campaigns. AdvertisingChannelSubType string `json:"advertisingChannelSubType,omitempty"` // AdvertisingChannelType: Immutable. The primary serving target for ads @@ -3520,6 +4205,7 @@ type GoogleAdsSearchads360V0Resources__Campaign struct { // "PERFORMANCE_MAX" - Performance Max campaigns. // "LOCAL_SERVICES" - Local services campaigns. // "DISCOVERY" - Discovery campaigns. + // "TRAVEL" - Travel campaigns. AdvertisingChannelType string `json:"advertisingChannelType,omitempty"` // BiddingStrategy: Portfolio bidding strategy used by campaign. @@ -3655,10 +4341,17 @@ type GoogleAdsSearchads360V0Resources__Campaign struct { // CampaignBudget: The budget of the campaign. CampaignBudget string `json:"campaignBudget,omitempty"` - // CreateTime: Output only. Timestamp of the campaign's creation time, - // formatted in ISO 8601. + // CreateTime: Output only. The timestamp when this campaign was + // created. The timestamp is in the customer's time zone and in + // "yyyy-MM-dd HH:mm:ss" format. create_time will be deprecated in v1. + // Use creation_time instead. CreateTime string `json:"createTime,omitempty"` + // CreationTime: Output only. The timestamp when this campaign was + // created. The timestamp is in the customer's time zone and in + // "yyyy-MM-dd HH:mm:ss" format. + CreationTime string `json:"creationTime,omitempty"` + // DynamicSearchAdsSetting: The setting for controlling Dynamic Search // Ads (DSA). DynamicSearchAdsSetting *GoogleAdsSearchads360V0ResourcesCampaignDynamicSearchAdsSetting `json:"dynamicSearchAdsSetting,omitempty"` @@ -3717,6 +4410,9 @@ type GoogleAdsSearchads360V0Resources__Campaign struct { // "CALL_TO_ACTION_SELECTION" - The asset is linked for use to select // a call-to-action. // "AD_IMAGE" - The asset is linked for use to select an ad image. + // "BUSINESS_LOGO" - The asset is linked for use as a business logo. + // "HOTEL_PROPERTY" - The asset is linked for use as a hotel property + // in a Performance Max for travel goals campaign. ExcludedParentAssetFieldTypes []string `json:"excludedParentAssetFieldTypes,omitempty"` // FinalUrlSuffix: Suffix used to append query parameters to landing @@ -3899,6 +4595,42 @@ func (s *GoogleAdsSearchads360V0Resources__Campaign) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAdsSearchads360V0Resources__CampaignAudienceView: A campaign +// audience view. Includes performance data from interests and +// remarketing lists for Display Network and YouTube Network ads, and +// remarketing lists for search ads (RLSA), aggregated by campaign and +// audience criterion. This view only includes audiences attached at the +// campaign level. +type GoogleAdsSearchads360V0Resources__CampaignAudienceView struct { + // ResourceName: Output only. The resource name of the campaign audience + // view. Campaign audience view resource names have the form: + // `customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterio + // n_id}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__CampaignAudienceView) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__CampaignAudienceView + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAdsSearchads360V0Resources__CampaignBudget: A campaign budget. type GoogleAdsSearchads360V0Resources__CampaignBudget struct { // AmountMicros: The amount of the budget, in the local currency for the @@ -3965,6 +4697,9 @@ func (s *GoogleAdsSearchads360V0Resources__CampaignBudget) MarshalJSON() ([]byte // GoogleAdsSearchads360V0Resources__CampaignCriterion: A campaign // criterion. type GoogleAdsSearchads360V0Resources__CampaignCriterion struct { + // AgeRange: Immutable. Age range. + AgeRange *GoogleAdsSearchads360V0Common__AgeRangeInfo `json:"ageRange,omitempty"` + // BidModifier: The modifier for the bids when the criterion matches. // The modifier must be in the range: 0.1 - 10.0. Most targetable // criteria types support modifiers. Use 0 to opt out of a Device type. @@ -3981,9 +4716,20 @@ type GoogleAdsSearchads360V0Resources__CampaignCriterion struct { // field is ignored for mutates. DisplayName string `json:"displayName,omitempty"` + // Gender: Immutable. Gender. + Gender *GoogleAdsSearchads360V0Common__GenderInfo `json:"gender,omitempty"` + + // Keyword: Immutable. Keyword. + Keyword *GoogleAdsSearchads360V0Common__KeywordInfo `json:"keyword,omitempty"` + // Language: Immutable. Language. Language *GoogleAdsSearchads360V0Common__LanguageInfo `json:"language,omitempty"` + // LastModifiedTime: Output only. The datetime when this campaign + // criterion was last modified. The datetime is in the customer's time + // zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. + LastModifiedTime string `json:"lastModifiedTime,omitempty"` + // Location: Immutable. Location. Location *GoogleAdsSearchads360V0Common__LocationInfo `json:"location,omitempty"` @@ -4000,6 +4746,17 @@ type GoogleAdsSearchads360V0Resources__CampaignCriterion struct { // ` ResourceName string `json:"resourceName,omitempty"` + // Status: The status of the criterion. + // + // Possible values: + // "UNSPECIFIED" - No value has been specified. + // "UNKNOWN" - The received value is not known in this version. This + // is a response-only value. + // "ENABLED" - The campaign criterion is enabled. + // "PAUSED" - The campaign criterion is paused. + // "REMOVED" - The campaign criterion is removed. + Status string `json:"status,omitempty"` + // Type: Output only. The type of the criterion. // // Possible values: @@ -4042,10 +4799,19 @@ type GoogleAdsSearchads360V0Resources__CampaignCriterion struct { // "COMBINED_AUDIENCE" - Combined audience // "KEYWORD_THEME" - Smart Campaign keyword theme // "AUDIENCE" - Audience - // "LOCAL_SERVICE_ID" - Google Local Services (GLS) Service ID. + // "LOCAL_SERVICE_ID" - Local Services Ads Service ID. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "BidModifier") to + // UserList: Immutable. User List. The Similar Audiences sunset starts + // May 2023. Refer to + // https://ads-developers.googleblog.com/2022/11/announcing-deprecation-and-sunset-of.html + // for other options. + UserList *GoogleAdsSearchads360V0Common__UserListInfo `json:"userList,omitempty"` + + // Webpage: Immutable. Webpage. + Webpage *GoogleAdsSearchads360V0Common__WebpageInfo `json:"webpage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AgeRange") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4053,10 +4819,10 @@ type GoogleAdsSearchads360V0Resources__CampaignCriterion struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BidModifier") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "AgeRange") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -4082,6 +4848,43 @@ func (s *GoogleAdsSearchads360V0Resources__CampaignCriterion) UnmarshalJSON(data return nil } +// GoogleAdsSearchads360V0Resources__CampaignLabel: Represents a +// relationship between a campaign and a label. +type GoogleAdsSearchads360V0Resources__CampaignLabel struct { + // Campaign: Immutable. The campaign to which the label is attached. + Campaign string `json:"campaign,omitempty"` + + // Label: Immutable. The label assigned to the campaign. + Label string `json:"label,omitempty"` + + // ResourceName: Immutable. Name of the resource. Campaign label + // resource names have the form: + // `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Campaign") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Campaign") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__CampaignLabel) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__CampaignLabel + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAdsSearchads360V0Resources__ConversionAction: A conversion // action. type GoogleAdsSearchads360V0Resources__ConversionAction struct { @@ -4288,6 +5091,9 @@ type GoogleAdsSearchads360V0Resources__ConversionAction struct { // custom criteria. Read only. // "STORE_VISITS" - Conversions that occur when a user visits an // advertiser's retail store. Read only. + // "WEBPAGE_CODELESS" - Conversions created from website events (such + // as form submissions or page loads), that don't use individually coded + // event snippets. Type string `json:"type,omitempty"` // ValueSettings: Settings related to the value for conversion events @@ -4523,6 +5329,11 @@ type GoogleAdsSearchads360V0Resources__Customer struct { // for a customer. ConversionTrackingSetting *GoogleAdsSearchads360V0Resources__ConversionTrackingSetting `json:"conversionTrackingSetting,omitempty"` + // CreationTime: Output only. The timestamp when this customer was + // created. The timestamp is in the customer's time zone and in + // "yyyy-MM-dd HH:mm:ss" format. + CreationTime string `json:"creationTime,omitempty"` + // CurrencyCode: Immutable. The currency in which the account operates. // A subset of the currency codes from the ISO 4217 standard is // supported. @@ -4541,7 +5352,7 @@ type GoogleAdsSearchads360V0Resources__Customer struct { EngineId string `json:"engineId,omitempty"` // FinalUrlSuffix: The URL template for appending params to the final - // URL + // URL. FinalUrlSuffix string `json:"finalUrlSuffix,omitempty"` // Id: Output only. The ID of the customer. @@ -4792,6 +5603,74 @@ func (s *GoogleAdsSearchads360V0Resources__DoubleClickCampaignManagerSetting) Ma return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAdsSearchads360V0Resources__DynamicSearchAdsSearchTermView: A +// dynamic search ads search term view. +type GoogleAdsSearchads360V0Resources__DynamicSearchAdsSearchTermView struct { + // LandingPage: Output only. The dynamically selected landing page URL + // of the impression. This field is read-only. + LandingPage string `json:"landingPage,omitempty"` + + // ResourceName: Output only. The resource name of the dynamic search + // ads search term view. Dynamic search ads search term view resource + // names have the form: + // `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id} + // ~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_finger + // print}~{page_url_fingerprint}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LandingPage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LandingPage") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__DynamicSearchAdsSearchTermView) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__DynamicSearchAdsSearchTermView + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAdsSearchads360V0Resources__GenderView: A gender view. +type GoogleAdsSearchads360V0Resources__GenderView struct { + // ResourceName: Output only. The resource name of the gender view. + // Gender view resource names have the form: + // `customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__GenderView) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__GenderView + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAdsSearchads360V0Resources__KeywordView: A keyword view. type GoogleAdsSearchads360V0Resources__KeywordView struct { // ResourceName: Output only. The resource name of the keyword view. @@ -4822,6 +5701,87 @@ func (s *GoogleAdsSearchads360V0Resources__KeywordView) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAdsSearchads360V0Resources__Label: A label. +type GoogleAdsSearchads360V0Resources__Label struct { + // Id: Output only. ID of the label. Read only. + Id int64 `json:"id,omitempty,string"` + + // Name: The name of the label. This field is required and should not be + // empty when creating a new label. The length of this string should be + // between 1 and 80, inclusive. + Name string `json:"name,omitempty"` + + // ResourceName: Immutable. Name of the resource. Label resource names + // have the form: `customers/{customer_id}/labels/{label_id}` + ResourceName string `json:"resourceName,omitempty"` + + // Status: Output only. Status of the label. Read only. + // + // Possible values: + // "UNSPECIFIED" - Not specified. + // "UNKNOWN" - Used for return value only. Represents value unknown in + // this version. + // "ENABLED" - Label is enabled. + // "REMOVED" - Label is removed. + Status string `json:"status,omitempty"` + + // TextLabel: A type of label displaying text on a colored background. + TextLabel *GoogleAdsSearchads360V0Common__TextLabel `json:"textLabel,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__Label) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__Label + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAdsSearchads360V0Resources__LocationView: A location view +// summarizes the performance of campaigns by Location criteria. +type GoogleAdsSearchads360V0Resources__LocationView struct { + // ResourceName: Output only. The resource name of the location view. + // Location view resource names have the form: + // `customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__LocationView) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__LocationView + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAdsSearchads360V0Resources__ProductGroupView: A product group // view. type GoogleAdsSearchads360V0Resources__ProductGroupView struct { @@ -4987,6 +5947,94 @@ func (s *GoogleAdsSearchads360V0Resources__SearchAds360Field) MarshalJSON() ([]b return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAdsSearchads360V0Resources__UserList: A user list. This is a +// list of users a customer may target. +type GoogleAdsSearchads360V0Resources__UserList struct { + // Id: Output only. Id of the user list. + Id int64 `json:"id,omitempty,string"` + + // Name: Name of this user list. Depending on its access_reason, the + // user list name may not be unique (for example, if + // access_reason=SHARED) + Name string `json:"name,omitempty"` + + // ResourceName: Immutable. The resource name of the user list. User + // list resource names have the form: + // `customers/{customer_id}/userLists/{user_list_id}` + ResourceName string `json:"resourceName,omitempty"` + + // Type: Output only. Type of this list. This field is read-only. + // + // Possible values: + // "UNSPECIFIED" - Not specified. + // "UNKNOWN" - Used for return value only. Represents value unknown in + // this version. + // "REMARKETING" - UserList represented as a collection of conversion + // types. + // "LOGICAL" - UserList represented as a combination of other user + // lists/interests. + // "EXTERNAL_REMARKETING" - UserList created in the Google Ad Manager + // platform. + // "RULE_BASED" - UserList associated with a rule. + // "SIMILAR" - UserList with users similar to users of another + // UserList. + // "CRM_BASED" - UserList of first-party CRM data provided by + // advertiser in the form of emails or other formats. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__UserList) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__UserList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAdsSearchads360V0Resources__WebpageView: A webpage view. +type GoogleAdsSearchads360V0Resources__WebpageView struct { + // ResourceName: Output only. The resource name of the webpage view. + // Webpage view resource names have the form: + // `customers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}` + ResourceName string `json:"resourceName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourceName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ResourceName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAdsSearchads360V0Resources__WebpageView) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAdsSearchads360V0Resources__WebpageView + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAdsSearchads360V0Services__CustomColumnHeader: Message for // custom column header. type GoogleAdsSearchads360V0Services__CustomColumnHeader struct { @@ -5061,24 +6109,51 @@ type GoogleAdsSearchads360V0Services__SearchAds360Row struct { // AdGroup: The ad group referenced in the query. AdGroup *GoogleAdsSearchads360V0Resources__AdGroup `json:"adGroup,omitempty"` + // AdGroupAd: The ad referenced in the query. + AdGroupAd *GoogleAdsSearchads360V0Resources__AdGroupAd `json:"adGroupAd,omitempty"` + + // AdGroupAdLabel: The ad group ad label referenced in the query. + AdGroupAdLabel *GoogleAdsSearchads360V0Resources__AdGroupAdLabel `json:"adGroupAdLabel,omitempty"` + + // AdGroupAudienceView: The ad group audience view referenced in the + // query. + AdGroupAudienceView *GoogleAdsSearchads360V0Resources__AdGroupAudienceView `json:"adGroupAudienceView,omitempty"` + // AdGroupBidModifier: The bid modifier referenced in the query. AdGroupBidModifier *GoogleAdsSearchads360V0Resources__AdGroupBidModifier `json:"adGroupBidModifier,omitempty"` // AdGroupCriterion: The criterion referenced in the query. AdGroupCriterion *GoogleAdsSearchads360V0Resources__AdGroupCriterion `json:"adGroupCriterion,omitempty"` + // AdGroupCriterionLabel: The ad group criterion label referenced in the + // query. + AdGroupCriterionLabel *GoogleAdsSearchads360V0Resources__AdGroupCriterionLabel `json:"adGroupCriterionLabel,omitempty"` + + // AdGroupLabel: The ad group label referenced in the query. + AdGroupLabel *GoogleAdsSearchads360V0Resources__AdGroupLabel `json:"adGroupLabel,omitempty"` + + // AgeRangeView: The age range view referenced in the query. + AgeRangeView *GoogleAdsSearchads360V0Resources__AgeRangeView `json:"ageRangeView,omitempty"` + // BiddingStrategy: The bidding strategy referenced in the query. BiddingStrategy *GoogleAdsSearchads360V0Resources__BiddingStrategy `json:"biddingStrategy,omitempty"` // Campaign: The campaign referenced in the query. Campaign *GoogleAdsSearchads360V0Resources__Campaign `json:"campaign,omitempty"` + // CampaignAudienceView: The campaign audience view referenced in the + // query. + CampaignAudienceView *GoogleAdsSearchads360V0Resources__CampaignAudienceView `json:"campaignAudienceView,omitempty"` + // CampaignBudget: The campaign budget referenced in the query. CampaignBudget *GoogleAdsSearchads360V0Resources__CampaignBudget `json:"campaignBudget,omitempty"` // CampaignCriterion: The campaign criterion referenced in the query. CampaignCriterion *GoogleAdsSearchads360V0Resources__CampaignCriterion `json:"campaignCriterion,omitempty"` + // CampaignLabel: The campaign label referenced in the query. + CampaignLabel *GoogleAdsSearchads360V0Resources__CampaignLabel `json:"campaignLabel,omitempty"` + // ConversionAction: The conversion action referenced in the query. ConversionAction *GoogleAdsSearchads360V0Resources__ConversionAction `json:"conversionAction,omitempty"` @@ -5094,9 +6169,22 @@ type GoogleAdsSearchads360V0Services__SearchAds360Row struct { // CustomerManagerLink: The CustomerManagerLink referenced in the query. CustomerManagerLink *GoogleAdsSearchads360V0Resources__CustomerManagerLink `json:"customerManagerLink,omitempty"` + // DynamicSearchAdsSearchTermView: The dynamic search ads search term + // view referenced in the query. + DynamicSearchAdsSearchTermView *GoogleAdsSearchads360V0Resources__DynamicSearchAdsSearchTermView `json:"dynamicSearchAdsSearchTermView,omitempty"` + + // GenderView: The gender view referenced in the query. + GenderView *GoogleAdsSearchads360V0Resources__GenderView `json:"genderView,omitempty"` + // KeywordView: The keyword view referenced in the query. KeywordView *GoogleAdsSearchads360V0Resources__KeywordView `json:"keywordView,omitempty"` + // Label: The label referenced in the query. + Label *GoogleAdsSearchads360V0Resources__Label `json:"label,omitempty"` + + // LocationView: The location view referenced in the query. + LocationView *GoogleAdsSearchads360V0Resources__LocationView `json:"locationView,omitempty"` + // Metrics: The metrics. Metrics *GoogleAdsSearchads360V0Common__Metrics `json:"metrics,omitempty"` @@ -5106,6 +6194,12 @@ type GoogleAdsSearchads360V0Services__SearchAds360Row struct { // Segments: The segments. Segments *GoogleAdsSearchads360V0Common__Segments `json:"segments,omitempty"` + // UserList: The user list referenced in the query. + UserList *GoogleAdsSearchads360V0Resources__UserList `json:"userList,omitempty"` + + // WebpageView: The webpage view referenced in the query. + WebpageView *GoogleAdsSearchads360V0Resources__WebpageView `json:"webpageView,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdGroup") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index 11d58808445..0fededad00e 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -3372,7 +3372,7 @@ } } }, - "revision": "20230306", + "revision": "20230329", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -3539,25 +3539,6 @@ }, "type": "object" }, - "AssociatedFinding": { - "description": "A finding that is associated with this node in the exposure path.", - "id": "AssociatedFinding", - "properties": { - "canonicalFindingName": { - "description": "Canonical name of the associated findings. Example: organizations/123/sources/456/findings/789", - "type": "string" - }, - "findingCategory": { - "description": "The additional taxonomy group within findings from a given source.", - "type": "string" - }, - "name": { - "description": "Full resource name of the finding.", - "type": "string" - } - }, - "type": "object" - }, "AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", "id": "AuditConfig", @@ -3643,6 +3624,41 @@ }, "type": "object" }, + "CloudDlpDataProfile": { + "description": "The [data profile](https://cloud.google.com/dlp/docs/data-profiles) associated with the finding.", + "id": "CloudDlpDataProfile", + "properties": { + "dataProfile": { + "description": "Name of the data profile, for example, `projects/123/locations/europe/tableProfiles/8383929`.", + "type": "string" + } + }, + "type": "object" + }, + "CloudDlpInspection": { + "description": "Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection job](https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced the finding.", + "id": "CloudDlpInspection", + "properties": { + "fullScan": { + "description": "Whether Cloud DLP scanned the complete resource or a sampled subset.", + "type": "boolean" + }, + "infoType": { + "description": "The [type of information](https://cloud.google.com/dlp/docs/infotypes-reference) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.", + "type": "string" + }, + "infoTypeCount": { + "description": "The number of times Cloud DLP found this infoType within this job and resource.", + "format": "int64", + "type": "string" + }, + "inspectJob": { + "description": "Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.", + "type": "string" + } + }, + "type": "object" + }, "Compliance": { "description": "Contains compliance information about a security standard indicating unmet recommendations.", "id": "Compliance", @@ -3969,21 +3985,6 @@ }, "type": "object" }, - "Edge": { - "description": "Represents a connection between a source node and a destination node in this exposure path.", - "id": "Edge", - "properties": { - "destination": { - "description": "This is the resource name of the destination node.", - "type": "string" - }, - "source": { - "description": "This is the resource name of the source node.", - "type": "string" - } - }, - "type": "object" - }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -4116,6 +4117,14 @@ "description": "The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: \"XSS_FLASH_INJECTION\"", "type": "string" }, + "cloudDlpDataProfile": { + "$ref": "CloudDlpDataProfile", + "description": "Cloud DLP data profile associated with the finding." + }, + "cloudDlpInspection": { + "$ref": "CloudDlpInspection", + "description": "Cloud DLP inspection associated with the finding." + }, "compliances": { "description": "Contains compliance information for security standards associated to the finding.", "items": { @@ -4229,6 +4238,10 @@ "$ref": "MitreAttack", "description": "MITRE ATT\u0026CK tactics and techniques related to this finding. See: https://attack.mitre.org" }, + "moduleName": { + "description": "Unique identifier of the module which generated the finding. Example: folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885", + "type": "string" + }, "mute": { "description": "Indicates the mute state of a finding (either muted, unmuted or undefined). Unlike other attributes of a finding, a finding provider shouldn't set the value of mute.", "enum": [ @@ -4460,81 +4473,6 @@ "properties": {}, "type": "object" }, - "GoogleCloudSecuritycenterV1ExposedResource": { - "description": "A resource that is exposed as a result of a finding.", - "id": "GoogleCloudSecuritycenterV1ExposedResource", - "properties": { - "displayName": { - "description": "Human readable name of the resource that is exposed.", - "type": "string" - }, - "methods": { - "description": "The ways in which this resource is exposed. Examples: Read, Write", - "items": { - "type": "string" - }, - "type": "array" - }, - "name": { - "description": "Exposed Resource Name e.g.: `organizations/123/attackExposureResults/456/exposedResources/789`", - "type": "string" - }, - "resource": { - "description": "The name of the resource that is exposed. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", - "type": "string" - }, - "resourceType": { - "description": "The resource type of the exposed resource. See: https://cloud.google.com/asset-inventory/docs/supported-asset-types", - "type": "string" - }, - "resourceValue": { - "description": "How valuable this resource is.", - "enum": [ - "RESOURCE_VALUE_UNSPECIFIED", - "RESOURCE_VALUE_LOW", - "RESOURCE_VALUE_MEDIUM", - "RESOURCE_VALUE_HIGH" - ], - "enumDescriptions": [ - "The resource value isn't specified.", - "This is a low value resource.", - "This is a medium value resource.", - "This is a high value resource." - ], - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudSecuritycenterV1ExposurePath": { - "description": "A path that an attacker could take to reach an exposed resource.", - "id": "GoogleCloudSecuritycenterV1ExposurePath", - "properties": { - "edges": { - "description": "A list of the edges between nodes in this exposure path.", - "items": { - "$ref": "Edge" - }, - "type": "array" - }, - "exposedResource": { - "$ref": "GoogleCloudSecuritycenterV1ExposedResource", - "description": "The leaf node of this exposure path." - }, - "name": { - "description": "Exposure Path Name e.g.: `organizations/123/attackExposureResults/456/exposurePaths/789`", - "type": "string" - }, - "pathNodes": { - "description": "A list of nodes that exist in this exposure path.", - "items": { - "$ref": "PathNode" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudSecuritycenterV1ExternalSystem": { "description": "Representation of third party SIEM/SOAR fields within SCC.", "id": "GoogleCloudSecuritycenterV1ExternalSystem", @@ -4668,50 +4606,6 @@ }, "type": "object" }, - "GoogleCloudSecuritycenterV1ResourceValueConfig": { - "description": "A resource value config is a mapping configuration of user's tag values to resource values. Used by the attack path simulation.", - "id": "GoogleCloudSecuritycenterV1ResourceValueConfig", - "properties": { - "name": { - "description": "Name for the resource value config", - "type": "string" - }, - "resourceType": { - "description": "Apply resource_value only to resources that match resource_type. resource_type will be checked with \"AND\" of other resources. E.g. \"storage.googleapis.com/Bucket\" with resource_value \"HIGH\" will apply \"HIGH\" value only to \"storage.googleapis.com/Bucket\" resources.", - "type": "string" - }, - "resourceValue": { - "description": "Required. Resource value level this expression represents", - "enum": [ - "RESOURCE_VALUE_UNSPECIFIED", - "HIGH", - "MEDIUM", - "LOW", - "NONE" - ], - "enumDescriptions": [ - "Unspecific value", - "High resource value", - "Medium resource value", - "Low resource value", - "No resource value, e.g. ignore these resources" - ], - "type": "string" - }, - "scope": { - "description": "Project or folder to scope this config to. For example, \"project/456\" would apply this config only to resources in \"project/456\" scope will be checked with \"AND\" of other resources.", - "type": "string" - }, - "tagValues": { - "description": "Required. Tag values combined with AND to check against. Values in the form \"tagValues/123\" E.g. [ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse": { "description": "Response of asset discovery run", "id": "GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse", @@ -5889,32 +5783,6 @@ }, "type": "object" }, - "PathNode": { - "description": "Represents one point that an attacker passes through in this exposure path.", - "id": "PathNode", - "properties": { - "associatedFindings": { - "description": "The findings associated with this node in the exposure path.", - "items": { - "$ref": "AssociatedFinding" - }, - "type": "array" - }, - "displayName": { - "description": "Human readable name of this resource.", - "type": "string" - }, - "resource": { - "description": "The name of the resource at this point in the exposure path. The format of the name is: https://cloud.google.com/apis/design/resource_names#full_resource_name", - "type": "string" - }, - "resourceType": { - "description": "The resource type of this resource. See: https://cloud.google.com/asset-inventory/docs/supported-asset-types", - "type": "string" - } - }, - "type": "object" - }, "Pod": { "description": "Kubernetes Pod.", "id": "Pod", diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index c66ebe4ff80..ae8e3a94530 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -726,45 +726,6 @@ func (s *AssetDiscoveryConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AssociatedFinding: A finding that is associated with this node in the -// exposure path. -type AssociatedFinding struct { - // CanonicalFindingName: Canonical name of the associated findings. - // Example: organizations/123/sources/456/findings/789 - CanonicalFindingName string `json:"canonicalFindingName,omitempty"` - - // FindingCategory: The additional taxonomy group within findings from a - // given source. - FindingCategory string `json:"findingCategory,omitempty"` - - // Name: Full resource name of the finding. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CanonicalFindingName") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CanonicalFindingName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *AssociatedFinding) MarshalJSON() ([]byte, error) { - type NoMethod AssociatedFinding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must @@ -985,6 +946,82 @@ func (s *BulkMuteFindingsRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudDlpDataProfile: The data profile +// (https://cloud.google.com/dlp/docs/data-profiles) associated with the +// finding. +type CloudDlpDataProfile struct { + // DataProfile: Name of the data profile, for example, + // `projects/123/locations/europe/tableProfiles/8383929`. + DataProfile string `json:"dataProfile,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataProfile") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataProfile") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudDlpDataProfile) MarshalJSON() ([]byte, error) { + type NoMethod CloudDlpDataProfile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudDlpInspection: Details about the Cloud Data Loss Prevention +// (Cloud DLP) inspection job +// (https://cloud.google.com/dlp/docs/concepts-job-triggers) that +// produced the finding. +type CloudDlpInspection struct { + // FullScan: Whether Cloud DLP scanned the complete resource or a + // sampled subset. + FullScan bool `json:"fullScan,omitempty"` + + // InfoType: The type of information + // (https://cloud.google.com/dlp/docs/infotypes-reference) found, for + // example, `EMAIL_ADDRESS` or `STREET_ADDRESS`. + InfoType string `json:"infoType,omitempty"` + + // InfoTypeCount: The number of times Cloud DLP found this infoType + // within this job and resource. + InfoTypeCount int64 `json:"infoTypeCount,omitempty,string"` + + // InspectJob: Name of the inspection job, for example, + // `projects/123/locations/europe/dlpJobs/i-8383929`. + InspectJob string `json:"inspectJob,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FullScan") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FullScan") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudDlpInspection) MarshalJSON() ([]byte, error) { + type NoMethod CloudDlpInspection + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Compliance: Contains compliance information about a security standard // indicating unmet recommendations. type Compliance struct { @@ -1465,38 +1502,6 @@ func (s *Detection) UnmarshalJSON(data []byte) error { return nil } -// Edge: Represents a connection between a source node and a destination -// node in this exposure path. -type Edge struct { - // Destination: This is the resource name of the destination node. - Destination string `json:"destination,omitempty"` - - // Source: This is the resource name of the source node. - Source string `json:"source,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Destination") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Destination") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Edge) MarshalJSON() ([]byte, error) { - type NoMethod Edge - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -1747,6 +1752,13 @@ type Finding struct { // "XSS_FLASH_INJECTION" Category string `json:"category,omitempty"` + // CloudDlpDataProfile: Cloud DLP data profile associated with the + // finding. + CloudDlpDataProfile *CloudDlpDataProfile `json:"cloudDlpDataProfile,omitempty"` + + // CloudDlpInspection: Cloud DLP inspection associated with the finding. + CloudDlpInspection *CloudDlpInspection `json:"cloudDlpInspection,omitempty"` + // Compliances: Contains compliance information for security standards // associated to the finding. Compliances []*Compliance `json:"compliances,omitempty"` @@ -1840,6 +1852,12 @@ type Finding struct { // finding. See: https://attack.mitre.org MitreAttack *MitreAttack `json:"mitreAttack,omitempty"` + // ModuleName: Unique identifier of the module which generated the + // finding. Example: + // folders/598186756061/securityHealthAnalyticsSettings/customModules/567 + // 99441161885 + ModuleName string `json:"moduleName,omitempty"` + // Mute: Indicates the mute state of a finding (either muted, unmuted or // undefined). Unlike other attributes of a finding, a finding provider // shouldn't set the value of mute. @@ -2250,99 +2268,6 @@ func (s *GoogleCloudSecuritycenterV1Binding) MarshalJSON() ([]byte, error) { type GoogleCloudSecuritycenterV1BulkMuteFindingsResponse struct { } -// GoogleCloudSecuritycenterV1ExposedResource: A resource that is -// exposed as a result of a finding. -type GoogleCloudSecuritycenterV1ExposedResource struct { - // DisplayName: Human readable name of the resource that is exposed. - DisplayName string `json:"displayName,omitempty"` - - // Methods: The ways in which this resource is exposed. Examples: Read, - // Write - Methods []string `json:"methods,omitempty"` - - // Name: Exposed Resource Name e.g.: - // `organizations/123/attackExposureResults/456/exposedResources/789` - Name string `json:"name,omitempty"` - - // Resource: The name of the resource that is exposed. See: - // https://cloud.google.com/apis/design/resource_names#full_resource_name - Resource string `json:"resource,omitempty"` - - // ResourceType: The resource type of the exposed resource. See: - // https://cloud.google.com/asset-inventory/docs/supported-asset-types - ResourceType string `json:"resourceType,omitempty"` - - // ResourceValue: How valuable this resource is. - // - // Possible values: - // "RESOURCE_VALUE_UNSPECIFIED" - The resource value isn't specified. - // "RESOURCE_VALUE_LOW" - This is a low value resource. - // "RESOURCE_VALUE_MEDIUM" - This is a medium value resource. - // "RESOURCE_VALUE_HIGH" - This is a high value resource. - ResourceValue string `json:"resourceValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudSecuritycenterV1ExposedResource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudSecuritycenterV1ExposedResource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudSecuritycenterV1ExposurePath: A path that an attacker -// could take to reach an exposed resource. -type GoogleCloudSecuritycenterV1ExposurePath struct { - // Edges: A list of the edges between nodes in this exposure path. - Edges []*Edge `json:"edges,omitempty"` - - // ExposedResource: The leaf node of this exposure path. - ExposedResource *GoogleCloudSecuritycenterV1ExposedResource `json:"exposedResource,omitempty"` - - // Name: Exposure Path Name e.g.: - // `organizations/123/attackExposureResults/456/exposurePaths/789` - Name string `json:"name,omitempty"` - - // PathNodes: A list of nodes that exist in this exposure path. - PathNodes []*PathNode `json:"pathNodes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Edges") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Edges") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudSecuritycenterV1ExposurePath) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudSecuritycenterV1ExposurePath - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudSecuritycenterV1ExternalSystem: Representation of third // party SIEM/SOAR fields within SCC. type GoogleCloudSecuritycenterV1ExternalSystem struct { @@ -2559,65 +2484,6 @@ func (s *GoogleCloudSecuritycenterV1Resource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1ResourceValueConfig: A resource value -// config is a mapping configuration of user's tag values to resource -// values. Used by the attack path simulation. -type GoogleCloudSecuritycenterV1ResourceValueConfig struct { - // Name: Name for the resource value config - Name string `json:"name,omitempty"` - - // ResourceType: Apply resource_value only to resources that match - // resource_type. resource_type will be checked with "AND" of other - // resources. E.g. "storage.googleapis.com/Bucket" with resource_value - // "HIGH" will apply "HIGH" value only to - // "storage.googleapis.com/Bucket" resources. - ResourceType string `json:"resourceType,omitempty"` - - // ResourceValue: Required. Resource value level this expression - // represents - // - // Possible values: - // "RESOURCE_VALUE_UNSPECIFIED" - Unspecific value - // "HIGH" - High resource value - // "MEDIUM" - Medium resource value - // "LOW" - Low resource value - // "NONE" - No resource value, e.g. ignore these resources - ResourceValue string `json:"resourceValue,omitempty"` - - // Scope: Project or folder to scope this config to. For example, - // "project/456" would apply this config only to resources in - // "project/456" scope will be checked with "AND" of other resources. - Scope string `json:"scope,omitempty"` - - // TagValues: Required. Tag values combined with AND to check against. - // Values in the form "tagValues/123" E.g. [ "tagValues/123", - // "tagValues/456", "tagValues/789" ] - // https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing - TagValues []string `json:"tagValues,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudSecuritycenterV1ResourceValueConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudSecuritycenterV1ResourceValueConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse: Response of // asset discovery run type GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse struct { @@ -4416,49 +4282,6 @@ func (s *OrganizationSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PathNode: Represents one point that an attacker passes through in -// this exposure path. -type PathNode struct { - // AssociatedFindings: The findings associated with this node in the - // exposure path. - AssociatedFindings []*AssociatedFinding `json:"associatedFindings,omitempty"` - - // DisplayName: Human readable name of this resource. - DisplayName string `json:"displayName,omitempty"` - - // Resource: The name of the resource at this point in the exposure - // path. The format of the name is: - // https://cloud.google.com/apis/design/resource_names#full_resource_name - Resource string `json:"resource,omitempty"` - - // ResourceType: The resource type of this resource. See: - // https://cloud.google.com/asset-inventory/docs/supported-asset-types - ResourceType string `json:"resourceType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AssociatedFindings") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssociatedFindings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *PathNode) MarshalJSON() ([]byte, error) { - type NoMethod PathNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Pod: Kubernetes Pod. type Pod struct { // Containers: Pod containers associated with this finding, if any. diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index 2e25a9c3297..e4dbd93ff72 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20230306", + "revision": "20230329", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -1048,25 +1048,6 @@ }, "type": "object" }, - "AssociatedFinding": { - "description": "A finding that is associated with this node in the exposure path.", - "id": "AssociatedFinding", - "properties": { - "canonicalFindingName": { - "description": "Canonical name of the associated findings. Example: organizations/123/sources/456/findings/789", - "type": "string" - }, - "findingCategory": { - "description": "The additional taxonomy group within findings from a given source.", - "type": "string" - }, - "name": { - "description": "Full resource name of the finding.", - "type": "string" - } - }, - "type": "object" - }, "AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", "id": "AuditConfig", @@ -1143,6 +1124,41 @@ "properties": {}, "type": "object" }, + "CloudDlpDataProfile": { + "description": "The [data profile](https://cloud.google.com/dlp/docs/data-profiles) associated with the finding.", + "id": "CloudDlpDataProfile", + "properties": { + "dataProfile": { + "description": "Name of the data profile, for example, `projects/123/locations/europe/tableProfiles/8383929`.", + "type": "string" + } + }, + "type": "object" + }, + "CloudDlpInspection": { + "description": "Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection job](https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced the finding.", + "id": "CloudDlpInspection", + "properties": { + "fullScan": { + "description": "Whether Cloud DLP scanned the complete resource or a sampled subset.", + "type": "boolean" + }, + "infoType": { + "description": "The [type of information](https://cloud.google.com/dlp/docs/infotypes-reference) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.", + "type": "string" + }, + "infoTypeCount": { + "description": "The number of times Cloud DLP found this infoType within this job and resource.", + "format": "int64", + "type": "string" + }, + "inspectJob": { + "description": "Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.", + "type": "string" + } + }, + "type": "object" + }, "Compliance": { "description": "Contains compliance information about a security standard indicating unmet recommendations.", "id": "Compliance", @@ -1469,21 +1485,6 @@ }, "type": "object" }, - "Edge": { - "description": "Represents a connection between a source node and a destination node in this exposure path.", - "id": "Edge", - "properties": { - "destination": { - "description": "This is the resource name of the destination node.", - "type": "string" - }, - "source": { - "description": "This is the resource name of the source node.", - "type": "string" - } - }, - "type": "object" - }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -1616,6 +1617,14 @@ "description": "The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: \"XSS_FLASH_INJECTION\"", "type": "string" }, + "cloudDlpDataProfile": { + "$ref": "CloudDlpDataProfile", + "description": "Cloud DLP data profile associated with the finding." + }, + "cloudDlpInspection": { + "$ref": "CloudDlpInspection", + "description": "Cloud DLP inspection associated with the finding." + }, "compliances": { "description": "Contains compliance information for security standards associated to the finding.", "items": { @@ -1729,6 +1738,10 @@ "$ref": "MitreAttack", "description": "MITRE ATT\u0026CK tactics and techniques related to this finding. See: https://attack.mitre.org" }, + "moduleName": { + "description": "Unique identifier of the module which generated the finding. Example: folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885", + "type": "string" + }, "mute": { "description": "Indicates the mute state of a finding (either muted, unmuted or undefined). Unlike other attributes of a finding, a finding provider shouldn't set the value of mute.", "enum": [ @@ -1960,81 +1973,6 @@ "properties": {}, "type": "object" }, - "GoogleCloudSecuritycenterV1ExposedResource": { - "description": "A resource that is exposed as a result of a finding.", - "id": "GoogleCloudSecuritycenterV1ExposedResource", - "properties": { - "displayName": { - "description": "Human readable name of the resource that is exposed.", - "type": "string" - }, - "methods": { - "description": "The ways in which this resource is exposed. Examples: Read, Write", - "items": { - "type": "string" - }, - "type": "array" - }, - "name": { - "description": "Exposed Resource Name e.g.: `organizations/123/attackExposureResults/456/exposedResources/789`", - "type": "string" - }, - "resource": { - "description": "The name of the resource that is exposed. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", - "type": "string" - }, - "resourceType": { - "description": "The resource type of the exposed resource. See: https://cloud.google.com/asset-inventory/docs/supported-asset-types", - "type": "string" - }, - "resourceValue": { - "description": "How valuable this resource is.", - "enum": [ - "RESOURCE_VALUE_UNSPECIFIED", - "RESOURCE_VALUE_LOW", - "RESOURCE_VALUE_MEDIUM", - "RESOURCE_VALUE_HIGH" - ], - "enumDescriptions": [ - "The resource value isn't specified.", - "This is a low value resource.", - "This is a medium value resource.", - "This is a high value resource." - ], - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudSecuritycenterV1ExposurePath": { - "description": "A path that an attacker could take to reach an exposed resource.", - "id": "GoogleCloudSecuritycenterV1ExposurePath", - "properties": { - "edges": { - "description": "A list of the edges between nodes in this exposure path.", - "items": { - "$ref": "Edge" - }, - "type": "array" - }, - "exposedResource": { - "$ref": "GoogleCloudSecuritycenterV1ExposedResource", - "description": "The leaf node of this exposure path." - }, - "name": { - "description": "Exposure Path Name e.g.: `organizations/123/attackExposureResults/456/exposurePaths/789`", - "type": "string" - }, - "pathNodes": { - "description": "A list of nodes that exist in this exposure path.", - "items": { - "$ref": "PathNode" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudSecuritycenterV1ExternalSystem": { "description": "Representation of third party SIEM/SOAR fields within SCC.", "id": "GoogleCloudSecuritycenterV1ExternalSystem", @@ -2168,50 +2106,6 @@ }, "type": "object" }, - "GoogleCloudSecuritycenterV1ResourceValueConfig": { - "description": "A resource value config is a mapping configuration of user's tag values to resource values. Used by the attack path simulation.", - "id": "GoogleCloudSecuritycenterV1ResourceValueConfig", - "properties": { - "name": { - "description": "Name for the resource value config", - "type": "string" - }, - "resourceType": { - "description": "Apply resource_value only to resources that match resource_type. resource_type will be checked with \"AND\" of other resources. E.g. \"storage.googleapis.com/Bucket\" with resource_value \"HIGH\" will apply \"HIGH\" value only to \"storage.googleapis.com/Bucket\" resources.", - "type": "string" - }, - "resourceValue": { - "description": "Required. Resource value level this expression represents", - "enum": [ - "RESOURCE_VALUE_UNSPECIFIED", - "HIGH", - "MEDIUM", - "LOW", - "NONE" - ], - "enumDescriptions": [ - "Unspecific value", - "High resource value", - "Medium resource value", - "Low resource value", - "No resource value, e.g. ignore these resources" - ], - "type": "string" - }, - "scope": { - "description": "Project or folder to scope this config to. For example, \"project/456\" would apply this config only to resources in \"project/456\" scope will be checked with \"AND\" of other resources.", - "type": "string" - }, - "tagValues": { - "description": "Required. Tag values combined with AND to check against. Values in the form \"tagValues/123\" E.g. [ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse": { "description": "Response of asset discovery run", "id": "GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse", @@ -3330,32 +3224,6 @@ }, "type": "object" }, - "PathNode": { - "description": "Represents one point that an attacker passes through in this exposure path.", - "id": "PathNode", - "properties": { - "associatedFindings": { - "description": "The findings associated with this node in the exposure path.", - "items": { - "$ref": "AssociatedFinding" - }, - "type": "array" - }, - "displayName": { - "description": "Human readable name of this resource.", - "type": "string" - }, - "resource": { - "description": "The name of the resource at this point in the exposure path. The format of the name is: https://cloud.google.com/apis/design/resource_names#full_resource_name", - "type": "string" - }, - "resourceType": { - "description": "The resource type of this resource. See: https://cloud.google.com/asset-inventory/docs/supported-asset-types", - "type": "string" - } - }, - "type": "object" - }, "Pod": { "description": "Kubernetes Pod.", "id": "Pod", diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index d3bd735a438..a0a46a008bb 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -433,45 +433,6 @@ func (s *AssetDiscoveryConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AssociatedFinding: A finding that is associated with this node in the -// exposure path. -type AssociatedFinding struct { - // CanonicalFindingName: Canonical name of the associated findings. - // Example: organizations/123/sources/456/findings/789 - CanonicalFindingName string `json:"canonicalFindingName,omitempty"` - - // FindingCategory: The additional taxonomy group within findings from a - // given source. - FindingCategory string `json:"findingCategory,omitempty"` - - // Name: Full resource name of the finding. - Name string `json:"name,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "CanonicalFindingName") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CanonicalFindingName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *AssociatedFinding) MarshalJSON() ([]byte, error) { - type NoMethod AssociatedFinding - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must @@ -652,6 +613,82 @@ func (s *Binding) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// CloudDlpDataProfile: The data profile +// (https://cloud.google.com/dlp/docs/data-profiles) associated with the +// finding. +type CloudDlpDataProfile struct { + // DataProfile: Name of the data profile, for example, + // `projects/123/locations/europe/tableProfiles/8383929`. + DataProfile string `json:"dataProfile,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataProfile") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataProfile") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudDlpDataProfile) MarshalJSON() ([]byte, error) { + type NoMethod CloudDlpDataProfile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudDlpInspection: Details about the Cloud Data Loss Prevention +// (Cloud DLP) inspection job +// (https://cloud.google.com/dlp/docs/concepts-job-triggers) that +// produced the finding. +type CloudDlpInspection struct { + // FullScan: Whether Cloud DLP scanned the complete resource or a + // sampled subset. + FullScan bool `json:"fullScan,omitempty"` + + // InfoType: The type of information + // (https://cloud.google.com/dlp/docs/infotypes-reference) found, for + // example, `EMAIL_ADDRESS` or `STREET_ADDRESS`. + InfoType string `json:"infoType,omitempty"` + + // InfoTypeCount: The number of times Cloud DLP found this infoType + // within this job and resource. + InfoTypeCount int64 `json:"infoTypeCount,omitempty,string"` + + // InspectJob: Name of the inspection job, for example, + // `projects/123/locations/europe/dlpJobs/i-8383929`. + InspectJob string `json:"inspectJob,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FullScan") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FullScan") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudDlpInspection) MarshalJSON() ([]byte, error) { + type NoMethod CloudDlpInspection + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Compliance: Contains compliance information about a security standard // indicating unmet recommendations. type Compliance struct { @@ -1132,38 +1169,6 @@ func (s *Detection) UnmarshalJSON(data []byte) error { return nil } -// Edge: Represents a connection between a source node and a destination -// node in this exposure path. -type Edge struct { - // Destination: This is the resource name of the destination node. - Destination string `json:"destination,omitempty"` - - // Source: This is the resource name of the source node. - Source string `json:"source,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Destination") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Destination") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Edge) MarshalJSON() ([]byte, error) { - type NoMethod Edge - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -1414,6 +1419,13 @@ type Finding struct { // "XSS_FLASH_INJECTION" Category string `json:"category,omitempty"` + // CloudDlpDataProfile: Cloud DLP data profile associated with the + // finding. + CloudDlpDataProfile *CloudDlpDataProfile `json:"cloudDlpDataProfile,omitempty"` + + // CloudDlpInspection: Cloud DLP inspection associated with the finding. + CloudDlpInspection *CloudDlpInspection `json:"cloudDlpInspection,omitempty"` + // Compliances: Contains compliance information for security standards // associated to the finding. Compliances []*Compliance `json:"compliances,omitempty"` @@ -1507,6 +1519,12 @@ type Finding struct { // finding. See: https://attack.mitre.org MitreAttack *MitreAttack `json:"mitreAttack,omitempty"` + // ModuleName: Unique identifier of the module which generated the + // finding. Example: + // folders/598186756061/securityHealthAnalyticsSettings/customModules/567 + // 99441161885 + ModuleName string `json:"moduleName,omitempty"` + // Mute: Indicates the mute state of a finding (either muted, unmuted or // undefined). Unlike other attributes of a finding, a finding provider // shouldn't set the value of mute. @@ -1909,99 +1927,6 @@ func (s *GoogleCloudSecuritycenterV1Binding) MarshalJSON() ([]byte, error) { type GoogleCloudSecuritycenterV1BulkMuteFindingsResponse struct { } -// GoogleCloudSecuritycenterV1ExposedResource: A resource that is -// exposed as a result of a finding. -type GoogleCloudSecuritycenterV1ExposedResource struct { - // DisplayName: Human readable name of the resource that is exposed. - DisplayName string `json:"displayName,omitempty"` - - // Methods: The ways in which this resource is exposed. Examples: Read, - // Write - Methods []string `json:"methods,omitempty"` - - // Name: Exposed Resource Name e.g.: - // `organizations/123/attackExposureResults/456/exposedResources/789` - Name string `json:"name,omitempty"` - - // Resource: The name of the resource that is exposed. See: - // https://cloud.google.com/apis/design/resource_names#full_resource_name - Resource string `json:"resource,omitempty"` - - // ResourceType: The resource type of the exposed resource. See: - // https://cloud.google.com/asset-inventory/docs/supported-asset-types - ResourceType string `json:"resourceType,omitempty"` - - // ResourceValue: How valuable this resource is. - // - // Possible values: - // "RESOURCE_VALUE_UNSPECIFIED" - The resource value isn't specified. - // "RESOURCE_VALUE_LOW" - This is a low value resource. - // "RESOURCE_VALUE_MEDIUM" - This is a medium value resource. - // "RESOURCE_VALUE_HIGH" - This is a high value resource. - ResourceValue string `json:"resourceValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudSecuritycenterV1ExposedResource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudSecuritycenterV1ExposedResource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudSecuritycenterV1ExposurePath: A path that an attacker -// could take to reach an exposed resource. -type GoogleCloudSecuritycenterV1ExposurePath struct { - // Edges: A list of the edges between nodes in this exposure path. - Edges []*Edge `json:"edges,omitempty"` - - // ExposedResource: The leaf node of this exposure path. - ExposedResource *GoogleCloudSecuritycenterV1ExposedResource `json:"exposedResource,omitempty"` - - // Name: Exposure Path Name e.g.: - // `organizations/123/attackExposureResults/456/exposurePaths/789` - Name string `json:"name,omitempty"` - - // PathNodes: A list of nodes that exist in this exposure path. - PathNodes []*PathNode `json:"pathNodes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Edges") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Edges") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudSecuritycenterV1ExposurePath) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudSecuritycenterV1ExposurePath - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudSecuritycenterV1ExternalSystem: Representation of third // party SIEM/SOAR fields within SCC. type GoogleCloudSecuritycenterV1ExternalSystem struct { @@ -2210,65 +2135,6 @@ func (s *GoogleCloudSecuritycenterV1Resource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1ResourceValueConfig: A resource value -// config is a mapping configuration of user's tag values to resource -// values. Used by the attack path simulation. -type GoogleCloudSecuritycenterV1ResourceValueConfig struct { - // Name: Name for the resource value config - Name string `json:"name,omitempty"` - - // ResourceType: Apply resource_value only to resources that match - // resource_type. resource_type will be checked with "AND" of other - // resources. E.g. "storage.googleapis.com/Bucket" with resource_value - // "HIGH" will apply "HIGH" value only to - // "storage.googleapis.com/Bucket" resources. - ResourceType string `json:"resourceType,omitempty"` - - // ResourceValue: Required. Resource value level this expression - // represents - // - // Possible values: - // "RESOURCE_VALUE_UNSPECIFIED" - Unspecific value - // "HIGH" - High resource value - // "MEDIUM" - Medium resource value - // "LOW" - Low resource value - // "NONE" - No resource value, e.g. ignore these resources - ResourceValue string `json:"resourceValue,omitempty"` - - // Scope: Project or folder to scope this config to. For example, - // "project/456" would apply this config only to resources in - // "project/456" scope will be checked with "AND" of other resources. - Scope string `json:"scope,omitempty"` - - // TagValues: Required. Tag values combined with AND to check against. - // Values in the form "tagValues/123" E.g. [ "tagValues/123", - // "tagValues/456", "tagValues/789" ] - // https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing - TagValues []string `json:"tagValues,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudSecuritycenterV1ResourceValueConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudSecuritycenterV1ResourceValueConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse: Response of // asset discovery run type GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse struct { @@ -3890,49 +3756,6 @@ func (s *OrganizationSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PathNode: Represents one point that an attacker passes through in -// this exposure path. -type PathNode struct { - // AssociatedFindings: The findings associated with this node in the - // exposure path. - AssociatedFindings []*AssociatedFinding `json:"associatedFindings,omitempty"` - - // DisplayName: Human readable name of this resource. - DisplayName string `json:"displayName,omitempty"` - - // Resource: The name of the resource at this point in the exposure - // path. The format of the name is: - // https://cloud.google.com/apis/design/resource_names#full_resource_name - Resource string `json:"resource,omitempty"` - - // ResourceType: The resource type of this resource. See: - // https://cloud.google.com/asset-inventory/docs/supported-asset-types - ResourceType string `json:"resourceType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AssociatedFindings") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssociatedFindings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *PathNode) MarshalJSON() ([]byte, error) { - type NoMethod PathNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Pod: Kubernetes Pod. type Pod struct { // Containers: Pod containers associated with this finding, if any. diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 2c3b065a7c2..e8f09f23c31 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1981,7 +1981,7 @@ } } }, - "revision": "20230123", + "revision": "20230329", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2069,20 +2069,36 @@ }, "type": "object" }, - "AssociatedFinding": { - "description": "A finding that is associated with this node in the exposure path.", - "id": "AssociatedFinding", + "CloudDlpDataProfile": { + "description": "The [data profile](https://cloud.google.com/dlp/docs/data-profiles) associated with the finding.", + "id": "CloudDlpDataProfile", "properties": { - "canonicalFindingName": { - "description": "Canonical name of the associated findings. Example: organizations/123/sources/456/findings/789", + "dataProfile": { + "description": "Name of the data profile, for example, `projects/123/locations/europe/tableProfiles/8383929`.", "type": "string" + } + }, + "type": "object" + }, + "CloudDlpInspection": { + "description": "Details about the Cloud Data Loss Prevention (Cloud DLP) [inspection job](https://cloud.google.com/dlp/docs/concepts-job-triggers) that produced the finding.", + "id": "CloudDlpInspection", + "properties": { + "fullScan": { + "description": "Whether Cloud DLP scanned the complete resource or a sampled subset.", + "type": "boolean" }, - "findingCategory": { - "description": "The additional taxonomy group within findings from a given source.", + "infoType": { + "description": "The [type of information](https://cloud.google.com/dlp/docs/infotypes-reference) found, for example, `EMAIL_ADDRESS` or `STREET_ADDRESS`.", "type": "string" }, - "name": { - "description": "Full resource name of the finding.", + "infoTypeCount": { + "description": "The number of times Cloud DLP found this infoType within this job and resource.", + "format": "int64", + "type": "string" + }, + "inspectJob": { + "description": "Name of the inspection job, for example, `projects/123/locations/europe/dlpJobs/i-8383929`.", "type": "string" } }, @@ -2495,14 +2511,16 @@ "STANDARD", "TRIAL", "ALPHA", - "DEMO" + "DEMO", + "PAY_AS_YOU_GO" ], "enumDescriptions": [ "Default value. This value is unused.", "The standard subscription.", "The trial subscription.", "The alpha subscription.", - "The demo subscription for channel partners." + "The demo subscription for channel partners.", + "Pay-as-you-go subscription." ], "type": "string" } @@ -2525,21 +2543,6 @@ }, "type": "object" }, - "Edge": { - "description": "Represents a connection between a source node and a destination node in this exposure path.", - "id": "Edge", - "properties": { - "destination": { - "description": "This is the resource name of the destination node.", - "type": "string" - }, - "source": { - "description": "This is the resource name of the source node.", - "type": "string" - } - }, - "type": "object" - }, "EnvironmentVariable": { "description": "EnvironmentVariable is a name-value pair to store environment variables for Process.", "id": "EnvironmentVariable", @@ -2683,6 +2686,14 @@ "description": "The additional taxonomy group within findings from a given source. This field is immutable after creation time. Example: \"XSS_FLASH_INJECTION\"", "type": "string" }, + "cloudDlpDataProfile": { + "$ref": "CloudDlpDataProfile", + "description": "Cloud DLP data profile associated with the finding." + }, + "cloudDlpInspection": { + "$ref": "CloudDlpInspection", + "description": "Cloud DLP inspection associated with the finding." + }, "compliances": { "description": "Contains compliance information for security standards associated to the finding.", "items": { @@ -2796,6 +2807,10 @@ "$ref": "MitreAttack", "description": "MITRE ATT\u0026CK tactics and techniques related to this finding. See: https://attack.mitre.org" }, + "moduleName": { + "description": "Unique identifier of the module which generated the finding. Example: folders/598186756061/securityHealthAnalyticsSettings/customModules/56799441161885", + "type": "string" + }, "mute": { "description": "Indicates the mute state of a finding (either muted, unmuted or undefined). Unlike other attributes of a finding, a finding provider shouldn't set the value of mute.", "enum": [ @@ -3004,81 +3019,6 @@ "properties": {}, "type": "object" }, - "GoogleCloudSecuritycenterV1ExposedResource": { - "description": "A resource that is exposed as a result of a finding.", - "id": "GoogleCloudSecuritycenterV1ExposedResource", - "properties": { - "displayName": { - "description": "Human readable name of the resource that is exposed.", - "type": "string" - }, - "methods": { - "description": "The ways in which this resource is exposed. Examples: Read, Write", - "items": { - "type": "string" - }, - "type": "array" - }, - "name": { - "description": "Exposed Resource Name e.g.: `organizations/123/attackExposureResults/456/exposedResources/789`", - "type": "string" - }, - "resource": { - "description": "The name of the resource that is exposed. See: https://cloud.google.com/apis/design/resource_names#full_resource_name", - "type": "string" - }, - "resourceType": { - "description": "The resource type of the exposed resource. See: https://cloud.google.com/asset-inventory/docs/supported-asset-types", - "type": "string" - }, - "resourceValue": { - "description": "How valuable this resource is.", - "enum": [ - "RESOURCE_VALUE_UNSPECIFIED", - "RESOURCE_VALUE_LOW", - "RESOURCE_VALUE_MEDIUM", - "RESOURCE_VALUE_HIGH" - ], - "enumDescriptions": [ - "The resource value isn't specified.", - "This is a low value resource.", - "This is a medium value resource.", - "This is a high value resource." - ], - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudSecuritycenterV1ExposurePath": { - "description": "A path that an attacker could take to reach an exposed resource.", - "id": "GoogleCloudSecuritycenterV1ExposurePath", - "properties": { - "edges": { - "description": "A list of the edges between nodes in this exposure path.", - "items": { - "$ref": "Edge" - }, - "type": "array" - }, - "exposedResource": { - "$ref": "GoogleCloudSecuritycenterV1ExposedResource", - "description": "The leaf node of this exposure path." - }, - "name": { - "description": "Exposure Path Name e.g.: `organizations/123/attackExposureResults/456/exposurePaths/789`", - "type": "string" - }, - "pathNodes": { - "description": "A list of nodes that exist in this exposure path.", - "items": { - "$ref": "PathNode" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudSecuritycenterV1ExternalSystem": { "description": "Representation of third party SIEM/SOAR fields within SCC.", "id": "GoogleCloudSecuritycenterV1ExternalSystem", @@ -3212,50 +3152,6 @@ }, "type": "object" }, - "GoogleCloudSecuritycenterV1ResourceValueConfig": { - "description": "A resource value config is a mapping configuration of user's tag values to resource values. Used by the attack path simulation.", - "id": "GoogleCloudSecuritycenterV1ResourceValueConfig", - "properties": { - "name": { - "description": "Name for the resource value config", - "type": "string" - }, - "resourceType": { - "description": "Apply resource_value only to resources that match resource_type. resource_type will be checked with \"AND\" of other resources. E.g. \"storage.googleapis.com/Bucket\" with resource_value \"HIGH\" will apply \"HIGH\" value only to \"storage.googleapis.com/Bucket\" resources.", - "type": "string" - }, - "resourceValue": { - "description": "Required. Resource value level this expression represents", - "enum": [ - "RESOURCE_VALUE_UNSPECIFIED", - "HIGH", - "MEDIUM", - "LOW", - "NONE" - ], - "enumDescriptions": [ - "Unspecific value", - "High resource value", - "Medium resource value", - "Low resource value", - "No resource value, e.g. ignore these resources" - ], - "type": "string" - }, - "scope": { - "description": "Project or folder to scope this config to. For example, \"project/456\" would apply this config only to resources in \"project/456\" scope will be checked with \"AND\" of other resources.", - "type": "string" - }, - "tagValues": { - "description": "Required. Tag values combined with AND to check against. Values in the form \"tagValues/123\" E.g. [ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ] https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse": { "description": "Response of asset discovery run", "id": "GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse", @@ -4015,32 +3911,6 @@ }, "type": "object" }, - "PathNode": { - "description": "Represents one point that an attacker passes through in this exposure path.", - "id": "PathNode", - "properties": { - "associatedFindings": { - "description": "The findings associated with this node in the exposure path.", - "items": { - "$ref": "AssociatedFinding" - }, - "type": "array" - }, - "displayName": { - "description": "Human readable name of this resource.", - "type": "string" - }, - "resource": { - "description": "The name of the resource at this point in the exposure path. The format of the name is: https://cloud.google.com/apis/design/resource_names#full_resource_name", - "type": "string" - }, - "resourceType": { - "description": "The resource type of this resource. See: https://cloud.google.com/asset-inventory/docs/supported-asset-types", - "type": "string" - } - }, - "type": "object" - }, "Pod": { "description": "Kubernetes Pod.", "id": "Pod", diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 6afb4f74bfb..2fc174b9393 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -563,41 +563,78 @@ func (s *AccessReview) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AssociatedFinding: A finding that is associated with this node in the -// exposure path. -type AssociatedFinding struct { - // CanonicalFindingName: Canonical name of the associated findings. - // Example: organizations/123/sources/456/findings/789 - CanonicalFindingName string `json:"canonicalFindingName,omitempty"` - - // FindingCategory: The additional taxonomy group within findings from a - // given source. - FindingCategory string `json:"findingCategory,omitempty"` - - // Name: Full resource name of the finding. - Name string `json:"name,omitempty"` +// CloudDlpDataProfile: The data profile +// (https://cloud.google.com/dlp/docs/data-profiles) associated with the +// finding. +type CloudDlpDataProfile struct { + // DataProfile: Name of the data profile, for example, + // `projects/123/locations/europe/tableProfiles/8383929`. + DataProfile string `json:"dataProfile,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "CanonicalFindingName") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DataProfile") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CanonicalFindingName") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "DataProfile") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudDlpDataProfile) MarshalJSON() ([]byte, error) { + type NoMethod CloudDlpDataProfile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudDlpInspection: Details about the Cloud Data Loss Prevention +// (Cloud DLP) inspection job +// (https://cloud.google.com/dlp/docs/concepts-job-triggers) that +// produced the finding. +type CloudDlpInspection struct { + // FullScan: Whether Cloud DLP scanned the complete resource or a + // sampled subset. + FullScan bool `json:"fullScan,omitempty"` + + // InfoType: The type of information + // (https://cloud.google.com/dlp/docs/infotypes-reference) found, for + // example, `EMAIL_ADDRESS` or `STREET_ADDRESS`. + InfoType string `json:"infoType,omitempty"` + + // InfoTypeCount: The number of times Cloud DLP found this infoType + // within this job and resource. + InfoTypeCount int64 `json:"infoTypeCount,omitempty,string"` + + // InspectJob: Name of the inspection job, for example, + // `projects/123/locations/europe/dlpJobs/i-8383929`. + InspectJob string `json:"inspectJob,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FullScan") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FullScan") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *AssociatedFinding) MarshalJSON() ([]byte, error) { - type NoMethod AssociatedFinding +func (s *CloudDlpInspection) MarshalJSON() ([]byte, error) { + type NoMethod CloudDlpInspection raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -1157,6 +1194,7 @@ type Details struct { // "TRIAL" - The trial subscription. // "ALPHA" - The alpha subscription. // "DEMO" - The demo subscription for channel partners. + // "PAY_AS_YOU_GO" - Pay-as-you-go subscription. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") to @@ -1230,38 +1268,6 @@ func (s *Detection) UnmarshalJSON(data []byte) error { return nil } -// Edge: Represents a connection between a source node and a destination -// node in this exposure path. -type Edge struct { - // Destination: This is the resource name of the destination node. - Destination string `json:"destination,omitempty"` - - // Source: This is the resource name of the source node. - Source string `json:"source,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Destination") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Destination") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *Edge) MarshalJSON() ([]byte, error) { - type NoMethod Edge - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // EnvironmentVariable: EnvironmentVariable is a name-value pair to // store environment variables for Process. type EnvironmentVariable struct { @@ -1497,6 +1503,13 @@ type Finding struct { // "XSS_FLASH_INJECTION" Category string `json:"category,omitempty"` + // CloudDlpDataProfile: Cloud DLP data profile associated with the + // finding. + CloudDlpDataProfile *CloudDlpDataProfile `json:"cloudDlpDataProfile,omitempty"` + + // CloudDlpInspection: Cloud DLP inspection associated with the finding. + CloudDlpInspection *CloudDlpInspection `json:"cloudDlpInspection,omitempty"` + // Compliances: Contains compliance information for security standards // associated to the finding. Compliances []*Compliance `json:"compliances,omitempty"` @@ -1590,6 +1603,12 @@ type Finding struct { // finding. See: https://attack.mitre.org MitreAttack *MitreAttack `json:"mitreAttack,omitempty"` + // ModuleName: Unique identifier of the module which generated the + // finding. Example: + // folders/598186756061/securityHealthAnalyticsSettings/customModules/567 + // 99441161885 + ModuleName string `json:"moduleName,omitempty"` + // Mute: Indicates the mute state of a finding (either muted, unmuted or // undefined). Unlike other attributes of a finding, a finding provider // shouldn't set the value of mute. @@ -1922,99 +1941,6 @@ func (s *GoogleCloudSecuritycenterV1Binding) MarshalJSON() ([]byte, error) { type GoogleCloudSecuritycenterV1BulkMuteFindingsResponse struct { } -// GoogleCloudSecuritycenterV1ExposedResource: A resource that is -// exposed as a result of a finding. -type GoogleCloudSecuritycenterV1ExposedResource struct { - // DisplayName: Human readable name of the resource that is exposed. - DisplayName string `json:"displayName,omitempty"` - - // Methods: The ways in which this resource is exposed. Examples: Read, - // Write - Methods []string `json:"methods,omitempty"` - - // Name: Exposed Resource Name e.g.: - // `organizations/123/attackExposureResults/456/exposedResources/789` - Name string `json:"name,omitempty"` - - // Resource: The name of the resource that is exposed. See: - // https://cloud.google.com/apis/design/resource_names#full_resource_name - Resource string `json:"resource,omitempty"` - - // ResourceType: The resource type of the exposed resource. See: - // https://cloud.google.com/asset-inventory/docs/supported-asset-types - ResourceType string `json:"resourceType,omitempty"` - - // ResourceValue: How valuable this resource is. - // - // Possible values: - // "RESOURCE_VALUE_UNSPECIFIED" - The resource value isn't specified. - // "RESOURCE_VALUE_LOW" - This is a low value resource. - // "RESOURCE_VALUE_MEDIUM" - This is a medium value resource. - // "RESOURCE_VALUE_HIGH" - This is a high value resource. - ResourceValue string `json:"resourceValue,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudSecuritycenterV1ExposedResource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudSecuritycenterV1ExposedResource - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudSecuritycenterV1ExposurePath: A path that an attacker -// could take to reach an exposed resource. -type GoogleCloudSecuritycenterV1ExposurePath struct { - // Edges: A list of the edges between nodes in this exposure path. - Edges []*Edge `json:"edges,omitempty"` - - // ExposedResource: The leaf node of this exposure path. - ExposedResource *GoogleCloudSecuritycenterV1ExposedResource `json:"exposedResource,omitempty"` - - // Name: Exposure Path Name e.g.: - // `organizations/123/attackExposureResults/456/exposurePaths/789` - Name string `json:"name,omitempty"` - - // PathNodes: A list of nodes that exist in this exposure path. - PathNodes []*PathNode `json:"pathNodes,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Edges") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Edges") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudSecuritycenterV1ExposurePath) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudSecuritycenterV1ExposurePath - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudSecuritycenterV1ExternalSystem: Representation of third // party SIEM/SOAR fields within SCC. type GoogleCloudSecuritycenterV1ExternalSystem struct { @@ -2223,65 +2149,6 @@ func (s *GoogleCloudSecuritycenterV1Resource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudSecuritycenterV1ResourceValueConfig: A resource value -// config is a mapping configuration of user's tag values to resource -// values. Used by the attack path simulation. -type GoogleCloudSecuritycenterV1ResourceValueConfig struct { - // Name: Name for the resource value config - Name string `json:"name,omitempty"` - - // ResourceType: Apply resource_value only to resources that match - // resource_type. resource_type will be checked with "AND" of other - // resources. E.g. "storage.googleapis.com/Bucket" with resource_value - // "HIGH" will apply "HIGH" value only to - // "storage.googleapis.com/Bucket" resources. - ResourceType string `json:"resourceType,omitempty"` - - // ResourceValue: Required. Resource value level this expression - // represents - // - // Possible values: - // "RESOURCE_VALUE_UNSPECIFIED" - Unspecific value - // "HIGH" - High resource value - // "MEDIUM" - Medium resource value - // "LOW" - Low resource value - // "NONE" - No resource value, e.g. ignore these resources - ResourceValue string `json:"resourceValue,omitempty"` - - // Scope: Project or folder to scope this config to. For example, - // "project/456" would apply this config only to resources in - // "project/456" scope will be checked with "AND" of other resources. - Scope string `json:"scope,omitempty"` - - // TagValues: Required. Tag values combined with AND to check against. - // Values in the form "tagValues/123" E.g. [ "tagValues/123", - // "tagValues/456", "tagValues/789" ] - // https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing - TagValues []string `json:"tagValues,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Name") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudSecuritycenterV1ResourceValueConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudSecuritycenterV1ResourceValueConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse: Response of // asset discovery run type GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse struct { @@ -3231,49 +3098,6 @@ func (s *OnboardingState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PathNode: Represents one point that an attacker passes through in -// this exposure path. -type PathNode struct { - // AssociatedFindings: The findings associated with this node in the - // exposure path. - AssociatedFindings []*AssociatedFinding `json:"associatedFindings,omitempty"` - - // DisplayName: Human readable name of this resource. - DisplayName string `json:"displayName,omitempty"` - - // Resource: The name of the resource at this point in the exposure - // path. The format of the name is: - // https://cloud.google.com/apis/design/resource_names#full_resource_name - Resource string `json:"resource,omitempty"` - - // ResourceType: The resource type of this resource. See: - // https://cloud.google.com/asset-inventory/docs/supported-asset-types - ResourceType string `json:"resourceType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AssociatedFindings") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AssociatedFindings") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *PathNode) MarshalJSON() ([]byte, error) { - type NoMethod PathNode - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // Pod: Kubernetes Pod. type Pod struct { // Containers: Pod containers associated with this finding, if any. diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json index 67af40592ea..77b1dff2d2f 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json @@ -542,7 +542,7 @@ } } }, - "revision": "20230309", + "revision": "20230330", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "AddTenantProjectRequest": { @@ -934,7 +934,7 @@ "description": "Settings for Ruby client libraries." }, "version": { - "description": "Version of the API to apply these settings to.", + "description": "Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: \"google.cloud.speech.v1\" and \"google.spanner.admin.database.v1\".", "type": "string" } }, @@ -1179,6 +1179,41 @@ "common": { "$ref": "CommonLanguageSettings", "description": "Some settings." + }, + "forcedNamespaceAliases": { + "description": "Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision", + "items": { + "type": "string" + }, + "type": "array" + }, + "handwrittenSignatures": { + "description": "Method signatures (in the form \"service.method(signature)\") which are provided separately, so shouldn't be generated. Snippets *calling* these methods are still generated, however.", + "items": { + "type": "string" + }, + "type": "array" + }, + "ignoredResources": { + "description": "List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: \"documentai.googleapis.com/Location\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "renamedResources": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"", + "type": "object" + }, + "renamedServices": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.", + "type": "object" } }, "type": "object" @@ -1726,7 +1761,7 @@ "properties": { "longRunning": { "$ref": "LongRunning", - "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_behavior: - selector: CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" + "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" }, "selector": { "description": "The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.", @@ -1903,7 +1938,7 @@ "type": "object" }, "Mixin": { - "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", + "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", "id": "Mixin", "properties": { "name": { @@ -2923,7 +2958,7 @@ "additionalProperties": { "type": "string" }, - "description": " If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, an policy on a limit with the unit 1/{project}/{region} could contain an entry with the key \"region\" and the value \"us-east-1\"; the policy is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in {brackets} in the unit (besides {project} or {user}) is a defined key. * \"project\" is not a valid key; the project is already specified in the parent resource name. * \"user\" is not a valid key; the API does not support quota polcies that apply only to a specific user. * If \"region\" appears as a key, its value must be a valid Cloud region. * If \"zone\" appears as a key, its value must be a valid Cloud zone. * If any valid key other than \"region\" or \"zone\" appears in the map, then all valid keys other than \"region\" or \"zone\" must also appear in the map.", + "description": " If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, a policy on a limit with the unit 1/{project}/{region} could contain an entry with the key \"region\" and the value \"us-east-1\"; the policy is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in {brackets} in the unit (besides {project} or {user}) is a defined key. * \"project\" is not a valid key; the project is already specified in the parent resource name. * \"user\" is not a valid key; the API does not support quota polcies that apply only to a specific user. * If \"region\" appears as a key, its value must be a valid Cloud region. * If \"zone\" appears as a key, its value must be a valid Cloud zone. * If any valid key other than \"region\" or \"zone\" appears in the map, then all valid keys other than \"region\" or \"zone\" must also appear in the map.", "type": "object" }, "metric": { diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go index 809f7473386..9d8caab9d2b 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go @@ -915,7 +915,10 @@ type ClientLibrarySettings struct { // RubySettings: Settings for Ruby client libraries. RubySettings *RubySettings `json:"rubySettings,omitempty"` - // Version: Version of the API to apply these settings to. + // Version: Version of the API to apply these settings to. This is the + // full protobuf package for the API, ending in the version element. + // Examples: "google.cloud.speech.v1" and + // "google.spanner.admin.database.v1". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CppSettings") to @@ -1443,6 +1446,35 @@ type DotnetSettings struct { // Common: Some settings. Common *CommonLanguageSettings `json:"common,omitempty"` + // ForcedNamespaceAliases: Namespaces which must be aliased in snippets + // due to a known (but non-generator-predictable) naming collision + ForcedNamespaceAliases []string `json:"forcedNamespaceAliases,omitempty"` + + // HandwrittenSignatures: Method signatures (in the form + // "service.method(signature)") which are provided separately, so + // shouldn't be generated. Snippets *calling* these methods are still + // generated, however. + HandwrittenSignatures []string `json:"handwrittenSignatures,omitempty"` + + // IgnoredResources: List of full resource types to ignore during + // generation. This is typically used for API-specific Location + // resources, which should be handled by the generator as if they were + // actually the common Location resources. Example entry: + // "documentai.googleapis.com/Location" + IgnoredResources []string `json:"ignoredResources,omitempty"` + + // RenamedResources: Map from full resource types to the effective short + // name for the resource. This is used when otherwise resource named + // from different services would cause naming collisions. Example entry: + // "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + RenamedResources map[string]string `json:"renamedResources,omitempty"` + + // RenamedServices: Map from original service names to renamed versions. + // This is used when the default generated types would cause a naming + // conflict. (Neither name is fully-qualified.) Example: Subscriber to + // SubscriberServiceApi. + RenamedServices map[string]string `json:"renamedServices,omitempty"` + // ForceSendFields is a list of field names (e.g. "Common") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2452,10 +2484,11 @@ type MethodSettings struct { // LongRunning: Describes settings to use for long-running operations // when generating API methods for RPCs. Complements RPCs that use the // annotations in google/longrunning/operations.proto. Example of a YAML - // configuration:: publishing: method_behavior: - selector: - // CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 - // minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 - // minutes total_poll_timeout: seconds: 54000 # 90 minutes + // configuration:: publishing: method_settings: - selector: + // google.cloud.speech.v2.Speech.BatchRecognize long_running: + // initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 + // max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: + // 54000 # 90 minutes LongRunning *LongRunning `json:"longRunning,omitempty"` // Selector: The fully qualified name of the method, for which the @@ -2813,7 +2846,7 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) { // The mixin construct implies that all methods in `AccessControl` are // also declared with same name and request/response types in `Storage`. // A documentation generator or annotation processor will see the -// effective `Storage.GetAcl` method after inheriting documentation and +// effective `Storage.GetAcl` method after inherting documentation and // annotations as follows: service Storage { // Get the underlying ACL // object. rpc GetAcl(GetAclRequest) returns (Acl) { option // (google.api.http).get = "/v2/{resource=**}:getAcl"; } ... } Note how @@ -4656,17 +4689,17 @@ type V1Beta1ProducerQuotaPolicy struct { // Dimensions: If this map is nonempty, then this policy applies only // to specific values for dimensions defined in the limit unit. For - // example, an policy on a limit with the unit 1/{project}/{region} - // could contain an entry with the key "region" and the value - // "us-east-1"; the policy is only applied to quota consumed in that - // region. This map has the following restrictions: * Keys that are not - // defined in the limit's unit are not valid keys. Any string appearing - // in {brackets} in the unit (besides {project} or {user}) is a defined - // key. * "project" is not a valid key; the project is already specified - // in the parent resource name. * "user" is not a valid key; the API - // does not support quota polcies that apply only to a specific user. * - // If "region" appears as a key, its value must be a valid Cloud region. - // * If "zone" appears as a key, its value must be a valid Cloud zone. * + // example, a policy on a limit with the unit 1/{project}/{region} could + // contain an entry with the key "region" and the value "us-east-1"; the + // policy is only applied to quota consumed in that region. This map has + // the following restrictions: * Keys that are not defined in the + // limit's unit are not valid keys. Any string appearing in {brackets} + // in the unit (besides {project} or {user}) is a defined key. * + // "project" is not a valid key; the project is already specified in the + // parent resource name. * "user" is not a valid key; the API does not + // support quota polcies that apply only to a specific user. * If + // "region" appears as a key, its value must be a valid Cloud region. * + // If "zone" appears as a key, its value must be a valid Cloud zone. * // If any valid key other than "region" or "zone" appears in the map, // then all valid keys other than "region" or "zone" must also appear in // the map. diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json index 5082b5f5e24..7b717138b29 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-api.json @@ -500,7 +500,7 @@ } } }, - "revision": "20230309", + "revision": "20230330", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "Api": { @@ -826,7 +826,7 @@ "description": "Settings for Ruby client libraries." }, "version": { - "description": "Version of the API to apply these settings to.", + "description": "Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: \"google.cloud.speech.v1\" and \"google.spanner.admin.database.v1\".", "type": "string" } }, @@ -1049,6 +1049,41 @@ "common": { "$ref": "CommonLanguageSettings", "description": "Some settings." + }, + "forcedNamespaceAliases": { + "description": "Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision", + "items": { + "type": "string" + }, + "type": "array" + }, + "handwrittenSignatures": { + "description": "Method signatures (in the form \"service.method(signature)\") which are provided separately, so shouldn't be generated. Snippets *calling* these methods are still generated, however.", + "items": { + "type": "string" + }, + "type": "array" + }, + "ignoredResources": { + "description": "List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: \"documentai.googleapis.com/Location\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "renamedResources": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"", + "type": "object" + }, + "renamedServices": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.", + "type": "object" } }, "type": "object" @@ -1560,7 +1595,7 @@ "properties": { "longRunning": { "$ref": "LongRunning", - "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_behavior: - selector: CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" + "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" }, "selector": { "description": "The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.", @@ -1737,7 +1772,7 @@ "type": "object" }, "Mixin": { - "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", + "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", "id": "Mixin", "properties": { "name": { @@ -2496,7 +2531,7 @@ "type": "string" }, "name": { - "description": "The resource name of the quota limit. An example name would be: `services/compute.googleapis.com/projects/123/quotas/metrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.", + "description": "The resource name of the quota limit. An example name would be: `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.", "type": "string" }, "quotaBuckets": { @@ -2547,7 +2582,7 @@ "type": "string" }, "name": { - "description": "The resource name of the quota settings on this metric for this consumer. An example name would be: `services/serviceconsumermanagement.googleapis.com/projects/123/quota/metrics/compute.googleapis.com%2Fcpus The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.", + "description": "The resource name of the quota settings on this metric for this consumer. An example name would be: `services/serviceconsumermanagement.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus` The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.", "type": "string" }, "unit": { @@ -2702,7 +2737,7 @@ "additionalProperties": { "type": "string" }, - "description": " If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, an policy on a limit with the unit 1/{project}/{region} could contain an entry with the key \"region\" and the value \"us-east-1\"; the policy is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in {brackets} in the unit (besides {project} or {user}) is a defined key. * \"project\" is not a valid key; the project is already specified in the parent resource name. * \"user\" is not a valid key; the API does not support quota polcies that apply only to a specific user. * If \"region\" appears as a key, its value must be a valid Cloud region. * If \"zone\" appears as a key, its value must be a valid Cloud zone. * If any valid key other than \"region\" or \"zone\" appears in the map, then all valid keys other than \"region\" or \"zone\" must also appear in the map.", + "description": " If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, a policy on a limit with the unit 1/{project}/{region} could contain an entry with the key \"region\" and the value \"us-east-1\"; the policy is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in {brackets} in the unit (besides {project} or {user}) is a defined key. * \"project\" is not a valid key; the project is already specified in the parent resource name. * \"user\" is not a valid key; the API does not support quota polcies that apply only to a specific user. * If \"region\" appears as a key, its value must be a valid Cloud region. * If \"zone\" appears as a key, its value must be a valid Cloud zone. * If any valid key other than \"region\" or \"zone\" appears in the map, then all valid keys other than \"region\" or \"zone\" must also appear in the map.", "type": "object" }, "metric": { diff --git a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go index 176a3f5a989..bd7820d4b01 100644 --- a/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1beta1/serviceconsumermanagement-gen.go @@ -794,7 +794,10 @@ type ClientLibrarySettings struct { // RubySettings: Settings for Ruby client libraries. RubySettings *RubySettings `json:"rubySettings,omitempty"` - // Version: Version of the API to apply these settings to. + // Version: Version of the API to apply these settings to. This is the + // full protobuf package for the API, ending in the version element. + // Examples: "google.cloud.speech.v1" and + // "google.spanner.admin.database.v1". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CppSettings") to @@ -1257,6 +1260,35 @@ type DotnetSettings struct { // Common: Some settings. Common *CommonLanguageSettings `json:"common,omitempty"` + // ForcedNamespaceAliases: Namespaces which must be aliased in snippets + // due to a known (but non-generator-predictable) naming collision + ForcedNamespaceAliases []string `json:"forcedNamespaceAliases,omitempty"` + + // HandwrittenSignatures: Method signatures (in the form + // "service.method(signature)") which are provided separately, so + // shouldn't be generated. Snippets *calling* these methods are still + // generated, however. + HandwrittenSignatures []string `json:"handwrittenSignatures,omitempty"` + + // IgnoredResources: List of full resource types to ignore during + // generation. This is typically used for API-specific Location + // resources, which should be handled by the generator as if they were + // actually the common Location resources. Example entry: + // "documentai.googleapis.com/Location" + IgnoredResources []string `json:"ignoredResources,omitempty"` + + // RenamedResources: Map from full resource types to the effective short + // name for the resource. This is used when otherwise resource named + // from different services would cause naming collisions. Example entry: + // "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + RenamedResources map[string]string `json:"renamedResources,omitempty"` + + // RenamedServices: Map from original service names to renamed versions. + // This is used when the default generated types would cause a naming + // conflict. (Neither name is fully-qualified.) Example: Subscriber to + // SubscriberServiceApi. + RenamedServices map[string]string `json:"renamedServices,omitempty"` + // ForceSendFields is a list of field names (e.g. "Common") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2191,10 +2223,11 @@ type MethodSettings struct { // LongRunning: Describes settings to use for long-running operations // when generating API methods for RPCs. Complements RPCs that use the // annotations in google/longrunning/operations.proto. Example of a YAML - // configuration:: publishing: method_behavior: - selector: - // CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 - // minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 - // minutes total_poll_timeout: seconds: 54000 # 90 minutes + // configuration:: publishing: method_settings: - selector: + // google.cloud.speech.v2.Speech.BatchRecognize long_running: + // initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 + // max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: + // 54000 # 90 minutes LongRunning *LongRunning `json:"longRunning,omitempty"` // Selector: The fully qualified name of the method, for which the @@ -2552,7 +2585,7 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) { // The mixin construct implies that all methods in `AccessControl` are // also declared with same name and request/response types in `Storage`. // A documentation generator or annotation processor will see the -// effective `Storage.GetAcl` method after inheriting documentation and +// effective `Storage.GetAcl` method after inherting documentation and // annotations as follows: service Storage { // Get the underlying ACL // object. rpc GetAcl(GetAclRequest) returns (Acl) { option // (google.api.http).get = "/v2/{resource=**}:getAcl"; } ... } Note how @@ -3911,10 +3944,11 @@ type V1Beta1ConsumerQuotaLimit struct { Metric string `json:"metric,omitempty"` // Name: The resource name of the quota limit. An example name would be: - // `services/compute.googleapis.com/projects/123/quotas/metrics/compute.g - // oogleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource name is - // intended to be opaque and should not be parsed for its component - // strings, since its representation could change in the future. + // `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/com + // pute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource + // name is intended to be opaque and should not be parsed for its + // component strings, since its representation could change in the + // future. Name string `json:"name,omitempty"` // QuotaBuckets: Summary of the enforced quota buckets, organized by @@ -3985,10 +4019,10 @@ type V1Beta1ConsumerQuotaMetric struct { // Name: The resource name of the quota settings on this metric for this // consumer. An example name would be: - // `services/serviceconsumermanagement.googleapis.com/projects/123/quota/ - // metrics/compute.googleapis.com%2Fcpus The resource name is intended - // to be opaque and should not be parsed for its component strings, - // since its representation could change in the future. + // `services/serviceconsumermanagement.googleapis.com/projects/123/consum + // erQuotaMetrics/compute.googleapis.com%2Fcpus` The resource name is + // intended to be opaque and should not be parsed for its component + // strings, since its representation could change in the future. Name string `json:"name,omitempty"` // Unit: The units in which the metric value is reported. @@ -4290,17 +4324,17 @@ type V1Beta1ProducerQuotaPolicy struct { // Dimensions: If this map is nonempty, then this policy applies only // to specific values for dimensions defined in the limit unit. For - // example, an policy on a limit with the unit 1/{project}/{region} - // could contain an entry with the key "region" and the value - // "us-east-1"; the policy is only applied to quota consumed in that - // region. This map has the following restrictions: * Keys that are not - // defined in the limit's unit are not valid keys. Any string appearing - // in {brackets} in the unit (besides {project} or {user}) is a defined - // key. * "project" is not a valid key; the project is already specified - // in the parent resource name. * "user" is not a valid key; the API - // does not support quota polcies that apply only to a specific user. * - // If "region" appears as a key, its value must be a valid Cloud region. - // * If "zone" appears as a key, its value must be a valid Cloud zone. * + // example, a policy on a limit with the unit 1/{project}/{region} could + // contain an entry with the key "region" and the value "us-east-1"; the + // policy is only applied to quota consumed in that region. This map has + // the following restrictions: * Keys that are not defined in the + // limit's unit are not valid keys. Any string appearing in {brackets} + // in the unit (besides {project} or {user}) is a defined key. * + // "project" is not a valid key; the project is already specified in the + // parent resource name. * "user" is not a valid key; the API does not + // support quota polcies that apply only to a specific user. * If + // "region" appears as a key, its value must be a valid Cloud region. * + // If "zone" appears as a key, its value must be a valid Cloud zone. * // If any valid key other than "region" or "zone" appears in the map, // then all valid keys other than "region" or "zone" must also appear in // the map. diff --git a/servicecontrol/v1/servicecontrol-api.json b/servicecontrol/v1/servicecontrol-api.json index 1ad7cc402fe..67ed5777d7b 100644 --- a/servicecontrol/v1/servicecontrol-api.json +++ b/servicecontrol/v1/servicecontrol-api.json @@ -197,7 +197,7 @@ } } }, - "revision": "20230221", + "revision": "20230317", "rootUrl": "https://servicecontrol.googleapis.com/", "schemas": { "AllocateInfo": { @@ -1630,7 +1630,7 @@ "additionalProperties": { "type": "string" }, - "description": "Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations", + "description": "Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/", "type": "object" }, "createTime": { diff --git a/servicecontrol/v1/servicecontrol-gen.go b/servicecontrol/v1/servicecontrol-gen.go index a795e3261eb..34190653c78 100644 --- a/servicecontrol/v1/servicecontrol-gen.go +++ b/servicecontrol/v1/servicecontrol-gen.go @@ -2482,7 +2482,7 @@ type Resource struct { // a resource that may be set by external tools to store and retrieve // arbitrary metadata. They are not queryable and should be preserved // when modifying objects. More info: - // https://kubernetes.io/docs/user-guide/annotations + // https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ Annotations map[string]string `json:"annotations,omitempty"` // CreateTime: Output only. The timestamp when the resource was created. diff --git a/servicecontrol/v2/servicecontrol-api.json b/servicecontrol/v2/servicecontrol-api.json index cd9207b1309..a723f7f5b48 100644 --- a/servicecontrol/v2/servicecontrol-api.json +++ b/servicecontrol/v2/servicecontrol-api.json @@ -169,7 +169,7 @@ } } }, - "revision": "20230210", + "revision": "20230317", "rootUrl": "https://servicecontrol.googleapis.com/", "schemas": { "Api": { @@ -687,7 +687,7 @@ "additionalProperties": { "type": "string" }, - "description": "Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations", + "description": "Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/", "type": "object" }, "createTime": { diff --git a/servicecontrol/v2/servicecontrol-gen.go b/servicecontrol/v2/servicecontrol-gen.go index b142d0cca0c..17e49a65868 100644 --- a/servicecontrol/v2/servicecontrol-gen.go +++ b/servicecontrol/v2/servicecontrol-gen.go @@ -1003,7 +1003,7 @@ type Resource struct { // a resource that may be set by external tools to store and retrieve // arbitrary metadata. They are not queryable and should be preserved // when modifying objects. More info: - // https://kubernetes.io/docs/user-guide/annotations + // https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ Annotations map[string]string `json:"annotations,omitempty"` // CreateTime: Output only. The timestamp when the resource was created. diff --git a/servicedirectory/v1beta1/servicedirectory-api.json b/servicedirectory/v1beta1/servicedirectory-api.json index 841856cf2db..208f2caebc8 100644 --- a/servicedirectory/v1beta1/servicedirectory-api.json +++ b/servicedirectory/v1beta1/servicedirectory-api.json @@ -1147,7 +1147,7 @@ } } }, - "revision": "20230209", + "revision": "20230316", "rootUrl": "https://servicedirectory.googleapis.com/", "schemas": { "Binding": { @@ -1212,6 +1212,11 @@ "format": "int32", "type": "integer" }, + "uid": { + "description": "Output only. A globally unique identifier (in UUID4 format) for this endpoint.", + "readOnly": true, + "type": "string" + }, "updateTime": { "description": "Output only. The timestamp when the endpoint was last updated.", "format": "google-datetime", @@ -1394,6 +1399,11 @@ "description": "Immutable. The resource name for the namespace in the format `projects/*/locations/*/namespaces/*`.", "type": "string" }, + "uid": { + "description": "Output only. A globally unique identifier (in UUID4 format) for this namespace.", + "readOnly": true, + "type": "string" + }, "updateTime": { "description": "Output only. The timestamp when the namespace was last updated.", "format": "google-datetime", @@ -1482,6 +1492,11 @@ "description": "Immutable. The resource name for the service in the format `projects/*/locations/*/namespaces/*/services/*`.", "type": "string" }, + "uid": { + "description": "Output only. A globally unique identifier (in UUID4 format) for this service.", + "readOnly": true, + "type": "string" + }, "updateTime": { "description": "Output only. The timestamp when the service was last updated. Note: endpoints being created/deleted/updated within the service are not considered service updates for the purpose of this timestamp.", "format": "google-datetime", diff --git a/servicedirectory/v1beta1/servicedirectory-gen.go b/servicedirectory/v1beta1/servicedirectory-gen.go index 0f3fd1f4ece..2cdd8a88014 100644 --- a/servicedirectory/v1beta1/servicedirectory-gen.go +++ b/servicedirectory/v1beta1/servicedirectory-gen.go @@ -364,6 +364,10 @@ type Endpoint struct { // 65535]`. Port int64 `json:"port,omitempty"` + // Uid: Output only. A globally unique identifier (in UUID4 format) for + // this endpoint. + Uid string `json:"uid,omitempty"` + // UpdateTime: Output only. The timestamp when the endpoint was last // updated. UpdateTime string `json:"updateTime,omitempty"` @@ -740,6 +744,10 @@ type Namespace struct { // `projects/*/locations/*/namespaces/*`. Name string `json:"name,omitempty"` + // Uid: Output only. A globally unique identifier (in UUID4 format) for + // this namespace. + Uid string `json:"uid,omitempty"` + // UpdateTime: Output only. The timestamp when the namespace was last // updated. UpdateTime string `json:"updateTime,omitempty"` @@ -1003,6 +1011,10 @@ type Service struct { // `projects/*/locations/*/namespaces/*/services/*`. Name string `json:"name,omitempty"` + // Uid: Output only. A globally unique identifier (in UUID4 format) for + // this service. + Uid string `json:"uid,omitempty"` + // UpdateTime: Output only. The timestamp when the service was last // updated. Note: endpoints being created/deleted/updated within the // service are not considered service updates for the purpose of this diff --git a/servicemanagement/v1/servicemanagement-api.json b/servicemanagement/v1/servicemanagement-api.json index 2651093aa06..bef63e7b67b 100644 --- a/servicemanagement/v1/servicemanagement-api.json +++ b/servicemanagement/v1/servicemanagement-api.json @@ -829,7 +829,7 @@ } } }, - "revision": "20230310", + "revision": "20230317", "rootUrl": "https://servicemanagement.googleapis.com/", "schemas": { "Advice": { @@ -1250,7 +1250,7 @@ "description": "Settings for Ruby client libraries." }, "version": { - "description": "Version of the API to apply these settings to.", + "description": "Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: \"google.cloud.speech.v1\" and \"google.spanner.admin.database.v1\".", "type": "string" } }, @@ -2324,7 +2324,7 @@ "properties": { "longRunning": { "$ref": "LongRunning", - "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_behavior: - selector: CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" + "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" }, "selector": { "description": "The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.", @@ -2501,7 +2501,7 @@ "type": "object" }, "Mixin": { - "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", + "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", "id": "Mixin", "properties": { "name": { diff --git a/servicemanagement/v1/servicemanagement-gen.go b/servicemanagement/v1/servicemanagement-gen.go index 48a38b0a0c2..6af28225b2a 100644 --- a/servicemanagement/v1/servicemanagement-gen.go +++ b/servicemanagement/v1/servicemanagement-gen.go @@ -1050,7 +1050,10 @@ type ClientLibrarySettings struct { // RubySettings: Settings for Ruby client libraries. RubySettings *RubySettings `json:"rubySettings,omitempty"` - // Version: Version of the API to apply these settings to. + // Version: Version of the API to apply these settings to. This is the + // full protobuf package for the API, ending in the version element. + // Examples: "google.cloud.speech.v1" and + // "google.spanner.admin.database.v1". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CppSettings") to @@ -3099,10 +3102,11 @@ type MethodSettings struct { // LongRunning: Describes settings to use for long-running operations // when generating API methods for RPCs. Complements RPCs that use the // annotations in google/longrunning/operations.proto. Example of a YAML - // configuration:: publishing: method_behavior: - selector: - // CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 - // minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 - // minutes total_poll_timeout: seconds: 54000 # 90 minutes + // configuration:: publishing: method_settings: - selector: + // google.cloud.speech.v2.Speech.BatchRecognize long_running: + // initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 + // max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: + // 54000 # 90 minutes LongRunning *LongRunning `json:"longRunning,omitempty"` // Selector: The fully qualified name of the method, for which the @@ -3460,7 +3464,7 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) { // The mixin construct implies that all methods in `AccessControl` are // also declared with same name and request/response types in `Storage`. // A documentation generator or annotation processor will see the -// effective `Storage.GetAcl` method after inheriting documentation and +// effective `Storage.GetAcl` method after inherting documentation and // annotations as follows: service Storage { // Get the underlying ACL // object. rpc GetAcl(GetAclRequest) returns (Acl) { option // (google.api.http).get = "/v2/{resource=**}:getAcl"; } ... } Note how diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index a825ab9fabe..1c73a51b030 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -865,7 +865,7 @@ } } }, - "revision": "20230315", + "revision": "20230329", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -1827,6 +1827,41 @@ "common": { "$ref": "CommonLanguageSettings", "description": "Some settings." + }, + "forcedNamespaceAliases": { + "description": "Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision", + "items": { + "type": "string" + }, + "type": "array" + }, + "handwrittenSignatures": { + "description": "Method signatures (in the form \"service.method(signature)\") which are provided separately, so shouldn't be generated. Snippets *calling* these methods are still generated, however.", + "items": { + "type": "string" + }, + "type": "array" + }, + "ignoredResources": { + "description": "List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: \"documentai.googleapis.com/Location\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "renamedResources": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"", + "type": "object" + }, + "renamedServices": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.", + "type": "object" } }, "type": "object" @@ -2464,7 +2499,7 @@ "properties": { "longRunning": { "$ref": "LongRunning", - "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_behavior: - selector: CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" + "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" }, "selector": { "description": "The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.", @@ -2641,7 +2676,7 @@ "type": "object" }, "Mixin": { - "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", + "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", "id": "Mixin", "properties": { "name": { diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index 1c765710767..2c633a8ebbe 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -2050,6 +2050,35 @@ type DotnetSettings struct { // Common: Some settings. Common *CommonLanguageSettings `json:"common,omitempty"` + // ForcedNamespaceAliases: Namespaces which must be aliased in snippets + // due to a known (but non-generator-predictable) naming collision + ForcedNamespaceAliases []string `json:"forcedNamespaceAliases,omitempty"` + + // HandwrittenSignatures: Method signatures (in the form + // "service.method(signature)") which are provided separately, so + // shouldn't be generated. Snippets *calling* these methods are still + // generated, however. + HandwrittenSignatures []string `json:"handwrittenSignatures,omitempty"` + + // IgnoredResources: List of full resource types to ignore during + // generation. This is typically used for API-specific Location + // resources, which should be handled by the generator as if they were + // actually the common Location resources. Example entry: + // "documentai.googleapis.com/Location" + IgnoredResources []string `json:"ignoredResources,omitempty"` + + // RenamedResources: Map from full resource types to the effective short + // name for the resource. This is used when otherwise resource named + // from different services would cause naming collisions. Example entry: + // "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + RenamedResources map[string]string `json:"renamedResources,omitempty"` + + // RenamedServices: Map from original service names to renamed versions. + // This is used when the default generated types would cause a naming + // conflict. (Neither name is fully-qualified.) Example: Subscriber to + // SubscriberServiceApi. + RenamedServices map[string]string `json:"renamedServices,omitempty"` + // ForceSendFields is a list of field names (e.g. "Common") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -3255,10 +3284,11 @@ type MethodSettings struct { // LongRunning: Describes settings to use for long-running operations // when generating API methods for RPCs. Complements RPCs that use the // annotations in google/longrunning/operations.proto. Example of a YAML - // configuration:: publishing: method_behavior: - selector: - // CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 - // minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 - // minutes total_poll_timeout: seconds: 54000 # 90 minutes + // configuration:: publishing: method_settings: - selector: + // google.cloud.speech.v2.Speech.BatchRecognize long_running: + // initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 + // max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: + // 54000 # 90 minutes LongRunning *LongRunning `json:"longRunning,omitempty"` // Selector: The fully qualified name of the method, for which the @@ -3616,7 +3646,7 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) { // The mixin construct implies that all methods in `AccessControl` are // also declared with same name and request/response types in `Storage`. // A documentation generator or annotation processor will see the -// effective `Storage.GetAcl` method after inheriting documentation and +// effective `Storage.GetAcl` method after inherting documentation and // annotations as follows: service Storage { // Get the underlying ACL // object. rpc GetAcl(GetAclRequest) returns (Acl) { option // (google.api.http).get = "/v2/{resource=**}:getAcl"; } ... } Note how diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index 421e6dad470..64fe02aa6b3 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20230315", + "revision": "20230329", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -1126,6 +1126,41 @@ "common": { "$ref": "CommonLanguageSettings", "description": "Some settings." + }, + "forcedNamespaceAliases": { + "description": "Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision", + "items": { + "type": "string" + }, + "type": "array" + }, + "handwrittenSignatures": { + "description": "Method signatures (in the form \"service.method(signature)\") which are provided separately, so shouldn't be generated. Snippets *calling* these methods are still generated, however.", + "items": { + "type": "string" + }, + "type": "array" + }, + "ignoredResources": { + "description": "List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: \"documentai.googleapis.com/Location\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "renamedResources": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"", + "type": "object" + }, + "renamedServices": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.", + "type": "object" } }, "type": "object" @@ -1714,7 +1749,7 @@ "properties": { "longRunning": { "$ref": "LongRunning", - "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_behavior: - selector: CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" + "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" }, "selector": { "description": "The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.", @@ -1891,7 +1926,7 @@ "type": "object" }, "Mixin": { - "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", + "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", "id": "Mixin", "properties": { "name": { diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index 67f1249fb58..1f1034f22ed 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -1662,6 +1662,35 @@ type DotnetSettings struct { // Common: Some settings. Common *CommonLanguageSettings `json:"common,omitempty"` + // ForcedNamespaceAliases: Namespaces which must be aliased in snippets + // due to a known (but non-generator-predictable) naming collision + ForcedNamespaceAliases []string `json:"forcedNamespaceAliases,omitempty"` + + // HandwrittenSignatures: Method signatures (in the form + // "service.method(signature)") which are provided separately, so + // shouldn't be generated. Snippets *calling* these methods are still + // generated, however. + HandwrittenSignatures []string `json:"handwrittenSignatures,omitempty"` + + // IgnoredResources: List of full resource types to ignore during + // generation. This is typically used for API-specific Location + // resources, which should be handled by the generator as if they were + // actually the common Location resources. Example entry: + // "documentai.googleapis.com/Location" + IgnoredResources []string `json:"ignoredResources,omitempty"` + + // RenamedResources: Map from full resource types to the effective short + // name for the resource. This is used when otherwise resource named + // from different services would cause naming collisions. Example entry: + // "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + RenamedResources map[string]string `json:"renamedResources,omitempty"` + + // RenamedServices: Map from original service names to renamed versions. + // This is used when the default generated types would cause a naming + // conflict. (Neither name is fully-qualified.) Example: Subscriber to + // SubscriberServiceApi. + RenamedServices map[string]string `json:"renamedServices,omitempty"` + // ForceSendFields is a list of field names (e.g. "Common") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2752,10 +2781,11 @@ type MethodSettings struct { // LongRunning: Describes settings to use for long-running operations // when generating API methods for RPCs. Complements RPCs that use the // annotations in google/longrunning/operations.proto. Example of a YAML - // configuration:: publishing: method_behavior: - selector: - // CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 - // minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 - // minutes total_poll_timeout: seconds: 54000 # 90 minutes + // configuration:: publishing: method_settings: - selector: + // google.cloud.speech.v2.Speech.BatchRecognize long_running: + // initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 + // max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: + // 54000 # 90 minutes LongRunning *LongRunning `json:"longRunning,omitempty"` // Selector: The fully qualified name of the method, for which the @@ -3113,7 +3143,7 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) { // The mixin construct implies that all methods in `AccessControl` are // also declared with same name and request/response types in `Storage`. // A documentation generator or annotation processor will see the -// effective `Storage.GetAcl` method after inheriting documentation and +// effective `Storage.GetAcl` method after inherting documentation and // annotations as follows: service Storage { // Get the underlying ACL // object. rpc GetAcl(GetAclRequest) returns (Acl) { option // (google.api.http).get = "/v2/{resource=**}:getAcl"; } ... } Note how diff --git a/serviceusage/v1/serviceusage-api.json b/serviceusage/v1/serviceusage-api.json index a3174d8b4f4..caa8bc6174f 100644 --- a/serviceusage/v1/serviceusage-api.json +++ b/serviceusage/v1/serviceusage-api.json @@ -426,7 +426,7 @@ } } }, - "revision": "20230309", + "revision": "20230330", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AdminQuotaPolicy": { @@ -870,7 +870,7 @@ "description": "Settings for Ruby client libraries." }, "version": { - "description": "Version of the API to apply these settings to.", + "description": "Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: \"google.cloud.speech.v1\" and \"google.spanner.admin.database.v1\".", "type": "string" } }, @@ -1141,6 +1141,41 @@ "common": { "$ref": "CommonLanguageSettings", "description": "Some settings." + }, + "forcedNamespaceAliases": { + "description": "Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision", + "items": { + "type": "string" + }, + "type": "array" + }, + "handwrittenSignatures": { + "description": "Method signatures (in the form \"service.method(signature)\") which are provided separately, so shouldn't be generated. Snippets *calling* these methods are still generated, however.", + "items": { + "type": "string" + }, + "type": "array" + }, + "ignoredResources": { + "description": "List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: \"documentai.googleapis.com/Location\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "renamedResources": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"", + "type": "object" + }, + "renamedServices": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.", + "type": "object" } }, "type": "object" @@ -2094,7 +2129,7 @@ "properties": { "longRunning": { "$ref": "LongRunning", - "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_behavior: - selector: CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" + "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" }, "selector": { "description": "The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.", @@ -2271,7 +2306,7 @@ "type": "object" }, "Mixin": { - "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", + "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", "id": "Mixin", "properties": { "name": { diff --git a/serviceusage/v1/serviceusage-gen.go b/serviceusage/v1/serviceusage-gen.go index 22a1f05c845..c0099ae8461 100644 --- a/serviceusage/v1/serviceusage-gen.go +++ b/serviceusage/v1/serviceusage-gen.go @@ -998,7 +998,10 @@ type ClientLibrarySettings struct { // RubySettings: Settings for Ruby client libraries. RubySettings *RubySettings `json:"rubySettings,omitempty"` - // Version: Version of the API to apply these settings to. + // Version: Version of the API to apply these settings to. This is the + // full protobuf package for the API, ending in the version element. + // Examples: "google.cloud.speech.v1" and + // "google.spanner.admin.database.v1". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CppSettings") to @@ -1553,6 +1556,35 @@ type DotnetSettings struct { // Common: Some settings. Common *CommonLanguageSettings `json:"common,omitempty"` + // ForcedNamespaceAliases: Namespaces which must be aliased in snippets + // due to a known (but non-generator-predictable) naming collision + ForcedNamespaceAliases []string `json:"forcedNamespaceAliases,omitempty"` + + // HandwrittenSignatures: Method signatures (in the form + // "service.method(signature)") which are provided separately, so + // shouldn't be generated. Snippets *calling* these methods are still + // generated, however. + HandwrittenSignatures []string `json:"handwrittenSignatures,omitempty"` + + // IgnoredResources: List of full resource types to ignore during + // generation. This is typically used for API-specific Location + // resources, which should be handled by the generator as if they were + // actually the common Location resources. Example entry: + // "documentai.googleapis.com/Location" + IgnoredResources []string `json:"ignoredResources,omitempty"` + + // RenamedResources: Map from full resource types to the effective short + // name for the resource. This is used when otherwise resource named + // from different services would cause naming collisions. Example entry: + // "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + RenamedResources map[string]string `json:"renamedResources,omitempty"` + + // RenamedServices: Map from original service names to renamed versions. + // This is used when the default generated types would cause a naming + // conflict. (Neither name is fully-qualified.) Example: Subscriber to + // SubscriberServiceApi. + RenamedServices map[string]string `json:"renamedServices,omitempty"` + // ForceSendFields is a list of field names (e.g. "Common") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -3164,10 +3196,11 @@ type MethodSettings struct { // LongRunning: Describes settings to use for long-running operations // when generating API methods for RPCs. Complements RPCs that use the // annotations in google/longrunning/operations.proto. Example of a YAML - // configuration:: publishing: method_behavior: - selector: - // CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 - // minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 - // minutes total_poll_timeout: seconds: 54000 # 90 minutes + // configuration:: publishing: method_settings: - selector: + // google.cloud.speech.v2.Speech.BatchRecognize long_running: + // initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 + // max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: + // 54000 # 90 minutes LongRunning *LongRunning `json:"longRunning,omitempty"` // Selector: The fully qualified name of the method, for which the @@ -3525,7 +3558,7 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) { // The mixin construct implies that all methods in `AccessControl` are // also declared with same name and request/response types in `Storage`. // A documentation generator or annotation processor will see the -// effective `Storage.GetAcl` method after inheriting documentation and +// effective `Storage.GetAcl` method after inherting documentation and // annotations as follows: service Storage { // Get the underlying ACL // object. rpc GetAcl(GetAclRequest) returns (Acl) { option // (google.api.http).get = "/v2/{resource=**}:getAcl"; } ... } Note how diff --git a/serviceusage/v1beta1/serviceusage-api.json b/serviceusage/v1beta1/serviceusage-api.json index f7ebd477a65..778077d649f 100644 --- a/serviceusage/v1beta1/serviceusage-api.json +++ b/serviceusage/v1beta1/serviceusage-api.json @@ -959,7 +959,7 @@ } } }, - "revision": "20230309", + "revision": "20230330", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AdminQuotaPolicy": { @@ -1383,7 +1383,7 @@ "description": "Settings for Ruby client libraries." }, "version": { - "description": "Version of the API to apply these settings to.", + "description": "Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: \"google.cloud.speech.v1\" and \"google.spanner.admin.database.v1\".", "type": "string" } }, @@ -1713,6 +1713,41 @@ "common": { "$ref": "CommonLanguageSettings", "description": "Some settings." + }, + "forcedNamespaceAliases": { + "description": "Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision", + "items": { + "type": "string" + }, + "type": "array" + }, + "handwrittenSignatures": { + "description": "Method signatures (in the form \"service.method(signature)\") which are provided separately, so shouldn't be generated. Snippets *calling* these methods are still generated, however.", + "items": { + "type": "string" + }, + "type": "array" + }, + "ignoredResources": { + "description": "List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: \"documentai.googleapis.com/Location\"", + "items": { + "type": "string" + }, + "type": "array" + }, + "renamedResources": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: \"datalabeling.googleapis.com/Dataset\": \"DataLabelingDataset\"", + "type": "object" + }, + "renamedServices": { + "additionalProperties": { + "type": "string" + }, + "description": "Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.", + "type": "object" } }, "type": "object" @@ -2784,7 +2819,7 @@ "properties": { "longRunning": { "$ref": "LongRunning", - "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_behavior: - selector: CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" + "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" }, "selector": { "description": "The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.", @@ -2961,7 +2996,7 @@ "type": "object" }, "Mixin": { - "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", + "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", "id": "Mixin", "properties": { "name": { diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index 03bd5c527d9..ad9dad7a2ab 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -1010,7 +1010,10 @@ type ClientLibrarySettings struct { // RubySettings: Settings for Ruby client libraries. RubySettings *RubySettings `json:"rubySettings,omitempty"` - // Version: Version of the API to apply these settings to. + // Version: Version of the API to apply these settings to. This is the + // full protobuf package for the API, ending in the version element. + // Examples: "google.cloud.speech.v1" and + // "google.spanner.admin.database.v1". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CppSettings") to @@ -1648,6 +1651,35 @@ type DotnetSettings struct { // Common: Some settings. Common *CommonLanguageSettings `json:"common,omitempty"` + // ForcedNamespaceAliases: Namespaces which must be aliased in snippets + // due to a known (but non-generator-predictable) naming collision + ForcedNamespaceAliases []string `json:"forcedNamespaceAliases,omitempty"` + + // HandwrittenSignatures: Method signatures (in the form + // "service.method(signature)") which are provided separately, so + // shouldn't be generated. Snippets *calling* these methods are still + // generated, however. + HandwrittenSignatures []string `json:"handwrittenSignatures,omitempty"` + + // IgnoredResources: List of full resource types to ignore during + // generation. This is typically used for API-specific Location + // resources, which should be handled by the generator as if they were + // actually the common Location resources. Example entry: + // "documentai.googleapis.com/Location" + IgnoredResources []string `json:"ignoredResources,omitempty"` + + // RenamedResources: Map from full resource types to the effective short + // name for the resource. This is used when otherwise resource named + // from different services would cause naming collisions. Example entry: + // "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + RenamedResources map[string]string `json:"renamedResources,omitempty"` + + // RenamedServices: Map from original service names to renamed versions. + // This is used when the default generated types would cause a naming + // conflict. (Neither name is fully-qualified.) Example: Subscriber to + // SubscriberServiceApi. + RenamedServices map[string]string `json:"renamedServices,omitempty"` + // ForceSendFields is a list of field names (e.g. "Common") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -3463,10 +3495,11 @@ type MethodSettings struct { // LongRunning: Describes settings to use for long-running operations // when generating API methods for RPCs. Complements RPCs that use the // annotations in google/longrunning/operations.proto. Example of a YAML - // configuration:: publishing: method_behavior: - selector: - // CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 - // minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 - // minutes total_poll_timeout: seconds: 54000 # 90 minutes + // configuration:: publishing: method_settings: - selector: + // google.cloud.speech.v2.Speech.BatchRecognize long_running: + // initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 + // max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: + // 54000 # 90 minutes LongRunning *LongRunning `json:"longRunning,omitempty"` // Selector: The fully qualified name of the method, for which the @@ -3824,7 +3857,7 @@ func (s *MetricRule) MarshalJSON() ([]byte, error) { // The mixin construct implies that all methods in `AccessControl` are // also declared with same name and request/response types in `Storage`. // A documentation generator or annotation processor will see the -// effective `Storage.GetAcl` method after inheriting documentation and +// effective `Storage.GetAcl` method after inherting documentation and // annotations as follows: service Storage { // Get the underlying ACL // object. rpc GetAcl(GetAclRequest) returns (Acl) { option // (google.api.http).get = "/v2/{resource=**}:getAcl"; } ... } Note how diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 61b027f2af5..97489b44114 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -2402,7 +2402,7 @@ } } }, - "revision": "20230310", + "revision": "20230323", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "Backup": { @@ -2428,7 +2428,7 @@ ], "enumDescriptions": [ "Default value. This value will create a database with the GOOGLE_STANDARD_SQL dialect.", - "Google standard SQL.", + "GoogleSQL supported SQL.", "PostgreSQL supported SQL." ], "readOnly": true, @@ -2835,7 +2835,7 @@ ], "enumDescriptions": [ "Default value. This value will create a database with the GOOGLE_STANDARD_SQL dialect.", - "Google standard SQL.", + "GoogleSQL supported SQL.", "PostgreSQL supported SQL." ], "type": "string" @@ -2969,7 +2969,7 @@ ], "enumDescriptions": [ "Default value. This value will create a database with the GOOGLE_STANDARD_SQL dialect.", - "Google standard SQL.", + "GoogleSQL supported SQL.", "PostgreSQL supported SQL." ], "readOnly": true, @@ -5225,7 +5225,7 @@ "type": "array" }, "throttled": { - "description": "Output only. When true, indicates that the operation is throttled e.g due to resource constraints. When resources become available the operation will resume and this field will be false again.", + "description": "Output only. When true, indicates that the operation is throttled e.g. due to resource constraints. When resources become available the operation will resume and this field will be false again.", "readOnly": true, "type": "boolean" } diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index aa7044342e5..82bba0891fd 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -348,7 +348,7 @@ type Backup struct { // Possible values: // "DATABASE_DIALECT_UNSPECIFIED" - Default value. This value will // create a database with the GOOGLE_STANDARD_SQL dialect. - // "GOOGLE_STANDARD_SQL" - Google standard SQL. + // "GOOGLE_STANDARD_SQL" - GoogleSQL supported SQL. // "POSTGRESQL" - PostgreSQL supported SQL. DatabaseDialect string `json:"databaseDialect,omitempty"` @@ -1129,7 +1129,7 @@ type CreateDatabaseRequest struct { // Possible values: // "DATABASE_DIALECT_UNSPECIFIED" - Default value. This value will // create a database with the GOOGLE_STANDARD_SQL dialect. - // "GOOGLE_STANDARD_SQL" - Google standard SQL. + // "GOOGLE_STANDARD_SQL" - GoogleSQL supported SQL. // "POSTGRESQL" - PostgreSQL supported SQL. DatabaseDialect string `json:"databaseDialect,omitempty"` @@ -1377,7 +1377,7 @@ type Database struct { // Possible values: // "DATABASE_DIALECT_UNSPECIFIED" - Default value. This value will // create a database with the GOOGLE_STANDARD_SQL dialect. - // "GOOGLE_STANDARD_SQL" - Google standard SQL. + // "GOOGLE_STANDARD_SQL" - GoogleSQL supported SQL. // "POSTGRESQL" - PostgreSQL supported SQL. DatabaseDialect string `json:"databaseDialect,omitempty"` @@ -5746,7 +5746,7 @@ type UpdateDatabaseDdlMetadata struct { Statements []string `json:"statements,omitempty"` // Throttled: Output only. When true, indicates that the operation is - // throttled e.g due to resource constraints. When resources become + // throttled e.g. due to resource constraints. When resources become // available the operation will resume and this field will be false // again. Throttled bool `json:"throttled,omitempty"` diff --git a/tpu/v1/tpu-api.json b/tpu/v1/tpu-api.json index 3dab07c96aa..ab54ab2abad 100644 --- a/tpu/v1/tpu-api.json +++ b/tpu/v1/tpu-api.json @@ -537,7 +537,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "tpu.projects.locations.operations.list", @@ -659,7 +659,7 @@ } } }, - "revision": "20220725", + "revision": "20230323", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorType": { diff --git a/tpu/v1/tpu-gen.go b/tpu/v1/tpu-gen.go index e0627315b01..fd9e88e8700 100644 --- a/tpu/v1/tpu-gen.go +++ b/tpu/v1/tpu-gen.go @@ -3187,14 +3187,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -3323,7 +3316,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "tpu.projects.locations.operations.list", diff --git a/tpu/v1alpha1/tpu-api.json b/tpu/v1alpha1/tpu-api.json index 12c8b52036e..e9913ac7c7d 100644 --- a/tpu/v1alpha1/tpu-api.json +++ b/tpu/v1alpha1/tpu-api.json @@ -547,7 +547,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "tpu.projects.locations.operations.list", @@ -669,7 +669,7 @@ } } }, - "revision": "20220725", + "revision": "20230323", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorType": { diff --git a/tpu/v1alpha1/tpu-gen.go b/tpu/v1alpha1/tpu-gen.go index 66ee3ff9907..cc72d07b3f4 100644 --- a/tpu/v1alpha1/tpu-gen.go +++ b/tpu/v1alpha1/tpu-gen.go @@ -3211,14 +3211,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -3347,7 +3340,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "tpu.projects.locations.operations.list", diff --git a/tpu/v2/tpu-api.json b/tpu/v2/tpu-api.json index 1b2c62e2066..1ba4ef4dde9 100644 --- a/tpu/v2/tpu-api.json +++ b/tpu/v2/tpu-api.json @@ -599,7 +599,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "tpu.projects.locations.operations.list", @@ -721,7 +721,7 @@ } } }, - "revision": "20230216", + "revision": "20230323", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { diff --git a/tpu/v2/tpu-gen.go b/tpu/v2/tpu-gen.go index 5e58ac14690..1f34fbaec51 100644 --- a/tpu/v2/tpu-gen.go +++ b/tpu/v2/tpu-gen.go @@ -3900,14 +3900,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -4036,7 +4029,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "tpu.projects.locations.operations.list", diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index f71b157b62e..9ecf2e33d48 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -637,7 +637,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "tpu.projects.locations.operations.list", @@ -920,7 +920,7 @@ } } }, - "revision": "20230302", + "revision": "20230323", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index f8e9ad11759..cc665bed65f 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -4529,14 +4529,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -4665,7 +4658,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "tpu.projects.locations.operations.list", diff --git a/vault/v1/vault-api.json b/vault/v1/vault-api.json index 9452144f136..209494b53bc 100644 --- a/vault/v1/vault-api.json +++ b/vault/v1/vault-api.json @@ -1153,7 +1153,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/operations", "httpMethod": "GET", "id": "vault.operations.list", @@ -1193,7 +1193,7 @@ } } }, - "revision": "20230203", + "revision": "20230323", "rootUrl": "https://vault.googleapis.com/", "schemas": { "AccountCount": { diff --git a/vault/v1/vault-gen.go b/vault/v1/vault-gen.go index 5c76b25cae6..e3c3c1bd75f 100644 --- a/vault/v1/vault-gen.go +++ b/vault/v1/vault-gen.go @@ -7617,14 +7617,7 @@ type OperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *OperationsService) List(name string) *OperationsListCall { @@ -7753,7 +7746,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/operations", // "httpMethod": "GET", // "id": "vault.operations.list", diff --git a/vmmigration/v1/vmmigration-api.json b/vmmigration/v1/vmmigration-api.json index d1f75aba63d..8210bfa5705 100644 --- a/vmmigration/v1/vmmigration-api.json +++ b/vmmigration/v1/vmmigration-api.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20230305", + "revision": "20230323", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { @@ -1986,6 +1986,10 @@ "secretAccessKey": { "description": "Input only. AWS secret access key.", "type": "string" + }, + "sessionToken": { + "description": "Input only. AWS session token. Used only when AWS security token service (STS) is responsible for creating the temporary credentials.", + "type": "string" } }, "type": "object" diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index c1d3c17baf5..79f170bb481 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -288,6 +288,11 @@ type AccessKeyCredentials struct { // SecretAccessKey: Input only. AWS secret access key. SecretAccessKey string `json:"secretAccessKey,omitempty"` + // SessionToken: Input only. AWS session token. Used only when AWS + // security token service (STS) is responsible for creating the + // temporary credentials. + SessionToken string `json:"sessionToken,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccessKeyId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index ad71adf67a9..e0db51b9920 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -1972,7 +1972,7 @@ } } }, - "revision": "20230305", + "revision": "20230323", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { @@ -1986,6 +1986,10 @@ "secretAccessKey": { "description": "Input only. AWS secret access key.", "type": "string" + }, + "sessionToken": { + "description": "Input only. AWS session token. Used only when AWS security token service (STS) is responsible for creating the temporary credentials.", + "type": "string" } }, "type": "object" diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index 01a3c2a6771..f98ebd28228 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -288,6 +288,11 @@ type AccessKeyCredentials struct { // SecretAccessKey: Input only. AWS secret access key. SecretAccessKey string `json:"secretAccessKey,omitempty"` + // SessionToken: Input only. AWS session token. Used only when AWS + // security token service (STS) is responsible for creating the + // temporary credentials. + SessionToken string `json:"sessionToken,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccessKeyId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/workflows/v1/workflows-api.json b/workflows/v1/workflows-api.json index 98eb8882bec..bbaa8a664e9 100644 --- a/workflows/v1/workflows-api.json +++ b/workflows/v1/workflows-api.json @@ -230,7 +230,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "workflows.projects.locations.operations.list", @@ -449,7 +449,7 @@ } } }, - "revision": "20230125", + "revision": "20230308", "rootUrl": "https://workflows.googleapis.com/", "schemas": { "Empty": { diff --git a/workflows/v1/workflows-gen.go b/workflows/v1/workflows-gen.go index 61e6c742656..d3ce7ad2dce 100644 --- a/workflows/v1/workflows-gen.go +++ b/workflows/v1/workflows-gen.go @@ -1244,14 +1244,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -1380,7 +1373,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "workflows.projects.locations.operations.list", diff --git a/workflows/v1beta/workflows-api.json b/workflows/v1beta/workflows-api.json index 90574c3d507..84f7fa6a3e8 100644 --- a/workflows/v1beta/workflows-api.json +++ b/workflows/v1beta/workflows-api.json @@ -230,7 +230,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "workflows.projects.locations.operations.list", @@ -444,7 +444,7 @@ } } }, - "revision": "20220406", + "revision": "20230308", "rootUrl": "https://workflows.googleapis.com/", "schemas": { "Empty": { diff --git a/workflows/v1beta/workflows-gen.go b/workflows/v1beta/workflows-gen.go index b896be5d667..fea6613bf63 100644 --- a/workflows/v1beta/workflows-gen.go +++ b/workflows/v1beta/workflows-gen.go @@ -1243,14 +1243,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -1379,7 +1372,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "workflows.projects.locations.operations.list", diff --git a/workloadmanager/v1/workloadmanager-api.json b/workloadmanager/v1/workloadmanager-api.json index 20b41b5a855..18b9cd34225 100644 --- a/workloadmanager/v1/workloadmanager-api.json +++ b/workloadmanager/v1/workloadmanager-api.json @@ -403,7 +403,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "workloadmanager.projects.locations.operations.list", @@ -450,7 +450,7 @@ } } }, - "revision": "20230301", + "revision": "20230308", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "CancelOperationRequest": { diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index 130bed35713..92554d64b30 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -2515,14 +2515,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -2651,7 +2644,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "workloadmanager.projects.locations.operations.list", diff --git a/workstations/v1beta/workstations-api.json b/workstations/v1beta/workstations-api.json index aae4154883d..0a48527b1fa 100644 --- a/workstations/v1beta/workstations-api.json +++ b/workstations/v1beta/workstations-api.json @@ -190,7 +190,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "workstations.projects.locations.operations.list", @@ -1127,7 +1127,7 @@ } } }, - "revision": "20230220", + "revision": "20230314", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/workstations/v1beta/workstations-gen.go b/workstations/v1beta/workstations-gen.go index d458dd8052a..f56a5ed502d 100644 --- a/workstations/v1beta/workstations-gen.go +++ b/workstations/v1beta/workstations-gen.go @@ -2314,14 +2314,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -2450,7 +2443,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "workstations.projects.locations.operations.list", diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index b6f22ca402e..cf652407d51 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -3831,7 +3831,7 @@ } } }, - "revision": "20230123", + "revision": "20230330", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -8052,11 +8052,6 @@ "description": "The number of viewers currently watching the broadcast. The property and its value will be present if the broadcast has current viewers and the broadcast owner has not hidden the viewcount for the video. Note that YouTube stops tracking the number of concurrent viewers for a broadcast when the broadcast ends. So, this property would not identify the number of viewers watching an archived video of a live broadcast that already ended.", "format": "uint64", "type": "string" - }, - "totalChatCount": { - "description": "The total number of live chat messages currently on the broadcast. The property and its value will be present if the broadcast is public, has the live chat feature enabled, and has at least one message. Note that this field will not be filled after the broadcast ends. So this property would not identify the number of chat messages for an archived video of a completed live broadcast.", - "format": "uint64", - "type": "string" } }, "type": "object" diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index fe5686594dc..9745b72ff8f 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -5173,14 +5173,6 @@ type LiveBroadcastStatistics struct { // an archived video of a live broadcast that already ended. ConcurrentViewers uint64 `json:"concurrentViewers,omitempty,string"` - // TotalChatCount: The total number of live chat messages currently on - // the broadcast. The property and its value will be present if the - // broadcast is public, has the live chat feature enabled, and has at - // least one message. Note that this field will not be filled after the - // broadcast ends. So this property would not identify the number of - // chat messages for an archived video of a completed live broadcast. - TotalChatCount uint64 `json:"totalChatCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "ConcurrentViewers") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any