From c4d9f1454037dbe8603cef2552cf9ce6992a8781 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 28 Jul 2023 00:28:36 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2089) --- assuredworkloads/v1/assuredworkloads-api.json | 12 +- assuredworkloads/v1/assuredworkloads-gen.go | 9 + .../v1beta1/assuredworkloads-api.json | 50 +- .../v1beta1/assuredworkloads-gen.go | 76 +- .../v1/certificatemanager-api.json | 8 +- .../v1/certificatemanager-gen.go | 3 + clouddeploy/v1/clouddeploy-api.json | 76 +- clouddeploy/v1/clouddeploy-gen.go | 134 +-- compute/v0.beta/compute-api.json | 146 ++- compute/v0.beta/compute-gen.go | 333 ++++++- container/v1beta1/container-api.json | 135 ++- .../v1/containeranalysis-api.json | 16 +- containeranalysis/v1/containeranalysis-gen.go | 42 +- .../v1alpha1/containeranalysis-api.json | 16 +- .../v1alpha1/containeranalysis-gen.go | 42 +- .../v1beta1/containeranalysis-api.json | 16 +- .../v1beta1/containeranalysis-gen.go | 42 +- contentwarehouse/v1/contentwarehouse-api.json | 658 ++++++++------ contentwarehouse/v1/contentwarehouse-gen.go | 687 ++++++++------ dataplex/v1/dataplex-api.json | 152 +++- dataplex/v1/dataplex-gen.go | 308 ++++++- firestore/v1/firestore-api.json | 4 +- firestore/v1/firestore-gen.go | 6 +- gkebackup/v1/gkebackup-api.json | 187 ++-- gkebackup/v1/gkebackup-gen.go | 412 +++++---- gkeonprem/v1/gkeonprem-api.json | 34 +- gkeonprem/v1/gkeonprem-gen.go | 40 + healthcare/v1/healthcare-api.json | 18 +- healthcare/v1/healthcare-gen.go | 35 +- healthcare/v1beta1/healthcare-api.json | 20 +- healthcare/v1beta1/healthcare-gen.go | 45 +- logging/v2/logging-api.json | 24 +- logging/v2/logging-gen.go | 67 +- monitoring/v1/monitoring-api.json | 95 +- monitoring/v1/monitoring-gen.go | 312 +------ .../v1/recaptchaenterprise-api.json | 10 +- .../v1/recaptchaenterprise-gen.go | 18 +- .../v1/servicenetworking-api.json | 178 ++-- servicenetworking/v1/servicenetworking-gen.go | 848 +++++++++--------- spanner/v1/spanner-api.json | 4 +- spanner/v1/spanner-gen.go | 4 +- sqladmin/v1/sqladmin-api.json | 38 +- sqladmin/v1/sqladmin-gen.go | 50 ++ sqladmin/v1beta4/sqladmin-api.json | 38 +- sqladmin/v1beta4/sqladmin-gen.go | 50 ++ 45 files changed, 3428 insertions(+), 2070 deletions(-) diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index 24d08ca30bf..61e08ad0ef5 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -519,7 +519,7 @@ } } }, - "revision": "20230707", + "revision": "20230721", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": { @@ -748,6 +748,12 @@ "readOnly": true, "type": "string" }, + "orgPolicyConstraint": { + "deprecated": true, + "description": "Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.", + "readOnly": true, + "type": "string" + }, "remediation": { "$ref": "GoogleCloudAssuredworkloadsV1ViolationRemediation", "description": "Output only. Compliance violation remediation", @@ -1190,6 +1196,10 @@ "deprecated": true, "description": "Allow partner to monitor folder and remediate violations", "type": "boolean" + }, + "serviceAccessApprover": { + "description": "Optional. Allow partner to view access approval logs.", + "type": "boolean" } }, "type": "object" diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index 514384dca85..28aff8756c4 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -524,6 +524,11 @@ type GoogleCloudAssuredworkloadsV1Violation struct { // organizations/{organization_id}/policies/{constraint_name} NonCompliantOrgPolicy string `json:"nonCompliantOrgPolicy,omitempty"` + // OrgPolicyConstraint: Output only. Immutable. The + // org-policy-constraint that was incorrectly changed, which resulted in + // this violation. + OrgPolicyConstraint string `json:"orgPolicyConstraint,omitempty"` + // Remediation: Output only. Compliance violation remediation Remediation *GoogleCloudAssuredworkloadsV1ViolationRemediation `json:"remediation,omitempty"` @@ -1106,6 +1111,10 @@ type GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions struct { // remediate violations RemediateFolderViolations bool `json:"remediateFolderViolations,omitempty"` + // ServiceAccessApprover: Optional. Allow partner to view access + // approval logs. + ServiceAccessApprover bool `json:"serviceAccessApprover,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataLogsViewer") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/assuredworkloads/v1beta1/assuredworkloads-api.json b/assuredworkloads/v1beta1/assuredworkloads-api.json index 5d8821436b4..e0e084faaae 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-api.json +++ b/assuredworkloads/v1beta1/assuredworkloads-api.json @@ -595,7 +595,7 @@ } } }, - "revision": "20230707", + "revision": "20230721", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": { @@ -825,6 +825,12 @@ "readOnly": true, "type": "string" }, + "orgPolicyConstraint": { + "deprecated": true, + "description": "Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.", + "readOnly": true, + "type": "string" + }, "remediation": { "$ref": "GoogleCloudAssuredworkloadsV1beta1ViolationRemediation", "description": "Output only. Compliance violation remediation", @@ -1060,11 +1066,6 @@ "readOnly": true, "type": "array" }, - "controls": { - "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControls", - "description": "Output only. Controls associated with the customer workload", - "readOnly": true - }, "createTime": { "description": "Output only. Immutable. The Workload creation timestamp.", "format": "google-datetime", @@ -1198,39 +1199,6 @@ }, "type": "object" }, - "GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControls": { - "description": "Controls enabled to the user associated with this workload", - "id": "GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControls", - "properties": { - "appliedOrgPolicies": { - "description": "Output only. Org policies currently applied by this Assured Workload", - "items": { - "$ref": "GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControlsOrgPolicyControl" - }, - "readOnly": true, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControlsOrgPolicyControl": { - "description": "An org policy control applied by Assured Workloads", - "id": "GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControlsOrgPolicyControl", - "properties": { - "constraint": { - "description": "Output only. Constraint name of the org policy control Example: constraints/gcp.resourcelocations", - "readOnly": true, - "type": "string" - }, - "version": { - "description": "Output only. Org policy version", - "format": "int32", - "readOnly": true, - "type": "integer" - } - }, - "type": "object" - }, "GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus": { "description": "Represents the Compliance Status of this workload", "id": "GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus", @@ -1373,6 +1341,10 @@ "deprecated": true, "description": "Allow partner to monitor folder and remediate violations", "type": "boolean" + }, + "serviceAccessApprover": { + "description": "Optional. Allow partner to view access approval logs.", + "type": "boolean" } }, "type": "object" diff --git a/assuredworkloads/v1beta1/assuredworkloads-gen.go b/assuredworkloads/v1beta1/assuredworkloads-gen.go index 139f3839db5..023ca4a649e 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-gen.go +++ b/assuredworkloads/v1beta1/assuredworkloads-gen.go @@ -612,6 +612,11 @@ type GoogleCloudAssuredworkloadsV1beta1Violation struct { // organizations/{organization_id}/policies/{constraint_name} NonCompliantOrgPolicy string `json:"nonCompliantOrgPolicy,omitempty"` + // OrgPolicyConstraint: Output only. Immutable. The + // org-policy-constraint that was incorrectly changed, which resulted in + // this violation. + OrgPolicyConstraint string `json:"orgPolicyConstraint,omitempty"` + // Remediation: Output only. Compliance violation remediation Remediation *GoogleCloudAssuredworkloadsV1beta1ViolationRemediation `json:"remediation,omitempty"` @@ -918,9 +923,6 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { // use these services in their environment." CompliantButDisallowedServices []string `json:"compliantButDisallowedServices,omitempty"` - // Controls: Output only. Controls associated with the customer workload - Controls *GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControls `json:"controls,omitempty"` - // CreateTime: Output only. Immutable. The Workload creation timestamp. CreateTime string `json:"createTime,omitempty"` @@ -1089,70 +1091,6 @@ func (s *GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings) MarshalJSON() ( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControls: -// Controls enabled to the user associated with this workload -type GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControls struct { - // AppliedOrgPolicies: Output only. Org policies currently applied by - // this Assured Workload - AppliedOrgPolicies []*GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControlsOrgPolicyControl `json:"appliedOrgPolicies,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppliedOrgPolicies") - // to unconditionally include in API requests. By 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. "AppliedOrgPolicies") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an 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 *GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControls) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControls - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControlsOrgPolicyC -// ontrol: An org policy control applied by Assured Workloads -type GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControlsOrgPolicyControl struct { - // Constraint: Output only. Constraint name of the org policy control - // Example: constraints/gcp.resourcelocations - Constraint string `json:"constraint,omitempty"` - - // Version: Output only. Org policy version - Version int64 `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Constraint") to - // unconditionally include in API requests. By 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. "Constraint") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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 *GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControlsOrgPolicyControl) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceControlsOrgPolicyControl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus: // Represents the Compliance Status of this workload type GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus struct { @@ -1398,6 +1336,10 @@ type GoogleCloudAssuredworkloadsV1beta1WorkloadPartnerPermissions struct { // remediate violations RemediateFolderViolations bool `json:"remediateFolderViolations,omitempty"` + // ServiceAccessApprover: Optional. Allow partner to view access + // approval logs. + ServiceAccessApprover bool `json:"serviceAccessApprover,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataLogsViewer") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/certificatemanager/v1/certificatemanager-api.json b/certificatemanager/v1/certificatemanager-api.json index f976b6f200d..4f1ecefc8c3 100644 --- a/certificatemanager/v1/certificatemanager-api.json +++ b/certificatemanager/v1/certificatemanager-api.json @@ -1280,7 +1280,7 @@ } } }, - "revision": "20230512", + "revision": "20230725", "rootUrl": "https://certificatemanager.googleapis.com/", "schemas": { "AuthorizationAttemptInfo": { @@ -1391,11 +1391,13 @@ "description": "Immutable. The scope of the certificate.", "enum": [ "DEFAULT", - "EDGE_CACHE" + "EDGE_CACHE", + "ALL_REGIONS" ], "enumDescriptions": [ "Certificates with default scope are served from core Google data centers. If unsure, choose this option.", - "Certificates with scope EDGE_CACHE are special-purposed certificates, served from Edge Points of Presence. See https://cloud.google.com/vpc/docs/edge-locations." + "Certificates with scope EDGE_CACHE are special-purposed certificates, served from Edge Points of Presence. See https://cloud.google.com/vpc/docs/edge-locations.", + "Certificates with ALL_REGIONS scope are served from all GCP regions. See https://cloud.google.com/compute/docs/regions-zones." ], "type": "string" }, diff --git a/certificatemanager/v1/certificatemanager-gen.go b/certificatemanager/v1/certificatemanager-gen.go index e2ad55c55fc..13df8160da5 100644 --- a/certificatemanager/v1/certificatemanager-gen.go +++ b/certificatemanager/v1/certificatemanager-gen.go @@ -351,6 +351,9 @@ type Certificate struct { // "EDGE_CACHE" - Certificates with scope EDGE_CACHE are // special-purposed certificates, served from Edge Points of Presence. // See https://cloud.google.com/vpc/docs/edge-locations. + // "ALL_REGIONS" - Certificates with ALL_REGIONS scope are served from + // all GCP regions. See + // https://cloud.google.com/compute/docs/regions-zones. Scope string `json:"scope,omitempty"` // SelfManaged: If set, defines data of a self-managed certificate. diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index 7638026ed8b..adae5841b24 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -1451,7 +1451,7 @@ } } }, - "revision": "20230712", + "revision": "20230719", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -1854,14 +1854,14 @@ "type": "object" }, "DeliveryPipeline": { - "description": "A `DeliveryPipeline` resource in the Google Cloud Deploy API. A `DeliveryPipeline` defines a pipeline through which a Skaffold configuration can progress.", + "description": "A `DeliveryPipeline` resource in the Cloud Deploy API. A `DeliveryPipeline` defines a pipeline through which a Skaffold configuration can progress.", "id": "DeliveryPipeline", "properties": { "annotations": { "additionalProperties": { "type": "string" }, - "description": "User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy.", + "description": "User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy.", "type": "object" }, "condition": { @@ -1887,7 +1887,7 @@ "additionalProperties": { "type": "string" }, - "description": "Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \u003c= 128 bytes.", + "description": "Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \u003c= 128 bytes.", "type": "object" }, "name": { @@ -1935,6 +1935,8 @@ "TYPE_PUBSUB_NOTIFICATION_FAILURE", "TYPE_RESOURCE_STATE_CHANGE", "TYPE_PROCESS_ABORTED", + "TYPE_RESTRICTION_VIOLATED", + "TYPE_RESOURCE_DELETED", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -1942,6 +1944,8 @@ false, false, false, + false, + false, true ], "enumDescriptions": [ @@ -1949,6 +1953,8 @@ "A Pub/Sub notification failed to be sent.", "Resource state changed.", "A process aborted.", + "Restriction check failed.", + "Resource deleted.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -2008,11 +2014,11 @@ ], "enumDescriptions": [ "No reason for failure is specified.", - "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).", + "Cloud Build is not available, either because it is not enabled or because 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." + "Cloud Build failed to fulfill Cloud Deploy's request. See failure_message for additional details." ], "readOnly": true, "type": "string" @@ -2290,7 +2296,7 @@ "type": "object" }, "JobRun": { - "description": "A `JobRun` resource in the Google Cloud Deploy API. A `JobRun` contains information of a single `Rollout` job evaluation.", + "description": "A `JobRun` resource in the Cloud Deploy API. A `JobRun` contains information of a single `Rollout` job evaluation.", "id": "JobRun", "properties": { "advanceChildRolloutJobRun": { @@ -2414,6 +2420,8 @@ "TYPE_PUBSUB_NOTIFICATION_FAILURE", "TYPE_RESOURCE_STATE_CHANGE", "TYPE_PROCESS_ABORTED", + "TYPE_RESTRICTION_VIOLATED", + "TYPE_RESOURCE_DELETED", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -2421,6 +2429,8 @@ false, false, false, + false, + false, true ], "enumDescriptions": [ @@ -2428,6 +2438,8 @@ "A Pub/Sub notification failed to be sent.", "Resource state changed.", "A process aborted.", + "Restriction check failed.", + "Resource deleted.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -2935,7 +2947,7 @@ "type": "object" }, "Release": { - "description": "A `Release` resource in the Google Cloud Deploy API. A `Release` defines a specific Skaffold configuration instance that can be deployed.", + "description": "A `Release` resource in the Cloud Deploy API. A `Release` defines a specific Skaffold configuration instance that can be deployed.", "id": "Release", "properties": { "abandoned": { @@ -2947,7 +2959,7 @@ "additionalProperties": { "type": "string" }, - "description": "User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.", + "description": "User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.", "type": "object" }, "buildArtifacts": { @@ -2992,7 +3004,7 @@ "additionalProperties": { "type": "string" }, - "description": "Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \u003c= 128 bytes.", + "description": "Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \u003c= 128 bytes.", "type": "object" }, "name": { @@ -3037,7 +3049,7 @@ "type": "string" }, "skaffoldVersion": { - "description": "The Skaffold version to use when operating on this release, such as \"1.20.0\". Not all versions are valid; Google Cloud Deploy supports a specific set of versions. If unset, the most recent supported Skaffold version will be used.", + "description": "The Skaffold version to use when operating on this release, such as \"1.20.0\". Not all versions are valid; Cloud Deploy supports a specific set of versions. If unset, the most recent supported Skaffold version will be used.", "type": "string" }, "targetArtifacts": { @@ -3106,6 +3118,8 @@ "TYPE_PUBSUB_NOTIFICATION_FAILURE", "TYPE_RESOURCE_STATE_CHANGE", "TYPE_PROCESS_ABORTED", + "TYPE_RESTRICTION_VIOLATED", + "TYPE_RESOURCE_DELETED", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -3113,6 +3127,8 @@ false, false, false, + false, + false, true ], "enumDescriptions": [ @@ -3120,6 +3136,8 @@ "A Pub/Sub notification failed to be sent.", "Resource state changed.", "A process aborted.", + "Restriction check failed.", + "Resource deleted.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -3187,14 +3205,14 @@ "type": "object" }, "Rollout": { - "description": "A `Rollout` resource in the Google Cloud Deploy API. A `Rollout` contains information around a specific deployment to a `Target`.", + "description": "A `Rollout` resource in the Cloud Deploy API. A `Rollout` contains information around a specific deployment to a `Target`.", "id": "Rollout", "properties": { "annotations": { "additionalProperties": { "type": "string" }, - "description": "User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.", + "description": "User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.", "type": "object" }, "approvalState": { @@ -3259,7 +3277,7 @@ "Release is in a failed state.", "Release is abandoned.", "No skaffold verify configuration was found.", - "Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details." + "Cloud Build failed to fulfill Cloud Deploy's request. See failure_message for additional details." ], "readOnly": true, "type": "string" @@ -3298,7 +3316,7 @@ "additionalProperties": { "type": "string" }, - "description": "Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \u003c= 128 bytes.", + "description": "Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \u003c= 128 bytes.", "type": "object" }, "metadata": { @@ -3392,6 +3410,8 @@ "TYPE_PUBSUB_NOTIFICATION_FAILURE", "TYPE_RESOURCE_STATE_CHANGE", "TYPE_PROCESS_ABORTED", + "TYPE_RESTRICTION_VIOLATED", + "TYPE_RESOURCE_DELETED", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -3399,6 +3419,8 @@ false, false, false, + false, + false, true ], "enumDescriptions": [ @@ -3406,6 +3428,8 @@ "A Pub/Sub notification failed to be sent.", "Resource state changed.", "A process aborted.", + "Restriction check failed.", + "Resource deleted.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -3622,14 +3646,14 @@ "type": "object" }, "Target": { - "description": "A `Target` resource in the Google Cloud Deploy API. A `Target` defines a location to which a Skaffold configuration can be deployed.", + "description": "A `Target` resource in the Cloud Deploy API. A `Target` defines a location to which a Skaffold configuration can be deployed.", "id": "Target", "properties": { "annotations": { "additionalProperties": { "type": "string" }, - "description": "Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.", + "description": "Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.", "type": "object" }, "anthosCluster": { @@ -3672,7 +3696,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. Labels are attributes that can be set and used by both the user and by Google Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \u003c= 128 bytes.", + "description": "Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \u003c= 128 bytes.", "type": "object" }, "multiTarget": { @@ -3759,6 +3783,8 @@ "TYPE_PUBSUB_NOTIFICATION_FAILURE", "TYPE_RESOURCE_STATE_CHANGE", "TYPE_PROCESS_ABORTED", + "TYPE_RESTRICTION_VIOLATED", + "TYPE_RESOURCE_DELETED", "TYPE_RENDER_STATUES_CHANGE" ], "enumDeprecated": [ @@ -3766,6 +3792,8 @@ false, false, false, + false, + false, true ], "enumDescriptions": [ @@ -3773,6 +3801,8 @@ "A Pub/Sub notification failed to be sent.", "Resource state changed.", "A process aborted.", + "Restriction check failed.", + "Resource deleted.", "Deprecated: This field is never used. Use release_render log type instead." ], "type": "string" @@ -3794,9 +3824,9 @@ ], "enumDescriptions": [ "No reason for failure is specified.", - "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).", + "Cloud Build is not available, either because it is not enabled or because Cloud Deploy has insufficient permissions. See [required permission](/deploy/docs/cloud-deploy-service-account#required_permissions).", "The render operation did not complete successfully; check Cloud Build logs.", - "Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details." + "Cloud Build failed to fulfill Cloud Deploy's request. See failure_message for additional details." ], "readOnly": true, "type": "string" @@ -3951,11 +3981,11 @@ ], "enumDescriptions": [ "No reason for failure is specified.", - "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).", + "Cloud Build is not available, either because it is not enabled or because Cloud Deploy has insufficient permissions. See [required permission](/deploy/docs/cloud-deploy-service-account#required_permissions).", "The verify operation did not complete successfully; check Cloud Build logs.", "The verify build did not complete within the alloted time.", "No Skaffold verify configuration was found.", - "Cloud Build failed to fulfill Google Cloud Deploy's request. See failure_message for additional details." + "Cloud Build failed to fulfill Cloud Deploy's request. See failure_message for additional details." ], "readOnly": true, "type": "string" @@ -3970,7 +4000,7 @@ } }, "servicePath": "", - "title": "Google Cloud Deploy API", + "title": "Cloud Deploy API", "version": "v1", "version_module": true } \ No newline at end of file diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index d2eb77df1fa..e1bc1d9a316 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package clouddeploy provides access to the Google Cloud Deploy API. +// Package clouddeploy provides access to the Cloud Deploy API. // // For product documentation, see: https://cloud.google.com/deploy/ // @@ -1044,12 +1044,12 @@ func (s *DefaultPool) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeliveryPipeline: A `DeliveryPipeline` resource in the Google Cloud -// Deploy API. A `DeliveryPipeline` defines a pipeline through which a -// Skaffold configuration can progress. +// DeliveryPipeline: A `DeliveryPipeline` resource in the Cloud Deploy +// API. A `DeliveryPipeline` defines a pipeline through which a Skaffold +// configuration can progress. type DeliveryPipeline struct { // Annotations: User annotations. These attributes can only be set and - // used by the user, and not by Google Cloud Deploy. + // used by the user, and not by Cloud Deploy. Annotations map[string]string `json:"annotations,omitempty"` // Condition: Output only. Information around the state of the Delivery @@ -1069,13 +1069,13 @@ type DeliveryPipeline struct { Etag string `json:"etag,omitempty"` // Labels: Labels are attributes that can be set and used by both the - // user and by Google Cloud Deploy. Labels must meet the following - // constraints: * Keys and values can contain only lowercase letters, - // numeric characters, underscores, and dashes. * All characters must - // use UTF-8 encoding, and international characters are allowed. * Keys - // must start with a lowercase letter or international character. * Each - // resource is limited to a maximum of 64 labels. Both keys and values - // are additionally constrained to be <= 128 bytes. + // user and by Cloud Deploy. Labels must meet the following constraints: + // * Keys and values can contain only lowercase letters, numeric + // characters, underscores, and dashes. * All characters must use UTF-8 + // encoding, and international characters are allowed. * Keys must start + // with a lowercase letter or international character. * Each resource + // is limited to a maximum of 64 labels. Both keys and values are + // additionally constrained to be <= 128 bytes. Labels map[string]string `json:"labels,omitempty"` // Name: Optional. Name of the `DeliveryPipeline`. Format is @@ -1143,6 +1143,8 @@ type DeliveryPipelineNotificationEvent struct { // to be sent. // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. // "TYPE_PROCESS_ABORTED" - A process aborted. + // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. + // "TYPE_RESOURCE_DELETED" - Resource deleted. // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never // used. Use release_render log type instead. Type string `json:"type,omitempty"` @@ -1227,8 +1229,8 @@ type DeployJobRun struct { // Possible values: // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either - // because it is not enabled or because Google Cloud Deploy has - // insufficient permissions. See [Required + // because it is not enabled or because Cloud Deploy has insufficient + // permissions. See [Required // permission](/deploy/docs/cloud-deploy-service-account#required_permiss // ions). // "EXECUTION_FAILED" - The deploy operation did not complete @@ -1238,8 +1240,8 @@ type DeployJobRun struct { // "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. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud + // Deploy's request. See failure_message for additional details. FailureCause string `json:"failureCause,omitempty"` // FailureMessage: Output only. Additional information about the deploy @@ -1690,8 +1692,8 @@ func (s *Job) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// JobRun: A `JobRun` resource in the Google Cloud Deploy API. A -// `JobRun` contains information of a single `Rollout` job evaluation. +// JobRun: A `JobRun` resource in the Cloud Deploy API. A `JobRun` +// contains information of a single `Rollout` job evaluation. type JobRun struct { // AdvanceChildRolloutJobRun: Output only. Information specific to an // advanceChildRollout `JobRun` @@ -1810,6 +1812,8 @@ type JobRunNotificationEvent struct { // to be sent. // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. // "TYPE_PROCESS_ABORTED" - A process aborted. + // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. + // "TYPE_RESOURCE_DELETED" - Resource deleted. // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never // used. Use release_render log type instead. Type string `json:"type,omitempty"` @@ -2734,16 +2738,16 @@ func (s *PrivatePool) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Release: A `Release` resource in the Google Cloud Deploy API. A -// `Release` defines a specific Skaffold configuration instance that can -// be deployed. +// Release: A `Release` resource in the Cloud Deploy API. A `Release` +// defines a specific Skaffold configuration instance that can be +// deployed. type Release struct { // Abandoned: Output only. Indicates whether this is an abandoned // release. Abandoned bool `json:"abandoned,omitempty"` // Annotations: User annotations. These attributes can only be set and - // used by the user, and not by Google Cloud Deploy. See + // used by the user, and not by Cloud Deploy. See // https://google.aip.dev/128#annotations for more details such as // format and size limitations. Annotations map[string]string `json:"annotations,omitempty"` @@ -2776,13 +2780,13 @@ type Release struct { Etag string `json:"etag,omitempty"` // Labels: Labels are attributes that can be set and used by both the - // user and by Google Cloud Deploy. Labels must meet the following - // constraints: * Keys and values can contain only lowercase letters, - // numeric characters, underscores, and dashes. * All characters must - // use UTF-8 encoding, and international characters are allowed. * Keys - // must start with a lowercase letter or international character. * Each - // resource is limited to a maximum of 64 labels. Both keys and values - // are additionally constrained to be <= 128 bytes. + // user and by Cloud Deploy. Labels must meet the following constraints: + // * Keys and values can contain only lowercase letters, numeric + // characters, underscores, and dashes. * All characters must use UTF-8 + // encoding, and international characters are allowed. * Keys must start + // with a lowercase letter or international character. * Each resource + // is limited to a maximum of 64 labels. Both keys and values are + // additionally constrained to be <= 128 bytes. Labels map[string]string `json:"labels,omitempty"` // Name: Optional. Name of the `Release`. Format is projects/{project}/ @@ -2815,8 +2819,8 @@ type Release struct { SkaffoldConfigUri string `json:"skaffoldConfigUri,omitempty"` // SkaffoldVersion: The Skaffold version to use when operating on this - // release, such as "1.20.0". Not all versions are valid; Google Cloud - // Deploy supports a specific set of versions. If unset, the most recent + // release, such as "1.20.0". Not all versions are valid; Cloud Deploy + // supports a specific set of versions. If unset, the most recent // supported Skaffold version will be used. SkaffoldVersion string `json:"skaffoldVersion,omitempty"` @@ -2916,6 +2920,8 @@ type ReleaseNotificationEvent struct { // to be sent. // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. // "TYPE_PROCESS_ABORTED" - A process aborted. + // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. + // "TYPE_RESOURCE_DELETED" - Resource deleted. // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never // used. Use release_render log type instead. Type string `json:"type,omitempty"` @@ -3079,12 +3085,11 @@ type RetryJobResponse struct { googleapi.ServerResponse `json:"-"` } -// Rollout: A `Rollout` resource in the Google Cloud Deploy API. A -// `Rollout` contains information around a specific deployment to a -// `Target`. +// Rollout: A `Rollout` resource in the Cloud Deploy API. A `Rollout` +// contains information around a specific deployment to a `Target`. type Rollout struct { // Annotations: User annotations. These attributes can only be set and - // used by the user, and not by Google Cloud Deploy. See + // used by the user, and not by Cloud Deploy. See // https://google.aip.dev/128#annotations for more details such as // format and size limitations. Annotations map[string]string `json:"annotations,omitempty"` @@ -3134,8 +3139,8 @@ type Rollout struct { // "RELEASE_ABANDONED" - Release is abandoned. // "VERIFICATION_CONFIG_NOT_FOUND" - No skaffold verify configuration // was found. - // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Google - // Cloud Deploy's request. See failure_message for additional details. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud + // Deploy's request. See failure_message for additional details. DeployFailureCause string `json:"deployFailureCause,omitempty"` // DeployStartTime: Output only. Time at which the `Rollout` started @@ -3164,13 +3169,13 @@ type Rollout struct { FailureReason string `json:"failureReason,omitempty"` // Labels: Labels are attributes that can be set and used by both the - // user and by Google Cloud Deploy. Labels must meet the following - // constraints: * Keys and values can contain only lowercase letters, - // numeric characters, underscores, and dashes. * All characters must - // use UTF-8 encoding, and international characters are allowed. * Keys - // must start with a lowercase letter or international character. * Each - // resource is limited to a maximum of 64 labels. Both keys and values - // are additionally constrained to be <= 128 bytes. + // user and by Cloud Deploy. Labels must meet the following constraints: + // * Keys and values can contain only lowercase letters, numeric + // characters, underscores, and dashes. * All characters must use UTF-8 + // encoding, and international characters are allowed. * Keys must start + // with a lowercase letter or international character. * Each resource + // is limited to a maximum of 64 labels. Both keys and values are + // additionally constrained to be <= 128 bytes. Labels map[string]string `json:"labels,omitempty"` // Metadata: Output only. Metadata contains information about the @@ -3266,6 +3271,8 @@ type RolloutNotificationEvent struct { // to be sent. // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. // "TYPE_PROCESS_ABORTED" - A process aborted. + // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. + // "TYPE_RESOURCE_DELETED" - Resource deleted. // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never // used. Use release_render log type instead. Type string `json:"type,omitempty"` @@ -3677,12 +3684,11 @@ func (s *Strategy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Target: A `Target` resource in the Google Cloud Deploy API. A -// `Target` defines a location to which a Skaffold configuration can be -// deployed. +// Target: A `Target` resource in the Cloud Deploy API. A `Target` +// defines a location to which a Skaffold configuration can be deployed. type Target struct { // Annotations: Optional. User annotations. These attributes can only be - // set and used by the user, and not by Google Cloud Deploy. See + // set and used by the user, and not by Cloud Deploy. See // https://google.aip.dev/128#annotations for more details such as // format and size limitations. Annotations map[string]string `json:"annotations,omitempty"` @@ -3719,13 +3725,13 @@ type Target struct { Gke *GkeCluster `json:"gke,omitempty"` // Labels: Optional. Labels are attributes that can be set and used by - // both the user and by Google Cloud Deploy. Labels must meet the - // following constraints: * Keys and values can contain only lowercase - // letters, numeric characters, underscores, and dashes. * All - // characters must use UTF-8 encoding, and international characters are - // allowed. * Keys must start with a lowercase letter or international - // character. * Each resource is limited to a maximum of 64 labels. Both - // keys and values are additionally constrained to be <= 128 bytes. + // both the user and by Cloud Deploy. Labels must meet the following + // constraints: * Keys and values can contain only lowercase letters, + // numeric characters, underscores, and dashes. * All characters must + // use UTF-8 encoding, and international characters are allowed. * Keys + // must start with a lowercase letter or international character. * Each + // resource is limited to a maximum of 64 labels. Both keys and values + // are additionally constrained to be <= 128 bytes. Labels map[string]string `json:"labels,omitempty"` // MultiTarget: Optional. Information specifying a multiTarget. @@ -3840,6 +3846,8 @@ type TargetNotificationEvent struct { // to be sent. // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. // "TYPE_PROCESS_ABORTED" - A process aborted. + // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. + // "TYPE_RESOURCE_DELETED" - Resource deleted. // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never // used. Use release_render log type instead. Type string `json:"type,omitempty"` @@ -3875,14 +3883,14 @@ type TargetRender struct { // Possible values: // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either - // because it is not enabled or because Google Cloud Deploy has - // insufficient permissions. See [required + // because it is not enabled or because Cloud Deploy has insufficient + // permissions. See [required // permission](/deploy/docs/cloud-deploy-service-account#required_permiss // ions). // "EXECUTION_FAILED" - The render operation did not complete // successfully; check Cloud Build logs. - // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Google - // Cloud Deploy's request. See failure_message for additional details. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud + // Deploy's request. See failure_message for additional details. FailureCause string `json:"failureCause,omitempty"` // FailureMessage: Output only. Additional information about the render @@ -4110,8 +4118,8 @@ type VerifyJobRun struct { // Possible values: // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either - // because it is not enabled or because Google Cloud Deploy has - // insufficient permissions. See [required + // because it is not enabled or because Cloud Deploy has insufficient + // permissions. See [required // permission](/deploy/docs/cloud-deploy-service-account#required_permiss // ions). // "EXECUTION_FAILED" - The verify operation did not complete @@ -4120,8 +4128,8 @@ type VerifyJobRun struct { // alloted time. // "VERIFICATION_CONFIG_NOT_FOUND" - No Skaffold verify configuration // was found. - // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Google - // Cloud Deploy's request. See failure_message for additional details. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud + // Deploy's request. See failure_message for additional details. FailureCause string `json:"failureCause,omitempty"` // FailureMessage: Output only. Additional information about the verify diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index e8a2fe1d3c8..d4f89bf183f 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -15190,6 +15190,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", @@ -38620,7 +38670,7 @@ } } }, - "revision": "20230711", + "revision": "20230720", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -40234,7 +40284,7 @@ "type": "string" }, "replicaZones": { - "description": "Required for each regional disk associated with the instance. Specify the URLs of the zones where the disk should be replicated to. You must provide exactly two replica zones, and one zone must be the same as the instance zone. You can't use this option with boot disks.", + "description": "Required for each regional disk associated with the instance. Specify the URLs of the zones where the disk should be replicated to. You must provide exactly two replica zones, and one zone must be the same as the instance zone.", "items": { "type": "string" }, @@ -43271,9 +43321,11 @@ "description": "The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.", "enum": [ "ACCELERATOR_OPTIMIZED", + "ACCELERATOR_OPTIMIZED_A3", "COMPUTE_OPTIMIZED", "COMPUTE_OPTIMIZED_C2D", "COMPUTE_OPTIMIZED_C3", + "COMPUTE_OPTIMIZED_H3", "GENERAL_PURPOSE", "GENERAL_PURPOSE_E2", "GENERAL_PURPOSE_N2", @@ -43297,6 +43349,8 @@ "", "", "", + "", + "", "" ], "type": "string" @@ -47094,7 +47148,7 @@ "type": "string" }, "noAutomateDnsZone": { - "description": "This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field.", + "description": "This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field. Once set, this field is not mutable.", "type": "boolean" }, "portRange": { @@ -47168,7 +47222,7 @@ "type": "string" }, "target": { - "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the \"Target\" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. ", + "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the \"Target\" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. The target is not mutable once set as a service attachment. ", "type": "string" } }, @@ -63778,6 +63832,10 @@ "description": "[Output Only] Server-defined URL for the resource.", "type": "string" }, + "setCommonInstanceMetadataOperationMetadata": { + "$ref": "SetCommonInstanceMetadataOperationMetadata", + "description": "[Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state." + }, "startTime": { "description": "[Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.", "type": "string" @@ -63810,7 +63868,7 @@ "type": "string" }, "user": { - "description": "[Output Only] User who requested the operation, for example: `user@example.com`.", + "description": "[Output Only] User who requested the operation, for example: `user@example.com` or `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.", "type": "string" }, "warnings": { @@ -74396,6 +74454,53 @@ }, "type": "object" }, + "SetCommonInstanceMetadataOperationMetadata": { + "id": "SetCommonInstanceMetadataOperationMetadata", + "properties": { + "clientOperationId": { + "description": "[Output Only] The client operation id.", + "type": "string" + }, + "perLocationOperations": { + "additionalProperties": { + "$ref": "SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo" + }, + "description": "[Output Only] Status information per location (location name is key). Example key: zones/us-central1-a", + "type": "object" + } + }, + "type": "object" + }, + "SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo": { + "id": "SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo", + "properties": { + "error": { + "$ref": "Status", + "description": "[Output Only] If state is `ABANDONED` or `FAILED`, this field is populated." + }, + "state": { + "description": "[Output Only] Status of the action, which can be one of the following: `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.", + "enum": [ + "ABANDONED", + "DONE", + "FAILED", + "PROPAGATED", + "PROPAGATING", + "UNSPECIFIED" + ], + "enumDescriptions": [ + "Operation not tracked in this location e.g. zone is marked as DOWN.", + "Operation has completed successfully.", + "Operation is in an error state.", + "Operation is confirmed to be in the location.", + "Operation is not yet confirmed to have been created in the location.", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "ShareSettings": { "description": "The share setting for reservations and sole tenancy node groups.", "id": "ShareSettings", @@ -76447,6 +76552,33 @@ }, "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" + }, "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", @@ -76548,6 +76680,7 @@ "purpose": { "description": "The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.", "enum": [ + "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", "PRIVATE", "PRIVATE_NAT", @@ -76556,6 +76689,7 @@ "REGIONAL_MANAGED_PROXY" ], "enumDescriptions": [ + "Subnet reserved for Global Internal HTTP(S) Load Balancing.", "Subnet reserved for Internal HTTP(S) Load Balancing.", "Regular user created or automatically created subnet.", "Subnetwork used as source range for Private NAT Gateways.", @@ -81823,6 +81957,7 @@ "purpose": { "description": "The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY.", "enum": [ + "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", "PRIVATE", "PRIVATE_NAT", @@ -81831,6 +81966,7 @@ "REGIONAL_MANAGED_PROXY" ], "enumDescriptions": [ + "Subnet reserved for Global Internal HTTP(S) Load Balancing.", "Subnet reserved for Internal HTTP(S) Load Balancing.", "Regular user created or automatically created subnet.", "Subnetwork used as source range for Private NAT Gateways.", diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index 73d2223e18e..a1266783651 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -3491,8 +3491,7 @@ type AttachedDiskInitializeParams struct { // ReplicaZones: Required for each regional disk associated with the // instance. Specify the URLs of the zones where the disk should be // replicated to. You must provide exactly two replica zones, and one - // zone must be the same as the instance zone. You can't use this option - // with boot disks. + // zone must be the same as the instance zone. ReplicaZones []string `json:"replicaZones,omitempty"` // ResourceManagerTags: Resource manager tags to be bound to the disk. @@ -8204,9 +8203,11 @@ type Commitment struct { // // Possible values: // "ACCELERATOR_OPTIMIZED" + // "ACCELERATOR_OPTIMIZED_A3" // "COMPUTE_OPTIMIZED" // "COMPUTE_OPTIMIZED_C2D" // "COMPUTE_OPTIMIZED_C3" + // "COMPUTE_OPTIMIZED_H3" // "GENERAL_PURPOSE" // "GENERAL_PURPOSE_E2" // "GENERAL_PURPOSE_N2" @@ -13713,7 +13714,8 @@ type ForwardingRule struct { // NoAutomateDnsZone: This is used in PSC consumer ForwardingRule to // control whether it should try to auto-generate a DNS zone or not. - // Non-PSC forwarding rules do not use this field. + // Non-PSC forwarding rules do not use this field. Once set, this field + // is not mutable. NoAutomateDnsZone bool `json:"noAutomateDnsZone,omitempty"` // PortRange: This field can only be used: - If IPProtocol is one of @@ -13824,7 +13826,8 @@ type ForwardingRule struct { // vpc-sc - APIs that support VPC Service Controls. - all-apis - All // supported Google APIs. - For Private Service Connect forwarding rules // that forward traffic to managed services, the target must be a - // service attachment. + // service attachment. The target is not mutable once set as a service + // attachment. Target string `json:"target,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -37236,6 +37239,11 @@ type Operation struct { // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` + // SetCommonInstanceMetadataOperationMetadata: [Output Only] If the + // operation is for projects.setCommonInstanceMetadata, this field will + // contain information on all underlying zonal actions and their state. + SetCommonInstanceMetadataOperationMetadata *SetCommonInstanceMetadataOperationMetadata `json:"setCommonInstanceMetadataOperationMetadata,omitempty"` + // StartTime: [Output Only] The time that this operation was started by // the server. This value is in RFC3339 text format. StartTime string `json:"startTime,omitempty"` @@ -37263,7 +37271,8 @@ type Operation struct { TargetLink string `json:"targetLink,omitempty"` // User: [Output Only] User who requested the operation, for example: - // `user@example.com`. + // `user@example.com` or `alice_smith_identifier + // (global/workforcePools/example-com-us-employees)`. User string `json:"user,omitempty"` // Warnings: [Output Only] If warning messages are generated during @@ -51971,6 +51980,81 @@ func (s *ServiceAttachmentsScopedListWarningData) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type SetCommonInstanceMetadataOperationMetadata struct { + // ClientOperationId: [Output Only] The client operation id. + ClientOperationId string `json:"clientOperationId,omitempty"` + + // PerLocationOperations: [Output Only] Status information per location + // (location name is key). Example key: zones/us-central1-a + PerLocationOperations map[string]SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo `json:"perLocationOperations,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClientOperationId") + // to unconditionally include in API requests. By 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. "ClientOperationId") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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 *SetCommonInstanceMetadataOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod SetCommonInstanceMetadataOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo struct { + // Error: [Output Only] If state is `ABANDONED` or `FAILED`, this field + // is populated. + Error *Status `json:"error,omitempty"` + + // State: [Output Only] Status of the action, which can be one of the + // following: `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or + // `DONE`. + // + // Possible values: + // "ABANDONED" - Operation not tracked in this location e.g. zone is + // marked as DOWN. + // "DONE" - Operation has completed successfully. + // "FAILED" - Operation is in an error state. + // "PROPAGATED" - Operation is confirmed to be in the location. + // "PROPAGATING" - Operation is not yet confirmed to have been created + // in the location. + // "UNSPECIFIED" + State string `json:"state,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 *SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo) MarshalJSON() ([]byte, error) { + type NoMethod SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ShareSettings: The share setting for reservations and sole tenancy // node groups. type ShareSettings struct { @@ -54755,6 +54839,50 @@ func (s *StatefulPolicyPreservedStateNetworkIp) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Status: 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 Status 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 *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + 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 @@ -54902,6 +55030,8 @@ type Subnetwork struct { // purpose field is set to REGIONAL_MANAGED_PROXY. // // Possible values: + // "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. @@ -62286,6 +62416,8 @@ type UsableSubnetwork struct { // purpose field is set to REGIONAL_MANAGED_PROXY. // // Possible values: + // "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. @@ -129188,6 +129320,197 @@ func (c *NetworkAttachmentsListCall) Pages(ctx context.Context, f func(*NetworkA } } +// method id "compute.networkAttachments.patch": + +type NetworkAttachmentsPatchCall struct { + s *Service + project string + region string + networkAttachment string + networkattachment *NetworkAttachment + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// 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: 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.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 *NetworkAttachmentsPatchCall) Fields(s ...googleapi.Field) *NetworkAttachmentsPatchCall { + 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 *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 *NetworkAttachmentsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +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_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + 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/{networkAttachment}") + 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, + "region": c.region, + "networkAttachment": c.networkAttachment, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// 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 { + 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 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" + // ] + // } + +} + // method id "compute.networkAttachments.setIamPolicy": type NetworkAttachmentsSetIamPolicyCall struct { diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 159291734a1..aa8b9bbcfea 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20230629", + "revision": "20230719", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2594,6 +2594,7 @@ "description": "The configuration for GPU sharing options." }, "maxTimeSharedClientsPerGpu": { + "deprecated": true, "description": "The number of time-shared GPU resources to expose for each physical GPU.", "format": "int64", "type": "string" @@ -2699,14 +2700,17 @@ }, "istioConfig": { "$ref": "IstioConfig", + "deprecated": true, "description": "Configuration for Istio, an open platform to connect, manage, and secure microservices." }, "kalmConfig": { "$ref": "KalmConfig", + "deprecated": true, "description": "Configuration for the KALM addon, which manages the lifecycle of k8s applications." }, "kubernetesDashboard": { "$ref": "KubernetesDashboard", + "deprecated": true, "description": "Configuration for the Kubernetes Dashboard. This addon is deprecated, and will be disabled in 1.15. It is recommended to use the Cloud Console to manage and monitor your Kubernetes clusters, workloads and applications. For more information, see: https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards" }, "networkPolicyConfig": { @@ -2877,6 +2881,7 @@ "description": "NodeManagement configuration for this NodePool." }, "minCpuPlatform": { + "deprecated": true, "description": "Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). This field is deprecated, min_cpu_platform should be specified using `cloud.google.com/requested-min-cpu-platform` label selector on the pod. To unset the min cpu platform field pass \"automatic\" as field value.", "type": "string" }, @@ -2903,6 +2908,7 @@ "type": "object" }, "AvailableVersion": { + "deprecated": true, "description": "Deprecated.", "id": "AvailableVersion", "properties": { @@ -2949,6 +2955,7 @@ "id": "BinaryAuthorization", "properties": { "enabled": { + "deprecated": true, "description": "This field is deprecated. Leave this unset and instead configure BinaryAuthorization using evaluation_mode. If evaluation_mode is set to anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.", "type": "boolean" }, @@ -3047,14 +3054,17 @@ "type": "string" }, "operationId": { + "deprecated": true, "description": "Required. Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field.", "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -3186,11 +3196,13 @@ "type": "string" }, "currentNodeCount": { + "deprecated": true, "description": "[Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.", "format": "int32", "type": "integer" }, "currentNodeVersion": { + "deprecated": true, "description": "[Output only] Deprecated, use [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools) instead. The current version of the node software components. If they are currently at multiple versions because they're in the process of being upgraded, this reflects the minimum version of all nodes.", "type": "string" }, @@ -3248,11 +3260,13 @@ "type": "string" }, "initialNodeCount": { + "deprecated": true, "description": "The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a \"node_pool\" object, since this configuration (along with the \"node_config\") will be used to create a \"NodePool\" object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.", "format": "int32", "type": "integer" }, "instanceGroupUrls": { + "deprecated": true, "description": "Deprecated. Use node_pools.instance_group_urls.", "items": { "type": "string" @@ -3307,6 +3321,7 @@ "description": "The configuration options for master authorized networks feature." }, "masterIpv4CidrBlock": { + "deprecated": true, "description": "The IP prefix in CIDR notation to use for the hosted master network. This prefix will be used for assigning private IP addresses to the master or set of masters, as well as the ILB VIP. This field is deprecated, use private_cluster_config.master_ipv4_cidr_block instead.", "type": "string" }, @@ -3340,6 +3355,7 @@ }, "nodeConfig": { "$ref": "NodeConfig", + "deprecated": true, "description": "Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a \"node_pool\" object, since this configuration (along with the \"initial_node_count\") will be used to create a \"NodePool\" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead." }, "nodeIpv4CidrSize": { @@ -3371,6 +3387,7 @@ "description": "Configuration for the PodSecurityPolicy feature." }, "privateCluster": { + "deprecated": true, "description": "If this is a private cluster setup. Private clusters are clusters that, by default have no external IP addresses on the nodes and where nodes and the master communicate over private IP addresses. This field is deprecated, use private_cluster_config.enable_private_nodes instead.", "type": "boolean" }, @@ -3436,6 +3453,7 @@ "type": "string" }, "statusMessage": { + "deprecated": true, "description": "[Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.", "type": "string" }, @@ -3468,6 +3486,7 @@ "description": "Configuration for the use of Kubernetes Service Accounts in GCP IAM policies." }, "zone": { + "deprecated": true, "description": "[Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field is deprecated, use location instead.", "type": "string" } @@ -3834,6 +3853,7 @@ "id": "CompleteIPRotationRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -3842,10 +3862,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -3915,10 +3937,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the parent field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.", "type": "string" } @@ -3930,6 +3954,7 @@ "id": "CreateNodePoolRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.", "type": "string" }, @@ -3942,10 +3967,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the parent field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.", "type": "string" } @@ -4448,6 +4475,7 @@ "type": "boolean" }, "clusterIpv4Cidr": { + "deprecated": true, "description": "This field is deprecated, use cluster_ipv4_cidr_block.", "type": "string" }, @@ -4484,6 +4512,7 @@ "type": "string" }, "nodeIpv4Cidr": { + "deprecated": true, "description": "This field is deprecated, use node_ipv4_cidr_block.", "type": "string" }, @@ -4496,6 +4525,7 @@ "description": "[PRIVATE FIELD] Pod CIDR size overprovisioning config for the cluster. Pod CIDR size per node depends on max_pods_per_node. By default, the value of max_pods_per_node is doubled and then rounded off to next power of 2 to get the size of pod CIDR block per node. Example: max_pods_per_node of 30 would result in 64 IPs (/26). This config can disable the doubling of IPs (we still round off to next power of 2) Example: max_pods_per_node of 30 will result in 32 IPs (/27) when overprovisioning is disabled." }, "servicesIpv4Cidr": { + "deprecated": true, "description": "This field is deprecated, use services_ipv4_cidr_block.", "type": "string" }, @@ -4577,6 +4607,7 @@ "id": "IstioConfig", "properties": { "auth": { + "deprecated": true, "description": "The specified Istio auth mode, either none, or mutual TLS.", "enum": [ "AUTH_NONE", @@ -4589,6 +4620,7 @@ "type": "string" }, "disabled": { + "deprecated": true, "description": "Whether Istio is enabled for this cluster.", "type": "boolean" } @@ -4657,6 +4689,7 @@ "id": "KalmConfig", "properties": { "enabled": { + "deprecated": true, "description": "Whether KALM is enabled for this cluster.", "type": "boolean" } @@ -5003,10 +5036,12 @@ "type": "string" }, "password": { + "deprecated": true, "description": "The password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password. If a password is provided for cluster creation, username must be non-empty. Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication", "type": "string" }, "username": { + "deprecated": true, "description": "The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, basic authentication can be disabled by leaving username unspecified (or setting it to the empty string). Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication", "type": "string" } @@ -5098,6 +5133,14 @@ "SCHEDULER", "CONTROLLER_MANAGER" ], + "enumDeprecated": [ + false, + false, + true, + false, + false, + false + ], "enumDescriptions": [ "Default value. This shouldn't be used.", "system components", @@ -5727,6 +5770,7 @@ "type": "string" }, "statusMessage": { + "deprecated": true, "description": "[Output only] Deprecated. Use conditions instead. Additional information about the current status of this node pool instance, if available.", "type": "string" }, @@ -5889,6 +5933,7 @@ "id": "Operation", "properties": { "clusterConditions": { + "deprecated": true, "description": "Which conditions caused the current cluster state. Deprecated. Use field error instead.", "items": { "$ref": "StatusCondition" @@ -5916,6 +5961,7 @@ "type": "string" }, "nodepoolConditions": { + "deprecated": true, "description": "Which conditions caused the current node pool state. Deprecated. Use field error instead.", "items": { "$ref": "StatusCondition" @@ -5944,6 +5990,26 @@ "SET_MAINTENANCE_POLICY", "RESIZE_CLUSTER" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + false, + true, + true, + false + ], "enumDescriptions": [ "Not set.", "The cluster is being created. The cluster should be assumed to be unusable until the operation finishes. In the event of the operation failing, the cluster will enter the ERROR state and eventually be deleted.", @@ -5998,6 +6064,7 @@ "type": "string" }, "statusMessage": { + "deprecated": true, "description": "Output only. If an error has occurred, a textual description of the error. Deprecated. Use field error instead.", "readOnly": true, "type": "string" @@ -6007,6 +6074,7 @@ "type": "string" }, "zone": { + "deprecated": true, "description": "The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.", "type": "string" } @@ -6260,6 +6328,7 @@ "id": "ReleaseChannelConfig", "properties": { "availableVersions": { + "deprecated": true, "description": "Deprecated. This field has been deprecated and replaced with the valid_versions field.", "items": { "$ref": "AvailableVersion" @@ -6389,6 +6458,7 @@ "id": "RollbackNodePoolUpgradeRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6397,10 +6467,12 @@ "type": "string" }, "nodePoolId": { + "deprecated": true, "description": "Required. Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field.", "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6409,6 +6481,7 @@ "type": "boolean" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6420,6 +6493,7 @@ "id": "SandboxConfig", "properties": { "sandboxType": { + "deprecated": true, "description": "Type of the sandbox to use for the node (e.g. 'gvisor')", "type": "string" }, @@ -6599,6 +6673,7 @@ "description": "Required. The desired configurations for the various addons available to run in the cluster." }, "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6607,10 +6682,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6622,6 +6699,7 @@ "id": "SetLabelsRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6634,6 +6712,7 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6645,6 +6724,7 @@ "type": "object" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6656,6 +6736,7 @@ "id": "SetLegacyAbacRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6668,10 +6749,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6683,6 +6766,7 @@ "id": "SetLocationsRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6698,10 +6782,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6713,6 +6799,7 @@ "id": "SetLoggingServiceRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6725,10 +6812,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6783,6 +6872,7 @@ "type": "string" }, "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6791,6 +6881,7 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6799,6 +6890,7 @@ "description": "Required. A description of the update." }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6810,6 +6902,7 @@ "id": "SetMonitoringServiceRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6822,10 +6915,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6837,6 +6932,7 @@ "id": "SetNetworkPolicyRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6849,10 +6945,12 @@ "description": "Required. Configuration options for the NetworkPolicy feature." }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6868,6 +6966,7 @@ "description": "Required. Autoscaling configuration for the node pool." }, "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6876,14 +6975,17 @@ "type": "string" }, "nodePoolId": { + "deprecated": true, "description": "Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6895,6 +6997,7 @@ "id": "SetNodePoolManagementRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6907,14 +7010,17 @@ "type": "string" }, "nodePoolId": { + "deprecated": true, "description": "Required. Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.", "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -6926,6 +7032,7 @@ "id": "SetNodePoolSizeRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -6939,14 +7046,17 @@ "type": "integer" }, "nodePoolId": { + "deprecated": true, "description": "Required. Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field.", "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -7020,6 +7130,7 @@ "id": "StartIPRotationRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -7028,6 +7139,7 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -7036,6 +7148,7 @@ "type": "boolean" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -7116,6 +7229,7 @@ "type": "string" }, "code": { + "deprecated": true, "description": "Machine-friendly representation of the condition Deprecated. Use canonical_code instead.", "enum": [ "UNKNOWN", @@ -7189,6 +7303,7 @@ "id": "UpdateClusterRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -7197,6 +7312,7 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -7205,6 +7321,7 @@ "description": "Required. A description of the update." }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -7227,6 +7344,7 @@ "id": "UpdateMasterRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -7239,10 +7357,12 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -7254,6 +7374,7 @@ "id": "UpdateNodePoolRequest", "properties": { "clusterId": { + "deprecated": true, "description": "Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -7313,6 +7434,7 @@ "description": "Node network config." }, "nodePoolId": { + "deprecated": true, "description": "Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -7321,6 +7443,7 @@ "type": "string" }, "projectId": { + "deprecated": true, "description": "Required. Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.", "type": "string" }, @@ -7349,6 +7472,7 @@ "description": "The desired workload metadata config for the node pool." }, "zone": { + "deprecated": true, "description": "Required. Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.", "type": "string" } @@ -7643,6 +7767,13 @@ "BASELINE", "RESTRICTED" ], + "enumDeprecated": [ + false, + false, + false, + true, + true + ], "enumDescriptions": [ "Default value meaning that no mode has been specified.", "This disables Workload Configuration auditing on the cluster, meaning that nothing is surfaced.", @@ -7660,6 +7791,7 @@ "id": "WorkloadIdentityConfig", "properties": { "identityNamespace": { + "deprecated": true, "description": "IAM Identity Namespace to attach all Kubernetes Service Accounts to.", "type": "string" }, @@ -7693,6 +7825,7 @@ "type": "string" }, "nodeMetadata": { + "deprecated": true, "description": "NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.", "enum": [ "UNSPECIFIED", diff --git a/containeranalysis/v1/containeranalysis-api.json b/containeranalysis/v1/containeranalysis-api.json index 40df9e036b6..8573873965e 100644 --- a/containeranalysis/v1/containeranalysis-api.json +++ b/containeranalysis/v1/containeranalysis-api.json @@ -755,7 +755,7 @@ } } }, - "revision": "20230717", + "revision": "20230721", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -1158,7 +1158,7 @@ "type": "object" }, "BuildStep": { - "description": "A step in the build pipeline. Next ID: 20", + "description": "A step in the build pipeline. Next ID: 21", "id": "BuildStep", "properties": { "allowExitCodes": { @@ -1180,6 +1180,10 @@ }, "type": "array" }, + "automapSubstitutions": { + "description": "Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.", + "type": "boolean" + }, "dir": { "description": "Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.", "type": "string" @@ -2221,6 +2225,10 @@ "description": "Optional arguments to enable specific features of builds.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions", "properties": { + "automapSubstitutions": { + "description": "Option to include built-in and custom substitutions as env variables for all build steps.", + "type": "boolean" + }, "defaultLogsBucketBehavior": { "description": "Optional. Option to specify how default logs buckets are setup.", "enum": [ @@ -2414,6 +2422,10 @@ }, "type": "array" }, + "automapSubstitutions": { + "description": "Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.", + "type": "boolean" + }, "dir": { "description": "Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.", "type": "string" diff --git a/containeranalysis/v1/containeranalysis-gen.go b/containeranalysis/v1/containeranalysis-gen.go index a968280bfe7..00400c3a5da 100644 --- a/containeranalysis/v1/containeranalysis-gen.go +++ b/containeranalysis/v1/containeranalysis-gen.go @@ -878,7 +878,7 @@ func (s *BuildProvenance) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BuildStep: A step in the build pipeline. Next ID: 20 +// BuildStep: A step in the build pipeline. Next ID: 21 type BuildStep struct { // AllowExitCodes: Allow this build step to fail without failing the // entire build if and only if the exit code is one of the specified @@ -900,6 +900,11 @@ type BuildStep struct { // used as the entrypoint, and the remainder will be used as arguments. Args []string `json:"args,omitempty"` + // AutomapSubstitutions: Option to include built-in and custom + // substitutions as env variables for this build step. This option will + // override the global option in BuildOption. + AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"` + // Dir: Working directory to use when running this step's container. If // this value is a relative path, it is relative to the build's working // directory. If this value is absolute, it may be outside the build's @@ -2176,6 +2181,10 @@ func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo) MarshalJSO // ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions: Optional // arguments to enable specific features of builds. type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions struct { + // AutomapSubstitutions: Option to include built-in and custom + // substitutions as env variables for all build steps. + AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"` + // DefaultLogsBucketBehavior: Optional. Option to specify how default // logs buckets are setup. // @@ -2301,21 +2310,21 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions struct { WorkerPool string `json:"workerPool,omitempty"` // ForceSendFields is a list of field names (e.g. - // "DefaultLogsBucketBehavior") to unconditionally include in API - // requests. By 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. + // "AutomapSubstitutions") to unconditionally include in API requests. + // By 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. - // "DefaultLogsBucketBehavior") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an 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. "AutomapSubstitutions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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:"-"` } @@ -2383,6 +2392,11 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep struct { // used as the entrypoint, and the remainder will be used as arguments. Args []string `json:"args,omitempty"` + // AutomapSubstitutions: Option to include built-in and custom + // substitutions as env variables for this build step. This option will + // override the global option in BuildOption. + AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"` + // Dir: Working directory to use when running this step's container. If // this value is a relative path, it is relative to the build's working // directory. If this value is absolute, it may be outside the build's diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index f0ff6b7d764..1d1a9f0e7e3 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1233,7 +1233,7 @@ } } }, - "revision": "20230717", + "revision": "20230721", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AnalysisCompleted": { @@ -1589,7 +1589,7 @@ "type": "object" }, "BuildStep": { - "description": "A step in the build pipeline. Next ID: 20", + "description": "A step in the build pipeline. Next ID: 21", "id": "BuildStep", "properties": { "allowExitCodes": { @@ -1611,6 +1611,10 @@ }, "type": "array" }, + "automapSubstitutions": { + "description": "Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.", + "type": "boolean" + }, "dir": { "description": "Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.", "type": "string" @@ -2510,6 +2514,10 @@ "description": "Optional arguments to enable specific features of builds.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions", "properties": { + "automapSubstitutions": { + "description": "Option to include built-in and custom substitutions as env variables for all build steps.", + "type": "boolean" + }, "defaultLogsBucketBehavior": { "description": "Optional. Option to specify how default logs buckets are setup.", "enum": [ @@ -2703,6 +2711,10 @@ }, "type": "array" }, + "automapSubstitutions": { + "description": "Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.", + "type": "boolean" + }, "dir": { "description": "Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.", "type": "string" diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 1c170ce08c1..eede35833fd 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -867,7 +867,7 @@ func (s *BuildSignature) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BuildStep: A step in the build pipeline. Next ID: 20 +// BuildStep: A step in the build pipeline. Next ID: 21 type BuildStep struct { // AllowExitCodes: Allow this build step to fail without failing the // entire build if and only if the exit code is one of the specified @@ -889,6 +889,11 @@ type BuildStep struct { // used as the entrypoint, and the remainder will be used as arguments. Args []string `json:"args,omitempty"` + // AutomapSubstitutions: Option to include built-in and custom + // substitutions as env variables for this build step. This option will + // override the global option in BuildOption. + AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"` + // Dir: Working directory to use when running this step's container. If // this value is a relative path, it is relative to the build's working // directory. If this value is absolute, it may be outside the build's @@ -2051,6 +2056,10 @@ func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo) MarshalJSO // ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions: Optional // arguments to enable specific features of builds. type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions struct { + // AutomapSubstitutions: Option to include built-in and custom + // substitutions as env variables for all build steps. + AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"` + // DefaultLogsBucketBehavior: Optional. Option to specify how default // logs buckets are setup. // @@ -2176,21 +2185,21 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions struct { WorkerPool string `json:"workerPool,omitempty"` // ForceSendFields is a list of field names (e.g. - // "DefaultLogsBucketBehavior") to unconditionally include in API - // requests. By 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. + // "AutomapSubstitutions") to unconditionally include in API requests. + // By 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. - // "DefaultLogsBucketBehavior") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an 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. "AutomapSubstitutions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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:"-"` } @@ -2258,6 +2267,11 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep struct { // used as the entrypoint, and the remainder will be used as arguments. Args []string `json:"args,omitempty"` + // AutomapSubstitutions: Option to include built-in and custom + // substitutions as env variables for this build step. This option will + // override the global option in BuildOption. + AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"` + // Dir: Working directory to use when running this step's container. If // this value is a relative path, it is relative to the build's working // directory. If this value is absolute, it may be outside the build's diff --git a/containeranalysis/v1beta1/containeranalysis-api.json b/containeranalysis/v1beta1/containeranalysis-api.json index 356e1836f0f..27b26aad036 100644 --- a/containeranalysis/v1beta1/containeranalysis-api.json +++ b/containeranalysis/v1beta1/containeranalysis-api.json @@ -815,7 +815,7 @@ } } }, - "revision": "20230717", + "revision": "20230721", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -1255,7 +1255,7 @@ "type": "object" }, "BuildStep": { - "description": "A step in the build pipeline. Next ID: 20", + "description": "A step in the build pipeline. Next ID: 21", "id": "BuildStep", "properties": { "allowExitCodes": { @@ -1277,6 +1277,10 @@ }, "type": "array" }, + "automapSubstitutions": { + "description": "Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.", + "type": "boolean" + }, "dir": { "description": "Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.", "type": "string" @@ -2194,6 +2198,10 @@ "description": "Optional arguments to enable specific features of builds.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions", "properties": { + "automapSubstitutions": { + "description": "Option to include built-in and custom substitutions as env variables for all build steps.", + "type": "boolean" + }, "defaultLogsBucketBehavior": { "description": "Optional. Option to specify how default logs buckets are setup.", "enum": [ @@ -2387,6 +2395,10 @@ }, "type": "array" }, + "automapSubstitutions": { + "description": "Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.", + "type": "boolean" + }, "dir": { "description": "Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.", "type": "string" diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index 23cb661bcce..e0b3315fad3 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -970,7 +970,7 @@ func (s *BuildSignature) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BuildStep: A step in the build pipeline. Next ID: 20 +// BuildStep: A step in the build pipeline. Next ID: 21 type BuildStep struct { // AllowExitCodes: Allow this build step to fail without failing the // entire build if and only if the exit code is one of the specified @@ -992,6 +992,11 @@ type BuildStep struct { // used as the entrypoint, and the remainder will be used as arguments. Args []string `json:"args,omitempty"` + // AutomapSubstitutions: Option to include built-in and custom + // substitutions as env variables for this build step. This option will + // override the global option in BuildOption. + AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"` + // Dir: Working directory to use when running this step's container. If // this value is a relative path, it is relative to the build's working // directory. If this value is absolute, it may be outside the build's @@ -2065,6 +2070,10 @@ func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo) MarshalJSO // ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions: Optional // arguments to enable specific features of builds. type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions struct { + // AutomapSubstitutions: Option to include built-in and custom + // substitutions as env variables for all build steps. + AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"` + // DefaultLogsBucketBehavior: Optional. Option to specify how default // logs buckets are setup. // @@ -2190,21 +2199,21 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions struct { WorkerPool string `json:"workerPool,omitempty"` // ForceSendFields is a list of field names (e.g. - // "DefaultLogsBucketBehavior") to unconditionally include in API - // requests. By 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. + // "AutomapSubstitutions") to unconditionally include in API requests. + // By 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. - // "DefaultLogsBucketBehavior") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an 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. "AutomapSubstitutions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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:"-"` } @@ -2272,6 +2281,11 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep struct { // used as the entrypoint, and the remainder will be used as arguments. Args []string `json:"args,omitempty"` + // AutomapSubstitutions: Option to include built-in and custom + // substitutions as env variables for this build step. This option will + // override the global option in BuildOption. + AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"` + // Dir: Working directory to use when running this step's container. If // this value is a relative path, it is relative to the build's working // directory. If this value is absolute, it may be outside the build's diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index 007eb142b82..f943c53324a 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -1128,7 +1128,7 @@ } } }, - "revision": "20230711", + "revision": "20230725", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -10450,6 +10450,7 @@ "THEATER_MODE", "TOUCH_LOCK", "ASSISTANT_PRESS_AND_HOLD", + "WATCH_FACE", "NOTIFICATION_ANNOUNCEMENT" ], "enumDeprecated": [ @@ -10776,6 +10777,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -11101,7 +11103,8 @@ "", "", "", - "End of Wearable device settings", + "", + "Settings \u003e Display \u003e Change watch face End of Wearable device settings", "Assistant Spoken Notification Setting" ], "type": "string" @@ -12527,6 +12530,7 @@ "PIXEL5", "PIXEL6", "PIXEL7", + "PIXEL8", "PIXEL_BUDS", "PIXEL_TABLET", "PIXEL_TABLET_HUB_MODE", @@ -12586,6 +12590,7 @@ "Pixel 5. OWNERS: surfaces-infra-core@", "Pixel 6. OWNERS: surfaces-infra-core@", "Pixel 7. OWNERS: surfaces-infra-core@", + "Pixel 8. OWNERS: surfaces-infra-core@", "Assistant on Pixel Buds. OWNERS: assistant-wearable-team@", "Assistant on Pixel Tablet/Tangor (a.k.a, TK). OWNERS: assistant-display-eng@", "Assistant on Tangor running in Hub mode. OWNERS: assistant-display-eng@", @@ -13122,6 +13127,7 @@ "PIXEL5", "PIXEL6", "PIXEL7", + "PIXEL8", "PIXEL_BUDS", "PIXEL_TABLET", "PIXEL_TABLET_HUB_MODE", @@ -13181,6 +13187,7 @@ "Pixel 5. OWNERS: surfaces-infra-core@", "Pixel 6. OWNERS: surfaces-infra-core@", "Pixel 7. OWNERS: surfaces-infra-core@", + "Pixel 8. OWNERS: surfaces-infra-core@", "Assistant on Pixel Buds. OWNERS: assistant-wearable-team@", "Assistant on Pixel Tablet/Tangor (a.k.a, TK). OWNERS: assistant-display-eng@", "Assistant on Tangor running in Hub mode. OWNERS: assistant-display-eng@", @@ -13519,13 +13526,27 @@ "type": "object" }, "AssistantApiDeviceCapabilities": { - "description": "This message describes roughly what a surface is capable of doing and metadata around those capabilities. These capabilities are determined based on: - device hardware - software - status (e.g. volume level, battery percentage) These capabilities refer to the surface and not the physical device. The list of supported surfaces can be found in the assistant.api.core_types.SurfaceType enum. A surface's capabilities can differ from the device's. An example would be ANDROID_ALLO running on Pixel. Allo does not support AudioInput while the Pixel does. In this case, audio_input will be set to false for Assistant Allo requests while it might be set to true for OPA_NEXUS requests. Next ID: 35", + "description": "This message describes roughly what a surface is capable of doing and metadata around those capabilities. These capabilities are determined based on: - device hardware - software - status (e.g. volume level, battery percentage) These capabilities refer to the surface and not the physical device. The list of supported surfaces can be found in the assistant.api.core_types.SurfaceType enum. A surface's capabilities can differ from the device's. An example would be ANDROID_ALLO running on Pixel. Allo does not support AudioInput while the Pixel does. In this case, audio_input will be set to false for Assistant Allo requests while it might be set to true for OPA_NEXUS requests. Next ID: 36", "id": "AssistantApiDeviceCapabilities", "properties": { "androidIntentCapabilities": { "$ref": "AssistantApiAndroidIntentCapabilities", "description": "Capabilites related to Android intent support." }, + "assistantCapability": { + "description": "Capabilities if surface supports Google Assistant.", + "enum": [ + "UNKNOWN", + "SUPPORTED", + "UNSUPPORTED" + ], + "enumDescriptions": [ + "", + "", + "Assistant is no longer supported(e.g., on legacy surfaces)." + ], + "type": "string" + }, "audioInput": { "$ref": "AssistantApiAudioInput", "description": "These capabilities are scoped to the ability to gather audio. It includes information like the type of audio that can be gathered (e.g. public, private)." @@ -17264,7 +17285,7 @@ "type": "object" }, "AssistantApiSupportedFeatures": { - "description": "These are the set of features that are supported by the device. It's a part of the SoftwareCapabilities of the device. Next ID: 66", + "description": "These are the set of features that are supported by the device. It's a part of the SoftwareCapabilities of the device. Next ID: 67", "id": "AssistantApiSupportedFeatures", "properties": { "aaeNotificationSourceSupported": { @@ -17484,6 +17505,10 @@ "description": "Whether the client supports tts tapering for the read messages flow. If set to true the tapered tts variant would be used during the read messages flow.", "type": "boolean" }, + "readNotificationSummarizationSupported": { + "description": "Whether the client supports message summarization.", + "type": "boolean" + }, "remoteCloudCastingEnabled": { "description": "Whether the client has remote casting enabled. For ex: we want to disable this for clients like Auto.", "type": "boolean" @@ -19253,7 +19278,7 @@ "type": "object" }, "AssistantGroundingRankerDeviceTargetingFeatures": { - "description": "Features generated by Device Targeting library (Lumos). See go/hgr-lumos-integration and go/lumos-feature-extraction for more details.", + "description": "Features generated by Device Targeting library (Lumos). See go/hgr-lumos-integration and go/lumos-feature-extraction for more details. Next ID: 3", "id": "AssistantGroundingRankerDeviceTargetingFeatures", "properties": { "properties": { @@ -19266,7 +19291,7 @@ "type": "object" }, "AssistantGroundingRankerDeviceTargetingFeaturesProperties": { - "description": "The properties of the device. They are static and won't change.", + "description": "The properties of the device. They are static and won't change. Next ID: 4", "id": "AssistantGroundingRankerDeviceTargetingFeaturesProperties", "properties": { "deviceModelId": { @@ -19276,12 +19301,136 @@ "isOwnedBySpeaker": { "description": "Indicate whether the device is owned by the user who is speaking.", "type": "boolean" + }, + "surfaceType": { + "description": "Assistant surface type (ontology).", + "enum": [ + "UNKNOWN_TYPE", + "ACCL", + "AGSA", + "ANDROID", + "ANDROID_AUTO", + "ANDROID_LITE", + "ANDROID_PHONE", + "ANDROID_SCREENLESS", + "ANDROID_SMART_DISPLAY", + "ANDROID_TABLET", + "ANDROID_THINGS", + "ANDROID_THINGS_CUBE", + "ANDROID_THINGS_JASPER", + "ANDROID_TV", + "ANDROID_WEAR", + "ASSISTANT_KIT", + "ASSISTANT_SDK", + "AUTO", + "CAST_OS", + "CHROME_OS", + "CHROMECAST_MANHATTAN", + "CLOUD_DEVICE", + "CROS", + "FITBIT_OS_WATCH", + "FITBIT_OS_WATCH_ANDROID", + "FITBIT_OS_WATCH_IOS", + "GOOGLE_HOME", + "HEADPHONE", + "HEADPHONE_ANDROID", + "HEADPHONE_IOS", + "IOPA", + "IOS", + "IOS_SCREENLESS", + "IPAD", + "IPHONE", + "KAI_OS", + "KAI_OS_AMA", + "LIBASSISTANT", + "PHONE", + "PIXEL", + "PIXEL5", + "PIXEL6", + "PIXEL7", + "PIXEL8", + "PIXEL_BUDS", + "PIXEL_TABLET", + "PIXEL_TABLET_HUB_MODE", + "PIXEL_TABLET_PERSONAL_MODE", + "PIXEL_WATCH", + "SCREENLESS", + "SMART_DISPLAY", + "SPEAKER", + "TABLET", + "TELEPHONE", + "THING", + "WATCH", + "WEAR_OS", + "WEAR_OS_WATCH" + ], + "enumDescriptions": [ + "Unknown surface type.", + "Android conversation client library (go/accl) is an Android library which implements the Conversation Protocol that allows a surface to have conversations with the Assistant server. OWNERS: surfaces-infra-core@", + "Android Google Search App (go/agsa). OWNERS: surfaces-infra-core@", + "Android. OWNERS: surfaces-infra-core@", + "Assistant on Android Auto (go/ast-auto). OWNERS: opa-android-leads@", + "Assistant on Android Go (not part of AGSA). OWNERS: assistantgo-eng@", + "Assistant on Android phones accessed through the Google App (velvet). This surface is formerly known as OPA_AGSA. OWNERS: opa-android-leads@", + "Assistant on Nexus with screen off/locked. Use go/bisto device to trigger. OWNERS: opa-android-leads@", + "Assistant on Titan hub mode (go/titan-hubmode-surface). This is OPA Android first party Smart Display devices. The UI experience is built on Opal (Gallium and Flutter) and native Android. OWNERS: opa-android-leads@", + "Assistant on Android tablet. OWNERS: opa-android-leads@", + "Android Things (go/things). OWNERS: surfaces-infra-core@", + "Lenovo Smart Clock v1, a stationary smart display device with a 4-inch screen, targeted for bedroom/bedside use cases like alarm, sleep tracking. Based on Android Things. See go/cube-home. OWNERS: cube-eng@", + "Former codename for 3P 8-inch and 10-inch Smart Displays from Lenovo, JBL and LG, targeted for use in the kitchen. Based on Android Things. See go/jasper-home. OWNERS: jasper-eng@", + "The Android platform that powers smart televisions, set-top-boxes, and over-the-top devices. See go/atv-eng and go/opa-tv. OWNERS: opa-tv-eng@", + "Legacy Wear OS Assistant. OWNERS: wear-assistant-eng@", + "AssistantKit (go/assistantkit) is a collection of iOS libraries allowing first party apps to integrate Google Assistant features. OWNERS: assistantkit-eng@", + "Standalone gRPC based client. See go/easi. OWNERS: assistant-sdk-service-eng@", + "Automobile. OWNERS: surfaces-infra-core@", + "Cast OS (go/opal-castos-docs#what-is-castos). OWNERS: surfaces-infra-core@", + "Chrome OS (go/chromsos) OWNERS: surfaces-infra-core@", + "For chromecast with assistant + screen, e.g. Newman. OWNERS: cast-eng-platform@", + "Virtual device for event-based triggering, e.g. executing time scheduled routines: go/scheduled-routines. OWNERS: surfaces-infra-core@", + "Assistant on native Chrome OS (go/croissant). OWNERS: croissant@", + "Assistant on Fitbit OS Watch. OWNERS: assistant-wearable-team@", + "Assistant on Fitbit Watch paired with AGSA. OWNERS: assistant-wearable-team@", + "Assistant on Fitbit Watch paired with iOPA. OWNERS: assistant-wearable-team@", + "Google home speaker, i.e., Chirp devices. See go/assistant-speakers. OWNERS: assistant-speaker-leads@", + "Headphone. OWNERS: surfaces-infra-core@", + "Assistant on headphones paired with AGSA. OWNERS: assistant-wearable-team@", + "Assistant on headphones paired with iOPA. OWNERS: assistant-wearable-team@", + "Assistant on iOS devices (go/opa-ios). OWNERS: opa-ios-eng@", + "iOS. OWNERS: surfaces-infra-core@", + "Assistant on iOS with screen off/locked. Use go/bisto device to trigger. OWNERS: bisto-team@", + "iPad devices. OWNERS: surfaces-infra-core@", + "iPhone devices. OWNERS: surfaces-infra-core@", + "Kai OS (go/kaios). OWNERS: surfaces-infra-core@", + "Assistant on KaiOS (go/kaiosama). OWNERS: assistant-kaios-eng@", + "LibAssistant (go/libassistant) C++ SDK that powers Assistant experience on both 1P devices like Google Home and 3P devices like Sonos. OWNERS: libassistant-core@", + "A phone. OWNERS: surfaces-infra-core@", + "Pixel devices. OWNERS: surfaces-infra-core@", + "Pixel 5. OWNERS: surfaces-infra-core@", + "Pixel 6. OWNERS: surfaces-infra-core@", + "Pixel 7. OWNERS: surfaces-infra-core@", + "Pixel 8. OWNERS: surfaces-infra-core@", + "Assistant on Pixel Buds. OWNERS: assistant-wearable-team@", + "Assistant on Pixel Tablet/Tangor (a.k.a, TK). OWNERS: assistant-display-eng@", + "Assistant on Tangor running in Hub mode. OWNERS: assistant-display-eng@", + "Assistant on Tangor running in Personal mode. OWNERS: assistant-display-eng@", + "Assistant on Pixel Watch (a.k.a., Rohan). OWNERS: assistant-wearable-team@", + "Devices with screen off or locked (go/bisto). OWNERS: surfaces-infra-core@", + "Smart surface, such as Titan. OWNERS: surfaces-infra-core@", + "A speaker. OWNERS: surfaces-infra-core@", + "A tablet. OWNERS: surfaces-infra-core@", + "Assistant on a phone call (go/telephone). OWNERS: telephone-assistant-eng@", + "IoT device. OWNERS: surfaces-infra-core@", + "Watch. OWNERS: surfaces-infra-core@", + "Wear OS. OWNERS: surfaces-infra-core@", + "Assistant on Wear OS Watch (a.k.a., Edoras). OWNERS: assistant-wearable-team@" + ], + "type": "string" } }, "type": "object" }, "AssistantGroundingRankerDeviceTargetingFeaturesStates": { - "description": "The states of the device. They are dynamic and may change based on the current context.", + "description": "The states of the device. They are dynamic and may change based on the current context. Next ID: 5", "id": "AssistantGroundingRankerDeviceTargetingFeaturesStates", "properties": { "distance": { @@ -19316,7 +19465,7 @@ "type": "object" }, "AssistantGroundingRankerDeviceTargetingLabels": { - "description": "Labels tagged by Device Targeting library (Lumos). See go/hgr-lumos-integration and go/lumos-feature-extraction for more details.", + "description": "Labels tagged by Device Targeting library (Lumos). See go/hgr-lumos-integration and go/lumos-feature-extraction for more details. Next ID: 2", "id": "AssistantGroundingRankerDeviceTargetingLabels", "properties": { "isSelectedByLumos": { @@ -19664,6 +19813,7 @@ "SPORTS_EVENT", "TV_CHANNEL", "VIDEO", + "VIDEO_RECOMMENDED_PLAYLIST", "YOUTUBE_CHANNEL", "YOUTUBE_VIDEO_PLAYLIST", "TV_SHOW", @@ -19693,6 +19843,7 @@ "", "", "", + "Video recommendations playlist. (e.g. fetched from Recommended feed on YouTube)", "", "", "Representing a TV show which contains multiple TV seasons.", @@ -20674,6 +20825,7 @@ "SPORTS_EVENT", "TV_CHANNEL", "VIDEO", + "VIDEO_RECOMMENDED_PLAYLIST", "YOUTUBE_CHANNEL", "YOUTUBE_VIDEO_PLAYLIST", "TV_SHOW", @@ -20703,6 +20855,7 @@ "", "", "", + "Video recommendations playlist. (e.g. fetched from Recommended feed on YouTube)", "", "", "Representing a TV show which contains multiple TV seasons.", @@ -21990,39 +22143,33 @@ "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", - "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2", - "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP_CALIBRATED", "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2_COMMS_CALIBRATED", "RANKER_NAME_EXPERIMENTAL_PFR_SAGE_NEW_DOMAINS", - "RANKER_NAME_BUCKETED_PARSING_SCORE_FOR_SMARTHOME", "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2_COMMS_CALIBRATED_V2", "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP_CALIBRATED_V2", - "RANKER_NAME_CONSOLIDATED_PFR_HGR_PODCAST" + "RANKER_NAME_CONSOLIDATED_PFR_HGR_PODCAST", + "RANKER_NAME_GROUNDING_RANKER_V4" ], "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.", - "Name for consolidated PFR and HGRv2 ranker.", - "Name for experimental calibrated HGR model for Comms.", "Name for consolidated PFR, HGRv2 and comms ranker.", "Name for experimental PFR ranker for Sage and new domains.", - "Name for PFR ranker with bucketed parsing scores for SmartHome.", "Name for consolidated PFR, HGRv2 and comms ranker v2.", "Name for experimental calibrated HGR model for Comms V2.", - "Name for HGR ranker for podcast based on RANKER_NAME_CONSOLIDATED_PFR_HGR_V2." + "Name for HGR ranker for podcast based on RANKER_NAME_CONSOLIDATED_PFR_HGR_V2.", + "Name for HGR V4 model, the model version that's targeted for Slow media launches." ], "type": "string" }, @@ -33325,7 +33472,8 @@ "PROVIDER_LOOP", "PROVIDER_ZEST", "PROVIDER_EZVOLT", - "PROVIDER_JOLT" + "PROVIDER_JOLT", + "PROVIDER_CHARGESMITH" ], "enumDeprecated": [ false, @@ -34043,6 +34191,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -34761,7 +34910,8 @@ "", "", "", - "Note: Next available value is 0x1270D." + "", + "Note: Next available value is 0x1270E." ], "type": "string" }, @@ -39560,7 +39710,8 @@ "PROVIDER_LOOP", "PROVIDER_ZEST", "PROVIDER_EZVOLT", - "PROVIDER_JOLT" + "PROVIDER_JOLT", + "PROVIDER_CHARGESMITH" ], "enumDeprecated": [ false, @@ -40278,6 +40429,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -40996,7 +41148,8 @@ "", "", "", - "Note: Next available value is 0x1270D." + "", + "Note: Next available value is 0x1270E." ], "type": "string" } @@ -42487,7 +42640,8 @@ "PROVIDER_LOOP", "PROVIDER_ZEST", "PROVIDER_EZVOLT", - "PROVIDER_JOLT" + "PROVIDER_JOLT", + "PROVIDER_CHARGESMITH" ], "enumDeprecated": [ false, @@ -43205,6 +43359,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -43923,7 +44078,8 @@ "", "", "", - "Note: Next available value is 0x1270D." + "", + "Note: Next available value is 0x1270E." ], "type": "string" }, @@ -44291,7 +44447,7 @@ "type": "object" }, "GeostorePhysicalLineProto": { - "description": "Describes a single physical marker line.", + "description": "Describes a single physical marker line. NOTE: PhysicalLineProto could be compared against one another by canonicalizing them via GetCanonicalPhysicalLine() in //geostore/base/public/lane_marker.cc. Any fields that don't contribute to the definition of a physical line in the real world should be bundled with the annotative fields near the bottom and excluded in GetCanonicalPhysicalLine(). LINT.IfChange", "id": "GeostorePhysicalLineProto", "properties": { "dashLengthMeters": { @@ -45707,7 +45863,8 @@ "PROVIDER_LOOP", "PROVIDER_ZEST", "PROVIDER_EZVOLT", - "PROVIDER_JOLT" + "PROVIDER_JOLT", + "PROVIDER_CHARGESMITH" ], "enumDeprecated": [ false, @@ -46425,6 +46582,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -47143,7 +47301,8 @@ "", "", "", - "Note: Next available value is 0x1270D." + "", + "Note: Next available value is 0x1270E." ], "type": "string" } @@ -48039,7 +48198,7 @@ "", "", "", - "Inner/Outer loop. Short names are not supported. The actual direction depends on the local driving rule (right-handed vs. left-handed). TODO(b/161314216) If you need an explicit loop direction or a road sign uses clockwise/counterclockwise, don't use INNER/OUTER but consider adding DIRECTION_CLOCKWISE and DIRECTION_COUNTERCLOCKWISE instead.", + "Inner/Outer loop. Short names are not supported. The actual direction depends on the local driving rule (right-handed vs. left-handed). TODO(b/291302506) If you need an explicit loop direction or a road sign uses clockwise/counterclockwise, don't use INNER/OUTER but consider adding DIRECTION_CLOCKWISE and DIRECTION_COUNTERCLOCKWISE instead.", "" ], "type": "string" @@ -48242,7 +48401,7 @@ "", "", "", - "Inner/Outer loop. Short names are not supported. The actual direction depends on the local driving rule (right-handed vs. left-handed). TODO(b/161314216) If you need an explicit loop direction or a road sign uses clockwise/counterclockwise, don't use INNER/OUTER but consider adding DIRECTION_CLOCKWISE and DIRECTION_COUNTERCLOCKWISE instead.", + "Inner/Outer loop. Short names are not supported. The actual direction depends on the local driving rule (right-handed vs. left-handed). TODO(b/291302506) If you need an explicit loop direction or a road sign uses clockwise/counterclockwise, don't use INNER/OUTER but consider adding DIRECTION_CLOCKWISE and DIRECTION_COUNTERCLOCKWISE instead.", "" ], "type": "string" @@ -52137,6 +52296,7 @@ "THEATER_MODE", "TOUCH_LOCK", "ASSISTANT_PRESS_AND_HOLD", + "WATCH_FACE", "NOTIFICATION_ANNOUNCEMENT" ], "enumDeprecated": [ @@ -52463,6 +52623,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -52788,7 +52949,8 @@ "", "", "", - "End of Wearable device settings", + "", + "Settings \u003e Display \u003e Change watch face End of Wearable device settings", "Assistant Spoken Notification Setting" ], "type": "string" @@ -53225,6 +53387,7 @@ "PIXEL5", "PIXEL6", "PIXEL7", + "PIXEL8", "PIXEL_BUDS", "PIXEL_TABLET", "PIXEL_TABLET_HUB_MODE", @@ -53284,6 +53447,7 @@ "Pixel 5. OWNERS: surfaces-infra-core@", "Pixel 6. OWNERS: surfaces-infra-core@", "Pixel 7. OWNERS: surfaces-infra-core@", + "Pixel 8. OWNERS: surfaces-infra-core@", "Assistant on Pixel Buds. OWNERS: assistant-wearable-team@", "Assistant on Pixel Tablet/Tangor (a.k.a, TK). OWNERS: assistant-display-eng@", "Assistant on Tangor running in Hub mode. OWNERS: assistant-display-eng@", @@ -53754,6 +53918,11 @@ "format": "byte", "type": "string" }, + "legalHold": { + "description": "Output only. Indicates if the document has a legal hold on it.", + "readOnly": true, + "type": "boolean" + }, "name": { "description": "The resource name of the document. Format: projects/{project_number}/locations/{location}/documents/{document_id}. The name is ignored when creating a document.", "type": "string" @@ -57448,7 +57617,8 @@ "UNAUTHENTICATED_USER_ID", "SUPPORT_CASES_ID", "FITBIT_P11_ID", - "SHORT_PHONE_NUMBER" + "SHORT_PHONE_NUMBER", + "EXTERNAL_ID" ], "enumDescriptions": [ "", @@ -57489,7 +57659,8 @@ "used by GMM for anonymous registration", "used by Support Cases for Realtime Media WebRtc", "signaling. go/cases-media-channel-dd. used by Fitbit Project 11 for messaging.", - "Short phone number: go/shortnumbers" + "Short phone number: go/shortnumbers", + "Used to reference external users in other domains," ], "type": "string" } @@ -63442,6 +63613,16 @@ "format": "double", "type": "number" }, + "csamA1Score": { + "description": "Experimental score. Do not use. Google confidential!", + "format": "float", + "type": "number" + }, + "csamAgeIndeterminateScore": { + "description": "Experimental score. Do not use. Google confidential!", + "format": "float", + "type": "number" + }, "iuInappropriateScore": { "description": "This field contains the probability that an image is inappropriate for Images Universal, according to this policy: go/iupolicy.", "format": "float", @@ -63464,6 +63645,11 @@ "format": "float", "type": "number" }, + "semanticSexualizationScore": { + "description": "This score is related to racy/sexual images where scores have semantic meaning from 0 to 1.", + "format": "float", + "type": "number" + }, "spoofScore": { "format": "float", "type": "number" @@ -65199,7 +65385,7 @@ "type": "object" }, "IndexingDocjoinerDataVersion": { - "description": "DataVersion tracks the version of data in CompositeDoc. The notion of \"data\" here is loose and people can define the name of their own. For example, a signal generated by Index Signals or an annotation generated by Goldmine (and other components) can all be considered as data here. Each field in this proto represents the human readable version string and the timestamp of one particular data. We choose to explicitly list out all of the data here for better understanding about which data are tracked. NOTE that human_readable_version is not intended for comparison, use timestamp_micros. In addition, we have an annotation about the field paths of each data. With proto reflection (using google3/net/proto2/util/public/field_path.h), downstream systems can take advantage of this annotation to automatically handle newly introduced data without modifying their code. Please also see the comment of FieldProjector above. There are also some fields in DataInfo that annotate who generates the data, the Index Signals or Goldmine annotator name. Next ID: 537", + "description": "DataVersion tracks the version of data in CompositeDoc. The notion of \"data\" here is loose and people can define the name of their own. For example, a signal generated by Index Signals or an annotation generated by Goldmine (and other components) can all be considered as data here. Each field in this proto represents the human readable version string and the timestamp of one particular data. We choose to explicitly list out all of the data here for better understanding about which data are tracked. NOTE that human_readable_version is not intended for comparison, use timestamp_micros. In addition, we have an annotation about the field paths of each data. With proto reflection (using google3/net/proto2/util/public/field_path.h), downstream systems can take advantage of this annotation to automatically handle newly introduced data without modifying their code. Please also see the comment of FieldProjector above. There are also some fields in DataInfo that annotate who generates the data, the Index Signals or Goldmine annotator name. Next ID: 538", "id": "IndexingDocjoinerDataVersion", "properties": { "acceleratedShoppingSignal": { @@ -65406,6 +65592,10 @@ "imageStockStockImageAnnotation": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, + "imageembed": { + "$ref": "IndexingDocjoinerDataVersionVersionInfo", + "description": "END DATA FIELDS" + }, "indexingAnnotationsAnnotationMeta": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, @@ -66701,8 +66891,7 @@ "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, "ucpSignal": { - "$ref": "IndexingDocjoinerDataVersionVersionInfo", - "description": "END DATA FIELDS" + "$ref": "IndexingDocjoinerDataVersionVersionInfo" }, "udrConverterDocumentShoppingData": { "$ref": "IndexingDocjoinerDataVersionVersionInfo" @@ -71986,11 +72175,6 @@ "format": "float", "type": "number" }, - "qrewriteCallPathInfo": { - "$ref": "NlpLoggingQRewriteClientCallPathInfo", - "deprecated": true, - "description": "This proto holds the complete call path info of the QRewrite client (e.g. the QUS's phase like \"RBT\",\"QBT\"; the QUS's candidate type like \"Identity\"; and the ACE's candidate type like \"FuzzyMatcher\")." - }, "qrewriteCallPathInfoFingerprint": { "description": "This proto holds the fingerprint of the call path info of QRewrite client (e.g. the QUS's phase like \"RBT\",\"QBT\"; the QUS's candidate type like \"Identity\"; and the ACE's candidate type like \"FuzzyMatcher\").", "format": "uint64", @@ -76553,124 +76737,6 @@ }, "type": "object" }, - "NlpLoggingQRewriteClientCallPathInfo": { - "description": "The proto that holds the complete call path info of the QRewrite client (e.g. the QUS's phase like \"RBT\",\"QBT\"; the QUS's candidate type like \"Identity\"; and the ACE's candidate type like \"FuzzyMatcher\"). Next ID: 5 ACE tags", - "id": "NlpLoggingQRewriteClientCallPathInfo", - "properties": { - "qrewriteCandidateId": { - "$ref": "QualityQrewriteCandidateId", - "description": "Indicates the type of candidate rewritten by QRewrite. This field is filled within QRewrite instead of QRewrite clients, and we add this here so this proto is able to hold all tags to form the identifier." - }, - "qusCandidateId": { - "$ref": "QualityQrewriteCandidateId", - "description": "QUS tags Indicates the type of the candidate in QUS that sends the QRewrite request." - }, - "qusClientCallPathInfo": { - "$ref": "NlpLoggingQusClientCallPathInfo", - "description": "Upstream call path before QUS." - }, - "qusPhase": { - "description": "Indicates which QUS phase sends the QRewrite request. Note if the QRewrite response is reused in succeeding phases, this field should not be overridden and it is always the phase that initially sends the RPC.", - "enum": [ - "QU_PHASE_UNSPECIFIED", - "QU_PHASE_REQUEST", - "QU_PHASE_QREWRITE", - "QU_PHASE_QBT", - "QU_PHASE_PROBE_QUERY", - "QU_PHASE_MULTI_ACCOUNT", - "QU_PHASE_CQBT", - "QU_PHASE_QBT_RESOLUTION", - "QU_PHASE_HIGH_PRECISION", - "QU_PHASE_COMBINED_RBT_RESOLUTION", - "QU_PHASE_ANALYZER_INPUT", - "QU_PHASE_NAGE" - ], - "enumDescriptions": [ - "Invalid value to use as a default.", - "Phase in which the QueryUnderstandingRequest for a non-identity Candidate is generated. Produces QueryCandidateInfo.", - "Phase in which QUS calls QRewrite. Produces QRewrite's reply.", - "Phase in which QBT interpretations are ranked. Produces ranked QBT interpretations.", - "Phase in which QUS does a probe query for incomplete search results and produces ranked RBT interpretations on the basis of these. Only runs if understand_mode is PRE_RESULT_AND_PROBE_QUERY.", - "Phase in which QUS does cross-account understanding. Produces AnalyzerResponse whose interpretations contain personal data from multiple accounts.", - "Deprecated, but see go/qus-contextual-ig for original purpose.", - "Phase in which QUS calls resolution service to perform slow intent resolution. Produces resolved intents.", - "Phase in which QUS calls the fast HighPrecision workflow. Only runs if understand_mode is PRE_RESULT_AND_HIGH_PRECISION.", - "Phase in which QUS combines the RBT result and Slow Resolution result. Only runs if understand_mode is PRE_RESULT_AND_PROBE_QUERY_AND_RESOLUTION.", - "Phase in which QUS returns the AnalyzerInput as a separate Phase. It copies the AnalyzerInput from QU_PHASE_QREWRITE and returns it as a QueryUnderstandingStreamingResult for the purpose of logging in ACE. See go/analyzerinput-new-qus-phase.", - "Phase in which QUS runs NSP in the QUS." - ], - "type": "string" - } - }, - "type": "object" - }, - "NlpLoggingQusClientCallPathInfo": { - "description": "The proto that holds the complete call path info of the QUS client (e.g. the candidate type like \"Identity\", \"FuzzyMatcher\"; The intent generator like \"QUS_IG\" in ACE).", - "id": "NlpLoggingQusClientCallPathInfo", - "properties": { - "rewriterType": { - "description": "rewriter_type forms part of a unique key to be used to label QUS Requests from ACE. The need to distinguish between the variety of calls from AS into QUS is for two reasons: (a) currently, assistant eval can do NLU Eval only on certain rewrites (b) later AS Hermetic and NLU Eval can be integrated In the furure, the unique key will be expanded to add intent_generator_type or something similar. There are ongoing discussions to confirm these plans", - "enum": [ - "UNKNOWN_REWRITER_TYPE", - "GENIE", - "FUZZY_MATCHER_HC", - "FUZZY_MATCHER", - "FUZZY_MATCHER_ADDITIONAL_1", - "FUZZY_MATCHER_ADDITIONAL_2", - "IDENTITY", - "MONDEGREEN_ASSISTANT", - "MONDEGREEN", - "SYNTHETIC", - "SPEECH_RECOGNITION", - "SPEECH_MISRECOGNITION", - "SPELL_CORRECTION", - "AUTO_TRANSLATION", - "AUTO_TRANSLATION_ARGUMENT_TRANSFER" - ], - "enumDeprecated": [ - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ], - "enumDescriptions": [ - "", - "", - "", - "", - "Additional FuzzyMatcher branches, see go/afm-additional-branches", - "", - "", - "Mondegreen Assistant is used in Media queries, Mondegreen is used for YouTube/Voz. See go/project-mondegreen-media", - "", - "", - "", - "Rewriter for misrecognition quick-fixes, see go/pop-ranking-misrecognition-rewriter", - "QUS rewriters.", - "", - "Auto Translate with argument transfer. go/missandei-argument-transfer-through-qus" - ], - "type": "string" - }, - "temporaryAceTag": { - "description": "The timestamp when QUS request is built in ACE. For now we don't care about the actual meaning of this tag, and only want to guarantee its uniqueness per QUS call.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "NlpMeaningMeaningRemodeling": { "id": "NlpMeaningMeaningRemodeling", "properties": { @@ -94436,7 +94502,7 @@ "type": "object" }, "PtokenPToken": { - "description": "PToken expresses policy-relevant properties of the data objects being processed and stored in Google's production systems. See go/ptoken to learn more. PTokens are intentionally opaque: go/ptokens-are-opaque. The following should be considered implementation details. Next ID: 9 INTERNAL: If both the Scalar and the Compound extensions are populated, we use the Compound and discard the Scalar. In principle, this should never happen.", + "description": "PToken expresses policy-relevant properties of the data objects being processed and stored in Google's production systems. See go/ptoken to learn more. PTokens are intentionally opaque: go/ptokens-are-opaque. The following should be considered implementation details. Next ID: 9 LINT.IfChange INTERNAL: If both the Scalar and the Compound extensions are populated, we use the Compound and discard the Scalar. In principle, this should never happen.", "id": "PtokenPToken", "properties": {}, "type": "object" @@ -101187,91 +101253,6 @@ }, "type": "object" }, - "QualityQrewriteCandidateId": { - "description": "A complete query candidate Id includes a list of Id fields. The Id field order is maintained as the order by which each field is appended to the list.", - "id": "QualityQrewriteCandidateId", - "properties": { - "field": { - "items": { - "$ref": "QualityQrewriteCandidateIdField" - }, - "type": "array" - } - }, - "type": "object" - }, - "QualityQrewriteCandidateIdField": { - "description": "The message represents a field in the query candidate Id.", - "id": "QualityQrewriteCandidateIdField", - "properties": { - "index": { - "description": "If needed, a servlet can use this field to assign an ID to distinguish between different candidates of the same CandidateType.", - "format": "int32", - "type": "integer" - }, - "type": { - "enum": [ - "CANDIDATE_TYPE_UNSPECIFIED", - "IDENTITY", - "SPELLING", - "S3_TOP_HYPOTHESIS", - "AUTO_TRANSLATE", - "ADS_ALTERNATIVE_RUN", - "NEARBY_RETRIEVAL", - "CONTEXTUAL_REWRITE", - "SAFT_TOKENIZER", - "CONVO_FPR", - "SPOKEN_INTENT", - "AUTO_TRANSLATE_ARGUMENT_TRANSFER", - "CONTEXT_AWARE_SPEECH_RECOGNITION_REWRITE", - "MAST", - "FUZZY_MATCHER_REWRITE", - "SHOPPING_PREFERENCES_REWRITE", - "MAGI_CONTEXT_ENGINE_REWRITE" - ], - "enumDeprecated": [ - false, - false, - false, - true, - false, - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "Indicates it is Ads qrewrite request candidate, and it should run on alternative data version. go/ads-qrewrite-multiversion", - "NearbyRetrieval creates a supplemental QRewriteResult to send to Superroot where it is used for a supplemental index lookup.", - "Indicates that Genie rewrote the query using contextual information.", - "", - "ConversationalRewriteServlet rewrote the query using context", - "", - "Auto Translate with argument transfer. go/missandei-argument-transfer-through-qus The query was rewritten because it is probably a speech recognition error. go/asr-rewriter.", - "", - "go/mast-query", - "go/afm", - "Rewrite with user explicit shopping preferences.", - "Rewrite with context from chat conversation with Magi." - ], - "type": "string" - } - }, - "type": "object" - }, "QualityQrewriteContactCalendarName": { "id": "QualityQrewriteContactCalendarName", "properties": { @@ -102474,7 +102455,8 @@ "type": "object" }, "QualityShoppingShoppingAttachment": { - "description": "This proto is a lightweight version of ShoppingAnnotation in docjoin attachment. We're doing a deep copy of protos defined in ShoppingAnnotation so that we can control individual fields that will sit in Muppet. Data here will be used for scoring organic shopping web results and previews. Many shopping related signals, e.g., product review score, are also served from this attachment. Next ID: 21", + "deprecated": true, + "description": "This proto is a lightweight version of ShoppingAnnotation in docjoin attachment. We're doing a deep copy of protos defined in ShoppingAnnotation so that we can control individual fields that will sit in Muppet. Data here will be used for scoring organic shopping web results and previews. Many shopping related signals, e.g., product review score, are also served from this attachment. DEPRECATED: Please use UDR (go/udr) instead.", "id": "QualityShoppingShoppingAttachment", "properties": { "datasetModelArticleScore": { @@ -103327,6 +103309,29 @@ }, "type": "object" }, + "QualityTimebasedDateReliability": { + "description": "Unreliable dates signals per URL. go/unreliable-dates-dd", + "id": "QualityTimebasedDateReliability", + "properties": { + "petacatScores": { + "items": { + "$ref": "QualityTimebasedPetacatDateReliability" + }, + "type": "array" + }, + "unreliableDatesScore": { + "description": "max(petacat.unreliable_dates_score)", + "format": "float", + "type": "number" + }, + "unreliableDatesScoreExposureAdjusted": { + "description": "max(petacat.unreliable_dates_score * petacat.date_exposure_score)", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "QualityTimebasedLastSignificantUpdate": { "id": "QualityTimebasedLastSignificantUpdate", "properties": { @@ -103339,6 +103344,9 @@ "format": "int64", "type": "string" }, + "dateReliabilityInfo": { + "$ref": "QualityTimebasedDateReliability" + }, "source": { "description": "The source the signal comes from.", "enum": [ @@ -103548,6 +103556,45 @@ }, "type": "object" }, + "QualityTimebasedPetacatDateReliability": { + "description": "Unreliable dates signals per Domain+Petacat. go/unreliable-dates-dd", + "id": "QualityTimebasedPetacatDateReliability", + "properties": { + "contentageReliability": { + "format": "float", + "type": "number" + }, + "dateExposure": { + "format": "float", + "type": "number" + }, + "dateExposureScore": { + "description": "This is date_exposure after sigmoid transformation.", + "format": "float", + "type": "number" + }, + "dateVsContentageDistributionSkew": { + "description": "Auxiliary scores. The unreliable_dates_score is a product of these scores excl. date_exposure. The definition for each of the scores you can find at go/unreliable-dates-dd", + "format": "float", + "type": "number" + }, + "isForumQnaSocialMediaProbability": { + "format": "float", + "type": "number" + }, + "petacatId": { + "description": "go/verticals4", + "format": "int32", + "type": "integer" + }, + "unreliableDatesScore": { + "description": "This is a final score excl. date exposure component.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "QualityTimebasedSyntacticDate": { "description": "Next ID: 21", "id": "QualityTimebasedSyntacticDate", @@ -107126,6 +107173,11 @@ "format": "float", "type": "number" }, + "typeFprint": { + "description": "Fingerprint of type hrid http://cs/google3/repository/webref/universal/base/kg-schema.h;rcl=543911652;l=51", + "format": "uint64", + "type": "string" + }, "typeMid": { "description": "Mid of this type. Equivalent to type_name, but is more compact. When present, overrides type_name (which can be omitted in this case to save space).", "format": "uint64", @@ -113053,7 +113105,7 @@ "type": "object" }, "ResearchScienceSearchReconciledMetadata": { - "description": "A proto for storing inferred and reconciled metadata for Science Search. Next available tag: 72", + "description": "A proto for storing inferred and reconciled metadata for Science Search. Next available tag: 73", "id": "ResearchScienceSearchReconciledMetadata", "properties": { "alternateName": { @@ -113213,6 +113265,10 @@ }, "type": "array" }, + "hasCroissantFormat": { + "description": "Indicates if the dataset has croissant format (https://github.com/mlcommons/croissant).", + "type": "boolean" + }, "hasTableSummaries": { "description": "Indicates if the dataset has table summaries. This field is only populated during indexing time.", "type": "boolean" @@ -123281,11 +123337,13 @@ "enum": [ "HIGH_THROUGHPUT", "LOW_LATENCY", + "LATENCY_SENSITIVE", "NUM_REQUEST_TYPES" ], "enumDescriptions": [ "Note: keep in sync with default in trawler.proto", "", + "Best effort low latency hostload.", "*** don't forget to update." ], "type": "string" @@ -123490,7 +123548,7 @@ "type": "object" }, "TrawlerTrawlerPrivateFetchReplyData": { - "description": "This is an optional container of arbitrary data that can be added to a FetchReplyData. This data is meant to be logged, but not sent back in a fetch reply (it should be added *after* the reply is prepared). Use FetchResponsePreparatorImpl::AddTrawlerPrivateDataToFetchReplyData to add. See also the comment in fetch_response_preparator_impl.cc. Next Tag: 45", + "description": "This is an optional container of arbitrary data that can be added to a FetchReplyData. This data is meant to be logged, but not sent back in a fetch reply (it should be added *after* the reply is prepared). Use FetchResponsePreparatorImpl::AddTrawlerPrivateDataToFetchReplyData to add. See also the comment in fetch_response_preparator_impl.cc. Next Tag: 46", "id": "TrawlerTrawlerPrivateFetchReplyData", "properties": { "BotGroupName": { @@ -123663,6 +123721,10 @@ "format": "int64", "type": "string" }, + "credentialId": { + "description": "Log the credential id", + "type": "string" + }, "dependentFetchType": { "description": "Dependent fetch type", "enum": [ @@ -124208,6 +124270,14 @@ "BATTLESTAR_SELF_SHARE_EVENT_LEVEL", "SUPPLEMENTAL_TG_ANNOTATION_FOR_WEAR_EVENT_LEVEL", "PGS_THIRD_PARTY_REVIEW_EVENT_LEVEL", + "GAME_HUB_DEVELOPER_VIDEO_AT_EVENT_LEVEL", + "BATTLESTAR_GAME_CENTRIC_BOTTOM_SHEET_ASSETS_EVENT_LEVEL", + "GAME_HUB_DEVELOPER_VIDEO_ELIGIBLE_AT_EVENT_LEVEL", + "FOP_ORDERING_RECOMMENDATION_ELIGIBLE_EVENT_LEVEL", + "FOP_ORDERING_NO_RECOMMENDATION_EVENT_LEVEL", + "FOP_ORDERING_RECOMMENDATION_OUTDATED_EVENT_LEVEL", + "FOP_ORDERING_RECOMMENDATION_SAME_FOP_EVENT_LEVEL", + "FOP_ORDERING_STORED_VALUE_EVENT_LEVEL", "EVENT_LEVEL_TEST_CODE_LIMIT", "ENTERTAINMENT_CLUSTER_TRIGGERING_AT_SESSION_LEVEL", "BEST_SELLER_CART_TAG_AT_SESSION_LEVEL", @@ -124375,6 +124445,7 @@ "IN_APP_OFFER_BATTLESTAR_APP_EVONY_AT_SESSION_LEVEL", "IN_APP_OFFER_BATTLESTAR_APP_ASPHALT_9_AT_SESSION_LEVEL", "IN_APP_OFFER_BATTLESTAR_APP_MAGIC_RAMPAGE_AT_SESSION_LEVEL", + "IN_APP_OFFER_BATTLESTAR_APP_LAST_SURVIVOR_AT_SESSION_LEVEL", "IN_APP_OFFER_BATTLESTAR_APP_SUMMONERS_WAR_AT_SESSION_LEVEL", "IN_APP_OFFER_ELIGIBLE_AT_SESSION_LEVEL", "IN_APP_OFFER_ELIGIBLE_APP_1_AT_SESSION_LEVEL", @@ -124385,6 +124456,7 @@ "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_EVONY_AT_SESSION_LEVEL", "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_ASPHALT_9_AT_SESSION_LEVEL", "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_MAGIC_RAMPAGE_AT_SESSION_LEVEL", + "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_LAST_SURVIVOR_AT_SESSION_LEVEL", "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_SUMMONERS_WAR_AT_SESSION_LEVEL", "IN_APP_OFFER_SAVED_AT_SESSION_LEVEL", "IN_APP_OFFER_SAVED_APP_1_AT_SESSION_LEVEL", @@ -124839,6 +124911,9 @@ "BOOKS_USER_P13N_SETTING_OFF_AT_SESSION_LEVEL", "BATTLESTAR_GAME_IN_MDP_SESSION_LEVEL", "BATTLESTAR_PSEUDO_CREDIT_OFFER_IN_DP_SESSION_LEVEL", + "BATTLESTAR_BOTTOMSHEET_FROM_FCP_AUTOSEND", + "BATTLESTAR_BOTTOMSHEET_FHR_ON_FPC", + "BATTLESTAR_MERCH_FCP_FROM_FCC_CONTROL", "REVIEW_HIGHLIGHTS_SESSION_LEVEL", "BOOKS_NOTIFICATION_RECEIVED_SESSION_LEVEL", "LANGUAGE_SWITCHER_ELIGIBLE_SESSION_LEVEL", @@ -124873,6 +124948,11 @@ "SUPPLEMENTAL_TG_ANNOTATION_FOR_WEAR_SESSION_LEVEL", "SEARCH_ADS_NON_MDP_RUC_RATE_SESSION_LEVEL", "PGS_THIRD_PARTY_REVIEW_SESSION_LEVEL", + "GAME_HUB_DEVELOPER_VIDEO_AT_SESSION_LEVEL", + "BATTLESTAR_GAME_CENTRIC_BOTTOM_SHEET_ASSETS_SESSION_LEVEL", + "CART_ABANDONMENT_SUBSCRIPTION_BENEFITS_SESSION_LEVEL", + "GAME_HUB_DEVELOPER_VIDEO_ELIGIBLE_AT_SESSION_LEVEL", + "SHOULD_SEE_FIRST_PARTY_PROMO_LIVE_OP_SUBSCRIPTION_SESSION_LEVEL", "SESSION_LEVEL_TEST_CODE_LIMIT", "CART_ABANDONMENT_USER_LEVEL", "IN_APP_PRODUCTS_IN_DETAILS_PAGE_USER_LEVEL", @@ -124939,6 +125019,7 @@ "IN_APP_OFFER_BATTLESTAR_APP_EVONY_AT_USER_LEVEL", "IN_APP_OFFER_BATTLESTAR_APP_ASPHALT_9_AT_USER_LEVEL", "IN_APP_OFFER_BATTLESTAR_APP_MAGIC_RAMPAGE_AT_USER_LEVEL", + "IN_APP_OFFER_BATTLESTAR_APP_LAST_SURVIVOR_AT_USER_LEVEL", "IN_APP_OFFER_BATTLESTAR_APP_SUMMONERS_WAR_AT_USER_LEVEL", "IN_APP_OFFER_ELIGIBLE_AT_USER_LEVEL", "IN_APP_OFFER_ELIGIBLE_APP_1_AT_USER_LEVEL", @@ -124949,6 +125030,7 @@ "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_EVONY_AT_USER_LEVEL", "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_ASPHALT_9_AT_USER_LEVEL", "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_MAGIC_RAMPAGE_AT_USER_LEVEL", + "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_LAST_SURVIVOR_AT_USER_LEVEL", "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_SUMMONERS_WAR_AT_USER_LEVEL", "IN_APP_OFFER_SAVED_AT_USER_LEVEL", "IN_APP_OFFER_SAVED_APP_1_AT_USER_LEVEL", @@ -125161,6 +125243,11 @@ "IS_ELIGIBLE_FOR_RENEWAL_REMINDER_USER_LEVEL", "FEATURED_PRODUCTS_LIVE_OPS_AT_USER_LEVEL", "FIRST_PARTY_OFFERS_REQUEST_TRIGGER_USER_LEVEL", + "IS_ELIGIBLE_FOR_APP_TARGETED_REWARD_USER_LEVEL", + "GAME_HUB_DEVELOPER_VIDEO_AT_USER_LEVEL", + "CART_ABANDONMENT_SUBSCRIPTION_BENEFITS_USER_LEVEL", + "GAME_HUB_DEVELOPER_VIDEO_ELIGIBLE_AT_USER_LEVEL", + "SHOULD_SEE_FIRST_PARTY_PROMO_LIVE_OP_SUBSCRIPTION_USER_LEVEL", "USER_LEVEL_TEST_CODE_LIMIT" ], "enumDeprecated": [ @@ -125657,6 +125744,16 @@ false, false, false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, true, false, false, @@ -126260,6 +126357,16 @@ false, false, false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, true, false, false, @@ -126384,6 +126491,11 @@ false, false, false, + false, + false, + false, + false, + false, false ], "enumDescriptions": [ @@ -126654,6 +126766,14 @@ "Event-level test code corresponding to the self share bottom sheet appearing for Battlestar games (screenshot: https://screenshot.googleplex.com/3RRHu4jPLgocYc2).", "Event-level test code for Supplemental TG Annotation for wear apps seeking or queries from wear.", "Event-level test code for the presence of a third-party review.", + "Event-level test code for Game Hub Developer Video cluster.", + "Event-level test code corresponding to game-centric email icon assets appearing in the bottom sheet for a selected list of Battlestar games.", + "Event-level test code for Game Hub Developer Video cluster eligibility.", + "Event level test codes for FOP Ordering (swapping the default FOP).", + "", + "", + "", + "", "", "", "", @@ -126839,6 +126959,8 @@ "", "", "", + "", + "", "see go/reordering-subnav-tabs", "see go/reordering-subnav-tabs", "", @@ -127285,6 +127407,9 @@ "", "Session-level test code corresponding to an MDP showing for a game also available on Battlestar.", "Session-level test code corresponding to the details page ribbon showing a pseudo credit offer promotion for Battlestar games.", + "Session-level test code tracking the Battlestar bottomsheet automatically loading on a participating editorial page (FCP).", + "Session-level test code for FCP containing an FHR capable of invoking the Battlestar bottomsheet.", + "Session-level test code for when an FCP is accessed via clicking a Phonesky FCC programmed by Merch without any experimental features.", "Session-level test code for review highlights", "Session level test code for users who receive a Books notification.", "Session level test code indicating that the user is eligible for language switcher on cart screen.", @@ -127319,6 +127444,11 @@ "Session-level test code for Supplemental TG Annotation for wear apps seeking or queries from wear.", "Session-level test code to slice when ruc_rate (conversion_rate * rrpi) \u003e 0.8 for non-mdp search traffic", "Session-level test code for a third-party review.", + "Session-level test code for Game Hub Developer Video cluster.", + "Session-level test code corresponding to game-centric email icon assets appearing in the bottom sheet for a selected list of Battlestar games.", + "Session-level for showing subscription benefits in cart abandonment.", + "Session-level test code for Game Hub Developer Video cluster eligibility.", + "Session-level for showing 1P LiveOps subscription offer.", "", "Cart abandonment flow for purchase flow.", "User saw/would have seen the in app products section in App", @@ -127403,6 +127533,8 @@ "", "", "", + "", + "", "User saw/would have seen the subscription one time pass offer", "", "", @@ -127607,6 +127739,11 @@ "User level test code for users who are eligible to see the renewal reminder button.", "User level test code for Featured Products LiveOps.", "User level test code for first party promotional offers.", + "User level test code for those users that are eligible for a targerted reward for an app. Test code will be logged in PGS. More info: go/growth-boosters-ptdr", + "User-level test code for Game Hub Developer Video cluster.", + "User-level for showing subscription benefits in cart abandonment.", + "User-level test code for Game Hub Developer Video cluster eligibility.", + "User-level for showing 1P LiveOps subscription offer.", "" ], "type": "string" @@ -127920,7 +128057,8 @@ "OBJECTIVE_SAM_FEATURES_DONE", "OBJECTIVE_SPEECH_RECOGNITION_DONE", "OBJECTIVE_MULTI_TRACK_AUDIO_DONE", - "OBJECTIVE_SHORTS_READY" + "OBJECTIVE_SHORTS_READY", + "OBJECTIVE_720P_TRANSCODES_ONLY_DONE" ], "enumDeprecated": [ false, @@ -127946,6 +128084,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -127972,7 +128111,8 @@ "The set of features that Smart Auto Midrolls depends on for generating midroll ad breaks.", "", "All assets requested for multi-track audio content.", - "Minimum processing needed for a Shorts video to be considered ready." + "Minimum processing needed for a Shorts video to be considered ready.", + "The video is considered playable at 720p." ], "type": "string" }, @@ -129336,7 +129476,7 @@ false, false, false, - false, + true, false, false, true, @@ -131306,7 +131446,8 @@ "OCR_EDU", "ASR_SPAN_EDU", "GENERATIVE_ASR_I18N", - "YT_AUTO_CHAPTERS" + "YT_AUTO_CHAPTERS", + "OCR_I18N" ], "enumDescriptions": [ "", @@ -131337,7 +131478,8 @@ "OCR and ASR anchors generated for educational videos in edu Raffia Overlay.", "", "Anchors for i18n languages", - "Anchors derived from Youtube chapters that were auto-generated." + "Anchors derived from Youtube chapters that were auto-generated.", + "OCR anchors for i18n" ], "type": "string" }, @@ -131708,7 +131850,8 @@ "OCR_EDU", "ASR_SPAN_EDU", "GENERATIVE_ASR_I18N", - "YT_AUTO_CHAPTERS" + "YT_AUTO_CHAPTERS", + "OCR_I18N" ], "enumDescriptions": [ "", @@ -131739,7 +131882,8 @@ "OCR and ASR anchors generated for educational videos in edu Raffia Overlay.", "", "Anchors for i18n languages", - "Anchors derived from Youtube chapters that were auto-generated." + "Anchors derived from Youtube chapters that were auto-generated.", + "OCR anchors for i18n" ], "type": "string" }, @@ -131831,7 +131975,8 @@ "OCR_EDU", "ASR_SPAN_EDU", "GENERATIVE_ASR_I18N", - "YT_AUTO_CHAPTERS" + "YT_AUTO_CHAPTERS", + "OCR_I18N" ], "enumDescriptions": [ "", @@ -131862,7 +132007,8 @@ "OCR and ASR anchors generated for educational videos in edu Raffia Overlay.", "", "Anchors for i18n languages", - "Anchors derived from Youtube chapters that were auto-generated." + "Anchors derived from Youtube chapters that were auto-generated.", + "OCR anchors for i18n" ], "type": "string" }, diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index c522ad8eab5..6d79b8fe56b 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -11833,7 +11833,9 @@ type AssistantApiClientOpPropertiesDeviceModifySettingClientOpProperty struct { // "BEDTIME_MODE" // "THEATER_MODE" // "TOUCH_LOCK" - // "ASSISTANT_PRESS_AND_HOLD" - End of Wearable device settings + // "ASSISTANT_PRESS_AND_HOLD" + // "WATCH_FACE" - Settings > Display > Change watch face End of + // Wearable device settings // "NOTIFICATION_ANNOUNCEMENT" - Assistant Spoken Notification Setting SupportedSettings []string `json:"supportedSettings,omitempty"` @@ -13841,6 +13843,7 @@ type AssistantApiCoreTypesGovernedSurfaceIdentity struct { // "PIXEL5" - Pixel 5. OWNERS: surfaces-infra-core@ // "PIXEL6" - Pixel 6. OWNERS: surfaces-infra-core@ // "PIXEL7" - Pixel 7. OWNERS: surfaces-infra-core@ + // "PIXEL8" - Pixel 8. OWNERS: surfaces-infra-core@ // "PIXEL_BUDS" - Assistant on Pixel Buds. OWNERS: // assistant-wearable-team@ // "PIXEL_TABLET" - Assistant on Pixel Tablet/Tangor (a.k.a, TK). @@ -14680,6 +14683,7 @@ type AssistantApiCoreTypesSurfaceIdentity struct { // "PIXEL5" - Pixel 5. OWNERS: surfaces-infra-core@ // "PIXEL6" - Pixel 6. OWNERS: surfaces-infra-core@ // "PIXEL7" - Pixel 7. OWNERS: surfaces-infra-core@ + // "PIXEL8" - Pixel 8. OWNERS: surfaces-infra-core@ // "PIXEL_BUDS" - Assistant on Pixel Buds. OWNERS: // assistant-wearable-team@ // "PIXEL_TABLET" - Assistant on Pixel Tablet/Tangor (a.k.a, TK). @@ -15113,12 +15117,22 @@ func (s *AssistantApiDateTime) MarshalJSON() ([]byte, error) { // running on Pixel. Allo does not support AudioInput while the Pixel // does. In this case, audio_input will be set to false for Assistant // Allo requests while it might be set to true for OPA_NEXUS requests. -// Next ID: 35 +// Next ID: 36 type AssistantApiDeviceCapabilities struct { // AndroidIntentCapabilities: Capabilites related to Android intent // support. AndroidIntentCapabilities *AssistantApiAndroidIntentCapabilities `json:"androidIntentCapabilities,omitempty"` + // AssistantCapability: Capabilities if surface supports Google + // Assistant. + // + // Possible values: + // "UNKNOWN" + // "SUPPORTED" + // "UNSUPPORTED" - Assistant is no longer supported(e.g., on legacy + // surfaces). + AssistantCapability string `json:"assistantCapability,omitempty"` + // AudioInput: These capabilities are scoped to the ability to gather // audio. It includes information like the type of audio that can be // gathered (e.g. public, private). @@ -20338,7 +20352,7 @@ func (s *AssistantApiSupportedConversationVersion) MarshalJSON() ([]byte, error) // AssistantApiSupportedFeatures: These are the set of features that are // supported by the device. It's a part of the SoftwareCapabilities of -// the device. Next ID: 66 +// the device. Next ID: 67 type AssistantApiSupportedFeatures struct { // AaeNotificationSourceSupported: Whether the client supports the // alternative message notification sources on AAE, in which case @@ -20587,6 +20601,10 @@ type AssistantApiSupportedFeatures struct { // variant would be used during the read messages flow. ReadMessagesTtsTaperingSupported bool `json:"readMessagesTtsTaperingSupported,omitempty"` + // ReadNotificationSummarizationSupported: Whether the client supports + // message summarization. + ReadNotificationSummarizationSupported bool `json:"readNotificationSummarizationSupported,omitempty"` + // RemoteCloudCastingEnabled: Whether the client has remote casting // enabled. For ex: we want to disable this for clients like Auto. RemoteCloudCastingEnabled bool `json:"remoteCloudCastingEnabled,omitempty"` @@ -23391,7 +23409,7 @@ func (s *AssistantGroundingRankerDeviceGroundingProviderFeatures) MarshalJSON() // AssistantGroundingRankerDeviceTargetingFeatures: Features generated // by Device Targeting library (Lumos). See go/hgr-lumos-integration and -// go/lumos-feature-extraction for more details. +// go/lumos-feature-extraction for more details. Next ID: 3 type AssistantGroundingRankerDeviceTargetingFeatures struct { Properties *AssistantGroundingRankerDeviceTargetingFeaturesProperties `json:"properties,omitempty"` @@ -23421,7 +23439,8 @@ func (s *AssistantGroundingRankerDeviceTargetingFeatures) MarshalJSON() ([]byte, } // AssistantGroundingRankerDeviceTargetingFeaturesProperties: The -// properties of the device. They are static and won't change. +// properties of the device. They are static and won't change. Next ID: +// 4 type AssistantGroundingRankerDeviceTargetingFeaturesProperties struct { // DeviceModelId: The model ID of the device. This should be globally // unique across manufacturers/OEMs. @@ -23431,6 +23450,120 @@ type AssistantGroundingRankerDeviceTargetingFeaturesProperties struct { // who is speaking. IsOwnedBySpeaker bool `json:"isOwnedBySpeaker,omitempty"` + // SurfaceType: Assistant surface type (ontology). + // + // Possible values: + // "UNKNOWN_TYPE" - Unknown surface type. + // "ACCL" - Android conversation client library (go/accl) is an + // Android library which implements the Conversation Protocol that + // allows a surface to have conversations with the Assistant server. + // OWNERS: surfaces-infra-core@ + // "AGSA" - Android Google Search App (go/agsa). OWNERS: + // surfaces-infra-core@ + // "ANDROID" - Android. OWNERS: surfaces-infra-core@ + // "ANDROID_AUTO" - Assistant on Android Auto (go/ast-auto). OWNERS: + // opa-android-leads@ + // "ANDROID_LITE" - Assistant on Android Go (not part of AGSA). + // OWNERS: assistantgo-eng@ + // "ANDROID_PHONE" - Assistant on Android phones accessed through the + // Google App (velvet). This surface is formerly known as OPA_AGSA. + // OWNERS: opa-android-leads@ + // "ANDROID_SCREENLESS" - Assistant on Nexus with screen off/locked. + // Use go/bisto device to trigger. OWNERS: opa-android-leads@ + // "ANDROID_SMART_DISPLAY" - Assistant on Titan hub mode + // (go/titan-hubmode-surface). This is OPA Android first party Smart + // Display devices. The UI experience is built on Opal (Gallium and + // Flutter) and native Android. OWNERS: opa-android-leads@ + // "ANDROID_TABLET" - Assistant on Android tablet. OWNERS: + // opa-android-leads@ + // "ANDROID_THINGS" - Android Things (go/things). OWNERS: + // surfaces-infra-core@ + // "ANDROID_THINGS_CUBE" - Lenovo Smart Clock v1, a stationary smart + // display device with a 4-inch screen, targeted for bedroom/bedside use + // cases like alarm, sleep tracking. Based on Android Things. See + // go/cube-home. OWNERS: cube-eng@ + // "ANDROID_THINGS_JASPER" - Former codename for 3P 8-inch and 10-inch + // Smart Displays from Lenovo, JBL and LG, targeted for use in the + // kitchen. Based on Android Things. See go/jasper-home. OWNERS: + // jasper-eng@ + // "ANDROID_TV" - The Android platform that powers smart televisions, + // set-top-boxes, and over-the-top devices. See go/atv-eng and + // go/opa-tv. OWNERS: opa-tv-eng@ + // "ANDROID_WEAR" - Legacy Wear OS Assistant. OWNERS: + // wear-assistant-eng@ + // "ASSISTANT_KIT" - AssistantKit (go/assistantkit) is a collection of + // iOS libraries allowing first party apps to integrate Google Assistant + // features. OWNERS: assistantkit-eng@ + // "ASSISTANT_SDK" - Standalone gRPC based client. See go/easi. + // OWNERS: assistant-sdk-service-eng@ + // "AUTO" - Automobile. OWNERS: surfaces-infra-core@ + // "CAST_OS" - Cast OS (go/opal-castos-docs#what-is-castos). OWNERS: + // surfaces-infra-core@ + // "CHROME_OS" - Chrome OS (go/chromsos) OWNERS: surfaces-infra-core@ + // "CHROMECAST_MANHATTAN" - For chromecast with assistant + screen, + // e.g. Newman. OWNERS: cast-eng-platform@ + // "CLOUD_DEVICE" - Virtual device for event-based triggering, e.g. + // executing time scheduled routines: go/scheduled-routines. OWNERS: + // surfaces-infra-core@ + // "CROS" - Assistant on native Chrome OS (go/croissant). OWNERS: + // croissant@ + // "FITBIT_OS_WATCH" - Assistant on Fitbit OS Watch. OWNERS: + // assistant-wearable-team@ + // "FITBIT_OS_WATCH_ANDROID" - Assistant on Fitbit Watch paired with + // AGSA. OWNERS: assistant-wearable-team@ + // "FITBIT_OS_WATCH_IOS" - Assistant on Fitbit Watch paired with iOPA. + // OWNERS: assistant-wearable-team@ + // "GOOGLE_HOME" - Google home speaker, i.e., Chirp devices. See + // go/assistant-speakers. OWNERS: assistant-speaker-leads@ + // "HEADPHONE" - Headphone. OWNERS: surfaces-infra-core@ + // "HEADPHONE_ANDROID" - Assistant on headphones paired with AGSA. + // OWNERS: assistant-wearable-team@ + // "HEADPHONE_IOS" - Assistant on headphones paired with iOPA. OWNERS: + // assistant-wearable-team@ + // "IOPA" - Assistant on iOS devices (go/opa-ios). OWNERS: + // opa-ios-eng@ + // "IOS" - iOS. OWNERS: surfaces-infra-core@ + // "IOS_SCREENLESS" - Assistant on iOS with screen off/locked. Use + // go/bisto device to trigger. OWNERS: bisto-team@ + // "IPAD" - iPad devices. OWNERS: surfaces-infra-core@ + // "IPHONE" - iPhone devices. OWNERS: surfaces-infra-core@ + // "KAI_OS" - Kai OS (go/kaios). OWNERS: surfaces-infra-core@ + // "KAI_OS_AMA" - Assistant on KaiOS (go/kaiosama). OWNERS: + // assistant-kaios-eng@ + // "LIBASSISTANT" - LibAssistant (go/libassistant) C++ SDK that powers + // Assistant experience on both 1P devices like Google Home and 3P + // devices like Sonos. OWNERS: libassistant-core@ + // "PHONE" - A phone. OWNERS: surfaces-infra-core@ + // "PIXEL" - Pixel devices. OWNERS: surfaces-infra-core@ + // "PIXEL5" - Pixel 5. OWNERS: surfaces-infra-core@ + // "PIXEL6" - Pixel 6. OWNERS: surfaces-infra-core@ + // "PIXEL7" - Pixel 7. OWNERS: surfaces-infra-core@ + // "PIXEL8" - Pixel 8. OWNERS: surfaces-infra-core@ + // "PIXEL_BUDS" - Assistant on Pixel Buds. OWNERS: + // assistant-wearable-team@ + // "PIXEL_TABLET" - Assistant on Pixel Tablet/Tangor (a.k.a, TK). + // OWNERS: assistant-display-eng@ + // "PIXEL_TABLET_HUB_MODE" - Assistant on Tangor running in Hub mode. + // OWNERS: assistant-display-eng@ + // "PIXEL_TABLET_PERSONAL_MODE" - Assistant on Tangor running in + // Personal mode. OWNERS: assistant-display-eng@ + // "PIXEL_WATCH" - Assistant on Pixel Watch (a.k.a., Rohan). OWNERS: + // assistant-wearable-team@ + // "SCREENLESS" - Devices with screen off or locked (go/bisto). + // OWNERS: surfaces-infra-core@ + // "SMART_DISPLAY" - Smart surface, such as Titan. OWNERS: + // surfaces-infra-core@ + // "SPEAKER" - A speaker. OWNERS: surfaces-infra-core@ + // "TABLET" - A tablet. OWNERS: surfaces-infra-core@ + // "TELEPHONE" - Assistant on a phone call (go/telephone). OWNERS: + // telephone-assistant-eng@ + // "THING" - IoT device. OWNERS: surfaces-infra-core@ + // "WATCH" - Watch. OWNERS: surfaces-infra-core@ + // "WEAR_OS" - Wear OS. OWNERS: surfaces-infra-core@ + // "WEAR_OS_WATCH" - Assistant on Wear OS Watch (a.k.a., Edoras). + // OWNERS: assistant-wearable-team@ + SurfaceType string `json:"surfaceType,omitempty"` + // ForceSendFields is a list of field names (e.g. "DeviceModelId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -23456,7 +23589,7 @@ func (s *AssistantGroundingRankerDeviceTargetingFeaturesProperties) MarshalJSON( // AssistantGroundingRankerDeviceTargetingFeaturesStates: The states of // the device. They are dynamic and may change based on the current -// context. +// context. Next ID: 5 type AssistantGroundingRankerDeviceTargetingFeaturesStates struct { // Distance: The distance of the device relative to others that hear the // user's OKG. Timestamp of when the device was last used. Should @@ -23505,7 +23638,7 @@ func (s *AssistantGroundingRankerDeviceTargetingFeaturesStates) MarshalJSON() ([ // AssistantGroundingRankerDeviceTargetingLabels: Labels tagged by // Device Targeting library (Lumos). See go/hgr-lumos-integration and -// go/lumos-feature-extraction for more details. +// go/lumos-feature-extraction for more details. Next ID: 2 type AssistantGroundingRankerDeviceTargetingLabels struct { // IsSelectedByLumos: Indicate whether the device is selected by Lumos // as the target device. @@ -23975,6 +24108,8 @@ type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // "SPORTS_EVENT" // "TV_CHANNEL" // "VIDEO" + // "VIDEO_RECOMMENDED_PLAYLIST" - Video recommendations playlist. + // (e.g. fetched from Recommended feed on YouTube) // "YOUTUBE_CHANNEL" // "YOUTUBE_VIDEO_PLAYLIST" // "TV_SHOW" - Representing a TV show which contains multiple TV @@ -25158,6 +25293,8 @@ type AssistantLogsDeviceMediaSessionLog struct { // "SPORTS_EVENT" // "TV_CHANNEL" // "VIDEO" + // "VIDEO_RECOMMENDED_PLAYLIST" - Video recommendations playlist. + // (e.g. fetched from Recommended feed on YouTube) // "YOUTUBE_CHANNEL" // "YOUTUBE_VIDEO_PLAYLIST" // "TV_SHOW" - Representing a TV show which contains multiple TV @@ -26755,8 +26892,6 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // "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. @@ -26767,22 +26902,18 @@ type AssistantPrefulfillmentRankerPrefulfillmentSignals struct { // HGR model for Comms. // "RANKER_NAME_CONSOLIDATED_PFR_HGR" - Name for consolidated PFR and // HGR ranker. - // "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2" - Name for consolidated PFR - // and HGRv2 ranker. - // "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP_CALIBRATED" - Name for - // experimental calibrated HGR model for Comms. // "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2_COMMS_CALIBRATED" - Name for // consolidated PFR, HGRv2 and comms ranker. // "RANKER_NAME_EXPERIMENTAL_PFR_SAGE_NEW_DOMAINS" - Name for // experimental PFR ranker for Sage and new domains. - // "RANKER_NAME_BUCKETED_PARSING_SCORE_FOR_SMARTHOME" - Name for PFR - // ranker with bucketed parsing scores for SmartHome. // "RANKER_NAME_CONSOLIDATED_PFR_HGR_V2_COMMS_CALIBRATED_V2" - Name // for consolidated PFR, HGRv2 and comms ranker v2. // "RANKER_NAME_GROUNDING_RANKER_COMMS_EXP_CALIBRATED_V2" - Name for // experimental calibrated HGR model for Comms V2. // "RANKER_NAME_CONSOLIDATED_PFR_HGR_PODCAST" - Name for HGR ranker // for podcast based on RANKER_NAME_CONSOLIDATED_PFR_HGR_V2. + // "RANKER_NAME_GROUNDING_RANKER_V4" - Name for HGR V4 model, the + // model version that's targeted for Slow media launches. RankerName string `json:"rankerName,omitempty"` // SearchDispatch: The determination made by the SearchDispatchingConfig @@ -40960,7 +41091,8 @@ type GeostoreDataSourceProto struct { // "PROVIDER_LOOP" // "PROVIDER_ZEST" // "PROVIDER_EZVOLT" - // "PROVIDER_JOLT" - Note: Next available value is 0x1270D. + // "PROVIDER_JOLT" + // "PROVIDER_CHARGESMITH" - Note: Next available value is 0x1270E. Provider string `json:"provider,omitempty"` // RawMetadata: For every key that is used in raw_data from this source, @@ -45532,7 +45664,8 @@ type GeostoreInternalSourceSummaryProto struct { // "PROVIDER_LOOP" // "PROVIDER_ZEST" // "PROVIDER_EZVOLT" - // "PROVIDER_JOLT" - Note: Next available value is 0x1270D. + // "PROVIDER_JOLT" + // "PROVIDER_CHARGESMITH" - Note: Next available value is 0x1270E. Provider string `json:"provider,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to @@ -47715,7 +47848,8 @@ type GeostoreOntologyRawGConceptInstanceProto struct { // "PROVIDER_LOOP" // "PROVIDER_ZEST" // "PROVIDER_EZVOLT" - // "PROVIDER_JOLT" - Note: Next available value is 0x1270D. + // "PROVIDER_JOLT" + // "PROVIDER_CHARGESMITH" - Note: Next available value is 0x1270E. Provider string `json:"provider,omitempty"` SourceDataset string `json:"sourceDataset,omitempty"` @@ -48389,6 +48523,12 @@ func (s *GeostorePedestrianCrossingProto) UnmarshalJSON(data []byte) error { } // GeostorePhysicalLineProto: Describes a single physical marker line. +// NOTE: PhysicalLineProto could be compared against one another by +// canonicalizing them via GetCanonicalPhysicalLine() in +// //geostore/base/public/lane_marker.cc. Any fields that don't +// contribute to the definition of a physical line in the real world +// should be bundled with the annotative fields near the bottom and +// excluded in GetCanonicalPhysicalLine(). LINT.IfChange type GeostorePhysicalLineProto struct { // DashLengthMeters: Applicable for DASHED and DOTTED_DASHED lines. DashLengthMeters float64 `json:"dashLengthMeters,omitempty"` @@ -50251,7 +50391,8 @@ type GeostoreProvenanceProto struct { // "PROVIDER_LOOP" // "PROVIDER_ZEST" // "PROVIDER_EZVOLT" - // "PROVIDER_JOLT" - Note: Next available value is 0x1270D. + // "PROVIDER_JOLT" + // "PROVIDER_CHARGESMITH" - Note: Next available value is 0x1270E. Provider string `json:"provider,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to @@ -51482,7 +51623,7 @@ type GeostoreRoadSignComponentProto struct { // "DIRECTION_SOUTHWEST" // "DIRECTION_INNER" - Inner/Outer loop. Short names are not // supported. The actual direction depends on the local driving rule - // (right-handed vs. left-handed). TODO(b/161314216) If you need an + // (right-handed vs. left-handed). TODO(b/291302506) If you need an // explicit loop direction or a road sign uses // clockwise/counterclockwise, don't use INNER/OUTER but consider adding // DIRECTION_CLOCKWISE and DIRECTION_COUNTERCLOCKWISE instead. @@ -51678,7 +51819,7 @@ type GeostoreRouteAssociationProto struct { // "DIRECTION_SOUTHWEST" // "DIRECTION_INNER" - Inner/Outer loop. Short names are not // supported. The actual direction depends on the local driving rule - // (right-handed vs. left-handed). TODO(b/161314216) If you need an + // (right-handed vs. left-handed). TODO(b/291302506) If you need an // explicit loop direction or a road sign uses // clockwise/counterclockwise, don't use INNER/OUTER but consider adding // DIRECTION_CLOCKWISE and DIRECTION_COUNTERCLOCKWISE instead. @@ -57258,7 +57399,9 @@ type GoogleAssistantAccessoryV1DeviceState struct { // "BEDTIME_MODE" // "THEATER_MODE" // "TOUCH_LOCK" - // "ASSISTANT_PRESS_AND_HOLD" - End of Wearable device settings + // "ASSISTANT_PRESS_AND_HOLD" + // "WATCH_FACE" - Settings > Display > Change watch face End of + // Wearable device settings // "NOTIFICATION_ANNOUNCEMENT" - Assistant Spoken Notification Setting UnavailableSettings []string `json:"unavailableSettings,omitempty"` @@ -57895,6 +58038,7 @@ type GoogleAssistantEmbeddedV1SurfaceIdentity struct { // "PIXEL5" - Pixel 5. OWNERS: surfaces-infra-core@ // "PIXEL6" - Pixel 6. OWNERS: surfaces-infra-core@ // "PIXEL7" - Pixel 7. OWNERS: surfaces-infra-core@ + // "PIXEL8" - Pixel 8. OWNERS: surfaces-infra-core@ // "PIXEL_BUDS" - Assistant on Pixel Buds. OWNERS: // assistant-wearable-team@ // "PIXEL_TABLET" - Assistant on Pixel Tablet/Tangor (a.k.a, TK). @@ -58690,6 +58834,10 @@ type GoogleCloudContentwarehouseV1Document struct { // InlineRawDocument: Raw document content. InlineRawDocument string `json:"inlineRawDocument,omitempty"` + // LegalHold: Output only. Indicates if the document has a legal hold on + // it. + LegalHold bool `json:"legalHold,omitempty"` + // Name: The resource name of the document. Format: // projects/{project_number}/locations/{location}/documents/{document_id} // . The name is ignored when creating a document. @@ -65098,6 +65246,7 @@ type GoogleInternalCommunicationsInstantmessagingV1Id struct { // "FITBIT_P11_ID" - signaling. go/cases-media-channel-dd. used by // Fitbit Project 11 for messaging. // "SHORT_PHONE_NUMBER" - Short phone number: go/shortnumbers + // "EXTERNAL_ID" - Used to reference external users in other domains, Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "App") to @@ -72742,6 +72891,13 @@ type ImageSafesearchContentBrainPornAnnotation struct { // confidential! CsaiScore float64 `json:"csaiScore,omitempty"` + // CsamA1Score: Experimental score. Do not use. Google confidential! + CsamA1Score float64 `json:"csamA1Score,omitempty"` + + // CsamAgeIndeterminateScore: Experimental score. Do not use. Google + // confidential! + CsamAgeIndeterminateScore float64 `json:"csamAgeIndeterminateScore,omitempty"` + // IuInappropriateScore: This field contains the probability that an // image is inappropriate for Images Universal, according to this // policy: go/iupolicy. @@ -72757,6 +72913,10 @@ type ImageSafesearchContentBrainPornAnnotation struct { // suggestive. RacyScore float64 `json:"racyScore,omitempty"` + // SemanticSexualizationScore: This score is related to racy/sexual + // images where scores have semantic meaning from 0 to 1. + SemanticSexualizationScore float64 `json:"semanticSexualizationScore,omitempty"` + SpoofScore float64 `json:"spoofScore,omitempty"` // Version: This field is an experimental one with a quite vague @@ -72796,16 +72956,19 @@ func (s *ImageSafesearchContentBrainPornAnnotation) MarshalJSON() ([]byte, error func (s *ImageSafesearchContentBrainPornAnnotation) UnmarshalJSON(data []byte) error { type NoMethod ImageSafesearchContentBrainPornAnnotation var s1 struct { - ChildScore gensupport.JSONFloat64 `json:"childScore"` - CsaiScore gensupport.JSONFloat64 `json:"csaiScore"` - IuInappropriateScore gensupport.JSONFloat64 `json:"iuInappropriateScore"` - MedicalScore gensupport.JSONFloat64 `json:"medicalScore"` - PedoScore gensupport.JSONFloat64 `json:"pedoScore"` - PornScore gensupport.JSONFloat64 `json:"pornScore"` - RacyScore gensupport.JSONFloat64 `json:"racyScore"` - SpoofScore gensupport.JSONFloat64 `json:"spoofScore"` - ViolenceScore gensupport.JSONFloat64 `json:"violenceScore"` - YtPornScore gensupport.JSONFloat64 `json:"ytPornScore"` + ChildScore gensupport.JSONFloat64 `json:"childScore"` + CsaiScore gensupport.JSONFloat64 `json:"csaiScore"` + CsamA1Score gensupport.JSONFloat64 `json:"csamA1Score"` + CsamAgeIndeterminateScore gensupport.JSONFloat64 `json:"csamAgeIndeterminateScore"` + IuInappropriateScore gensupport.JSONFloat64 `json:"iuInappropriateScore"` + MedicalScore gensupport.JSONFloat64 `json:"medicalScore"` + PedoScore gensupport.JSONFloat64 `json:"pedoScore"` + PornScore gensupport.JSONFloat64 `json:"pornScore"` + RacyScore gensupport.JSONFloat64 `json:"racyScore"` + SemanticSexualizationScore gensupport.JSONFloat64 `json:"semanticSexualizationScore"` + SpoofScore gensupport.JSONFloat64 `json:"spoofScore"` + ViolenceScore gensupport.JSONFloat64 `json:"violenceScore"` + YtPornScore gensupport.JSONFloat64 `json:"ytPornScore"` *NoMethod } s1.NoMethod = (*NoMethod)(s) @@ -72814,11 +72977,14 @@ func (s *ImageSafesearchContentBrainPornAnnotation) UnmarshalJSON(data []byte) e } s.ChildScore = float64(s1.ChildScore) s.CsaiScore = float64(s1.CsaiScore) + s.CsamA1Score = float64(s1.CsamA1Score) + s.CsamAgeIndeterminateScore = float64(s1.CsamAgeIndeterminateScore) s.IuInappropriateScore = float64(s1.IuInappropriateScore) s.MedicalScore = float64(s1.MedicalScore) s.PedoScore = float64(s1.PedoScore) s.PornScore = float64(s1.PornScore) s.RacyScore = float64(s1.RacyScore) + s.SemanticSexualizationScore = float64(s1.SemanticSexualizationScore) s.SpoofScore = float64(s1.SpoofScore) s.ViolenceScore = float64(s1.ViolenceScore) s.YtPornScore = float64(s1.YtPornScore) @@ -74975,7 +75141,7 @@ func (s *IndexingDocjoinerCDocBuildInfo) MarshalJSON() ([]byte, error) { // introduced data without modifying their code. Please also see the // comment of FieldProjector above. There are also some fields in // DataInfo that annotate who generates the data, the Index Signals or -// Goldmine annotator name. Next ID: 537 +// Goldmine annotator name. Next ID: 538 type IndexingDocjoinerDataVersion struct { AcceleratedShoppingSignal *IndexingDocjoinerDataVersionVersionInfo `json:"acceleratedShoppingSignal,omitempty"` @@ -75113,6 +75279,9 @@ type IndexingDocjoinerDataVersion struct { ImageStockStockImageAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"imageStockStockImageAnnotation,omitempty"` + // Imageembed: END DATA FIELDS + Imageembed *IndexingDocjoinerDataVersionVersionInfo `json:"imageembed,omitempty"` + IndexingAnnotationsAnnotationMeta *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsAnnotationMeta,omitempty"` IndexingAnnotationsAppMarketAppMarketAnnotation *IndexingDocjoinerDataVersionVersionInfo `json:"indexingAnnotationsAppMarketAppMarketAnnotation,omitempty"` @@ -75976,7 +76145,6 @@ type IndexingDocjoinerDataVersion struct { TravelAssistantTravelDocClassification *IndexingDocjoinerDataVersionVersionInfo `json:"travelAssistantTravelDocClassification,omitempty"` - // UcpSignal: END DATA FIELDS UcpSignal *IndexingDocjoinerDataVersionVersionInfo `json:"ucpSignal,omitempty"` UdrConverterDocumentShoppingData *IndexingDocjoinerDataVersionVersionInfo `json:"udrConverterDocumentShoppingData,omitempty"` @@ -82682,12 +82850,6 @@ type KnowledgeAnswersIntentQueryParsingSignals struct { // should be populated in post-IG stage (before GB). InQueryMaxEffectiveArgSpanLength float64 `json:"inQueryMaxEffectiveArgSpanLength,omitempty"` - // QrewriteCallPathInfo: This proto holds the complete call path info of - // the QRewrite client (e.g. the QUS's phase like "RBT","QBT"; the QUS's - // candidate type like "Identity"; and the ACE's candidate type like - // "FuzzyMatcher"). - QrewriteCallPathInfo *NlpLoggingQRewriteClientCallPathInfo `json:"qrewriteCallPathInfo,omitempty"` - // QrewriteCallPathInfoFingerprint: This proto holds the fingerprint of // the call path info of QRewrite client (e.g. the QUS's phase like // "RBT","QBT"; the QUS's candidate type like "Identity"; and the ACE's @@ -89279,151 +89441,6 @@ func (s *NetFabricRpcVirtualNetworkId) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// NlpLoggingQRewriteClientCallPathInfo: The proto that holds the -// complete call path info of the QRewrite client (e.g. the QUS's phase -// like "RBT","QBT"; the QUS's candidate type like "Identity"; and the -// ACE's candidate type like "FuzzyMatcher"). Next ID: 5 ACE tags -type NlpLoggingQRewriteClientCallPathInfo struct { - // QrewriteCandidateId: Indicates the type of candidate rewritten by - // QRewrite. This field is filled within QRewrite instead of QRewrite - // clients, and we add this here so this proto is able to hold all tags - // to form the identifier. - QrewriteCandidateId *QualityQrewriteCandidateId `json:"qrewriteCandidateId,omitempty"` - - // QusCandidateId: QUS tags Indicates the type of the candidate in QUS - // that sends the QRewrite request. - QusCandidateId *QualityQrewriteCandidateId `json:"qusCandidateId,omitempty"` - - // QusClientCallPathInfo: Upstream call path before QUS. - QusClientCallPathInfo *NlpLoggingQusClientCallPathInfo `json:"qusClientCallPathInfo,omitempty"` - - // QusPhase: Indicates which QUS phase sends the QRewrite request. Note - // if the QRewrite response is reused in succeeding phases, this field - // should not be overridden and it is always the phase that initially - // sends the RPC. - // - // Possible values: - // "QU_PHASE_UNSPECIFIED" - Invalid value to use as a default. - // "QU_PHASE_REQUEST" - Phase in which the QueryUnderstandingRequest - // for a non-identity Candidate is generated. Produces - // QueryCandidateInfo. - // "QU_PHASE_QREWRITE" - Phase in which QUS calls QRewrite. Produces - // QRewrite's reply. - // "QU_PHASE_QBT" - Phase in which QBT interpretations are ranked. - // Produces ranked QBT interpretations. - // "QU_PHASE_PROBE_QUERY" - Phase in which QUS does a probe query for - // incomplete search results and produces ranked RBT interpretations on - // the basis of these. Only runs if understand_mode is - // PRE_RESULT_AND_PROBE_QUERY. - // "QU_PHASE_MULTI_ACCOUNT" - Phase in which QUS does cross-account - // understanding. Produces AnalyzerResponse whose interpretations - // contain personal data from multiple accounts. - // "QU_PHASE_CQBT" - Deprecated, but see go/qus-contextual-ig for - // original purpose. - // "QU_PHASE_QBT_RESOLUTION" - Phase in which QUS calls resolution - // service to perform slow intent resolution. Produces resolved intents. - // "QU_PHASE_HIGH_PRECISION" - Phase in which QUS calls the fast - // HighPrecision workflow. Only runs if understand_mode is - // PRE_RESULT_AND_HIGH_PRECISION. - // "QU_PHASE_COMBINED_RBT_RESOLUTION" - Phase in which QUS combines - // the RBT result and Slow Resolution result. Only runs if - // understand_mode is PRE_RESULT_AND_PROBE_QUERY_AND_RESOLUTION. - // "QU_PHASE_ANALYZER_INPUT" - Phase in which QUS returns the - // AnalyzerInput as a separate Phase. It copies the AnalyzerInput from - // QU_PHASE_QREWRITE and returns it as a - // QueryUnderstandingStreamingResult for the purpose of logging in ACE. - // See go/analyzerinput-new-qus-phase. - // "QU_PHASE_NAGE" - Phase in which QUS runs NSP in the QUS. - QusPhase string `json:"qusPhase,omitempty"` - - // ForceSendFields is a list of field names (e.g. "QrewriteCandidateId") - // to unconditionally include in API requests. By 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. "QrewriteCandidateId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an 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 *NlpLoggingQRewriteClientCallPathInfo) MarshalJSON() ([]byte, error) { - type NoMethod NlpLoggingQRewriteClientCallPathInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// NlpLoggingQusClientCallPathInfo: The proto that holds the complete -// call path info of the QUS client (e.g. the candidate type like -// "Identity", "FuzzyMatcher"; The intent generator like "QUS_IG" in -// ACE). -type NlpLoggingQusClientCallPathInfo struct { - // RewriterType: rewriter_type forms part of a unique key to be used to - // label QUS Requests from ACE. The need to distinguish between the - // variety of calls from AS into QUS is for two reasons: (a) currently, - // assistant eval can do NLU Eval only on certain rewrites (b) later AS - // Hermetic and NLU Eval can be integrated In the furure, the unique key - // will be expanded to add intent_generator_type or something similar. - // There are ongoing discussions to confirm these plans - // - // Possible values: - // "UNKNOWN_REWRITER_TYPE" - // "GENIE" - // "FUZZY_MATCHER_HC" - // "FUZZY_MATCHER" - // "FUZZY_MATCHER_ADDITIONAL_1" - Additional FuzzyMatcher branches, - // see go/afm-additional-branches - // "FUZZY_MATCHER_ADDITIONAL_2" - // "IDENTITY" - // "MONDEGREEN_ASSISTANT" - Mondegreen Assistant is used in Media - // queries, Mondegreen is used for YouTube/Voz. See - // go/project-mondegreen-media - // "MONDEGREEN" - // "SYNTHETIC" - // "SPEECH_RECOGNITION" - // "SPEECH_MISRECOGNITION" - Rewriter for misrecognition quick-fixes, - // see go/pop-ranking-misrecognition-rewriter - // "SPELL_CORRECTION" - QUS rewriters. - // "AUTO_TRANSLATION" - // "AUTO_TRANSLATION_ARGUMENT_TRANSFER" - Auto Translate with argument - // transfer. go/missandei-argument-transfer-through-qus - RewriterType string `json:"rewriterType,omitempty"` - - // TemporaryAceTag: The timestamp when QUS request is built in ACE. For - // now we don't care about the actual meaning of this tag, and only want - // to guarantee its uniqueness per QUS call. - TemporaryAceTag int64 `json:"temporaryAceTag,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "RewriterType") to - // unconditionally include in API requests. By 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. "RewriterType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an 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 *NlpLoggingQusClientCallPathInfo) MarshalJSON() ([]byte, error) { - type NoMethod NlpLoggingQusClientCallPathInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type NlpMeaningMeaningRemodeling struct { // Deletion: This field can be set to true to indicate that the // associated part of the schema is being deleted as part of the @@ -109009,9 +109026,10 @@ func (s *PseudoVideoDataTranscriptTimestamp) MarshalJSON() ([]byte, error) { // objects being processed and stored in Google's production systems. // See go/ptoken to learn more. PTokens are intentionally opaque: // go/ptokens-are-opaque. The following should be considered -// implementation details. Next ID: 9 INTERNAL: If both the Scalar and -// the Compound extensions are populated, we use the Compound and -// discard the Scalar. In principle, this should never happen. +// implementation details. Next ID: 9 LINT.IfChange INTERNAL: If both +// the Scalar and the Compound extensions are populated, we use the +// Compound and discard the Scalar. In principle, this should never +// happen. type PtokenPToken struct { } @@ -115433,96 +115451,6 @@ func (s *QualityQrewriteCalendarReference) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// QualityQrewriteCandidateId: A complete query candidate Id includes a -// list of Id fields. The Id field order is maintained as the order by -// which each field is appended to the list. -type QualityQrewriteCandidateId struct { - Field []*QualityQrewriteCandidateIdField `json:"field,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Field") to - // unconditionally include in API requests. By 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. "Field") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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 *QualityQrewriteCandidateId) MarshalJSON() ([]byte, error) { - type NoMethod QualityQrewriteCandidateId - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// QualityQrewriteCandidateIdField: The message represents a field in -// the query candidate Id. -type QualityQrewriteCandidateIdField struct { - // Index: If needed, a servlet can use this field to assign an ID to - // distinguish between different candidates of the same CandidateType. - Index int64 `json:"index,omitempty"` - - // Possible values: - // "CANDIDATE_TYPE_UNSPECIFIED" - // "IDENTITY" - // "SPELLING" - // "S3_TOP_HYPOTHESIS" - // "AUTO_TRANSLATE" - // "ADS_ALTERNATIVE_RUN" - Indicates it is Ads qrewrite request - // candidate, and it should run on alternative data version. - // go/ads-qrewrite-multiversion - // "NEARBY_RETRIEVAL" - NearbyRetrieval creates a supplemental - // QRewriteResult to send to Superroot where it is used for a - // supplemental index lookup. - // "CONTEXTUAL_REWRITE" - Indicates that Genie rewrote the query using - // contextual information. - // "SAFT_TOKENIZER" - // "CONVO_FPR" - ConversationalRewriteServlet rewrote the query using - // context - // "SPOKEN_INTENT" - // "AUTO_TRANSLATE_ARGUMENT_TRANSFER" - Auto Translate with argument - // transfer. go/missandei-argument-transfer-through-qus The query was - // rewritten because it is probably a speech recognition error. - // go/asr-rewriter. - // "CONTEXT_AWARE_SPEECH_RECOGNITION_REWRITE" - // "MAST" - go/mast-query - // "FUZZY_MATCHER_REWRITE" - go/afm - // "SHOPPING_PREFERENCES_REWRITE" - Rewrite with user explicit - // shopping preferences. - // "MAGI_CONTEXT_ENGINE_REWRITE" - Rewrite with context from chat - // conversation with Magi. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Index") to - // unconditionally include in API requests. By 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. "Index") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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 *QualityQrewriteCandidateIdField) MarshalJSON() ([]byte, error) { - type NoMethod QualityQrewriteCandidateIdField - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type QualityQrewriteContactCalendarName struct { Contact *NlpSemanticParsingModelsPersonPerson `json:"contact,omitempty"` @@ -116929,7 +116857,7 @@ func (s *QualitySherlockKnexAnnotationItem) UnmarshalJSON(data []byte) error { // control individual fields that will sit in Muppet. Data here will be // used for scoring organic shopping web results and previews. Many // shopping related signals, e.g., product review score, are also served -// from this attachment. Next ID: 21 +// from this attachment. DEPRECATED: Please use UDR (go/udr) instead. type QualityShoppingShoppingAttachment struct { // DatasetModelArticleScore: Score from the blockbert article classifier // model. go/article-understanding-project @@ -118038,6 +117966,57 @@ func (s *QualitySnippetsTruncationSnippetBoldedRangePosition) MarshalJSON() ([]b return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QualityTimebasedDateReliability: Unreliable dates signals per URL. +// go/unreliable-dates-dd +type QualityTimebasedDateReliability struct { + PetacatScores []*QualityTimebasedPetacatDateReliability `json:"petacatScores,omitempty"` + + // UnreliableDatesScore: max(petacat.unreliable_dates_score) + UnreliableDatesScore float64 `json:"unreliableDatesScore,omitempty"` + + // UnreliableDatesScoreExposureAdjusted: + // max(petacat.unreliable_dates_score * petacat.date_exposure_score) + UnreliableDatesScoreExposureAdjusted float64 `json:"unreliableDatesScoreExposureAdjusted,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PetacatScores") to + // unconditionally include in API requests. By 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. "PetacatScores") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an 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 *QualityTimebasedDateReliability) MarshalJSON() ([]byte, error) { + type NoMethod QualityTimebasedDateReliability + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *QualityTimebasedDateReliability) UnmarshalJSON(data []byte) error { + type NoMethod QualityTimebasedDateReliability + var s1 struct { + UnreliableDatesScore gensupport.JSONFloat64 `json:"unreliableDatesScore"` + UnreliableDatesScoreExposureAdjusted gensupport.JSONFloat64 `json:"unreliableDatesScoreExposureAdjusted"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.UnreliableDatesScore = float64(s1.UnreliableDatesScore) + s.UnreliableDatesScoreExposureAdjusted = float64(s1.UnreliableDatesScoreExposureAdjusted) + return nil +} + type QualityTimebasedLastSignificantUpdate struct { // AdjustmentInfo: This is stored only for debugging purposes. Please // consult dates@ team before making a dependency on this field. @@ -118050,6 +118029,8 @@ type QualityTimebasedLastSignificantUpdate struct { // field to determine where the value comes from. Date int64 `json:"date,omitempty,string"` + DateReliabilityInfo *QualityTimebasedDateReliability `json:"dateReliabilityInfo,omitempty"` + // Source: The source the signal comes from. // // Possible values: @@ -118241,6 +118222,81 @@ func (s *QualityTimebasedPageType) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QualityTimebasedPetacatDateReliability: Unreliable dates signals per +// Domain+Petacat. go/unreliable-dates-dd +type QualityTimebasedPetacatDateReliability struct { + ContentageReliability float64 `json:"contentageReliability,omitempty"` + + DateExposure float64 `json:"dateExposure,omitempty"` + + // DateExposureScore: This is date_exposure after sigmoid + // transformation. + DateExposureScore float64 `json:"dateExposureScore,omitempty"` + + // DateVsContentageDistributionSkew: Auxiliary scores. The + // unreliable_dates_score is a product of these scores excl. + // date_exposure. The definition for each of the scores you can find at + // go/unreliable-dates-dd + DateVsContentageDistributionSkew float64 `json:"dateVsContentageDistributionSkew,omitempty"` + + IsForumQnaSocialMediaProbability float64 `json:"isForumQnaSocialMediaProbability,omitempty"` + + // PetacatId: go/verticals4 + PetacatId int64 `json:"petacatId,omitempty"` + + // UnreliableDatesScore: This is a final score excl. date exposure + // component. + UnreliableDatesScore float64 `json:"unreliableDatesScore,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ContentageReliability") to unconditionally include in API requests. + // By 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. "ContentageReliability") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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 *QualityTimebasedPetacatDateReliability) MarshalJSON() ([]byte, error) { + type NoMethod QualityTimebasedPetacatDateReliability + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *QualityTimebasedPetacatDateReliability) UnmarshalJSON(data []byte) error { + type NoMethod QualityTimebasedPetacatDateReliability + var s1 struct { + ContentageReliability gensupport.JSONFloat64 `json:"contentageReliability"` + DateExposure gensupport.JSONFloat64 `json:"dateExposure"` + DateExposureScore gensupport.JSONFloat64 `json:"dateExposureScore"` + DateVsContentageDistributionSkew gensupport.JSONFloat64 `json:"dateVsContentageDistributionSkew"` + IsForumQnaSocialMediaProbability gensupport.JSONFloat64 `json:"isForumQnaSocialMediaProbability"` + UnreliableDatesScore gensupport.JSONFloat64 `json:"unreliableDatesScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ContentageReliability = float64(s1.ContentageReliability) + s.DateExposure = float64(s1.DateExposure) + s.DateExposureScore = float64(s1.DateExposureScore) + s.DateVsContentageDistributionSkew = float64(s1.DateVsContentageDistributionSkew) + s.IsForumQnaSocialMediaProbability = float64(s1.IsForumQnaSocialMediaProbability) + s.UnreliableDatesScore = float64(s1.UnreliableDatesScore) + return nil +} + // QualityTimebasedSyntacticDate: Next ID: 21 type QualityTimebasedSyntacticDate struct { // BylineDate: The following field is set only when the byline date is @@ -122904,6 +122960,10 @@ type RepositoryWebrefFreebaseType struct { // Score: Optional score. Not present in KG directly but e.g. in WPCat. Score float64 `json:"score,omitempty"` + // TypeFprint: Fingerprint of type hrid + // http://cs/google3/repository/webref/universal/base/kg-schema.h;rcl=543911652;l=51 + TypeFprint uint64 `json:"typeFprint,omitempty,string"` + // TypeMid: Mid of this type. Equivalent to type_name, but is more // compact. When present, overrides type_name (which can be omitted in // this case to save space). @@ -130709,7 +130769,7 @@ func (s *ResearchScienceSearchOrganization) MarshalJSON() ([]byte, error) { } // ResearchScienceSearchReconciledMetadata: A proto for storing inferred -// and reconciled metadata for Science Search. Next available tag: 72 +// and reconciled metadata for Science Search. Next available tag: 73 type ResearchScienceSearchReconciledMetadata struct { // AlternateName: Alternate names and acronyms for the dataset. AlternateName []string `json:"alternateName,omitempty"` @@ -130817,6 +130877,10 @@ type ResearchScienceSearchReconciledMetadata struct { // Funder: Funder of the dataset. Funder []*ResearchScienceSearchOrganization `json:"funder,omitempty"` + // HasCroissantFormat: Indicates if the dataset has croissant format + // (https://github.com/mlcommons/croissant). + HasCroissantFormat bool `json:"hasCroissantFormat,omitempty"` + // HasTableSummaries: Indicates if the dataset has table summaries. This // field is only populated during indexing time. HasTableSummaries bool `json:"hasTableSummaries,omitempty"` @@ -144217,6 +144281,7 @@ type TrawlerHostBucketDataUrlList struct { // "HIGH_THROUGHPUT" - Note: keep in sync with default in // trawler.proto // "LOW_LATENCY" + // "LATENCY_SENSITIVE" - Best effort low latency hostload. // "NUM_REQUEST_TYPES" - *** don't forget to update. RequestType string `json:"RequestType,omitempty"` @@ -144614,7 +144679,7 @@ func (s *TrawlerThrottleClientData) UnmarshalJSON(data []byte) error { // added *after* the reply is prepared). Use // FetchResponsePreparatorImpl::AddTrawlerPrivateDataToFetchReplyData to // add. See also the comment in fetch_response_preparator_impl.cc. Next -// Tag: 45 +// Tag: 46 type TrawlerTrawlerPrivateFetchReplyData struct { // BotGroupName: If we fetched using BotFetchAgent, what is the // BotGroupName? @@ -144782,6 +144847,9 @@ type TrawlerTrawlerPrivateFetchReplyData struct { // this value to monitor the stream multiplexing for HTTP/2. ConcurrentStreamNum int64 `json:"concurrentStreamNum,omitempty,string"` + // CredentialId: Log the credential id + CredentialId string `json:"credentialId,omitempty"` + // DependentFetchType: Dependent fetch type // // Possible values: @@ -145562,6 +145630,20 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // queries from wear. // "PGS_THIRD_PARTY_REVIEW_EVENT_LEVEL" - Event-level test code for // the presence of a third-party review. + // "GAME_HUB_DEVELOPER_VIDEO_AT_EVENT_LEVEL" - Event-level test code + // for Game Hub Developer Video cluster. + // "BATTLESTAR_GAME_CENTRIC_BOTTOM_SHEET_ASSETS_EVENT_LEVEL" - + // Event-level test code corresponding to game-centric email icon assets + // appearing in the bottom sheet for a selected list of Battlestar + // games. + // "GAME_HUB_DEVELOPER_VIDEO_ELIGIBLE_AT_EVENT_LEVEL" - Event-level + // test code for Game Hub Developer Video cluster eligibility. + // "FOP_ORDERING_RECOMMENDATION_ELIGIBLE_EVENT_LEVEL" - Event level + // test codes for FOP Ordering (swapping the default FOP). + // "FOP_ORDERING_NO_RECOMMENDATION_EVENT_LEVEL" + // "FOP_ORDERING_RECOMMENDATION_OUTDATED_EVENT_LEVEL" + // "FOP_ORDERING_RECOMMENDATION_SAME_FOP_EVENT_LEVEL" + // "FOP_ORDERING_STORED_VALUE_EVENT_LEVEL" // "EVENT_LEVEL_TEST_CODE_LIMIT" // "ENTERTAINMENT_CLUSTER_TRIGGERING_AT_SESSION_LEVEL" // "BEST_SELLER_CART_TAG_AT_SESSION_LEVEL" @@ -145754,6 +145836,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "IN_APP_OFFER_BATTLESTAR_APP_EVONY_AT_SESSION_LEVEL" // "IN_APP_OFFER_BATTLESTAR_APP_ASPHALT_9_AT_SESSION_LEVEL" // "IN_APP_OFFER_BATTLESTAR_APP_MAGIC_RAMPAGE_AT_SESSION_LEVEL" + // "IN_APP_OFFER_BATTLESTAR_APP_LAST_SURVIVOR_AT_SESSION_LEVEL" // "IN_APP_OFFER_BATTLESTAR_APP_SUMMONERS_WAR_AT_SESSION_LEVEL" // "IN_APP_OFFER_ELIGIBLE_AT_SESSION_LEVEL" // "IN_APP_OFFER_ELIGIBLE_APP_1_AT_SESSION_LEVEL" @@ -145766,6 +145849,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_MAGIC_RAMPAGE_AT_SESSION_LEVEL" // + // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_LAST_SURVIVOR_AT_SESSION_LEVEL" + // // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_SUMMONERS_WAR_AT_SESSION_LEVEL" // "IN_APP_OFFER_SAVED_AT_SESSION_LEVEL" // "IN_APP_OFFER_SAVED_APP_1_AT_SESSION_LEVEL" @@ -146532,6 +146617,14 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "BATTLESTAR_PSEUDO_CREDIT_OFFER_IN_DP_SESSION_LEVEL" - // Session-level test code corresponding to the details page ribbon // showing a pseudo credit offer promotion for Battlestar games. + // "BATTLESTAR_BOTTOMSHEET_FROM_FCP_AUTOSEND" - Session-level test + // code tracking the Battlestar bottomsheet automatically loading on a + // participating editorial page (FCP). + // "BATTLESTAR_BOTTOMSHEET_FHR_ON_FPC" - Session-level test code for + // FCP containing an FHR capable of invoking the Battlestar bottomsheet. + // "BATTLESTAR_MERCH_FCP_FROM_FCC_CONTROL" - Session-level test code + // for when an FCP is accessed via clicking a Phonesky FCC programmed by + // Merch without any experimental features. // "REVIEW_HIGHLIGHTS_SESSION_LEVEL" - Session-level test code for // review highlights // "BOOKS_NOTIFICATION_RECEIVED_SESSION_LEVEL" - Session level test @@ -146615,6 +146708,19 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // non-mdp search traffic // "PGS_THIRD_PARTY_REVIEW_SESSION_LEVEL" - Session-level test code // for a third-party review. + // "GAME_HUB_DEVELOPER_VIDEO_AT_SESSION_LEVEL" - Session-level test + // code for Game Hub Developer Video cluster. + // "BATTLESTAR_GAME_CENTRIC_BOTTOM_SHEET_ASSETS_SESSION_LEVEL" - + // Session-level test code corresponding to game-centric email icon + // assets appearing in the bottom sheet for a selected list of + // Battlestar games. + // "CART_ABANDONMENT_SUBSCRIPTION_BENEFITS_SESSION_LEVEL" - + // Session-level for showing subscription benefits in cart abandonment. + // "GAME_HUB_DEVELOPER_VIDEO_ELIGIBLE_AT_SESSION_LEVEL" - + // Session-level test code for Game Hub Developer Video cluster + // eligibility. + // "SHOULD_SEE_FIRST_PARTY_PROMO_LIVE_OP_SUBSCRIPTION_SESSION_LEVEL" - + // Session-level for showing 1P LiveOps subscription offer. // "SESSION_LEVEL_TEST_CODE_LIMIT" // "CART_ABANDONMENT_USER_LEVEL" - Cart abandonment flow for purchase // flow. @@ -146707,6 +146813,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "IN_APP_OFFER_BATTLESTAR_APP_EVONY_AT_USER_LEVEL" // "IN_APP_OFFER_BATTLESTAR_APP_ASPHALT_9_AT_USER_LEVEL" // "IN_APP_OFFER_BATTLESTAR_APP_MAGIC_RAMPAGE_AT_USER_LEVEL" + // "IN_APP_OFFER_BATTLESTAR_APP_LAST_SURVIVOR_AT_USER_LEVEL" // "IN_APP_OFFER_BATTLESTAR_APP_SUMMONERS_WAR_AT_USER_LEVEL" // "IN_APP_OFFER_ELIGIBLE_AT_USER_LEVEL" // "IN_APP_OFFER_ELIGIBLE_APP_1_AT_USER_LEVEL" @@ -146717,6 +146824,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_EVONY_AT_USER_LEVEL" // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_ASPHALT_9_AT_USER_LEVEL" // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_MAGIC_RAMPAGE_AT_USER_LEVEL" + // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_LAST_SURVIVOR_AT_USER_LEVEL" // "IN_APP_OFFER_BATTLESTAR_ELIGIBLE_APP_SUMMONERS_WAR_AT_USER_LEVEL" // "IN_APP_OFFER_SAVED_AT_USER_LEVEL" // "IN_APP_OFFER_SAVED_APP_1_AT_USER_LEVEL" @@ -147142,6 +147250,18 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // for Featured Products LiveOps. // "FIRST_PARTY_OFFERS_REQUEST_TRIGGER_USER_LEVEL" - User level test // code for first party promotional offers. + // "IS_ELIGIBLE_FOR_APP_TARGETED_REWARD_USER_LEVEL" - User level test + // code for those users that are eligible for a targerted reward for an + // app. Test code will be logged in PGS. More info: + // go/growth-boosters-ptdr + // "GAME_HUB_DEVELOPER_VIDEO_AT_USER_LEVEL" - User-level test code for + // Game Hub Developer Video cluster. + // "CART_ABANDONMENT_SUBSCRIPTION_BENEFITS_USER_LEVEL" - User-level + // for showing subscription benefits in cart abandonment. + // "GAME_HUB_DEVELOPER_VIDEO_ELIGIBLE_AT_USER_LEVEL" - User-level test + // code for Game Hub Developer Video cluster eligibility. + // "SHOULD_SEE_FIRST_PARTY_PROMO_LIVE_OP_SUBSCRIPTION_USER_LEVEL" - + // User-level for showing 1P LiveOps subscription offer. // "USER_LEVEL_TEST_CODE_LIMIT" TestCode []string `json:"testCode,omitempty"` @@ -147586,6 +147706,8 @@ type VideoAssetsVenomTransition struct { // multi-track audio content. // "OBJECTIVE_SHORTS_READY" - Minimum processing needed for a Shorts // video to be considered ready. + // "OBJECTIVE_720P_TRANSCODES_ONLY_DONE" - The video is considered + // playable at 720p. Objective string `json:"objective,omitempty"` // Outcome: Whether the objective is reached or not. REQUIRED. @@ -152467,6 +152589,7 @@ type VideoContentSearchVideoAnchor struct { // "GENERATIVE_ASR_I18N" - Anchors for i18n languages // "YT_AUTO_CHAPTERS" - Anchors derived from Youtube chapters that // were auto-generated. + // "OCR_I18N" - OCR anchors for i18n AnchorType string `json:"anchorType,omitempty"` // ContextText: Context text from ASR of long duration, used for longT5 @@ -152980,6 +153103,7 @@ type VideoContentSearchVideoAnchors struct { // "GENERATIVE_ASR_I18N" - Anchors for i18n languages // "YT_AUTO_CHAPTERS" - Anchors derived from Youtube chapters that // were auto-generated. + // "OCR_I18N" - OCR anchors for i18n AnchorType string `json:"anchorType,omitempty"` // EntityGroupInfo: The list of entity groups derived from the caption @@ -153086,6 +153210,7 @@ type VideoContentSearchVideoAnchors struct { // "GENERATIVE_ASR_I18N" - Anchors for i18n languages // "YT_AUTO_CHAPTERS" - Anchors derived from Youtube chapters that // were auto-generated. + // "OCR_I18N" - OCR anchors for i18n MergedAnchorsSources []string `json:"mergedAnchorsSources,omitempty"` // PredictedQuerylessTocUsefulness: The score that predicts the diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index 286cd08abcf..c5b7ea281a1 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -4269,7 +4269,7 @@ } } }, - "revision": "20230712", + "revision": "20230721", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -5120,6 +5120,11 @@ "description": "DataProfileResult defines the output of DataProfileScan. Each field of the table will have field type specific profile result.", "id": "GoogleCloudDataplexV1DataProfileResult", "properties": { + "postScanActionsResult": { + "$ref": "GoogleCloudDataplexV1DataProfileResultPostScanActionsResult", + "description": "Output only. The result of post scan actions.", + "readOnly": true + }, "profile": { "$ref": "GoogleCloudDataplexV1DataProfileResultProfile", "description": "The profile information per field." @@ -5136,6 +5141,47 @@ }, "type": "object" }, + "GoogleCloudDataplexV1DataProfileResultPostScanActionsResult": { + "description": "The result of post scan actions of DataProfileScan job.", + "id": "GoogleCloudDataplexV1DataProfileResultPostScanActionsResult", + "properties": { + "bigqueryExportResult": { + "$ref": "GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult", + "description": "Output only. The result of BigQuery export post scan action.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult": { + "description": "The result of BigQuery export post scan action.", + "id": "GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult", + "properties": { + "message": { + "description": "Output only. Additional information about the BigQuery exporting.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Execution state for the BigQuery exporting.", + "enum": [ + "STATE_UNSPECIFIED", + "SUCCEEDED", + "FAILED", + "SKIPPED" + ], + "enumDescriptions": [ + "The exporting state is unspecified.", + "The exporting completed successfully.", + "The exporting is no longer running due to an error.", + "The exporting is skipped due to no valid scan result to export (usually caused by scan failed)." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1DataProfileResultProfile": { "description": "Contains name, type, mode and field type specific profile information.", "id": "GoogleCloudDataplexV1DataProfileResultProfile", @@ -5334,6 +5380,10 @@ "$ref": "GoogleCloudDataplexV1DataProfileSpecSelectedFields", "description": "Optional. The fields to include in data profile.If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields." }, + "postScanActions": { + "$ref": "GoogleCloudDataplexV1DataProfileSpecPostScanActions", + "description": "Optional. Actions to take upon job completion.." + }, "rowFilter": { "description": "Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 \u003e= 0 AND col2 \u003c 10", "type": "string" @@ -5346,6 +5396,28 @@ }, "type": "object" }, + "GoogleCloudDataplexV1DataProfileSpecPostScanActions": { + "description": "The configuration of post scan actions of DataProfileScan job.", + "id": "GoogleCloudDataplexV1DataProfileSpecPostScanActions", + "properties": { + "bigqueryExport": { + "$ref": "GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport", + "description": "Optional. If set, results will be exported to the provided BigQuery table." + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport": { + "description": "The configuration of BigQuery export post scan action.", + "id": "GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport", + "properties": { + "resultsTable": { + "description": "Optional. The BigQuery table to export DataProfileScan results to. Format: projects/{project}/datasets/{dataset}/tables/{table}", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1DataProfileSpecSelectedFields": { "description": "The specification for fields to include or exclude in data profile scan.", "id": "GoogleCloudDataplexV1DataProfileSpecSelectedFields", @@ -5386,6 +5458,11 @@ "description": "Overall data quality result -- true if all rules passed.", "type": "boolean" }, + "postScanActionsResult": { + "$ref": "GoogleCloudDataplexV1DataQualityResultPostScanActionsResult", + "description": "Output only. The result of post scan actions.", + "readOnly": true + }, "rowCount": { "description": "The count of rows processed.", "format": "int64", @@ -5405,6 +5482,47 @@ }, "type": "object" }, + "GoogleCloudDataplexV1DataQualityResultPostScanActionsResult": { + "description": "The result of post scan actions of DataQualityScan job.", + "id": "GoogleCloudDataplexV1DataQualityResultPostScanActionsResult", + "properties": { + "bigqueryExportResult": { + "$ref": "GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult", + "description": "Output only. The result of BigQuery export post scan action.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult": { + "description": "The result of BigQuery export post scan action.", + "id": "GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult", + "properties": { + "message": { + "description": "Output only. Additional information about the BigQuery exporting.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Execution state for the BigQuery exporting.", + "enum": [ + "STATE_UNSPECIFIED", + "SUCCEEDED", + "FAILED", + "SKIPPED" + ], + "enumDescriptions": [ + "The exporting state is unspecified.", + "The exporting completed successfully.", + "The exporting is no longer running due to an error.", + "The exporting is skipped due to no valid scan result to export (usually caused by scan failed)." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1DataQualityRule": { "description": "A rule captures data quality intent about a data source.", "id": "GoogleCloudDataplexV1DataQualityRule", @@ -5734,6 +5852,10 @@ "description": "DataQualityScan related setting.", "id": "GoogleCloudDataplexV1DataQualitySpec", "properties": { + "postScanActions": { + "$ref": "GoogleCloudDataplexV1DataQualitySpecPostScanActions", + "description": "Optional. Actions to take upon job completion." + }, "rowFilter": { "description": "Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 \u003e= 0 AND col2 \u003c 10", "type": "string" @@ -5753,6 +5875,28 @@ }, "type": "object" }, + "GoogleCloudDataplexV1DataQualitySpecPostScanActions": { + "description": "The configuration of post scan actions of DataQualityScan.", + "id": "GoogleCloudDataplexV1DataQualitySpecPostScanActions", + "properties": { + "bigqueryExport": { + "$ref": "GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport", + "description": "Optional. If set, results will be exported to the provided BigQuery table." + } + }, + "type": "object" + }, + "GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport": { + "description": "The configuration of BigQuery export post scan action.", + "id": "GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport", + "properties": { + "resultsTable": { + "description": "Optional. The BigQuery table to export DataQualityScan results to. Format: projects/{project}/datasets/{dataset}/tables/{table}", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1DataScan": { "description": "Represents a user-visible job which provides the insights for the related data source.For example: Data Quality: generates queries based on the rules and runs against the data to get data quality check results. Data Profile: analyzes the data in table(s) and generates insights about the structure, content and relationships (such as null percent, cardinality, min/max/mean, etc).", "id": "GoogleCloudDataplexV1DataScan", @@ -6240,6 +6384,12 @@ "readOnly": true, "type": "integer" }, + "classCount": { + "description": "Output only. The number of classes in the DataTaxonomy.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, "createTime": { "description": "Output only. The time when the DataTaxonomy was created.", "format": "google-datetime", diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 29986ec55c3..07ae4768d95 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1621,6 +1621,9 @@ func (s *GoogleCloudDataplexV1DataAttributeBindingPath) MarshalJSON() ([]byte, e // output of DataProfileScan. Each field of the table will have field // type specific profile result. type GoogleCloudDataplexV1DataProfileResult struct { + // PostScanActionsResult: Output only. The result of post scan actions. + PostScanActionsResult *GoogleCloudDataplexV1DataProfileResultPostScanActionsResult `json:"postScanActionsResult,omitempty"` + // Profile: The profile information per field. Profile *GoogleCloudDataplexV1DataProfileResultProfile `json:"profile,omitempty"` @@ -1630,7 +1633,81 @@ type GoogleCloudDataplexV1DataProfileResult struct { // ScannedData: The data scanned for this result. ScannedData *GoogleCloudDataplexV1ScannedData `json:"scannedData,omitempty"` - // ForceSendFields is a list of field names (e.g. "Profile") to + // ForceSendFields is a list of field names (e.g. + // "PostScanActionsResult") to unconditionally include in API requests. + // By 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. "PostScanActionsResult") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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 *GoogleCloudDataplexV1DataProfileResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1DataProfileResultPostScanActionsResult: The +// result of post scan actions of DataProfileScan job. +type GoogleCloudDataplexV1DataProfileResultPostScanActionsResult struct { + // BigqueryExportResult: Output only. The result of BigQuery export post + // scan action. + BigqueryExportResult *GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult `json:"bigqueryExportResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BigqueryExportResult") to unconditionally include in API requests. + // By 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. "BigqueryExportResult") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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 *GoogleCloudDataplexV1DataProfileResultPostScanActionsResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileResultPostScanActionsResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExp +// ortResult: The result of BigQuery export post scan action. +type GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult struct { + // Message: Output only. Additional information about the BigQuery + // exporting. + Message string `json:"message,omitempty"` + + // State: Output only. Execution state for the BigQuery exporting. + // + // Possible values: + // "STATE_UNSPECIFIED" - The exporting state is unspecified. + // "SUCCEEDED" - The exporting completed successfully. + // "FAILED" - The exporting is no longer running due to an error. + // "SKIPPED" - The exporting is skipped due to no valid scan result to + // export (usually caused by scan failed). + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Message") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1638,7 +1715,7 @@ type GoogleCloudDataplexV1DataProfileResult struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Profile") to include in + // NullFields is a list of field names (e.g. "Message") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1647,8 +1724,8 @@ type GoogleCloudDataplexV1DataProfileResult struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDataplexV1DataProfileResult) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDataplexV1DataProfileResult +func (s *GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileResultPostScanActionsResultBigQueryExportResult raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -2057,6 +2134,9 @@ type GoogleCloudDataplexV1DataProfileSpec struct { // included, except for ones listed in exclude_fields. IncludeFields *GoogleCloudDataplexV1DataProfileSpecSelectedFields `json:"includeFields,omitempty"` + // PostScanActions: Optional. Actions to take upon job completion.. + PostScanActions *GoogleCloudDataplexV1DataProfileSpecPostScanActions `json:"postScanActions,omitempty"` + // RowFilter: Optional. A filter applied to all rows in a single // DataScan job. The filter needs to be a valid SQL expression for a // WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND @@ -2106,6 +2186,68 @@ func (s *GoogleCloudDataplexV1DataProfileSpec) UnmarshalJSON(data []byte) error return nil } +// GoogleCloudDataplexV1DataProfileSpecPostScanActions: The +// configuration of post scan actions of DataProfileScan job. +type GoogleCloudDataplexV1DataProfileSpecPostScanActions struct { + // BigqueryExport: Optional. If set, results will be exported to the + // provided BigQuery table. + BigqueryExport *GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport `json:"bigqueryExport,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryExport") to + // unconditionally include in API requests. By 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. "BigqueryExport") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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 *GoogleCloudDataplexV1DataProfileSpecPostScanActions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileSpecPostScanActions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport: +// The configuration of BigQuery export post scan action. +type GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport struct { + // ResultsTable: Optional. The BigQuery table to export DataProfileScan + // results to. Format: + // projects/{project}/datasets/{dataset}/tables/{table} + ResultsTable string `json:"resultsTable,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResultsTable") to + // unconditionally include in API requests. By 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. "ResultsTable") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an 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 *GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataProfileSpecPostScanActionsBigQueryExport + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1DataProfileSpecSelectedFields: The specification // for fields to include or exclude in data profile scan. type GoogleCloudDataplexV1DataProfileSpecSelectedFields struct { @@ -2178,6 +2320,9 @@ type GoogleCloudDataplexV1DataQualityResult struct { // Passed: Overall data quality result -- true if all rules passed. Passed bool `json:"passed,omitempty"` + // PostScanActionsResult: Output only. The result of post scan actions. + PostScanActionsResult *GoogleCloudDataplexV1DataQualityResultPostScanActionsResult `json:"postScanActionsResult,omitempty"` + // RowCount: The count of rows processed. RowCount int64 `json:"rowCount,omitempty,string"` @@ -2210,6 +2355,78 @@ func (s *GoogleCloudDataplexV1DataQualityResult) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDataplexV1DataQualityResultPostScanActionsResult: The +// result of post scan actions of DataQualityScan job. +type GoogleCloudDataplexV1DataQualityResultPostScanActionsResult struct { + // BigqueryExportResult: Output only. The result of BigQuery export post + // scan action. + BigqueryExportResult *GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult `json:"bigqueryExportResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BigqueryExportResult") to unconditionally include in API requests. + // By 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. "BigqueryExportResult") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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 *GoogleCloudDataplexV1DataQualityResultPostScanActionsResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityResultPostScanActionsResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExp +// ortResult: The result of BigQuery export post scan action. +type GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult struct { + // Message: Output only. Additional information about the BigQuery + // exporting. + Message string `json:"message,omitempty"` + + // State: Output only. Execution state for the BigQuery exporting. + // + // Possible values: + // "STATE_UNSPECIFIED" - The exporting state is unspecified. + // "SUCCEEDED" - The exporting completed successfully. + // "FAILED" - The exporting is no longer running due to an error. + // "SKIPPED" - The exporting is skipped due to no valid scan result to + // export (usually caused by scan failed). + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Message") to + // unconditionally include in API requests. By 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. "Message") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an 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 *GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityResultPostScanActionsResultBigQueryExportResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1DataQualityRule: A rule captures data quality // intent about a data source. type GoogleCloudDataplexV1DataQualityRule struct { @@ -2733,6 +2950,9 @@ func (s *GoogleCloudDataplexV1DataQualityScanRuleResult) UnmarshalJSON(data []by // GoogleCloudDataplexV1DataQualitySpec: DataQualityScan related // setting. type GoogleCloudDataplexV1DataQualitySpec struct { + // PostScanActions: Optional. Actions to take upon job completion. + PostScanActions *GoogleCloudDataplexV1DataQualitySpecPostScanActions `json:"postScanActions,omitempty"` + // RowFilter: Optional. A filter applied to all rows in a single // DataScan job. The filter needs to be a valid SQL expression for a // WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND @@ -2749,7 +2969,7 @@ type GoogleCloudDataplexV1DataQualitySpec struct { // applied if sampling_percent is not specified, 0 or 100. SamplingPercent float64 `json:"samplingPercent,omitempty"` - // ForceSendFields is a list of field names (e.g. "RowFilter") to + // ForceSendFields is a list of field names (e.g. "PostScanActions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2757,12 +2977,13 @@ type GoogleCloudDataplexV1DataQualitySpec struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RowFilter") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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. "PostScanActions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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:"-"` } @@ -2786,6 +3007,68 @@ func (s *GoogleCloudDataplexV1DataQualitySpec) UnmarshalJSON(data []byte) error return nil } +// GoogleCloudDataplexV1DataQualitySpecPostScanActions: The +// configuration of post scan actions of DataQualityScan. +type GoogleCloudDataplexV1DataQualitySpecPostScanActions struct { + // BigqueryExport: Optional. If set, results will be exported to the + // provided BigQuery table. + BigqueryExport *GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport `json:"bigqueryExport,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryExport") to + // unconditionally include in API requests. By 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. "BigqueryExport") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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 *GoogleCloudDataplexV1DataQualitySpecPostScanActions) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport: +// The configuration of BigQuery export post scan action. +type GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport struct { + // ResultsTable: Optional. The BigQuery table to export DataQualityScan + // results to. Format: + // projects/{project}/datasets/{dataset}/tables/{table} + ResultsTable string `json:"resultsTable,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResultsTable") to + // unconditionally include in API requests. By 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. "ResultsTable") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an 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 *GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualitySpecPostScanActionsBigQueryExport + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1DataScan: Represents a user-visible job which // provides the insights for the related data source.For example: Data // Quality: generates queries based on the rules and runs against the @@ -3433,6 +3716,9 @@ type GoogleCloudDataplexV1DataTaxonomy struct { // DataTaxonomy. AttributeCount int64 `json:"attributeCount,omitempty"` + // ClassCount: Output only. The number of classes in the DataTaxonomy. + ClassCount int64 `json:"classCount,omitempty"` + // CreateTime: Output only. The time when the DataTaxonomy was created. CreateTime string `json:"createTime,omitempty"` diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json index 8570cd43692..e2dd17836d7 100644 --- a/firestore/v1/firestore-api.json +++ b/firestore/v1/firestore-api.json @@ -1672,7 +1672,7 @@ } } }, - "revision": "20230716", + "revision": "20230722", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -2354,7 +2354,7 @@ "type": "string" }, "retention": { - "description": "At what relative time in the future, compared to the creation time of the backup should the backup be deleted, i.e. keep backups for 7 days.", + "description": "At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.", "format": "google-duration", "type": "string" }, diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 94948f8b05d..b7b37bf1562 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -1558,9 +1558,9 @@ type GoogleFirestoreAdminV1BackupSchedule struct { // ule}` Name string `json:"name,omitempty"` - // Retention: At what relative time in the future, compared to the - // creation time of the backup should the backup be deleted, i.e. keep - // backups for 7 days. + // Retention: At what relative time in the future, compared to its + // creation time, the backup should be deleted, e.g. keep backups for 7 + // days. Retention string `json:"retention,omitempty"` // UpdateTime: Output only. The timestamp at which this backup schedule diff --git a/gkebackup/v1/gkebackup-api.json b/gkebackup/v1/gkebackup-api.json index 744c898c963..8c29cbee635 100644 --- a/gkebackup/v1/gkebackup-api.json +++ b/gkebackup/v1/gkebackup-api.json @@ -247,7 +247,7 @@ ], "parameters": { "etag": { - "description": "If provided, this value must match the current value of the target BackupPlan's etag field or the request is rejected.", + "description": "Optional. If provided, this value must match the current value of the target BackupPlan's etag field or the request is rejected.", "location": "query", "type": "string" }, @@ -333,23 +333,23 @@ ], "parameters": { "filter": { - "description": "Field match expression used to filter the results.", + "description": "Optional. Field match expression used to filter the results.", "location": "query", "type": "string" }, "orderBy": { - "description": "Field by which to sort the results.", + "description": "Optional. Field by which to sort the results.", "location": "query", "type": "string" }, "pageSize": { - "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The value of next_page_token received from a previous `ListBackupPlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackupPlans` must match the call that provided the page token.", + "description": "Optional. The value of next_page_token received from a previous `ListBackupPlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackupPlans` must match the call that provided the page token.", "location": "query", "type": "string" }, @@ -386,7 +386,7 @@ "type": "string" }, "updateMask": { - "description": "This is used to specify the fields to be overwritten in the BackupPlan targeted for update. The values for each of these updated fields will be taken from the `backup_plan` provided with this request. Field names are relative to the root of the resource (e.g., `description`, `backup_config.include_volume_data`, etc.) If no `update_mask` is provided, all fields in `backup_plan` will be written to the target BackupPlan resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_plan` are ignored and are not used to update the target BackupPlan.", + "description": "Optional. This is used to specify the fields to be overwritten in the BackupPlan targeted for update. The values for each of these updated fields will be taken from the `backup_plan` provided with this request. Field names are relative to the root of the resource (e.g., `description`, `backup_config.include_volume_data`, etc.) If no `update_mask` is provided, all fields in `backup_plan` will be written to the target BackupPlan resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_plan` are ignored and are not used to update the target BackupPlan.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -473,7 +473,7 @@ ], "parameters": { "backupId": { - "description": "The client-provided short name for the Backup resource. This name must: - be between 1 and 63 characters long (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes - start with a lower-case letter - end with a lower-case letter or number - be unique within the set of Backups in this BackupPlan", + "description": "Optional. The client-provided short name for the Backup resource. This name must: - be between 1 and 63 characters long (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes - start with a lower-case letter - end with a lower-case letter or number - be unique within the set of Backups in this BackupPlan", "location": "query", "type": "string" }, @@ -506,12 +506,12 @@ ], "parameters": { "etag": { - "description": "If provided, this value must match the current value of the target Backup's etag field or the request is rejected.", + "description": "Optional. If provided, this value must match the current value of the target Backup's etag field or the request is rejected.", "location": "query", "type": "string" }, "force": { - "description": "If set to true, any VolumeBackups below this Backup will also be deleted. Otherwise, the request will only succeed if the Backup has no VolumeBackups.", + "description": "Optional. If set to true, any VolumeBackups below this Backup will also be deleted. Otherwise, the request will only succeed if the Backup has no VolumeBackups.", "location": "query", "type": "boolean" }, @@ -597,23 +597,23 @@ ], "parameters": { "filter": { - "description": "Field match expression used to filter the results.", + "description": "Optional. Field match expression used to filter the results.", "location": "query", "type": "string" }, "orderBy": { - "description": "Field by which to sort the results.", + "description": "Optional. Field by which to sort the results.", "location": "query", "type": "string" }, "pageSize": { - "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The value of next_page_token received from a previous `ListBackups` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackups` must match the call that provided the page token.", + "description": "Optional. The value of next_page_token received from a previous `ListBackups` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackups` must match the call that provided the page token.", "location": "query", "type": "string" }, @@ -650,7 +650,7 @@ "type": "string" }, "updateMask": { - "description": "This is used to specify the fields to be overwritten in the Backup targeted for update. The values for each of these updated fields will be taken from the `backup_plan` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `backup` will be written to the target Backup resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `backup` are ignored and are not used to update the target Backup.", + "description": "Optional. This is used to specify the fields to be overwritten in the Backup targeted for update. The values for each of these updated fields will be taken from the `backup_plan` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `backup` will be written to the target Backup resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `backup` are ignored and are not used to update the target Backup.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -793,23 +793,23 @@ ], "parameters": { "filter": { - "description": "Field match expression used to filter the results.", + "description": "Optional. Field match expression used to filter the results.", "location": "query", "type": "string" }, "orderBy": { - "description": "Field by which to sort the results.", + "description": "Optional. Field by which to sort the results.", "location": "query", "type": "string" }, "pageSize": { - "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The value of next_page_token received from a previous `ListVolumeBackups` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListVolumeBackups` must match the call that provided the page token.", + "description": "Optional. The value of next_page_token received from a previous `ListVolumeBackups` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListVolumeBackups` must match the call that provided the page token.", "location": "query", "type": "string" }, @@ -1034,12 +1034,12 @@ ], "parameters": { "etag": { - "description": "If provided, this value must match the current value of the target RestorePlan's etag field or the request is rejected.", + "description": "Optional. If provided, this value must match the current value of the target RestorePlan's etag field or the request is rejected.", "location": "query", "type": "string" }, "force": { - "description": "If set to true, any Restores below this RestorePlan will also be deleted. Otherwise, the request will only succeed if the RestorePlan has no Restores.", + "description": "Optional. If set to true, any Restores below this RestorePlan will also be deleted. Otherwise, the request will only succeed if the RestorePlan has no Restores.", "location": "query", "type": "boolean" }, @@ -1125,23 +1125,23 @@ ], "parameters": { "filter": { - "description": "Field match expression used to filter the results.", + "description": "Optional. Field match expression used to filter the results.", "location": "query", "type": "string" }, "orderBy": { - "description": "Field by which to sort the results.", + "description": "Optional. Field by which to sort the results.", "location": "query", "type": "string" }, "pageSize": { - "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The value of next_page_token received from a previous `ListRestorePlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListRestorePlans` must match the call that provided the page token.", + "description": "Optional. The value of next_page_token received from a previous `ListRestorePlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListRestorePlans` must match the call that provided the page token.", "location": "query", "type": "string" }, @@ -1178,7 +1178,7 @@ "type": "string" }, "updateMask": { - "description": "This is used to specify the fields to be overwritten in the RestorePlan targeted for update. The values for each of these updated fields will be taken from the `restore_plan` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `restore_plan` will be written to the target RestorePlan resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `restore_plan` are ignored and are not used to update the target RestorePlan.", + "description": "Optional. This is used to specify the fields to be overwritten in the RestorePlan targeted for update. The values for each of these updated fields will be taken from the `restore_plan` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `restore_plan` will be written to the target RestorePlan resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `restore_plan` are ignored and are not used to update the target RestorePlan.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1298,12 +1298,12 @@ ], "parameters": { "etag": { - "description": "If provided, this value must match the current value of the target Restore's etag field or the request is rejected.", + "description": "Optional. If provided, this value must match the current value of the target Restore's etag field or the request is rejected.", "location": "query", "type": "string" }, "force": { - "description": "If set to true, any VolumeRestores below this restore will also be deleted. Otherwise, the request will only succeed if the restore has no VolumeRestores.", + "description": "Optional. If set to true, any VolumeRestores below this restore will also be deleted. Otherwise, the request will only succeed if the restore has no VolumeRestores.", "location": "query", "type": "boolean" }, @@ -1389,23 +1389,23 @@ ], "parameters": { "filter": { - "description": "Field match expression used to filter the results.", + "description": "Optional. Field match expression used to filter the results.", "location": "query", "type": "string" }, "orderBy": { - "description": "Field by which to sort the results.", + "description": "Optional. Field by which to sort the results.", "location": "query", "type": "string" }, "pageSize": { - "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The value of next_page_token received from a previous `ListRestores` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListRestores` must match the call that provided the page token.", + "description": "Optional. The value of next_page_token received from a previous `ListRestores` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListRestores` must match the call that provided the page token.", "location": "query", "type": "string" }, @@ -1442,7 +1442,7 @@ "type": "string" }, "updateMask": { - "description": "This is used to specify the fields to be overwritten in the Restore targeted for update. The values for each of these updated fields will be taken from the `restore` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `restore` will be written to the target Restore resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored and are not used to update the target Restore.", + "description": "Optional. This is used to specify the fields to be overwritten in the Restore targeted for update. The values for each of these updated fields will be taken from the `restore` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `restore` will be written to the target Restore resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored and are not used to update the target Restore.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1585,23 +1585,23 @@ ], "parameters": { "filter": { - "description": "Field match expression used to filter the results.", + "description": "Optional. Field match expression used to filter the results.", "location": "query", "type": "string" }, "orderBy": { - "description": "Field by which to sort the results.", + "description": "Optional. Field by which to sort the results.", "location": "query", "type": "string" }, "pageSize": { - "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The value of next_page_token received from a previous `ListVolumeRestores` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListVolumeRestores` must match the call that provided the page token.", + "description": "Optional. The value of next_page_token received from a previous `ListVolumeRestores` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListVolumeRestores` must match the call that provided the page token.", "location": "query", "type": "string" }, @@ -1688,7 +1688,7 @@ } } }, - "revision": "20230705", + "revision": "20230719", "rootUrl": "https://gkebackup.googleapis.com/", "schemas": { "AuditConfig": { @@ -1782,7 +1782,7 @@ "type": "string" }, "deleteLockDays": { - "description": "Minimum age for this Backup (in days). If this field is set to a non-zero value, the Backup will be \"locked\" against deletion (either manual or automatic deletion) for the number of days provided (measured from the creation time of the Backup). MUST be an integer value between 0-90 (inclusive). Defaults to parent BackupPlan's backup_delete_lock_days setting and may only be increased (either at creation time or in a subsequent update).", + "description": "Optional. Minimum age for this Backup (in days). If this field is set to a non-zero value, the Backup will be \"locked\" against deletion (either manual or automatic deletion) for the number of days provided (measured from the creation time of the Backup). MUST be an integer value between 0-90 (inclusive). Defaults to parent BackupPlan's backup_delete_lock_days setting and may only be increased (either at creation time or in a subsequent update).", "format": "int32", "type": "integer" }, @@ -1793,7 +1793,7 @@ "type": "string" }, "description": { - "description": "User specified descriptive string for this Backup.", + "description": "Optional. User specified descriptive string for this Backup.", "type": "string" }, "encryptionKey": { @@ -1810,7 +1810,7 @@ "additionalProperties": { "type": "string" }, - "description": "A set of custom labels supplied by user.", + "description": "Optional. A set of custom labels supplied by user.", "type": "object" }, "manual": { @@ -1836,7 +1836,7 @@ "type": "integer" }, "retainDays": { - "description": "The age (in days) after which this Backup will be automatically deleted. Must be an integer value \u003e= 0: - If 0, no automatic deletion will occur for this Backup. - If not 0, this must be \u003e= delete_lock_days and \u003c= 365. Once a Backup is created, this value may only be increased. Defaults to the parent BackupPlan's backup_retain_days value.", + "description": "Optional. The age (in days) after which this Backup will be automatically deleted. Must be an integer value \u003e= 0: - If 0, no automatic deletion will occur for this Backup. - If not 0, this must be \u003e= delete_lock_days and \u003c= 365. Once a Backup is created, this value may only be increased. Defaults to the parent BackupPlan's backup_retain_days value.", "format": "int32", "type": "integer" }, @@ -1918,14 +1918,14 @@ }, "encryptionKey": { "$ref": "EncryptionKey", - "description": "This defines a customer managed encryption key that will be used to encrypt the \"config\" portion (the Kubernetes resources) of Backups created via this plan. Default (empty): Config backup artifacts will not be encrypted." + "description": "Optional. This defines a customer managed encryption key that will be used to encrypt the \"config\" portion (the Kubernetes resources) of Backups created via this plan. Default (empty): Config backup artifacts will not be encrypted." }, "includeSecrets": { - "description": "This flag specifies whether Kubernetes Secret resources should be included when they fall into the scope of Backups. Default: False", + "description": "Optional. This flag specifies whether Kubernetes Secret resources should be included when they fall into the scope of Backups. Default: False", "type": "boolean" }, "includeVolumeData": { - "description": "This flag specifies whether volume data should be backed up when PVCs are included in the scope of a Backup. Default: False", + "description": "Optional. This flag specifies whether volume data should be backed up when PVCs are included in the scope of a Backup. Default: False", "type": "boolean" }, "selectedApplications": { @@ -1945,11 +1945,11 @@ "properties": { "backupConfig": { "$ref": "BackupConfig", - "description": "Defines the configuration of Backups created via this BackupPlan." + "description": "Optional. Defines the configuration of Backups created via this BackupPlan." }, "backupSchedule": { "$ref": "Schedule", - "description": "Defines a schedule for automatic Backup creation via this BackupPlan." + "description": "Optional. Defines a schedule for automatic Backup creation via this BackupPlan." }, "cluster": { "description": "Required. Immutable. The source cluster from which Backups will be created via this BackupPlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*`", @@ -1962,11 +1962,11 @@ "type": "string" }, "deactivated": { - "description": "This flag indicates whether this BackupPlan has been deactivated. Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups). Default: False", + "description": "Optional. This flag indicates whether this BackupPlan has been deactivated. Setting this field to True locks the BackupPlan such that no further updates will be allowed (except deletes), including the deactivated field itself. It also prevents any new Backups from being created via this BackupPlan (including scheduled Backups). Default: False", "type": "boolean" }, "description": { - "description": "User specified descriptive string for this BackupPlan.", + "description": "Optional. User specified descriptive string for this BackupPlan.", "type": "string" }, "etag": { @@ -1978,7 +1978,7 @@ "additionalProperties": { "type": "string" }, - "description": "A set of custom labels supplied by user.", + "description": "Optional. A set of custom labels supplied by user.", "type": "object" }, "name": { @@ -1994,7 +1994,7 @@ }, "retentionPolicy": { "$ref": "RetentionPolicy", - "description": "RetentionPolicy governs lifecycle of Backups created under this plan." + "description": "Optional. RetentionPolicy governs lifecycle of Backups created under this plan." }, "state": { "description": "Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to \"DEACTIVATED\" if the BackupPlan is deactivated on an Update", @@ -2065,26 +2065,31 @@ "id": "ClusterMetadata", "properties": { "anthosVersion": { - "description": "Anthos version", + "description": "Output only. Anthos version", + "readOnly": true, "type": "string" }, "backupCrdVersions": { "additionalProperties": { "type": "string" }, - "description": "A list of the Backup for GKE CRD versions found in the cluster.", + "description": "Output only. A list of the Backup for GKE CRD versions found in the cluster.", + "readOnly": true, "type": "object" }, "cluster": { - "description": "The source cluster from which this Backup was created. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*` This is inherited from the parent BackupPlan's cluster field.", + "description": "Output only. The source cluster from which this Backup was created. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*` This is inherited from the parent BackupPlan's cluster field.", + "readOnly": true, "type": "string" }, "gkeVersion": { - "description": "GKE version", + "description": "Output only. GKE version", + "readOnly": true, "type": "string" }, "k8sVersion": { - "description": "The Kubernetes server version of the source cluster.", + "description": "Output only. The Kubernetes server version of the source cluster.", + "readOnly": true, "type": "string" } }, @@ -2095,22 +2100,22 @@ "id": "ClusterResourceRestoreScope", "properties": { "allGroupKinds": { - "description": "If True, all valid cluster-scoped resources will be restored. Mutually exclusive to any other field in the message.", + "description": "Optional. If True, all valid cluster-scoped resources will be restored. Mutually exclusive to any other field in the message.", "type": "boolean" }, "excludedGroupKinds": { - "description": "A list of cluster-scoped resource group kinds to NOT restore from the backup. If specified, all valid cluster-scoped resources will be restored except for those specified in the list. Mutually exclusive to any other field in the message.", + "description": "Optional. A list of cluster-scoped resource group kinds to NOT restore from the backup. If specified, all valid cluster-scoped resources will be restored except for those specified in the list. Mutually exclusive to any other field in the message.", "items": { "$ref": "GroupKind" }, "type": "array" }, "noGroupKinds": { - "description": "If True, no cluster-scoped resources will be restored. This has the same restore scope as if the message is not defined. Mutually exclusive to any other field in the message.", + "description": "Optional. If True, no cluster-scoped resources will be restored. This has the same restore scope as if the message is not defined. Mutually exclusive to any other field in the message.", "type": "boolean" }, "selectedGroupKinds": { - "description": "A list of cluster-scoped resource group kinds to restore from the backup. If specified, only the selected resources will be restored. Mutually exclusive to any other field in the message.", + "description": "Optional. A list of cluster-scoped resource group kinds to restore from the backup. If specified, only the selected resources will be restored. Mutually exclusive to any other field in the message.", "items": { "$ref": "GroupKind" }, @@ -2130,7 +2135,7 @@ "id": "EncryptionKey", "properties": { "gcpKmsEncryptionKey": { - "description": "Google Cloud KMS encryption key. Format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`", + "description": "Optional. Google Cloud KMS encryption key. Format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`", "type": "string" } }, @@ -2250,11 +2255,11 @@ "id": "GroupKind", "properties": { "resourceGroup": { - "description": "API group string of a Kubernetes resource, e.g. \"apiextensions.k8s.io\", \"storage.k8s.io\", etc. Note: use empty string for core API group", + "description": "Optional. API group string of a Kubernetes resource, e.g. \"apiextensions.k8s.io\", \"storage.k8s.io\", etc. Note: use empty string for core API group", "type": "string" }, "resourceKind": { - "description": "Kind of a Kubernetes resource, e.g. \"CustomResourceDefinition\", \"StorageClass\", etc.", + "description": "Optional. Kind of a Kubernetes resource, e.g. \"CustomResourceDefinition\", \"StorageClass\", etc.", "type": "string" } }, @@ -2446,11 +2451,11 @@ "id": "NamespacedName", "properties": { "name": { - "description": "The name of the Kubernetes resource.", + "description": "Optional. The name of the Kubernetes resource.", "type": "string" }, "namespace": { - "description": "The Namespace of the Kubernetes resource.", + "description": "Optional. The Namespace of the Kubernetes resource.", "type": "string" } }, @@ -2461,7 +2466,7 @@ "id": "NamespacedNames", "properties": { "namespacedNames": { - "description": "A list of namespaced Kubernetes resources.", + "description": "Optional. A list of namespaced Kubernetes resources.", "items": { "$ref": "NamespacedName" }, @@ -2475,7 +2480,7 @@ "id": "Namespaces", "properties": { "namespaces": { - "description": "A list of Kubernetes Namespaces", + "description": "Optional. A list of Kubernetes Namespaces", "items": { "type": "string" }, @@ -2564,18 +2569,18 @@ "id": "ResourceFilter", "properties": { "groupKinds": { - "description": "(Filtering parameter) Any resource subject to transformation must belong to one of the listed \"types\". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).", + "description": "Optional. (Filtering parameter) Any resource subject to transformation must belong to one of the listed \"types\". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).", "items": { "$ref": "GroupKind" }, "type": "array" }, "jsonPath": { - "description": "This is a [JSONPath] (https://github.com/json-path/JsonPath/blob/master/README.md) expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).", + "description": "Optional. This is a [JSONPath] (https://github.com/json-path/JsonPath/blob/master/README.md) expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).", "type": "string" }, "namespaces": { - "description": "(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string (\"\") as one of the target namespaces.", + "description": "Optional. (Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string (\"\") as one of the target namespaces.", "items": { "type": "string" }, @@ -2708,7 +2713,7 @@ "type": "boolean" }, "clusterResourceConflictPolicy": { - "description": "Defines the behavior for handling the situation where cluster-scoped resources being restored already exist in the target cluster. This MUST be set to a value other than CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if cluster_resource_restore_scope is not empty.", + "description": "Optional. Defines the behavior for handling the situation where cluster-scoped resources being restored already exist in the target cluster. This MUST be set to a value other than CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if cluster_resource_restore_scope is not empty.", "enum": [ "CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED", "USE_EXISTING_VERSION", @@ -2723,14 +2728,14 @@ }, "clusterResourceRestoreScope": { "$ref": "ClusterResourceRestoreScope", - "description": "Identifies the cluster-scoped resources to restore from the Backup. Not specifying it means NO cluster resource will be restored." + "description": "Optional. Identifies the cluster-scoped resources to restore from the Backup. Not specifying it means NO cluster resource will be restored." }, "excludedNamespaces": { "$ref": "Namespaces", "description": "A list of selected namespaces excluded from restoration. All namespaces except those in this list will be restored." }, "namespacedResourceRestoreMode": { - "description": "Defines the behavior for handling the situation where sets of namespaced resources being restored already exist in the target cluster. This MUST be set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.", + "description": "Optional. Defines the behavior for handling the situation where sets of namespaced resources being restored already exist in the target cluster. This MUST be set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.", "enum": [ "NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED", "DELETE_AND_RESTORE", @@ -2756,21 +2761,21 @@ "description": "A list of selected Namespaces to restore from the Backup. The listed Namespaces and all resources contained in them will be restored." }, "substitutionRules": { - "description": "A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no substitution will occur.", + "description": "Optional. A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no substitution will occur.", "items": { "$ref": "SubstitutionRule" }, "type": "array" }, "transformationRules": { - "description": "A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no transformation will occur.", + "description": "Optional. A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no transformation will occur.", "items": { "$ref": "TransformationRule" }, "type": "array" }, "volumeDataRestorePolicy": { - "description": "Specifies the mechanism to be used to restore volume data. Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as NO_VOLUME_DATA_RESTORATION).", + "description": "Optional. Specifies the mechanism to be used to restore volume data. Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as NO_VOLUME_DATA_RESTORATION).", "enum": [ "VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED", "RESTORE_VOLUME_DATA_FROM_BACKUP", @@ -2807,7 +2812,7 @@ "type": "string" }, "description": { - "description": "User specified descriptive string for this RestorePlan.", + "description": "Optional. User specified descriptive string for this RestorePlan.", "type": "string" }, "etag": { @@ -2819,7 +2824,7 @@ "additionalProperties": { "type": "string" }, - "description": "A set of custom labels supplied by user.", + "description": "Optional. A set of custom labels supplied by user.", "type": "object" }, "name": { @@ -2874,17 +2879,17 @@ "id": "RetentionPolicy", "properties": { "backupDeleteLockDays": { - "description": "Minimum age for Backups created via this BackupPlan (in days). This field MUST be an integer value between 0-90 (inclusive). A Backup created under this BackupPlan will NOT be deletable until it reaches Backup's (create_time + backup_delete_lock_days). Updating this field of a BackupPlan does NOT affect existing Backups under it. Backups created AFTER a successful update will inherit the new value. Default: 0 (no delete blocking)", + "description": "Optional. Minimum age for Backups created via this BackupPlan (in days). This field MUST be an integer value between 0-90 (inclusive). A Backup created under this BackupPlan will NOT be deletable until it reaches Backup's (create_time + backup_delete_lock_days). Updating this field of a BackupPlan does NOT affect existing Backups under it. Backups created AFTER a successful update will inherit the new value. Default: 0 (no delete blocking)", "format": "int32", "type": "integer" }, "backupRetainDays": { - "description": "The default maximum age of a Backup created via this BackupPlan. This field MUST be an integer value \u003e= 0 and \u003c= 365. If specified, a Backup created under this BackupPlan will be automatically deleted after its age reaches (create_time + backup_retain_days). If not specified, Backups created under this BackupPlan will NOT be subject to automatic deletion. Updating this field does NOT affect existing Backups under it. Backups created AFTER a successful update will automatically pick up the new value. NOTE: backup_retain_days must be \u003e= backup_delete_lock_days. If cron_schedule is defined, then this must be \u003c= 360 * the creation interval. Default: 0 (no automatic deletion)", + "description": "Optional. The default maximum age of a Backup created via this BackupPlan. This field MUST be an integer value \u003e= 0 and \u003c= 365. If specified, a Backup created under this BackupPlan will be automatically deleted after its age reaches (create_time + backup_retain_days). If not specified, Backups created under this BackupPlan will NOT be subject to automatic deletion. Updating this field does NOT affect existing Backups under it. Backups created AFTER a successful update will automatically pick up the new value. NOTE: backup_retain_days must be \u003e= backup_delete_lock_days. If cron_schedule is defined, then this must be \u003c= 360 * the creation interval. Default: 0 (no automatic deletion)", "format": "int32", "type": "integer" }, "locked": { - "description": "This flag denotes whether the retention policy of this BackupPlan is locked. If set to True, no further update is allowed on this policy, including the `locked` field itself. Default: False", + "description": "Optional. This flag denotes whether the retention policy of this BackupPlan is locked. If set to True, no further update is allowed on this policy, including the `locked` field itself. Default: False", "type": "boolean" } }, @@ -2895,11 +2900,11 @@ "id": "Schedule", "properties": { "cronSchedule": { - "description": "A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the rpo_config field since at most one schedule can be defined for a BackupPlan. If this is defined, then backup_retain_days must also be defined. Default (empty): no automatic backup creation will occur.", + "description": "Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the rpo_config field since at most one schedule can be defined for a BackupPlan. If this is defined, then backup_retain_days must also be defined. Default (empty): no automatic backup creation will occur.", "type": "string" }, "paused": { - "description": "This flag denotes whether automatic Backup creation is paused for this BackupPlan. Default: False", + "description": "Optional. This flag denotes whether automatic Backup creation is paused for this BackupPlan. Default: False", "type": "boolean" } }, @@ -2926,15 +2931,15 @@ "id": "SubstitutionRule", "properties": { "newValue": { - "description": "This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string (\"\").", + "description": "Optional. This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string (\"\").", "type": "string" }, "originalValuePattern": { - "description": "(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., \"\", rather than unspecified) value for this field will only match empty fields.", + "description": "Optional. (Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., \"\", rather than unspecified) value for this field will only match empty fields.", "type": "string" }, "targetGroupKinds": { - "description": "(Filtering parameter) Any resource subject to substitution must belong to one of the listed \"types\". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).", + "description": "Optional. (Filtering parameter) Any resource subject to substitution must belong to one of the listed \"types\". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).", "items": { "$ref": "GroupKind" }, @@ -2945,7 +2950,7 @@ "type": "string" }, "targetNamespaces": { - "description": "(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string (\"\") as one of the target namespaces.", + "description": "Optional. (Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string (\"\") as one of the target namespaces.", "items": { "type": "string" }, @@ -2987,7 +2992,7 @@ "id": "TransformationRule", "properties": { "description": { - "description": "The description is a user specified string description of the transformation rule.", + "description": "Optional. The description is a user specified string description of the transformation rule.", "type": "string" }, "fieldActions": { @@ -2999,7 +3004,7 @@ }, "resourceFilter": { "$ref": "ResourceFilter", - "description": "This field is used to specify a set of fields that should be used to determine which resources in backup should be acted upon by the supplied transformation rule actions, and this will ensure that only specific resources are affected by transformation rule actions." + "description": "Optional. This field is used to specify a set of fields that should be used to determine which resources in backup should be acted upon by the supplied transformation rule actions, and this will ensure that only specific resources are affected by transformation rule actions." } }, "type": "object" @@ -3009,7 +3014,7 @@ "id": "TransformationRuleAction", "properties": { "fromPath": { - "description": "A string containing a JSON Pointer value that references the location in the target document to move the value from.", + "description": "Optional. A string containing a JSON Pointer value that references the location in the target document to move the value from.", "type": "string" }, "op": { @@ -3035,11 +3040,11 @@ "type": "string" }, "path": { - "description": "A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.", + "description": "Optional. A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.", "type": "string" }, "value": { - "description": "A string that specifies the desired value in string format to use for transformation.", + "description": "Optional. A string that specifies the desired value in string format to use for transformation.", "type": "string" } }, diff --git a/gkebackup/v1/gkebackup-gen.go b/gkebackup/v1/gkebackup-gen.go index f71a72e76e6..21e927ac689 100644 --- a/gkebackup/v1/gkebackup-gen.go +++ b/gkebackup/v1/gkebackup-gen.go @@ -375,11 +375,11 @@ type Backup struct { // created. CreateTime string `json:"createTime,omitempty"` - // DeleteLockDays: Minimum age for this Backup (in days). If this field - // is set to a non-zero value, the Backup will be "locked" against - // deletion (either manual or automatic deletion) for the number of days - // provided (measured from the creation time of the Backup). MUST be an - // integer value between 0-90 (inclusive). Defaults to parent + // DeleteLockDays: Optional. Minimum age for this Backup (in days). If + // this field is set to a non-zero value, the Backup will be "locked" + // against deletion (either manual or automatic deletion) for the number + // of days provided (measured from the creation time of the Backup). + // MUST be an integer value between 0-90 (inclusive). Defaults to parent // BackupPlan's backup_delete_lock_days setting and may only be // increased (either at creation time or in a subsequent update). DeleteLockDays int64 `json:"deleteLockDays,omitempty"` @@ -389,7 +389,8 @@ type Backup struct { // + delete_lock_days). DeleteLockExpireTime string `json:"deleteLockExpireTime,omitempty"` - // Description: User specified descriptive string for this Backup. + // Description: Optional. User specified descriptive string for this + // Backup. Description string `json:"description,omitempty"` // EncryptionKey: Output only. The customer managed encryption key that @@ -408,7 +409,7 @@ type Backup struct { // resource. Etag string `json:"etag,omitempty"` - // Labels: A set of custom labels supplied by user. + // Labels: Optional. A set of custom labels supplied by user. Labels map[string]string `json:"labels,omitempty"` // Manual: Output only. This flag indicates whether this Backup resource @@ -428,8 +429,8 @@ type Backup struct { // included in the Backup. ResourceCount int64 `json:"resourceCount,omitempty"` - // RetainDays: The age (in days) after which this Backup will be - // automatically deleted. Must be an integer value >= 0: - If 0, no + // RetainDays: Optional. The age (in days) after which this Backup will + // be automatically deleted. Must be an integer value >= 0: - If 0, no // automatic deletion will occur for this Backup. - If not 0, this must // be >= delete_lock_days and <= 365. Once a Backup is created, this // value may only be increased. Defaults to the parent BackupPlan's @@ -517,20 +518,20 @@ type BackupConfig struct { // AllNamespaces: If True, include all namespaced resources AllNamespaces bool `json:"allNamespaces,omitempty"` - // EncryptionKey: This defines a customer managed encryption key that - // will be used to encrypt the "config" portion (the Kubernetes + // EncryptionKey: Optional. This defines a customer managed encryption + // key that will be used to encrypt the "config" portion (the Kubernetes // resources) of Backups created via this plan. Default (empty): Config // backup artifacts will not be encrypted. EncryptionKey *EncryptionKey `json:"encryptionKey,omitempty"` - // IncludeSecrets: This flag specifies whether Kubernetes Secret - // resources should be included when they fall into the scope of + // IncludeSecrets: Optional. This flag specifies whether Kubernetes + // Secret resources should be included when they fall into the scope of // Backups. Default: False IncludeSecrets bool `json:"includeSecrets,omitempty"` - // IncludeVolumeData: This flag specifies whether volume data should be - // backed up when PVCs are included in the scope of a Backup. Default: - // False + // IncludeVolumeData: Optional. This flag specifies whether volume data + // should be backed up when PVCs are included in the scope of a Backup. + // Default: False IncludeVolumeData bool `json:"includeVolumeData,omitempty"` // SelectedApplications: If set, include just the resources referenced @@ -567,12 +568,12 @@ func (s *BackupConfig) MarshalJSON() ([]byte, error) { // BackupPlan: Defines the configuration and scheduling for a "line" of // Backups. type BackupPlan struct { - // BackupConfig: Defines the configuration of Backups created via this - // BackupPlan. + // BackupConfig: Optional. Defines the configuration of Backups created + // via this BackupPlan. BackupConfig *BackupConfig `json:"backupConfig,omitempty"` - // BackupSchedule: Defines a schedule for automatic Backup creation via - // this BackupPlan. + // BackupSchedule: Optional. Defines a schedule for automatic Backup + // creation via this BackupPlan. BackupSchedule *Schedule `json:"backupSchedule,omitempty"` // Cluster: Required. Immutable. The source cluster from which Backups @@ -584,15 +585,16 @@ type BackupPlan struct { // was created. CreateTime string `json:"createTime,omitempty"` - // Deactivated: This flag indicates whether this BackupPlan has been - // deactivated. Setting this field to True locks the BackupPlan such - // that no further updates will be allowed (except deletes), including - // the deactivated field itself. It also prevents any new Backups from - // being created via this BackupPlan (including scheduled Backups). - // Default: False + // Deactivated: Optional. This flag indicates whether this BackupPlan + // has been deactivated. Setting this field to True locks the BackupPlan + // such that no further updates will be allowed (except deletes), + // including the deactivated field itself. It also prevents any new + // Backups from being created via this BackupPlan (including scheduled + // Backups). Default: False Deactivated bool `json:"deactivated,omitempty"` - // Description: User specified descriptive string for this BackupPlan. + // Description: Optional. User specified descriptive string for this + // BackupPlan. Description string `json:"description,omitempty"` // Etag: Output only. `etag` is used for optimistic concurrency control @@ -606,7 +608,7 @@ type BackupPlan struct { // same version of the resource. Etag string `json:"etag,omitempty"` - // Labels: A set of custom labels supplied by user. + // Labels: Optional. A set of custom labels supplied by user. Labels map[string]string `json:"labels,omitempty"` // Name: Output only. The full name of the BackupPlan resource. Format: @@ -617,8 +619,8 @@ type BackupPlan struct { // up in the last successful Backup created via this BackupPlan. ProtectedPodCount int64 `json:"protectedPodCount,omitempty"` - // RetentionPolicy: RetentionPolicy governs lifecycle of Backups created - // under this plan. + // RetentionPolicy: Optional. RetentionPolicy governs lifecycle of + // Backups created under this plan. RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"` // State: Output only. State of the BackupPlan. This State field @@ -757,23 +759,24 @@ func (s *Binding) MarshalJSON() ([]byte, error) { // ClusterMetadata: Information about the GKE cluster from which this // Backup was created. type ClusterMetadata struct { - // AnthosVersion: Anthos version + // AnthosVersion: Output only. Anthos version AnthosVersion string `json:"anthosVersion,omitempty"` - // BackupCrdVersions: A list of the Backup for GKE CRD versions found in - // the cluster. + // BackupCrdVersions: Output only. A list of the Backup for GKE CRD + // versions found in the cluster. BackupCrdVersions map[string]string `json:"backupCrdVersions,omitempty"` - // Cluster: The source cluster from which this Backup was created. Valid - // formats: - `projects/*/locations/*/clusters/*` - + // Cluster: Output only. The source cluster from which this Backup was + // created. Valid formats: - `projects/*/locations/*/clusters/*` - // `projects/*/zones/*/clusters/*` This is inherited from the parent // BackupPlan's cluster field. Cluster string `json:"cluster,omitempty"` - // GkeVersion: GKE version + // GkeVersion: Output only. GKE version GkeVersion string `json:"gkeVersion,omitempty"` - // K8sVersion: The Kubernetes server version of the source cluster. + // K8sVersion: Output only. The Kubernetes server version of the source + // cluster. K8sVersion string `json:"k8sVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "AnthosVersion") to @@ -812,25 +815,26 @@ func (s *ClusterMetadata) MarshalJSON() ([]byte, error) { // configuration elsewhere, and will cause an error if selected here. - // Namespace - PersistentVolume type ClusterResourceRestoreScope struct { - // AllGroupKinds: If True, all valid cluster-scoped resources will be - // restored. Mutually exclusive to any other field in the message. + // AllGroupKinds: Optional. If True, all valid cluster-scoped resources + // will be restored. Mutually exclusive to any other field in the + // message. AllGroupKinds bool `json:"allGroupKinds,omitempty"` - // ExcludedGroupKinds: A list of cluster-scoped resource group kinds to - // NOT restore from the backup. If specified, all valid cluster-scoped - // resources will be restored except for those specified in the list. - // Mutually exclusive to any other field in the message. + // ExcludedGroupKinds: Optional. A list of cluster-scoped resource group + // kinds to NOT restore from the backup. If specified, all valid + // cluster-scoped resources will be restored except for those specified + // in the list. Mutually exclusive to any other field in the message. ExcludedGroupKinds []*GroupKind `json:"excludedGroupKinds,omitempty"` - // NoGroupKinds: If True, no cluster-scoped resources will be restored. - // This has the same restore scope as if the message is not defined. - // Mutually exclusive to any other field in the message. + // NoGroupKinds: Optional. If True, no cluster-scoped resources will be + // restored. This has the same restore scope as if the message is not + // defined. Mutually exclusive to any other field in the message. NoGroupKinds bool `json:"noGroupKinds,omitempty"` - // SelectedGroupKinds: A list of cluster-scoped resource group kinds to - // restore from the backup. If specified, only the selected resources - // will be restored. Mutually exclusive to any other field in the - // message. + // SelectedGroupKinds: Optional. A list of cluster-scoped resource group + // kinds to restore from the backup. If specified, only the selected + // resources will be restored. Mutually exclusive to any other field in + // the message. SelectedGroupKinds []*GroupKind `json:"selectedGroupKinds,omitempty"` // ForceSendFields is a list of field names (e.g. "AllGroupKinds") to @@ -870,8 +874,8 @@ type Empty struct { // EncryptionKey: Defined a customer managed encryption key that will be // used to encrypt Backup artifacts. type EncryptionKey struct { - // GcpKmsEncryptionKey: Google Cloud KMS encryption key. Format: - // `projects/*/locations/*/keyRings/*/cryptoKeys/*` + // GcpKmsEncryptionKey: Optional. Google Cloud KMS encryption key. + // Format: `projects/*/locations/*/keyRings/*/cryptoKeys/*` GcpKmsEncryptionKey string `json:"gcpKmsEncryptionKey,omitempty"` // ForceSendFields is a list of field names (e.g. "GcpKmsEncryptionKey") @@ -1111,12 +1115,12 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // (https://godoc.org/k8s.io/apimachinery/pkg/runtime/schema#GroupKind) // and is used for identifying specific "types" of resources to restore. type GroupKind struct { - // ResourceGroup: API group string of a Kubernetes resource, e.g. - // "apiextensions.k8s.io", "storage.k8s.io", etc. Note: use empty string - // for core API group + // ResourceGroup: Optional. API group string of a Kubernetes resource, + // e.g. "apiextensions.k8s.io", "storage.k8s.io", etc. Note: use empty + // string for core API group ResourceGroup string `json:"resourceGroup,omitempty"` - // ResourceKind: Kind of a Kubernetes resource, e.g. + // ResourceKind: Optional. Kind of a Kubernetes resource, e.g. // "CustomResourceDefinition", "StorageClass", etc. ResourceKind string `json:"resourceKind,omitempty"` @@ -1470,10 +1474,10 @@ func (s *Location) MarshalJSON() ([]byte, error) { // NamespacedName: A reference to a namespaced resource in Kubernetes. type NamespacedName struct { - // Name: The name of the Kubernetes resource. + // Name: Optional. The name of the Kubernetes resource. Name string `json:"name,omitempty"` - // Namespace: The Namespace of the Kubernetes resource. + // Namespace: Optional. The Namespace of the Kubernetes resource. Namespace string `json:"namespace,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to @@ -1501,7 +1505,7 @@ func (s *NamespacedName) MarshalJSON() ([]byte, error) { // NamespacedNames: A list of namespaced Kubernetes resources. type NamespacedNames struct { - // NamespacedNames: A list of namespaced Kubernetes resources. + // NamespacedNames: Optional. A list of namespaced Kubernetes resources. NamespacedNames []*NamespacedName `json:"namespacedNames,omitempty"` // ForceSendFields is a list of field names (e.g. "NamespacedNames") to @@ -1530,7 +1534,7 @@ func (s *NamespacedNames) MarshalJSON() ([]byte, error) { // Namespaces: A list of Kubernetes Namespaces type Namespaces struct { - // Namespaces: A list of Kubernetes Namespaces + // Namespaces: Optional. A list of Kubernetes Namespaces Namespaces []string `json:"namespaces,omitempty"` // ForceSendFields is a list of field names (e.g. "Namespaces") to @@ -1722,21 +1726,21 @@ func (s *Policy) MarshalJSON() ([]byte, error) { // the scope of a change to a specific set of kubernetes resources that // are selected for restoration from a backup. type ResourceFilter struct { - // GroupKinds: (Filtering parameter) Any resource subject to + // GroupKinds: Optional. (Filtering parameter) Any resource subject to // transformation must belong to one of the listed "types". If this // field is not provided, no type filtering will be performed (all // resources of all types matching previous filtering parameters will be // candidates for transformation). GroupKinds []*GroupKind `json:"groupKinds,omitempty"` - // JsonPath: This is a [JSONPath] + // JsonPath: Optional. This is a [JSONPath] // (https://github.com/json-path/JsonPath/blob/master/README.md) // expression that matches specific fields of candidate resources and it // operates as a filtering parameter (resources that are not matched // with this expression will not be candidates for transformation). JsonPath string `json:"jsonPath,omitempty"` - // Namespaces: (Filtering parameter) Any resource subject to + // Namespaces: Optional. (Filtering parameter) Any resource subject to // transformation must be contained within one of the listed Kubernetes // Namespace in the Backup. If this field is not provided, no namespace // filtering will be performed (all resources in all Namespaces, @@ -1896,10 +1900,10 @@ type RestoreConfig struct { // to "True". Specifying this field to "False" is an error. AllNamespaces bool `json:"allNamespaces,omitempty"` - // ClusterResourceConflictPolicy: Defines the behavior for handling the - // situation where cluster-scoped resources being restored already exist - // in the target cluster. This MUST be set to a value other than - // CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if + // ClusterResourceConflictPolicy: Optional. Defines the behavior for + // handling the situation where cluster-scoped resources being restored + // already exist in the target cluster. This MUST be set to a value + // other than CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if // cluster_resource_restore_scope is not empty. // // Possible values: @@ -1914,9 +1918,9 @@ type RestoreConfig struct { // that type. ClusterResourceConflictPolicy string `json:"clusterResourceConflictPolicy,omitempty"` - // ClusterResourceRestoreScope: Identifies the cluster-scoped resources - // to restore from the Backup. Not specifying it means NO cluster - // resource will be restored. + // ClusterResourceRestoreScope: Optional. Identifies the cluster-scoped + // resources to restore from the Backup. Not specifying it means NO + // cluster resource will be restored. ClusterResourceRestoreScope *ClusterResourceRestoreScope `json:"clusterResourceRestoreScope,omitempty"` // ExcludedNamespaces: A list of selected namespaces excluded from @@ -1924,10 +1928,10 @@ type RestoreConfig struct { // restored. ExcludedNamespaces *Namespaces `json:"excludedNamespaces,omitempty"` - // NamespacedResourceRestoreMode: Defines the behavior for handling the - // situation where sets of namespaced resources being restored already - // exist in the target cluster. This MUST be set to a value other than - // NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED. + // NamespacedResourceRestoreMode: Optional. Defines the behavior for + // handling the situation where sets of namespaced resources being + // restored already exist in the target cluster. This MUST be set to a + // value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED. // // Possible values: // "NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED" - Unspecified @@ -1962,23 +1966,26 @@ type RestoreConfig struct { // will be restored. SelectedNamespaces *Namespaces `json:"selectedNamespaces,omitempty"` - // SubstitutionRules: A list of transformation rules to be applied - // against Kubernetes resources as they are selected for restoration - // from a Backup. Rules are executed in order defined - this order - // matters, as changes made by a rule may impact the filtering logic of - // subsequent rules. An empty list means no substitution will occur. + // SubstitutionRules: Optional. A list of transformation rules to be + // applied against Kubernetes resources as they are selected for + // restoration from a Backup. Rules are executed in order defined - this + // order matters, as changes made by a rule may impact the filtering + // logic of subsequent rules. An empty list means no substitution will + // occur. SubstitutionRules []*SubstitutionRule `json:"substitutionRules,omitempty"` - // TransformationRules: A list of transformation rules to be applied - // against Kubernetes resources as they are selected for restoration - // from a Backup. Rules are executed in order defined - this order - // matters, as changes made by a rule may impact the filtering logic of - // subsequent rules. An empty list means no transformation will occur. + // TransformationRules: Optional. A list of transformation rules to be + // applied against Kubernetes resources as they are selected for + // restoration from a Backup. Rules are executed in order defined - this + // order matters, as changes made by a rule may impact the filtering + // logic of subsequent rules. An empty list means no transformation will + // occur. TransformationRules []*TransformationRule `json:"transformationRules,omitempty"` - // VolumeDataRestorePolicy: Specifies the mechanism to be used to - // restore volume data. Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED - // (will be treated as NO_VOLUME_DATA_RESTORATION). + // VolumeDataRestorePolicy: Optional. Specifies the mechanism to be used + // to restore volume data. Default: + // VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as + // NO_VOLUME_DATA_RESTORATION). // // Possible values: // "VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED" - Unspecified (illegal). @@ -2038,7 +2045,8 @@ type RestorePlan struct { // was created. CreateTime string `json:"createTime,omitempty"` - // Description: User specified descriptive string for this RestorePlan. + // Description: Optional. User specified descriptive string for this + // RestorePlan. Description string `json:"description,omitempty"` // Etag: Output only. `etag` is used for optimistic concurrency control @@ -2052,7 +2060,7 @@ type RestorePlan struct { // the same version of the resource. Etag string `json:"etag,omitempty"` - // Labels: A set of custom labels supplied by user. + // Labels: Optional. A set of custom labels supplied by user. Labels map[string]string `json:"labels,omitempty"` // Name: Output only. The full name of the RestorePlan resource. Format: @@ -2118,20 +2126,20 @@ func (s *RestorePlan) MarshalJSON() ([]byte, error) { // RetentionPolicy: RetentionPolicy defines a Backup retention policy // for a BackupPlan. type RetentionPolicy struct { - // BackupDeleteLockDays: Minimum age for Backups created via this - // BackupPlan (in days). This field MUST be an integer value between - // 0-90 (inclusive). A Backup created under this BackupPlan will NOT be - // deletable until it reaches Backup's (create_time + + // BackupDeleteLockDays: Optional. Minimum age for Backups created via + // this BackupPlan (in days). This field MUST be an integer value + // between 0-90 (inclusive). A Backup created under this BackupPlan will + // NOT be deletable until it reaches Backup's (create_time + // backup_delete_lock_days). Updating this field of a BackupPlan does // NOT affect existing Backups under it. Backups created AFTER a // successful update will inherit the new value. Default: 0 (no delete // blocking) BackupDeleteLockDays int64 `json:"backupDeleteLockDays,omitempty"` - // BackupRetainDays: The default maximum age of a Backup created via - // this BackupPlan. This field MUST be an integer value >= 0 and <= 365. - // If specified, a Backup created under this BackupPlan will be - // automatically deleted after its age reaches (create_time + + // BackupRetainDays: Optional. The default maximum age of a Backup + // created via this BackupPlan. This field MUST be an integer value >= 0 + // and <= 365. If specified, a Backup created under this BackupPlan will + // be automatically deleted after its age reaches (create_time + // backup_retain_days). If not specified, Backups created under this // BackupPlan will NOT be subject to automatic deletion. Updating this // field does NOT affect existing Backups under it. Backups created @@ -2141,9 +2149,10 @@ type RetentionPolicy struct { // interval. Default: 0 (no automatic deletion) BackupRetainDays int64 `json:"backupRetainDays,omitempty"` - // Locked: This flag denotes whether the retention policy of this - // BackupPlan is locked. If set to True, no further update is allowed on - // this policy, including the `locked` field itself. Default: False + // Locked: Optional. This flag denotes whether the retention policy of + // this BackupPlan is locked. If set to True, no further update is + // allowed on this policy, including the `locked` field itself. Default: + // False Locked bool `json:"locked,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -2174,16 +2183,17 @@ func (s *RetentionPolicy) MarshalJSON() ([]byte, error) { // Schedule: Defines scheduling parameters for automatically creating // Backups via this BackupPlan. type Schedule struct { - // CronSchedule: A standard cron (https://wikipedia.com/wiki/cron) - // string that defines a repeating schedule for creating Backups via - // this BackupPlan. This is mutually exclusive with the rpo_config field - // since at most one schedule can be defined for a BackupPlan. If this - // is defined, then backup_retain_days must also be defined. Default - // (empty): no automatic backup creation will occur. + // CronSchedule: Optional. A standard cron + // (https://wikipedia.com/wiki/cron) string that defines a repeating + // schedule for creating Backups via this BackupPlan. This is mutually + // exclusive with the rpo_config field since at most one schedule can be + // defined for a BackupPlan. If this is defined, then backup_retain_days + // must also be defined. Default (empty): no automatic backup creation + // will occur. CronSchedule string `json:"cronSchedule,omitempty"` - // Paused: This flag denotes whether automatic Backup creation is paused - // for this BackupPlan. Default: False + // Paused: Optional. This flag denotes whether automatic Backup creation + // is paused for this BackupPlan. Default: False Paused bool `json:"paused,omitempty"` // ForceSendFields is a list of field names (e.g. "CronSchedule") to @@ -2251,27 +2261,28 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { // Backup. A rule contains both filtering logic (which resources are // subject to substitution) and substitution logic. type SubstitutionRule struct { - // NewValue: This is the new value to set for any fields that pass the - // filtering and selection criteria. To remove a value from a Kubernetes - // resource, either leave this field unspecified, or set it to the empty - // string (""). + // NewValue: Optional. This is the new value to set for any fields that + // pass the filtering and selection criteria. To remove a value from a + // Kubernetes resource, either leave this field unspecified, or set it + // to the empty string (""). NewValue string `json:"newValue,omitempty"` - // OriginalValuePattern: (Filtering parameter) This is a [regular - // expression] (https://en.wikipedia.org/wiki/Regular_expression) that - // is compared against the fields matched by the target_json_path - // expression (and must also have passed the previous filters). - // Substitution will not be performed against fields whose value does - // not match this expression. If this field is NOT specified, then ALL - // fields matched by the target_json_path expression will undergo - // substitution. Note that an empty (e.g., "", rather than unspecified) - // value for this field will only match empty fields. + // OriginalValuePattern: Optional. (Filtering parameter) This is a + // [regular expression] + // (https://en.wikipedia.org/wiki/Regular_expression) that is compared + // against the fields matched by the target_json_path expression (and + // must also have passed the previous filters). Substitution will not be + // performed against fields whose value does not match this expression. + // If this field is NOT specified, then ALL fields matched by the + // target_json_path expression will undergo substitution. Note that an + // empty (e.g., "", rather than unspecified) value for this field will + // only match empty fields. OriginalValuePattern string `json:"originalValuePattern,omitempty"` - // TargetGroupKinds: (Filtering parameter) Any resource subject to - // substitution must belong to one of the listed "types". If this field - // is not provided, no type filtering will be performed (all resources - // of all types matching previous filtering parameters will be + // TargetGroupKinds: Optional. (Filtering parameter) Any resource + // subject to substitution must belong to one of the listed "types". If + // this field is not provided, no type filtering will be performed (all + // resources of all types matching previous filtering parameters will be // candidates for substitution). TargetGroupKinds []*GroupKind `json:"targetGroupKinds,omitempty"` @@ -2284,13 +2295,14 @@ type SubstitutionRule struct { // candidate resources will be modified). TargetJsonPath string `json:"targetJsonPath,omitempty"` - // TargetNamespaces: (Filtering parameter) Any resource subject to - // substitution must be contained within one of the listed Kubernetes - // Namespace in the Backup. If this field is not provided, no namespace - // filtering will be performed (all resources in all Namespaces, - // including all cluster-scoped resources, will be candidates for - // substitution). To mix cluster-scoped and namespaced resources in the - // same rule, use an empty string ("") as one of the target namespaces. + // TargetNamespaces: Optional. (Filtering parameter) Any resource + // subject to substitution must be contained within one of the listed + // Kubernetes Namespace in the Backup. If this field is not provided, no + // namespace filtering will be performed (all resources in all + // Namespaces, including all cluster-scoped resources, will be + // candidates for substitution). To mix cluster-scoped and namespaced + // resources in the same rule, use an empty string ("") as one of the + // target namespaces. TargetNamespaces []string `json:"targetNamespaces,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to @@ -2387,8 +2399,8 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { // Backup. A rule contains both filtering logic (which resources are // subject to transform) and transformation logic. type TransformationRule struct { - // Description: The description is a user specified string description - // of the transformation rule. + // Description: Optional. The description is a user specified string + // description of the transformation rule. Description string `json:"description,omitempty"` // FieldActions: Required. A list of transformation rule actions to take @@ -2398,11 +2410,11 @@ type TransformationRule struct { // operation. FieldActions []*TransformationRuleAction `json:"fieldActions,omitempty"` - // ResourceFilter: This field is used to specify a set of fields that - // should be used to determine which resources in backup should be acted - // upon by the supplied transformation rule actions, and this will - // ensure that only specific resources are affected by transformation - // rule actions. + // ResourceFilter: Optional. This field is used to specify a set of + // fields that should be used to determine which resources in backup + // should be acted upon by the supplied transformation rule actions, and + // this will ensure that only specific resources are affected by + // transformation rule actions. ResourceFilter *ResourceFilter `json:"resourceFilter,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to @@ -2432,8 +2444,9 @@ func (s *TransformationRule) MarshalJSON() ([]byte, error) { // TransformationRule action based on the JSON Patch RFC // (https://www.rfc-editor.org/rfc/rfc6902) type TransformationRuleAction struct { - // FromPath: A string containing a JSON Pointer value that references - // the location in the target document to move the value from. + // FromPath: Optional. A string containing a JSON Pointer value that + // references the location in the target document to move the value + // from. FromPath string `json:"fromPath,omitempty"` // Op: Required. op specifies the operation to perform. @@ -2460,12 +2473,13 @@ type TransformationRuleAction struct { // "value" member whose content specifies the replacement value. Op string `json:"op,omitempty"` - // Path: A string containing a JSON-Pointer value that references a - // location within the target document where the operation is performed. + // Path: Optional. A string containing a JSON-Pointer value that + // references a location within the target document where the operation + // is performed. Path string `json:"path,omitempty"` - // Value: A string that specifies the desired value in string format to - // use for transformation. + // Value: Optional. A string that specifies the desired value in string + // format to use for transformation. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "FromPath") to @@ -3470,7 +3484,7 @@ func (c *ProjectsLocationsBackupPlansDeleteCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "etag": { - // "description": "If provided, this value must match the current value of the target BackupPlan's etag field or the request is rejected.", + // "description": "Optional. If provided, this value must match the current value of the target BackupPlan's etag field or the request is rejected.", // "location": "query", // "type": "string" // }, @@ -3853,9 +3867,9 @@ func (c *ProjectsLocationsBackupPlansListCall) OrderBy(orderBy string) *Projects // PageSize sets the optional parameter "pageSize": The target number of // results to return in a single response. If not specified, a default // value will be chosen by the service. Note that the response may -// inclue a partial list and a caller should only rely on the response's -// next_page_token to determine if there are more instances left to be -// queried. +// include a partial list and a caller should only rely on the +// response's next_page_token to determine if there are more instances +// left to be queried. func (c *ProjectsLocationsBackupPlansListCall) PageSize(pageSize int64) *ProjectsLocationsBackupPlansListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -3979,23 +3993,23 @@ func (c *ProjectsLocationsBackupPlansListCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "filter": { - // "description": "Field match expression used to filter the results.", + // "description": "Optional. Field match expression used to filter the results.", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "Field by which to sort the results.", + // "description": "Optional. Field by which to sort the results.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + // "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The value of next_page_token received from a previous `ListBackupPlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackupPlans` must match the call that provided the page token.", + // "description": "Optional. The value of next_page_token received from a previous `ListBackupPlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackupPlans` must match the call that provided the page token.", // "location": "query", // "type": "string" // }, @@ -4183,7 +4197,7 @@ func (c *ProjectsLocationsBackupPlansPatchCall) Do(opts ...googleapi.CallOption) // "type": "string" // }, // "updateMask": { - // "description": "This is used to specify the fields to be overwritten in the BackupPlan targeted for update. The values for each of these updated fields will be taken from the `backup_plan` provided with this request. Field names are relative to the root of the resource (e.g., `description`, `backup_config.include_volume_data`, etc.) If no `update_mask` is provided, all fields in `backup_plan` will be written to the target BackupPlan resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_plan` are ignored and are not used to update the target BackupPlan.", + // "description": "Optional. This is used to specify the fields to be overwritten in the BackupPlan targeted for update. The values for each of these updated fields will be taken from the `backup_plan` provided with this request. Field names are relative to the root of the resource (e.g., `description`, `backup_config.include_volume_data`, etc.) If no `update_mask` is provided, all fields in `backup_plan` will be written to the target BackupPlan resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_plan` are ignored and are not used to update the target BackupPlan.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -4633,7 +4647,7 @@ func (c *ProjectsLocationsBackupPlansBackupsCreateCall) Do(opts ...googleapi.Cal // ], // "parameters": { // "backupId": { - // "description": "The client-provided short name for the Backup resource. This name must: - be between 1 and 63 characters long (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes - start with a lower-case letter - end with a lower-case letter or number - be unique within the set of Backups in this BackupPlan", + // "description": "Optional. The client-provided short name for the Backup resource. This name must: - be between 1 and 63 characters long (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes - start with a lower-case letter - end with a lower-case letter or number - be unique within the set of Backups in this BackupPlan", // "location": "query", // "type": "string" // }, @@ -4790,12 +4804,12 @@ func (c *ProjectsLocationsBackupPlansBackupsDeleteCall) Do(opts ...googleapi.Cal // ], // "parameters": { // "etag": { - // "description": "If provided, this value must match the current value of the target Backup's etag field or the request is rejected.", + // "description": "Optional. If provided, this value must match the current value of the target Backup's etag field or the request is rejected.", // "location": "query", // "type": "string" // }, // "force": { - // "description": "If set to true, any VolumeBackups below this Backup will also be deleted. Otherwise, the request will only succeed if the Backup has no VolumeBackups.", + // "description": "Optional. If set to true, any VolumeBackups below this Backup will also be deleted. Otherwise, the request will only succeed if the Backup has no VolumeBackups.", // "location": "query", // "type": "boolean" // }, @@ -5178,9 +5192,9 @@ func (c *ProjectsLocationsBackupPlansBackupsListCall) OrderBy(orderBy string) *P // PageSize sets the optional parameter "pageSize": The target number of // results to return in a single response. If not specified, a default // value will be chosen by the service. Note that the response may -// inclue a partial list and a caller should only rely on the response's -// next_page_token to determine if there are more instances left to be -// queried. +// include a partial list and a caller should only rely on the +// response's next_page_token to determine if there are more instances +// left to be queried. func (c *ProjectsLocationsBackupPlansBackupsListCall) PageSize(pageSize int64) *ProjectsLocationsBackupPlansBackupsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -5304,23 +5318,23 @@ func (c *ProjectsLocationsBackupPlansBackupsListCall) Do(opts ...googleapi.CallO // ], // "parameters": { // "filter": { - // "description": "Field match expression used to filter the results.", + // "description": "Optional. Field match expression used to filter the results.", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "Field by which to sort the results.", + // "description": "Optional. Field by which to sort the results.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + // "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The value of next_page_token received from a previous `ListBackups` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackups` must match the call that provided the page token.", + // "description": "Optional. The value of next_page_token received from a previous `ListBackups` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackups` must match the call that provided the page token.", // "location": "query", // "type": "string" // }, @@ -5506,7 +5520,7 @@ func (c *ProjectsLocationsBackupPlansBackupsPatchCall) Do(opts ...googleapi.Call // "type": "string" // }, // "updateMask": { - // "description": "This is used to specify the fields to be overwritten in the Backup targeted for update. The values for each of these updated fields will be taken from the `backup_plan` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `backup` will be written to the target Backup resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `backup` are ignored and are not used to update the target Backup.", + // "description": "Optional. This is used to specify the fields to be overwritten in the Backup targeted for update. The values for each of these updated fields will be taken from the `backup_plan` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `backup` will be written to the target Backup resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `backup` are ignored and are not used to update the target Backup.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -6183,9 +6197,9 @@ func (c *ProjectsLocationsBackupPlansBackupsVolumeBackupsListCall) OrderBy(order // PageSize sets the optional parameter "pageSize": The target number of // results to return in a single response. If not specified, a default // value will be chosen by the service. Note that the response may -// inclue a partial list and a caller should only rely on the response's -// next_page_token to determine if there are more instances left to be -// queried. +// include a partial list and a caller should only rely on the +// response's next_page_token to determine if there are more instances +// left to be queried. func (c *ProjectsLocationsBackupPlansBackupsVolumeBackupsListCall) PageSize(pageSize int64) *ProjectsLocationsBackupPlansBackupsVolumeBackupsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -6309,23 +6323,23 @@ func (c *ProjectsLocationsBackupPlansBackupsVolumeBackupsListCall) Do(opts ...go // ], // "parameters": { // "filter": { - // "description": "Field match expression used to filter the results.", + // "description": "Optional. Field match expression used to filter the results.", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "Field by which to sort the results.", + // "description": "Optional. Field by which to sort the results.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + // "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The value of next_page_token received from a previous `ListVolumeBackups` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListVolumeBackups` must match the call that provided the page token.", + // "description": "Optional. The value of next_page_token received from a previous `ListVolumeBackups` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListVolumeBackups` must match the call that provided the page token.", // "location": "query", // "type": "string" // }, @@ -7462,12 +7476,12 @@ func (c *ProjectsLocationsRestorePlansDeleteCall) Do(opts ...googleapi.CallOptio // ], // "parameters": { // "etag": { - // "description": "If provided, this value must match the current value of the target RestorePlan's etag field or the request is rejected.", + // "description": "Optional. If provided, this value must match the current value of the target RestorePlan's etag field or the request is rejected.", // "location": "query", // "type": "string" // }, // "force": { - // "description": "If set to true, any Restores below this RestorePlan will also be deleted. Otherwise, the request will only succeed if the RestorePlan has no Restores.", + // "description": "Optional. If set to true, any Restores below this RestorePlan will also be deleted. Otherwise, the request will only succeed if the RestorePlan has no Restores.", // "location": "query", // "type": "boolean" // }, @@ -7850,9 +7864,9 @@ func (c *ProjectsLocationsRestorePlansListCall) OrderBy(orderBy string) *Project // PageSize sets the optional parameter "pageSize": The target number of // results to return in a single response. If not specified, a default // value will be chosen by the service. Note that the response may -// inclue a partial list and a caller should only rely on the response's -// next_page_token to determine if there are more instances left to be -// queried. +// include a partial list and a caller should only rely on the +// response's next_page_token to determine if there are more instances +// left to be queried. func (c *ProjectsLocationsRestorePlansListCall) PageSize(pageSize int64) *ProjectsLocationsRestorePlansListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -7976,23 +7990,23 @@ func (c *ProjectsLocationsRestorePlansListCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "filter": { - // "description": "Field match expression used to filter the results.", + // "description": "Optional. Field match expression used to filter the results.", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "Field by which to sort the results.", + // "description": "Optional. Field by which to sort the results.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + // "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The value of next_page_token received from a previous `ListRestorePlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListRestorePlans` must match the call that provided the page token.", + // "description": "Optional. The value of next_page_token received from a previous `ListRestorePlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListRestorePlans` must match the call that provided the page token.", // "location": "query", // "type": "string" // }, @@ -8179,7 +8193,7 @@ func (c *ProjectsLocationsRestorePlansPatchCall) Do(opts ...googleapi.CallOption // "type": "string" // }, // "updateMask": { - // "description": "This is used to specify the fields to be overwritten in the RestorePlan targeted for update. The values for each of these updated fields will be taken from the `restore_plan` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `restore_plan` will be written to the target RestorePlan resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `restore_plan` are ignored and are not used to update the target RestorePlan.", + // "description": "Optional. This is used to specify the fields to be overwritten in the RestorePlan targeted for update. The values for each of these updated fields will be taken from the `restore_plan` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `restore_plan` will be written to the target RestorePlan resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `restore_plan` are ignored and are not used to update the target RestorePlan.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -8786,12 +8800,12 @@ func (c *ProjectsLocationsRestorePlansRestoresDeleteCall) Do(opts ...googleapi.C // ], // "parameters": { // "etag": { - // "description": "If provided, this value must match the current value of the target Restore's etag field or the request is rejected.", + // "description": "Optional. If provided, this value must match the current value of the target Restore's etag field or the request is rejected.", // "location": "query", // "type": "string" // }, // "force": { - // "description": "If set to true, any VolumeRestores below this restore will also be deleted. Otherwise, the request will only succeed if the restore has no VolumeRestores.", + // "description": "Optional. If set to true, any VolumeRestores below this restore will also be deleted. Otherwise, the request will only succeed if the restore has no VolumeRestores.", // "location": "query", // "type": "boolean" // }, @@ -9174,9 +9188,9 @@ func (c *ProjectsLocationsRestorePlansRestoresListCall) OrderBy(orderBy string) // PageSize sets the optional parameter "pageSize": The target number of // results to return in a single response. If not specified, a default // value will be chosen by the service. Note that the response may -// inclue a partial list and a caller should only rely on the response's -// next_page_token to determine if there are more instances left to be -// queried. +// include a partial list and a caller should only rely on the +// response's next_page_token to determine if there are more instances +// left to be queried. func (c *ProjectsLocationsRestorePlansRestoresListCall) PageSize(pageSize int64) *ProjectsLocationsRestorePlansRestoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -9300,23 +9314,23 @@ func (c *ProjectsLocationsRestorePlansRestoresListCall) Do(opts ...googleapi.Cal // ], // "parameters": { // "filter": { - // "description": "Field match expression used to filter the results.", + // "description": "Optional. Field match expression used to filter the results.", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "Field by which to sort the results.", + // "description": "Optional. Field by which to sort the results.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + // "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The value of next_page_token received from a previous `ListRestores` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListRestores` must match the call that provided the page token.", + // "description": "Optional. The value of next_page_token received from a previous `ListRestores` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListRestores` must match the call that provided the page token.", // "location": "query", // "type": "string" // }, @@ -9502,7 +9516,7 @@ func (c *ProjectsLocationsRestorePlansRestoresPatchCall) Do(opts ...googleapi.Ca // "type": "string" // }, // "updateMask": { - // "description": "This is used to specify the fields to be overwritten in the Restore targeted for update. The values for each of these updated fields will be taken from the `restore` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `restore` will be written to the target Restore resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored and are not used to update the target Restore.", + // "description": "Optional. This is used to specify the fields to be overwritten in the Restore targeted for update. The values for each of these updated fields will be taken from the `restore` provided with this request. Field names are relative to the root of the resource. If no `update_mask` is provided, all fields in `restore` will be written to the target Restore resource. Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored and are not used to update the target Restore.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -10179,9 +10193,9 @@ func (c *ProjectsLocationsRestorePlansRestoresVolumeRestoresListCall) OrderBy(or // PageSize sets the optional parameter "pageSize": The target number of // results to return in a single response. If not specified, a default // value will be chosen by the service. Note that the response may -// inclue a partial list and a caller should only rely on the response's -// next_page_token to determine if there are more instances left to be -// queried. +// include a partial list and a caller should only rely on the +// response's next_page_token to determine if there are more instances +// left to be queried. func (c *ProjectsLocationsRestorePlansRestoresVolumeRestoresListCall) PageSize(pageSize int64) *ProjectsLocationsRestorePlansRestoresVolumeRestoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -10306,23 +10320,23 @@ func (c *ProjectsLocationsRestorePlansRestoresVolumeRestoresListCall) Do(opts .. // ], // "parameters": { // "filter": { - // "description": "Field match expression used to filter the results.", + // "description": "Optional. Field match expression used to filter the results.", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "Field by which to sort the results.", + // "description": "Optional. Field by which to sort the results.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may inclue a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", + // "description": "Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The value of next_page_token received from a previous `ListVolumeRestores` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListVolumeRestores` must match the call that provided the page token.", + // "description": "Optional. The value of next_page_token received from a previous `ListVolumeRestores` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListVolumeRestores` must match the call that provided the page token.", // "location": "query", // "type": "string" // }, diff --git a/gkeonprem/v1/gkeonprem-api.json b/gkeonprem/v1/gkeonprem-api.json index cabbc4f3f39..1182274062d 100644 --- a/gkeonprem/v1/gkeonprem-api.json +++ b/gkeonprem/v1/gkeonprem-api.json @@ -2996,7 +2996,7 @@ } } }, - "revision": "20230717", + "revision": "20230724", "rootUrl": "https://gkeonprem.googleapis.com/", "schemas": { "Authorization": { @@ -3684,6 +3684,10 @@ "readOnly": true, "type": "string" }, + "upgradePolicy": { + "$ref": "BareMetalClusterUpgradePolicy", + "description": "The cluster upgrade policy." + }, "validationCheck": { "$ref": "ValidationCheck", "description": "Output only. The result of the preflight check.", @@ -3703,6 +3707,27 @@ }, "type": "object" }, + "BareMetalClusterUpgradePolicy": { + "description": "BareMetalClusterUpgradePolicy defines the cluster upgrade policy.", + "id": "BareMetalClusterUpgradePolicy", + "properties": { + "policy": { + "description": "Specifies which upgrade policy to use.", + "enum": [ + "NODE_POOL_POLICY_UNSPECIFIED", + "SERIAL", + "CONCURRENT" + ], + "enumDescriptions": [ + "No upgrade policy selected.", + "Upgrade worker node pools sequentially.", + "Upgrade all worker node pools in parallel." + ], + "type": "string" + } + }, + "type": "object" + }, "BareMetalControlPlaneConfig": { "description": "Specifies the control plane configuration.", "id": "BareMetalControlPlaneConfig", @@ -6514,6 +6539,13 @@ "description": "The name of the vCenter datastore. Inherited from the user cluster.", "type": "string" }, + "hostGroups": { + "description": "Vsphere host groups to apply to all VMs in the node pool", + "items": { + "type": "string" + }, + "type": "array" + }, "tags": { "description": "Tags to apply to VMs.", "items": { diff --git a/gkeonprem/v1/gkeonprem-gen.go b/gkeonprem/v1/gkeonprem-gen.go index c230329ab02..6cbf4701cd7 100644 --- a/gkeonprem/v1/gkeonprem-gen.go +++ b/gkeonprem/v1/gkeonprem-gen.go @@ -1472,6 +1472,9 @@ type BareMetalCluster struct { // was last updated. UpdateTime string `json:"updateTime,omitempty"` + // UpgradePolicy: The cluster upgrade policy. + UpgradePolicy *BareMetalClusterUpgradePolicy `json:"upgradePolicy,omitempty"` + // ValidationCheck: Output only. The result of the preflight check. ValidationCheck *ValidationCheck `json:"validationCheck,omitempty"` @@ -1536,6 +1539,40 @@ func (s *BareMetalClusterOperationsConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BareMetalClusterUpgradePolicy: BareMetalClusterUpgradePolicy defines +// the cluster upgrade policy. +type BareMetalClusterUpgradePolicy struct { + // Policy: Specifies which upgrade policy to use. + // + // Possible values: + // "NODE_POOL_POLICY_UNSPECIFIED" - No upgrade policy selected. + // "SERIAL" - Upgrade worker node pools sequentially. + // "CONCURRENT" - Upgrade all worker node pools in parallel. + Policy string `json:"policy,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 *BareMetalClusterUpgradePolicy) MarshalJSON() ([]byte, error) { + type NoMethod BareMetalClusterUpgradePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BareMetalControlPlaneConfig: Specifies the control plane // configuration. type BareMetalControlPlaneConfig struct { @@ -6398,6 +6435,9 @@ type VmwareVsphereConfig struct { // cluster. Datastore string `json:"datastore,omitempty"` + // HostGroups: Vsphere host groups to apply to all VMs in the node pool + HostGroups []string `json:"hostGroups,omitempty"` + // Tags: Tags to apply to VMs. Tags []*VmwareVsphereTag `json:"tags,omitempty"` diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index ca218b16343..af5961b6a3b 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -4078,7 +4078,7 @@ } } }, - "revision": "20230713", + "revision": "20230720", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -4106,6 +4106,18 @@ "description": "The request to analyze healthcare entities in a document.", "id": "AnalyzeEntitiesRequest", "properties": { + "alternativeOutputFormat": { + "description": "Optional. Alternative output format to be generated based on the results of analysis.", + "enum": [ + "ALTERNATIVE_OUTPUT_FORMAT_UNSPECIFIED", + "FHIR_BUNDLE" + ], + "enumDescriptions": [ + "No alternative output format is specified.", + "FHIR bundle output." + ], + "type": "string" + }, "documentContent": { "description": "document_content is a document to be annotated.", "type": "string" @@ -4148,6 +4160,10 @@ }, "type": "array" }, + "fhirBundle": { + "description": "The FHIR bundle ([`R4`](http://hl7.org/fhir/R4/bundle.html)) that includes all the entities, the entity mentions, and the relationships in JSON format.", + "type": "string" + }, "relationships": { "description": "relationships contains all the binary relationships that were identified between entity mentions within the provided document.", "items": { diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index 1b611ad1ce4..09ed5ce70e4 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -425,6 +425,15 @@ func (s *ActivateConsentRequest) MarshalJSON() ([]byte, error) { // AnalyzeEntitiesRequest: The request to analyze healthcare entities in // a document. type AnalyzeEntitiesRequest struct { + // AlternativeOutputFormat: Optional. Alternative output format to be + // generated based on the results of analysis. + // + // Possible values: + // "ALTERNATIVE_OUTPUT_FORMAT_UNSPECIFIED" - No alternative output + // format is specified. + // "FHIR_BUNDLE" - FHIR bundle output. + AlternativeOutputFormat string `json:"alternativeOutputFormat,omitempty"` + // DocumentContent: document_content is a document to be annotated. DocumentContent string `json:"documentContent,omitempty"` @@ -438,18 +447,19 @@ type AnalyzeEntitiesRequest struct { // "SNOMEDCT_US" - SNOMED CT (US version) vocabulary LicensedVocabularies []string `json:"licensedVocabularies,omitempty"` - // ForceSendFields is a list of field names (e.g. "DocumentContent") to - // unconditionally include in API requests. By 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. + // "AlternativeOutputFormat") to unconditionally include in API + // requests. By 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. "DocumentContent") to - // include in API requests with the JSON null value. By default, 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. "AlternativeOutputFormat") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. @@ -475,6 +485,11 @@ type AnalyzeEntitiesResponse struct { // document. EntityMentions []*EntityMention `json:"entityMentions,omitempty"` + // FhirBundle: The FHIR bundle (`R4` + // (http://hl7.org/fhir/R4/bundle.html)) that includes all the entities, + // the entity mentions, and the relationships in JSON format. + FhirBundle string `json:"fhirBundle,omitempty"` + // Relationships: relationships contains all the binary relationships // that were identified between entity mentions within the provided // document. diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index 192510b472c..1566a884449 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -4941,7 +4941,7 @@ } } }, - "revision": "20230713", + "revision": "20230720", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "Action": { @@ -5015,6 +5015,18 @@ "description": "The request to analyze healthcare entities in a document.", "id": "AnalyzeEntitiesRequest", "properties": { + "alternativeOutputFormat": { + "description": "Optional. Alternative output format to be generated based on the results of analysis.", + "enum": [ + "ALTERNATIVE_OUTPUT_FORMAT_UNSPECIFIED", + "FHIR_BUNDLE" + ], + "enumDescriptions": [ + "No alternative output format is specified.", + "FHIR bundle output." + ], + "type": "string" + }, "documentContent": { "description": "document_content is a document to be annotated.", "type": "string" @@ -5057,6 +5069,10 @@ }, "type": "array" }, + "fhirBundle": { + "description": "The FHIR bundle ([`R4`](http://hl7.org/fhir/R4/bundle.html)) that includes all the entities, the entity mentions, and the relationships in JSON format.", + "type": "string" + }, "relationships": { "description": "relationships contains all the binary relationships that were identified between entity mentions within the provided document.", "items": { @@ -5764,7 +5780,7 @@ "description": "Configures de-identification of text wherever it is found in the source_dataset." }, "useRegionalDataProcessing": { - "description": "Ensures in-flight data remains in the region of origin during de-identification. Using this option results in a significant reduction of throughput, and is not compatible with `LOCATION` or `ORGANIZATION_NAME` infoTypes. If the deprecated [`DicomConfig`](google.cloud.healthcare.v1beta1.deidentify.DeidentifyConfig.dicom_config) or [`FhirConfig`](google.cloud.healthcare.v1beta1.deidentify.DeidentifyConfig.fhir_config) are used, then `LOCATION` must be excluded within `TextConfig`, and must also be excluded within `ImageConfig` if image redaction is required.", + "description": "Ensures in-flight data remains in the region of origin during de-identification. Using this option results in a significant reduction of throughput, and is not compatible with `LOCATION` or `ORGANIZATION_NAME` infoTypes. If the deprecated `DicomConfig` or `FhirConfig` are used, then `LOCATION` must be excluded within `TextConfig`, and must also be excluded within `ImageConfig` if image redaction is required.", "type": "boolean" } }, diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index 0a869023fdb..dd469db659e 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -516,6 +516,15 @@ func (s *ActivateConsentRequest) MarshalJSON() ([]byte, error) { // AnalyzeEntitiesRequest: The request to analyze healthcare entities in // a document. type AnalyzeEntitiesRequest struct { + // AlternativeOutputFormat: Optional. Alternative output format to be + // generated based on the results of analysis. + // + // Possible values: + // "ALTERNATIVE_OUTPUT_FORMAT_UNSPECIFIED" - No alternative output + // format is specified. + // "FHIR_BUNDLE" - FHIR bundle output. + AlternativeOutputFormat string `json:"alternativeOutputFormat,omitempty"` + // DocumentContent: document_content is a document to be annotated. DocumentContent string `json:"documentContent,omitempty"` @@ -529,18 +538,19 @@ type AnalyzeEntitiesRequest struct { // "SNOMEDCT_US" - SNOMED CT (US version) vocabulary LicensedVocabularies []string `json:"licensedVocabularies,omitempty"` - // ForceSendFields is a list of field names (e.g. "DocumentContent") to - // unconditionally include in API requests. By 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. + // "AlternativeOutputFormat") to unconditionally include in API + // requests. By 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. "DocumentContent") to - // include in API requests with the JSON null value. By default, 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. "AlternativeOutputFormat") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. @@ -566,6 +576,11 @@ type AnalyzeEntitiesResponse struct { // document. EntityMentions []*EntityMention `json:"entityMentions,omitempty"` + // FhirBundle: The FHIR bundle (`R4` + // (http://hl7.org/fhir/R4/bundle.html)) that includes all the entities, + // the entity mentions, and the relationships in JSON format. + FhirBundle string `json:"fhirBundle,omitempty"` + // Relationships: relationships contains all the binary relationships // that were identified between entity mentions within the provided // document. @@ -1904,13 +1919,9 @@ type DeidentifyConfig struct { // region of origin during de-identification. Using this option results // in a significant reduction of throughput, and is not compatible with // `LOCATION` or `ORGANIZATION_NAME` infoTypes. If the deprecated - // `DicomConfig` - // (google.cloud.healthcare.v1beta1.deidentify.DeidentifyConfig.dicom_con - // fig) or `FhirConfig` - // (google.cloud.healthcare.v1beta1.deidentify.DeidentifyConfig.fhir_conf - // ig) are used, then `LOCATION` must be excluded within `TextConfig`, - // and must also be excluded within `ImageConfig` if image redaction is - // required. + // `DicomConfig` or `FhirConfig` are used, then `LOCATION` must be + // excluded within `TextConfig`, and must also be excluded within + // `ImageConfig` if image redaction is required. UseRegionalDataProcessing bool `json:"useRegionalDataProcessing,omitempty"` // ForceSendFields is a list of field names (e.g. "Annotation") to diff --git a/logging/v2/logging-api.json b/logging/v2/logging-api.json index 3b1ca3aafe7..7bf52017e2e 100644 --- a/logging/v2/logging-api.json +++ b/logging/v2/logging-api.json @@ -1213,7 +1213,7 @@ "sinks": { "methods": { "create": { - "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + "description": "Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks", "httpMethod": "POST", "id": "logging.billingAccounts.sinks.create", @@ -1481,7 +1481,7 @@ ] }, "tail": { - "description": "Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.", + "description": "Streaming read of log entries as they are received. Until the stream is terminated, it will continue reading logs.", "flatPath": "v2/entries:tail", "httpMethod": "POST", "id": "logging.entries.tail", @@ -2815,7 +2815,7 @@ "sinks": { "methods": { "create": { - "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + "description": "Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", "flatPath": "v2/folders/{foldersId}/sinks", "httpMethod": "POST", "id": "logging.folders.sinks.create", @@ -5061,7 +5061,7 @@ "sinks": { "methods": { "create": { - "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + "description": "Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", "flatPath": "v2/organizations/{organizationsId}/sinks", "httpMethod": "POST", "id": "logging.organizations.sinks.create", @@ -6540,7 +6540,7 @@ "sinks": { "methods": { "create": { - "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + "description": "Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", "flatPath": "v2/projects/{projectsId}/sinks", "httpMethod": "POST", "id": "logging.projects.sinks.create", @@ -6768,7 +6768,7 @@ "sinks": { "methods": { "create": { - "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + "description": "Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", "flatPath": "v2/{v2Id}/{v2Id1}/sinks", "httpMethod": "POST", "id": "logging.sinks.create", @@ -7077,7 +7077,7 @@ } } }, - "revision": "20230706", + "revision": "20230720", "rootUrl": "https://logging.googleapis.com/", "schemas": { "BigQueryDataset": { @@ -7101,7 +7101,7 @@ "type": "boolean" }, "usesTimestampColumnPartitioning": { - "description": "Output only. True if new timestamp column based partitioning is in use, false if legacy ingestion-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.", + "description": "Output only. True if new timestamp column based partitioning is in use, false if legacy ingress-time partitioning is in use.All new sinks will have this field set true and will use timestamp column based partitioning. If use_partitioned_tables is false, this value has no meaning and will be false. Legacy sinks using partitioned tables will have this field set to false.", "readOnly": true, "type": "boolean" } @@ -8021,7 +8021,7 @@ "type": "object" }, "logName": { - "description": "Required. The resource name of the log to which this log entry belongs: \"projects/[PROJECT_ID]/logs/[LOG_ID]\" \"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\" \"folders/[FOLDER_ID]/logs/[LOG_ID]\" A project number may be used in place of PROJECT_ID. The project number is translated to its corresponding PROJECT_ID internally and the log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must be URL-encoded within log_name. Example: \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\".[LOG_ID] must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period.For backward compatibility, if log_name begins with a forward-slash, such as /projects/..., then the log entry is ingested as usual, but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leading slash will never return any results.", + "description": "Required. The resource name of the log to which this log entry belongs: \"projects/[PROJECT_ID]/logs/[LOG_ID]\" \"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\" \"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\" \"folders/[FOLDER_ID]/logs/[LOG_ID]\" A project number may be used in place of PROJECT_ID. The project number is translated to its corresponding PROJECT_ID internally and the log_name field will contain PROJECT_ID in queries and exports.[LOG_ID] must be URL-encoded within log_name. Example: \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\".[LOG_ID] must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period.For backward compatibility, if log_name begins with a forward-slash, such as /projects/..., then the log entry is processed as usual, but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leading slash will never return any results.", "type": "string" }, "metadata": { @@ -8095,7 +8095,7 @@ "type": "string" }, "timestamp": { - "description": "Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Logging assigns it the current time. Timestamps have nanosecond accuracy, but trailing zeros in the fractional seconds might be omitted when the timestamp is displayed.Incoming log entries must have timestamps that don't exceed the logs retention period (https://cloud.google.com/logging/quotas#logs_retention_periods) in the past, and that don't exceed 24 hours in the future. Log entries outside those time boundaries aren't ingested by Logging.", + "description": "Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Logging assigns it the current time. Timestamps have nanosecond accuracy, but trailing zeros in the fractional seconds might be omitted when the timestamp is displayed.Incoming log entries must have timestamps that don't exceed the logs retention period (https://cloud.google.com/logging/quotas#logs_retention_periods) in the past, and that don't exceed 24 hours in the future. Log entries outside those time boundaries are rejected by Logging.", "format": "google-datetime", "type": "string" }, @@ -8324,7 +8324,7 @@ "type": "string" }, "destination": { - "description": "Required. The export destination: \"storage.googleapis.com/[GCS_BUCKET]\" \"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]\" \"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]\" \"logging.googleapis.com/projects/[PROJECT_ID]\" The sink's writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Exporting Logs with Sinks (https://cloud.google.com/logging/docs/api/tasks/exporting-logs).", + "description": "Required. The export destination: \"storage.googleapis.com/[GCS_BUCKET]\" \"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]\" \"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]\" \"logging.googleapis.com/projects/[PROJECT_ID]\" \"logging.googleapis.com/projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]\" The sink's writer_identity, set when the sink is created, must have permission to write to the destination or else the log entries are not exported. For more information, see Exporting Logs with Sinks (https://cloud.google.com/logging/docs/api/tasks/exporting-logs).", "type": "string" }, "disabled": { @@ -8872,7 +8872,7 @@ "id": "Settings", "properties": { "disableDefaultSink": { - "description": "Optional. If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log ingestion if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.", + "description": "Optional. If set to true, the _Default sink in newly created projects and folders will created in a disabled state. This can be used to automatically disable log storage if there is already an aggregated sink configured in the hierarchy. The _Default sink can be re-enabled manually if needed.", "type": "boolean" }, "kmsKeyName": { diff --git a/logging/v2/logging-gen.go b/logging/v2/logging-gen.go index 6e82da6ca8f..373ba7f3356 100644 --- a/logging/v2/logging-gen.go +++ b/logging/v2/logging-gen.go @@ -830,7 +830,7 @@ type BigQueryOptions struct { UsePartitionedTables bool `json:"usePartitionedTables,omitempty"` // UsesTimestampColumnPartitioning: Output only. True if new timestamp - // column based partitioning is in use, false if legacy ingestion-time + // column based partitioning is in use, false if legacy ingress-time // partitioning is in use.All new sinks will have this field set true // and will use timestamp column based partitioning. If // use_partitioned_tables is false, this value has no meaning and will @@ -2515,7 +2515,7 @@ type LogEntry struct { // include the following characters: upper and lower case alphanumeric // characters, forward-slash, underscore, hyphen, and period.For // backward compatibility, if log_name begins with a forward-slash, such - // as /projects/..., then the log entry is ingested as usual, but the + // as /projects/..., then the log entry is processed as usual, but the // forward-slash is removed. Listing the log entry will not show the // leading slash and filtering for a log name with a leading slash will // never return any results. @@ -2610,7 +2610,7 @@ type LogEntry struct { // must have timestamps that don't exceed the logs retention period // (https://cloud.google.com/logging/quotas#logs_retention_periods) in // the past, and that don't exceed 24 hours in the future. Log entries - // outside those time boundaries aren't ingested by Logging. + // outside those time boundaries are rejected by Logging. Timestamp string `json:"timestamp,omitempty"` // Trace: Optional. The REST resource name of the trace being written to @@ -3021,10 +3021,12 @@ type LogSink struct { // "storage.googleapis.com/[GCS_BUCKET]" // "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" // "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" - // "logging.googleapis.com/projects/[PROJECT_ID]" The sink's - // writer_identity, set when the sink is created, must have permission - // to write to the destination or else the log entries are not exported. - // For more information, see Exporting Logs with Sinks + // "logging.googleapis.com/projects/[PROJECT_ID]" + // "logging.googleapis.com/projects/[PROJECT_ID]/locations/[LOCATION_ID]/ + // buckets/[BUCKET_ID]" The sink's writer_identity, set when the sink is + // created, must have permission to write to the destination or else the + // log entries are not exported. For more information, see Exporting + // Logs with Sinks // (https://cloud.google.com/logging/docs/api/tasks/exporting-logs). Destination string `json:"destination,omitempty"` @@ -3905,7 +3907,7 @@ func (s *RequestLog) UnmarshalJSON(data []byte) error { type Settings struct { // DisableDefaultSink: Optional. If set to true, the _Default sink in // newly created projects and folders will created in a disabled state. - // This can be used to automatically disable log ingestion if there is + // This can be used to automatically disable log storage if there is // already an aggregated sink configured in the hierarchy. The _Default // sink can be re-enabled manually if needed. DisableDefaultSink bool `json:"disableDefaultSink,omitempty"` @@ -9824,10 +9826,9 @@ type BillingAccountsSinksCreateCall struct { } // Create: Creates a sink that exports specified log entries to a -// destination. The export of newly-ingested log entries begins -// immediately, unless the sink's writer_identity is not permitted to -// write to the destination. A sink can export log entries only from the -// resource owning the sink. +// destination. The export begins upon ingress, unless the sink's +// writer_identity is not permitted to write to the destination. A sink +// can export log entries only from the resource owning the sink. // // - parent: The resource in which to create the sink: // "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" @@ -9959,7 +9960,7 @@ func (c *BillingAccountsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogS } return ret, nil // { - // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + // "description": "Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", // "flatPath": "v2/billingAccounts/{billingAccountsId}/sinks", // "httpMethod": "POST", // "id": "logging.billingAccounts.sinks.create", @@ -11203,7 +11204,7 @@ type EntriesTailCall struct { header_ http.Header } -// Tail: Streaming read of log entries as they are ingested. Until the +// Tail: Streaming read of log entries as they are received. Until the // stream is terminated, it will continue reading logs. func (r *EntriesService) Tail(taillogentriesrequest *TailLogEntriesRequest) *EntriesTailCall { c := &EntriesTailCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -11299,7 +11300,7 @@ func (c *EntriesTailCall) Do(opts ...googleapi.CallOption) (*TailLogEntriesRespo } return ret, nil // { - // "description": "Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.", + // "description": "Streaming read of log entries as they are received. Until the stream is terminated, it will continue reading logs.", // "flatPath": "v2/entries:tail", // "httpMethod": "POST", // "id": "logging.entries.tail", @@ -17877,10 +17878,9 @@ type FoldersSinksCreateCall struct { } // Create: Creates a sink that exports specified log entries to a -// destination. The export of newly-ingested log entries begins -// immediately, unless the sink's writer_identity is not permitted to -// write to the destination. A sink can export log entries only from the -// resource owning the sink. +// destination. The export begins upon ingress, unless the sink's +// writer_identity is not permitted to write to the destination. A sink +// can export log entries only from the resource owning the sink. // // - parent: The resource in which to create the sink: // "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" @@ -18012,7 +18012,7 @@ func (c *FoldersSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, err } return ret, nil // { - // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + // "description": "Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", // "flatPath": "v2/folders/{foldersId}/sinks", // "httpMethod": "POST", // "id": "logging.folders.sinks.create", @@ -29002,10 +29002,9 @@ type OrganizationsSinksCreateCall struct { } // Create: Creates a sink that exports specified log entries to a -// destination. The export of newly-ingested log entries begins -// immediately, unless the sink's writer_identity is not permitted to -// write to the destination. A sink can export log entries only from the -// resource owning the sink. +// destination. The export begins upon ingress, unless the sink's +// writer_identity is not permitted to write to the destination. A sink +// can export log entries only from the resource owning the sink. // // - parent: The resource in which to create the sink: // "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" @@ -29137,7 +29136,7 @@ func (c *OrganizationsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSin } return ret, nil // { - // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + // "description": "Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", // "flatPath": "v2/organizations/{organizationsId}/sinks", // "httpMethod": "POST", // "id": "logging.organizations.sinks.create", @@ -36310,10 +36309,9 @@ type ProjectsSinksCreateCall struct { } // Create: Creates a sink that exports specified log entries to a -// destination. The export of newly-ingested log entries begins -// immediately, unless the sink's writer_identity is not permitted to -// write to the destination. A sink can export log entries only from the -// resource owning the sink. +// destination. The export begins upon ingress, unless the sink's +// writer_identity is not permitted to write to the destination. A sink +// can export log entries only from the resource owning the sink. // // - parent: The resource in which to create the sink: // "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" @@ -36445,7 +36443,7 @@ func (c *ProjectsSinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, er } return ret, nil // { - // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + // "description": "Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", // "flatPath": "v2/projects/{projectsId}/sinks", // "httpMethod": "POST", // "id": "logging.projects.sinks.create", @@ -37412,10 +37410,9 @@ type SinksCreateCall struct { } // Create: Creates a sink that exports specified log entries to a -// destination. The export of newly-ingested log entries begins -// immediately, unless the sink's writer_identity is not permitted to -// write to the destination. A sink can export log entries only from the -// resource owning the sink. +// destination. The export begins upon ingress, unless the sink's +// writer_identity is not permitted to write to the destination. A sink +// can export log entries only from the resource owning the sink. // // - parent: The resource in which to create the sink: // "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" @@ -37547,7 +37544,7 @@ func (c *SinksCreateCall) Do(opts ...googleapi.CallOption) (*LogSink, error) { } return ret, nil // { - // "description": "Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", + // "description": "Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", // "flatPath": "v2/{v2Id}/{v2Id1}/sinks", // "httpMethod": "POST", // "id": "logging.sinks.create", diff --git a/monitoring/v1/monitoring-api.json b/monitoring/v1/monitoring-api.json index 7bf286c6dd2..a15976b10a4 100644 --- a/monitoring/v1/monitoring-api.json +++ b/monitoring/v1/monitoring-api.json @@ -472,7 +472,7 @@ }, "path": "v1/{+name}/location/{location}/prometheus/api/v1/labels", "request": { - "$ref": "ListLabelsRequest" + "$ref": "QueryLabelsRequest" }, "response": { "$ref": "HttpBody" @@ -693,59 +693,6 @@ } } }, - "labels": { - "methods": { - "list": { - "description": "Lists labels for metrics.", - "flatPath": "v1/projects/{projectsId}/location/{location}/prometheus/api/v1/labels", - "httpMethod": "GET", - "id": "monitoring.projects.location.prometheus.api.v1.labels.list", - "parameterOrder": [ - "name", - "location" - ], - "parameters": { - "end": { - "description": "The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.", - "location": "query", - "type": "string" - }, - "location": { - "description": "Location of the resource information. Has to be \"global\" now.", - "location": "path", - "required": true, - "type": "string" - }, - "match": { - "description": "A list of matchers encoded in the Prometheus label matcher format to constrain the values to series that satisfy them.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER.", - "location": "path", - "pattern": "^projects/[^/]+$", - "required": true, - "type": "string" - }, - "start": { - "description": "The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}/location/{location}/prometheus/api/v1/labels", - "response": { - "$ref": "HttpBody" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/monitoring", - "https://www.googleapis.com/auth/monitoring.read" - ] - } - } - }, "metadata": { "methods": { "list": { @@ -806,7 +753,7 @@ } } }, - "revision": "20230703", + "revision": "20230724", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -1396,25 +1343,6 @@ }, "type": "object" }, - "ListLabelsRequest": { - "description": "ListLabelsRequest holds all parameters of the Prometheus upstream API for returning a list of label names.", - "id": "ListLabelsRequest", - "properties": { - "end": { - "description": "The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.", - "type": "string" - }, - "match": { - "description": "A list of matchers encoded in the Prometheus label matcher format to constrain the values to series that satisfy them.", - "type": "string" - }, - "start": { - "description": "The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.", - "type": "string" - } - }, - "type": "object" - }, "ListMetricsScopesByMonitoredProjectResponse": { "description": "Response for the ListMetricsScopesByMonitoredProject method.", "id": "ListMetricsScopesByMonitoredProjectResponse", @@ -1705,6 +1633,25 @@ }, "type": "object" }, + "QueryLabelsRequest": { + "description": "QueryLabelsRequest holds all parameters of the Prometheus upstream API for returning a list of label names.", + "id": "QueryLabelsRequest", + "properties": { + "end": { + "description": "The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.", + "type": "string" + }, + "match": { + "description": "A list of matchers encoded in the Prometheus label matcher format to constrain the values to series that satisfy them.", + "type": "string" + }, + "start": { + "description": "The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.", + "type": "string" + } + }, + "type": "object" + }, "QueryRangeRequest": { "description": "QueryRangeRequest holds all parameters of the Prometheus upstream range query API plus GCM specific parameters.", "id": "QueryRangeRequest", diff --git a/monitoring/v1/monitoring-gen.go b/monitoring/v1/monitoring-gen.go index b927fb8253c..d8ddaf24ac7 100644 --- a/monitoring/v1/monitoring-gen.go +++ b/monitoring/v1/monitoring-gen.go @@ -279,7 +279,6 @@ type ProjectsLocationPrometheusApiService struct { func NewProjectsLocationPrometheusApiV1Service(s *Service) *ProjectsLocationPrometheusApiV1Service { rs := &ProjectsLocationPrometheusApiV1Service{s: s} rs.Label = NewProjectsLocationPrometheusApiV1LabelService(s) - rs.Labels_ = NewProjectsLocationPrometheusApiV1LabelsService(s) rs.Metadata = NewProjectsLocationPrometheusApiV1MetadataService(s) return rs } @@ -289,8 +288,6 @@ type ProjectsLocationPrometheusApiV1Service struct { Label *ProjectsLocationPrometheusApiV1LabelService - Labels_ *ProjectsLocationPrometheusApiV1LabelsService - Metadata *ProjectsLocationPrometheusApiV1MetadataService } @@ -303,15 +300,6 @@ type ProjectsLocationPrometheusApiV1LabelService struct { s *Service } -func NewProjectsLocationPrometheusApiV1LabelsService(s *Service) *ProjectsLocationPrometheusApiV1LabelsService { - rs := &ProjectsLocationPrometheusApiV1LabelsService{s: s} - return rs -} - -type ProjectsLocationPrometheusApiV1LabelsService struct { - s *Service -} - func NewProjectsLocationPrometheusApiV1MetadataService(s *Service) *ProjectsLocationPrometheusApiV1MetadataService { rs := &ProjectsLocationPrometheusApiV1MetadataService{s: s} return rs @@ -1375,44 +1363,6 @@ func (s *ListDashboardsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListLabelsRequest: ListLabelsRequest holds all parameters of the -// Prometheus upstream API for returning a list of label names. -type ListLabelsRequest struct { - // End: The end time to evaluate the query for. Either floating point - // UNIX seconds or RFC3339 formatted timestamp. - End string `json:"end,omitempty"` - - // Match: A list of matchers encoded in the Prometheus label matcher - // format to constrain the values to series that satisfy them. - Match string `json:"match,omitempty"` - - // Start: The start time to evaluate the query for. Either floating - // point UNIX seconds or RFC3339 formatted timestamp. - Start string `json:"start,omitempty"` - - // ForceSendFields is a list of field names (e.g. "End") to - // unconditionally include in API requests. By 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. "End") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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 *ListLabelsRequest) MarshalJSON() ([]byte, error) { - type NoMethod ListLabelsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // ListMetricsScopesByMonitoredProjectResponse: Response for the // ListMetricsScopesByMonitoredProject method. type ListMetricsScopesByMonitoredProjectResponse struct { @@ -1940,6 +1890,44 @@ func (s *QueryInstantRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QueryLabelsRequest: QueryLabelsRequest holds all parameters of the +// Prometheus upstream API for returning a list of label names. +type QueryLabelsRequest struct { + // End: The end time to evaluate the query for. Either floating point + // UNIX seconds or RFC3339 formatted timestamp. + End string `json:"end,omitempty"` + + // Match: A list of matchers encoded in the Prometheus label matcher + // format to constrain the values to series that satisfy them. + Match string `json:"match,omitempty"` + + // Start: The start time to evaluate the query for. Either floating + // point UNIX seconds or RFC3339 formatted timestamp. + Start string `json:"start,omitempty"` + + // ForceSendFields is a list of field names (e.g. "End") to + // unconditionally include in API requests. By 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. "End") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an 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 *QueryLabelsRequest) MarshalJSON() ([]byte, error) { + type NoMethod QueryLabelsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // QueryRangeRequest: QueryRangeRequest holds all parameters of the // Prometheus upstream range query API plus GCM specific parameters. type QueryRangeRequest struct { @@ -4524,13 +4512,13 @@ func (c *ProjectsDashboardsPatchCall) Do(opts ...googleapi.CallOption) (*Dashboa // method id "monitoring.projects.location.prometheus.api.v1.labels": type ProjectsLocationPrometheusApiV1LabelsCall struct { - s *Service - name string - location string - listlabelsrequest *ListLabelsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header + s *Service + name string + location string + querylabelsrequest *QueryLabelsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } // Labels: Lists labels for metrics. @@ -4541,11 +4529,11 @@ type ProjectsLocationPrometheusApiV1LabelsCall struct { // of the open source API but used as a request path prefix to // distinguish different virtual Prometheus instances of Google // Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER. -func (r *ProjectsLocationPrometheusApiV1Service) Labels(name string, location string, listlabelsrequest *ListLabelsRequest) *ProjectsLocationPrometheusApiV1LabelsCall { +func (r *ProjectsLocationPrometheusApiV1Service) Labels(name string, location string, querylabelsrequest *QueryLabelsRequest) *ProjectsLocationPrometheusApiV1LabelsCall { c := &ProjectsLocationPrometheusApiV1LabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name c.location = location - c.listlabelsrequest = listlabelsrequest + c.querylabelsrequest = querylabelsrequest return c } @@ -4582,7 +4570,7 @@ func (c *ProjectsLocationPrometheusApiV1LabelsCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.listlabelsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.querylabelsrequest) if err != nil { return nil, err } @@ -4666,7 +4654,7 @@ func (c *ProjectsLocationPrometheusApiV1LabelsCall) Do(opts ...googleapi.CallOpt // }, // "path": "v1/{+name}/location/{location}/prometheus/api/v1/labels", // "request": { - // "$ref": "ListLabelsRequest" + // "$ref": "QueryLabelsRequest" // }, // "response": { // "$ref": "HttpBody" @@ -5532,208 +5520,6 @@ func (c *ProjectsLocationPrometheusApiV1LabelValuesCall) Do(opts ...googleapi.Ca } -// method id "monitoring.projects.location.prometheus.api.v1.labels.list": - -type ProjectsLocationPrometheusApiV1LabelsListCall struct { - s *Service - name string - location string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists labels for metrics. -// -// - location: Location of the resource information. Has to be "global" -// now. -// - name: The workspace on which to execute the request. It is not part -// of the open source API but used as a request path prefix to -// distinguish different virtual Prometheus instances of Google -// Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER. -func (r *ProjectsLocationPrometheusApiV1LabelsService) List(name string, location string) *ProjectsLocationPrometheusApiV1LabelsListCall { - c := &ProjectsLocationPrometheusApiV1LabelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.location = location - return c -} - -// End sets the optional parameter "end": The end time to evaluate the -// query for. Either floating point UNIX seconds or RFC3339 formatted -// timestamp. -func (c *ProjectsLocationPrometheusApiV1LabelsListCall) End(end string) *ProjectsLocationPrometheusApiV1LabelsListCall { - c.urlParams_.Set("end", end) - return c -} - -// Match sets the optional parameter "match": A list of matchers encoded -// in the Prometheus label matcher format to constrain the values to -// series that satisfy them. -func (c *ProjectsLocationPrometheusApiV1LabelsListCall) Match(match string) *ProjectsLocationPrometheusApiV1LabelsListCall { - c.urlParams_.Set("match", match) - return c -} - -// Start sets the optional parameter "start": The start time to evaluate -// the query for. Either floating point UNIX seconds or RFC3339 -// formatted timestamp. -func (c *ProjectsLocationPrometheusApiV1LabelsListCall) Start(start string) *ProjectsLocationPrometheusApiV1LabelsListCall { - c.urlParams_.Set("start", start) - 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 *ProjectsLocationPrometheusApiV1LabelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationPrometheusApiV1LabelsListCall { - 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 *ProjectsLocationPrometheusApiV1LabelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationPrometheusApiV1LabelsListCall { - 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 *ProjectsLocationPrometheusApiV1LabelsListCall) Context(ctx context.Context) *ProjectsLocationPrometheusApiV1LabelsListCall { - 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 *ProjectsLocationPrometheusApiV1LabelsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationPrometheusApiV1LabelsListCall) 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}/location/{location}/prometheus/api/v1/labels") - 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, - "location": c.location, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "monitoring.projects.location.prometheus.api.v1.labels.list" call. -// Exactly one of *HttpBody or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *HttpBody.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 *ProjectsLocationPrometheusApiV1LabelsListCall) Do(opts ...googleapi.CallOption) (*HttpBody, 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 := &HttpBody{ - 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 labels for metrics.", - // "flatPath": "v1/projects/{projectsId}/location/{location}/prometheus/api/v1/labels", - // "httpMethod": "GET", - // "id": "monitoring.projects.location.prometheus.api.v1.labels.list", - // "parameterOrder": [ - // "name", - // "location" - // ], - // "parameters": { - // "end": { - // "description": "The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.", - // "location": "query", - // "type": "string" - // }, - // "location": { - // "description": "Location of the resource information. Has to be \"global\" now.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "match": { - // "description": "A list of matchers encoded in the Prometheus label matcher format to constrain the values to series that satisfy them.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "start": { - // "description": "The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}/location/{location}/prometheus/api/v1/labels", - // "response": { - // "$ref": "HttpBody" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/monitoring", - // "https://www.googleapis.com/auth/monitoring.read" - // ] - // } - -} - // method id "monitoring.projects.location.prometheus.api.v1.metadata.list": type ProjectsLocationPrometheusApiV1MetadataListCall struct { diff --git a/recaptchaenterprise/v1/recaptchaenterprise-api.json b/recaptchaenterprise/v1/recaptchaenterprise-api.json index a4c9789b438..c2ce6879ec1 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-api.json +++ b/recaptchaenterprise/v1/recaptchaenterprise-api.json @@ -666,7 +666,7 @@ } } }, - "revision": "20230702", + "revision": "20230724", "rootUrl": "https://recaptchaenterprise.googleapis.com/", "schemas": { "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": { @@ -1174,7 +1174,7 @@ "description": "Assessment of this transaction for risk of a stolen instrument." }, "transactionRisk": { - "description": "Probability (0-1) of this transaction being fraudulent. Summarizes the combined risk of attack vectors below.", + "description": "Probability of this transaction being fraudulent. Summarizes the combined risk of attack vectors below. Values are from 0.0 (lowest) to 1.0 (highest).", "format": "float", "type": "number" } @@ -1186,7 +1186,7 @@ "id": "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict", "properties": { "trust": { - "description": "Probability (0-1) of this transaction attempt being executed in a behaviorally trustworthy way.", + "description": "Probability of this transaction attempt being executed in a behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0 (highest).", "format": "float", "type": "number" } @@ -1198,7 +1198,7 @@ "id": "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict", "properties": { "risk": { - "description": "Probability (0-1) of this transaction attempt being part of a card testing attack.", + "description": "Probability of this transaction attempt being part of a card testing attack. Values are from 0.0 (lowest) to 1.0 (highest).", "format": "float", "type": "number" } @@ -1210,7 +1210,7 @@ "id": "GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict", "properties": { "risk": { - "description": "Probability (0-1) of this transaction being executed with a stolen instrument.", + "description": "Probability of this transaction being executed with a stolen instrument. Values are from 0.0 (lowest) to 1.0 (highest).", "format": "float", "type": "number" } diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index 85f833aebaa..b69d810b07d 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -1004,8 +1004,9 @@ type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment struct { // stolen instrument. StolenInstrumentVerdict *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict `json:"stolenInstrumentVerdict,omitempty"` - // TransactionRisk: Probability (0-1) of this transaction being - // fraudulent. Summarizes the combined risk of attack vectors below. + // TransactionRisk: Probability of this transaction being fraudulent. + // Summarizes the combined risk of attack vectors below. Values are from + // 0.0 (lowest) to 1.0 (highest). TransactionRisk float64 `json:"transactionRisk,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -1050,8 +1051,9 @@ func (s *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment) UnmarshalJSO // 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: Probability of this transaction attempt being executed in a + // behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0 + // (highest). Trust float64 `json:"trust,omitempty"` // ForceSendFields is a list of field names (e.g. "Trust") to @@ -1095,8 +1097,8 @@ func (s *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrus // rdict: Information about card testing fraud, where an adversary is // testing fraudulently obtained cards or brute forcing their details. type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict struct { - // Risk: Probability (0-1) of this transaction attempt being part of a - // card testing attack. + // Risk: Probability of this transaction attempt being part of a card + // testing attack. Values are from 0.0 (lowest) to 1.0 (highest). Risk float64 `json:"risk,omitempty"` // ForceSendFields is a list of field names (e.g. "Risk") to @@ -1141,8 +1143,8 @@ func (s *GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVer // is not the legitimate owner of the instrument being used for the // purchase. type GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict struct { - // Risk: Probability (0-1) of this transaction being executed with a - // stolen instrument. + // Risk: Probability of this transaction being executed with a stolen + // instrument. Values are from 0.0 (lowest) to 1.0 (highest). Risk float64 `json:"risk,omitempty"` // ForceSendFields is a list of field names (e.g. "Risk") to diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index b075a6c9a26..c7c8a9280df 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -517,13 +517,42 @@ } } }, - "dnsRecordSet": { + "dnsRecordSets": { "methods": { + "add": { + "description": "Service producers can use this method to add DNS record sets to private DNS zones in the shared producer host project.", + "flatPath": "v1/services/{servicesId}/dnsRecordSets:add", + "httpMethod": "POST", + "id": "servicenetworking.services.dnsRecordSets.add", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is `services/servicenetworking.googleapis.com`.", + "location": "path", + "pattern": "^services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/dnsRecordSets:add", + "request": { + "$ref": "AddDnsRecordSetRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/service.management" + ] + }, "get": { "description": "Producers can use this method to retrieve information about the DNS record set added to the private zone inside the shared tenant host project associated with a consumer network.", - "flatPath": "v1/services/{servicesId}/dnsRecordSet:get", + "flatPath": "v1/services/{servicesId}/dnsRecordSets:get", "httpMethod": "GET", - "id": "servicenetworking.services.dnsRecordSet.get", + "id": "servicenetworking.services.dnsRecordSets.get", "parameterOrder": [ "parent" ], @@ -556,7 +585,7 @@ "type": "string" } }, - "path": "v1/{+parent}/dnsRecordSet:get", + "path": "v1/{+parent}/dnsRecordSets:get", "response": { "$ref": "DnsRecordSet" }, @@ -564,34 +593,37 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/service.management" ] - } - } - }, - "dnsRecordSets": { - "methods": { - "add": { - "description": "Service producers can use this method to add DNS record sets to private DNS zones in the shared producer host project.", - "flatPath": "v1/services/{servicesId}/dnsRecordSets:add", - "httpMethod": "POST", - "id": "servicenetworking.services.dnsRecordSets.add", + }, + "list": { + "description": "Producers can use this method to retrieve a list of available DNS RecordSets available inside the private zone on the tenant host project accessible from their network.", + "flatPath": "v1/services/{servicesId}/dnsRecordSets:list", + "httpMethod": "GET", + "id": "servicenetworking.services.dnsRecordSets.list", "parameterOrder": [ "parent" ], "parameters": { + "consumerNetwork": { + "description": "Required. The network that the consumer is using to connect with services. Must be in the form of projects/{project}/global/networks/{network} {project} is the project number, as in '12345' {network} is the network name.", + "location": "query", + "type": "string" + }, "parent": { "description": "Required. The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is `services/servicenetworking.googleapis.com`.", "location": "path", "pattern": "^services/[^/]+$", "required": true, "type": "string" + }, + "zone": { + "description": "Required. The name of the private DNS zone in the shared producer host project from which the record set will be removed.", + "location": "query", + "type": "string" } }, - "path": "v1/{+parent}/dnsRecordSets:add", - "request": { - "$ref": "AddDnsRecordSetRequest" - }, + "path": "v1/{+parent}/dnsRecordSets:list", "response": { - "$ref": "Operation" + "$ref": "ListDnsRecordSetsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", @@ -658,6 +690,36 @@ } } }, + "dnsZone": { + "methods": { + "get": { + "description": "Service producers can use this method to retrieve a DNS zone in the shared producer host project and the matching peering zones in consumer project", + "flatPath": "v1/services/{servicesId}/dnsZone:get", + "httpMethod": "GET", + "id": "servicenetworking.services.dnsZone.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The network that the consumer is using to connect with services. Must be in the form of services/{service}/projects/{project}/global/networks/{network}/zones/{zoneName} Where {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this {project} is the project number, as in '12345' {network} is the network name. {zoneName} is the DNS zone name", + "location": "path", + "pattern": "^services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}/dnsZone:get", + "response": { + "$ref": "GetDnsZoneResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/service.management" + ] + } + } + }, "dnsZones": { "methods": { "add": { @@ -744,38 +806,6 @@ "https://www.googleapis.com/auth/service.management" ] } - }, - "resources": { - "dnsZone": { - "methods": { - "get": { - "description": "Service producers can use this method to retrieve a DNS zone in the shared producer host project and the matching peering zones in consumer project", - "flatPath": "v1/services/{servicesId}/dnsZones/{dnsZonesId}/dnsZone:get", - "httpMethod": "GET", - "id": "servicenetworking.services.dnsZones.dnsZone.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The network that the consumer is using to connect with services. Must be in the form of services/{service}/projects/{project}/global/networks/{network}/zones/{zoneName} Where {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this {project} is the project number, as in '12345' {network} is the network name. {zoneName} is the DNS zone name", - "location": "path", - "pattern": "^services/[^/]+/dnsZones/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}/dnsZone:get", - "response": { - "$ref": "GetDnsZoneResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/service.management" - ] - } - } - } } }, "projects": { @@ -930,50 +960,6 @@ ] } } - }, - "zones": { - "resources": { - "dnsRecordSet": { - "methods": { - "lIST": { - "description": "Producers can use this method to retrieve a list of available DNS RecordSets available inside the private zone on the tenant host project accessible from their network.", - "flatPath": "v1/services/{servicesId}/projects/{projectsId}/global/networks/{networksId}/zones/{zonesId}/dnsRecordSet:LIST", - "httpMethod": "GET", - "id": "servicenetworking.services.projects.global.networks.zones.dnsRecordSet.lIST", - "parameterOrder": [ - "parent" - ], - "parameters": { - "consumerNetwork": { - "description": "Required. The network that the consumer is using to connect with services. Must be in the form of projects/{project}/global/networks/{network} {project} is the project number, as in '12345' {network} is the network name.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is `services/servicenetworking.googleapis.com`.", - "location": "path", - "pattern": "^services/[^/]+/projects/[^/]+/global/networks/[^/]+/zones/[^/]+$", - "required": true, - "type": "string" - }, - "zone": { - "description": "Required. The name of the private DNS zone in the shared producer host project from which the record set will be removed.", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+parent}/dnsRecordSet:LIST", - "response": { - "$ref": "ListDnsRecordSetsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/service.management" - ] - } - } - } - } } } } @@ -1017,7 +1003,7 @@ } } }, - "revision": "20230723", + "revision": "20230726", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index 03c1a300301..163dc2a47a7 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -161,8 +161,8 @@ type OperationsService struct { func NewServicesService(s *APIService) *ServicesService { rs := &ServicesService{s: s} rs.Connections = NewServicesConnectionsService(s) - rs.DnsRecordSet = NewServicesDnsRecordSetService(s) rs.DnsRecordSets = NewServicesDnsRecordSetsService(s) + rs.DnsZone = NewServicesDnsZoneService(s) rs.DnsZones = NewServicesDnsZonesService(s) rs.Projects = NewServicesProjectsService(s) rs.Roles = NewServicesRolesService(s) @@ -174,10 +174,10 @@ type ServicesService struct { Connections *ServicesConnectionsService - DnsRecordSet *ServicesDnsRecordSetService - DnsRecordSets *ServicesDnsRecordSetsService + DnsZone *ServicesDnsZoneService + DnsZones *ServicesDnsZonesService Projects *ServicesProjectsService @@ -194,15 +194,6 @@ type ServicesConnectionsService struct { s *APIService } -func NewServicesDnsRecordSetService(s *APIService) *ServicesDnsRecordSetService { - rs := &ServicesDnsRecordSetService{s: s} - return rs -} - -type ServicesDnsRecordSetService struct { - s *APIService -} - func NewServicesDnsRecordSetsService(s *APIService) *ServicesDnsRecordSetsService { rs := &ServicesDnsRecordSetsService{s: s} return rs @@ -212,24 +203,21 @@ type ServicesDnsRecordSetsService struct { s *APIService } -func NewServicesDnsZonesService(s *APIService) *ServicesDnsZonesService { - rs := &ServicesDnsZonesService{s: s} - rs.DnsZone = NewServicesDnsZonesDnsZoneService(s) +func NewServicesDnsZoneService(s *APIService) *ServicesDnsZoneService { + rs := &ServicesDnsZoneService{s: s} return rs } -type ServicesDnsZonesService struct { +type ServicesDnsZoneService struct { s *APIService - - DnsZone *ServicesDnsZonesDnsZoneService } -func NewServicesDnsZonesDnsZoneService(s *APIService) *ServicesDnsZonesDnsZoneService { - rs := &ServicesDnsZonesDnsZoneService{s: s} +func NewServicesDnsZonesService(s *APIService) *ServicesDnsZonesService { + rs := &ServicesDnsZonesService{s: s} return rs } -type ServicesDnsZonesDnsZoneService struct { +type ServicesDnsZonesService struct { s *APIService } @@ -260,7 +248,6 @@ type ServicesProjectsGlobalService struct { func NewServicesProjectsGlobalNetworksService(s *APIService) *ServicesProjectsGlobalNetworksService { rs := &ServicesProjectsGlobalNetworksService{s: s} rs.PeeredDnsDomains = NewServicesProjectsGlobalNetworksPeeredDnsDomainsService(s) - rs.Zones = NewServicesProjectsGlobalNetworksZonesService(s) return rs } @@ -268,8 +255,6 @@ type ServicesProjectsGlobalNetworksService struct { s *APIService PeeredDnsDomains *ServicesProjectsGlobalNetworksPeeredDnsDomainsService - - Zones *ServicesProjectsGlobalNetworksZonesService } func NewServicesProjectsGlobalNetworksPeeredDnsDomainsService(s *APIService) *ServicesProjectsGlobalNetworksPeeredDnsDomainsService { @@ -281,27 +266,6 @@ type ServicesProjectsGlobalNetworksPeeredDnsDomainsService struct { s *APIService } -func NewServicesProjectsGlobalNetworksZonesService(s *APIService) *ServicesProjectsGlobalNetworksZonesService { - rs := &ServicesProjectsGlobalNetworksZonesService{s: s} - rs.DnsRecordSet = NewServicesProjectsGlobalNetworksZonesDnsRecordSetService(s) - return rs -} - -type ServicesProjectsGlobalNetworksZonesService struct { - s *APIService - - DnsRecordSet *ServicesProjectsGlobalNetworksZonesDnsRecordSetService -} - -func NewServicesProjectsGlobalNetworksZonesDnsRecordSetService(s *APIService) *ServicesProjectsGlobalNetworksZonesDnsRecordSetService { - rs := &ServicesProjectsGlobalNetworksZonesDnsRecordSetService{s: s} - return rs -} - -type ServicesProjectsGlobalNetworksZonesDnsRecordSetService struct { - s *APIService -} - func NewServicesRolesService(s *APIService) *ServicesRolesService { rs := &ServicesRolesService{s: s} return rs @@ -8006,9 +7970,156 @@ func (c *ServicesConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*Operat } -// method id "servicenetworking.services.dnsRecordSet.get": +// method id "servicenetworking.services.dnsRecordSets.add": + +type ServicesDnsRecordSetsAddCall struct { + s *APIService + parent string + adddnsrecordsetrequest *AddDnsRecordSetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Add: Service producers can use this method to add DNS record sets to +// private DNS zones in the shared producer host project. +// +// - parent: The service that is managing peering connectivity for a +// service producer's organization. For Google services that support +// this functionality, this value is +// `services/servicenetworking.googleapis.com`. +func (r *ServicesDnsRecordSetsService) Add(parent string, adddnsrecordsetrequest *AddDnsRecordSetRequest) *ServicesDnsRecordSetsAddCall { + c := &ServicesDnsRecordSetsAddCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.adddnsrecordsetrequest = adddnsrecordsetrequest + 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 *ServicesDnsRecordSetsAddCall) Fields(s ...googleapi.Field) *ServicesDnsRecordSetsAddCall { + 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 *ServicesDnsRecordSetsAddCall) Context(ctx context.Context) *ServicesDnsRecordSetsAddCall { + 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 *ServicesDnsRecordSetsAddCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ServicesDnsRecordSetsAddCall) 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.adddnsrecordsetrequest) + 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}/dnsRecordSets:add") + 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 "servicenetworking.services.dnsRecordSets.add" 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 *ServicesDnsRecordSetsAddCall) 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": "Service producers can use this method to add DNS record sets to private DNS zones in the shared producer host project.", + // "flatPath": "v1/services/{servicesId}/dnsRecordSets:add", + // "httpMethod": "POST", + // "id": "servicenetworking.services.dnsRecordSets.add", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is `services/servicenetworking.googleapis.com`.", + // "location": "path", + // "pattern": "^services/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/dnsRecordSets:add", + // "request": { + // "$ref": "AddDnsRecordSetRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/service.management" + // ] + // } + +} + +// method id "servicenetworking.services.dnsRecordSets.get": -type ServicesDnsRecordSetGetCall struct { +type ServicesDnsRecordSetsGetCall struct { s *APIService parent string urlParams_ gensupport.URLParams @@ -8023,8 +8134,8 @@ type ServicesDnsRecordSetGetCall struct { // // - parent: Parent resource identifying the connection which owns this // collection of DNS zones in the format services/{service}. -func (r *ServicesDnsRecordSetService) Get(parent string) *ServicesDnsRecordSetGetCall { - c := &ServicesDnsRecordSetGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ServicesDnsRecordSetsService) Get(parent string) *ServicesDnsRecordSetsGetCall { + c := &ServicesDnsRecordSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } @@ -8032,14 +8143,14 @@ func (r *ServicesDnsRecordSetService) Get(parent string) *ServicesDnsRecordSetGe // ConsumerNetwork sets the optional parameter "consumerNetwork": // Required. The consumer network containing the record set. Must be in // the form of projects/{project}/global/networks/{network} -func (c *ServicesDnsRecordSetGetCall) ConsumerNetwork(consumerNetwork string) *ServicesDnsRecordSetGetCall { +func (c *ServicesDnsRecordSetsGetCall) ConsumerNetwork(consumerNetwork string) *ServicesDnsRecordSetsGetCall { c.urlParams_.Set("consumerNetwork", consumerNetwork) return c } // Domain sets the optional parameter "domain": Required. The domain // name of the zone containing the recordset. -func (c *ServicesDnsRecordSetGetCall) Domain(domain string) *ServicesDnsRecordSetGetCall { +func (c *ServicesDnsRecordSetsGetCall) Domain(domain string) *ServicesDnsRecordSetsGetCall { c.urlParams_.Set("domain", domain) return c } @@ -8047,14 +8158,14 @@ func (c *ServicesDnsRecordSetGetCall) Domain(domain string) *ServicesDnsRecordSe // Type sets the optional parameter "type": Required. RecordSet Type eg. // type='A'. See the list of Supported DNS Types // (https://dns.corp.google.com/docs/overview). -func (c *ServicesDnsRecordSetGetCall) Type(type_ string) *ServicesDnsRecordSetGetCall { +func (c *ServicesDnsRecordSetsGetCall) Type(type_ string) *ServicesDnsRecordSetsGetCall { c.urlParams_.Set("type", type_) return c } // Zone sets the optional parameter "zone": Required. The name of the // zone containing the record set. -func (c *ServicesDnsRecordSetGetCall) Zone(zone string) *ServicesDnsRecordSetGetCall { +func (c *ServicesDnsRecordSetsGetCall) Zone(zone string) *ServicesDnsRecordSetsGetCall { c.urlParams_.Set("zone", zone) return c } @@ -8062,7 +8173,7 @@ func (c *ServicesDnsRecordSetGetCall) Zone(zone string) *ServicesDnsRecordSetGet // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ServicesDnsRecordSetGetCall) Fields(s ...googleapi.Field) *ServicesDnsRecordSetGetCall { +func (c *ServicesDnsRecordSetsGetCall) Fields(s ...googleapi.Field) *ServicesDnsRecordSetsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8072,7 +8183,7 @@ func (c *ServicesDnsRecordSetGetCall) Fields(s ...googleapi.Field) *ServicesDnsR // 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 *ServicesDnsRecordSetGetCall) IfNoneMatch(entityTag string) *ServicesDnsRecordSetGetCall { +func (c *ServicesDnsRecordSetsGetCall) IfNoneMatch(entityTag string) *ServicesDnsRecordSetsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -8080,21 +8191,21 @@ func (c *ServicesDnsRecordSetGetCall) IfNoneMatch(entityTag string) *ServicesDns // 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 *ServicesDnsRecordSetGetCall) Context(ctx context.Context) *ServicesDnsRecordSetGetCall { +func (c *ServicesDnsRecordSetsGetCall) Context(ctx context.Context) *ServicesDnsRecordSetsGetCall { 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 *ServicesDnsRecordSetGetCall) Header() http.Header { +func (c *ServicesDnsRecordSetsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ServicesDnsRecordSetGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ServicesDnsRecordSetsGetCall) 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_ { @@ -8107,7 +8218,7 @@ func (c *ServicesDnsRecordSetGetCall) doRequest(alt string) (*http.Response, err var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dnsRecordSet:get") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dnsRecordSets:get") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -8120,14 +8231,14 @@ func (c *ServicesDnsRecordSetGetCall) doRequest(alt string) (*http.Response, err return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "servicenetworking.services.dnsRecordSet.get" call. +// Do executes the "servicenetworking.services.dnsRecordSets.get" call. // Exactly one of *DnsRecordSet or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *DnsRecordSet.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 *ServicesDnsRecordSetGetCall) Do(opts ...googleapi.CallOption) (*DnsRecordSet, error) { +func (c *ServicesDnsRecordSetsGetCall) Do(opts ...googleapi.CallOption) (*DnsRecordSet, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8159,9 +8270,9 @@ func (c *ServicesDnsRecordSetGetCall) Do(opts ...googleapi.CallOption) (*DnsReco return ret, nil // { // "description": "Producers can use this method to retrieve information about the DNS record set added to the private zone inside the shared tenant host project associated with a consumer network.", - // "flatPath": "v1/services/{servicesId}/dnsRecordSet:get", + // "flatPath": "v1/services/{servicesId}/dnsRecordSets:get", // "httpMethod": "GET", - // "id": "servicenetworking.services.dnsRecordSet.get", + // "id": "servicenetworking.services.dnsRecordSets.get", // "parameterOrder": [ // "parent" // ], @@ -8194,7 +8305,7 @@ func (c *ServicesDnsRecordSetGetCall) Do(opts ...googleapi.CallOption) (*DnsReco // "type": "string" // } // }, - // "path": "v1/{+parent}/dnsRecordSet:get", + // "path": "v1/{+parent}/dnsRecordSets:get", // "response": { // "$ref": "DnsRecordSet" // }, @@ -8206,74 +8317,100 @@ func (c *ServicesDnsRecordSetGetCall) Do(opts ...googleapi.CallOption) (*DnsReco } -// method id "servicenetworking.services.dnsRecordSets.add": +// method id "servicenetworking.services.dnsRecordSets.list": -type ServicesDnsRecordSetsAddCall struct { - s *APIService - parent string - adddnsrecordsetrequest *AddDnsRecordSetRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ServicesDnsRecordSetsListCall struct { + s *APIService + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Add: Service producers can use this method to add DNS record sets to -// private DNS zones in the shared producer host project. +// List: Producers can use this method to retrieve a list of available +// DNS RecordSets available inside the private zone on the tenant host +// project accessible from their network. // // - parent: The service that is managing peering connectivity for a // service producer's organization. For Google services that support // this functionality, this value is // `services/servicenetworking.googleapis.com`. -func (r *ServicesDnsRecordSetsService) Add(parent string, adddnsrecordsetrequest *AddDnsRecordSetRequest) *ServicesDnsRecordSetsAddCall { - c := &ServicesDnsRecordSetsAddCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ServicesDnsRecordSetsService) List(parent string) *ServicesDnsRecordSetsListCall { + c := &ServicesDnsRecordSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.adddnsrecordsetrequest = adddnsrecordsetrequest + return c +} + +// ConsumerNetwork sets the optional parameter "consumerNetwork": +// Required. The network that the consumer is using to connect with +// services. Must be in the form of +// projects/{project}/global/networks/{network} {project} is the project +// number, as in '12345' {network} is the network name. +func (c *ServicesDnsRecordSetsListCall) ConsumerNetwork(consumerNetwork string) *ServicesDnsRecordSetsListCall { + c.urlParams_.Set("consumerNetwork", consumerNetwork) + return c +} + +// Zone sets the optional parameter "zone": Required. The name of the +// private DNS zone in the shared producer host project from which the +// record set will be removed. +func (c *ServicesDnsRecordSetsListCall) Zone(zone string) *ServicesDnsRecordSetsListCall { + c.urlParams_.Set("zone", zone) 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 *ServicesDnsRecordSetsAddCall) Fields(s ...googleapi.Field) *ServicesDnsRecordSetsAddCall { +func (c *ServicesDnsRecordSetsListCall) Fields(s ...googleapi.Field) *ServicesDnsRecordSetsListCall { 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 *ServicesDnsRecordSetsListCall) IfNoneMatch(entityTag string) *ServicesDnsRecordSetsListCall { + 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 *ServicesDnsRecordSetsAddCall) Context(ctx context.Context) *ServicesDnsRecordSetsAddCall { +func (c *ServicesDnsRecordSetsListCall) Context(ctx context.Context) *ServicesDnsRecordSetsListCall { 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 *ServicesDnsRecordSetsAddCall) Header() http.Header { +func (c *ServicesDnsRecordSetsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ServicesDnsRecordSetsAddCall) doRequest(alt string) (*http.Response, error) { +func (c *ServicesDnsRecordSetsListCall) 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.adddnsrecordsetrequest) - 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}/dnsRecordSets:add") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dnsRecordSets:list") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -8284,14 +8421,14 @@ func (c *ServicesDnsRecordSetsAddCall) doRequest(alt string) (*http.Response, er return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "servicenetworking.services.dnsRecordSets.add" 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 *ServicesDnsRecordSetsAddCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "servicenetworking.services.dnsRecordSets.list" call. +// Exactly one of *ListDnsRecordSetsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListDnsRecordSetsResponse.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 *ServicesDnsRecordSetsListCall) Do(opts ...googleapi.CallOption) (*ListDnsRecordSetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8310,7 +8447,7 @@ func (c *ServicesDnsRecordSetsAddCall) Do(opts ...googleapi.CallOption) (*Operat if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListDnsRecordSetsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8322,28 +8459,35 @@ func (c *ServicesDnsRecordSetsAddCall) Do(opts ...googleapi.CallOption) (*Operat } return ret, nil // { - // "description": "Service producers can use this method to add DNS record sets to private DNS zones in the shared producer host project.", - // "flatPath": "v1/services/{servicesId}/dnsRecordSets:add", - // "httpMethod": "POST", - // "id": "servicenetworking.services.dnsRecordSets.add", + // "description": "Producers can use this method to retrieve a list of available DNS RecordSets available inside the private zone on the tenant host project accessible from their network.", + // "flatPath": "v1/services/{servicesId}/dnsRecordSets:list", + // "httpMethod": "GET", + // "id": "servicenetworking.services.dnsRecordSets.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "consumerNetwork": { + // "description": "Required. The network that the consumer is using to connect with services. Must be in the form of projects/{project}/global/networks/{network} {project} is the project number, as in '12345' {network} is the network name.", + // "location": "query", + // "type": "string" + // }, // "parent": { // "description": "Required. The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is `services/servicenetworking.googleapis.com`.", // "location": "path", // "pattern": "^services/[^/]+$", // "required": true, // "type": "string" + // }, + // "zone": { + // "description": "Required. The name of the private DNS zone in the shared producer host project from which the record set will be removed.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+parent}/dnsRecordSets:add", - // "request": { - // "$ref": "AddDnsRecordSetRequest" - // }, + // "path": "v1/{+parent}/dnsRecordSets:list", // "response": { - // "$ref": "Operation" + // "$ref": "ListDnsRecordSetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform", @@ -8647,6 +8791,162 @@ func (c *ServicesDnsRecordSetsUpdateCall) Do(opts ...googleapi.CallOption) (*Ope } +// method id "servicenetworking.services.dnsZone.get": + +type ServicesDnsZoneGetCall struct { + s *APIService + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Service producers can use this method to retrieve a DNS zone in +// the shared producer host project and the matching peering zones in +// consumer project +// +// - name: The network that the consumer is using to connect with +// services. Must be in the form of +// services/{service}/projects/{project}/global/networks/{network}/zone +// s/{zoneName} Where {service} is the peering service that is +// managing connectivity for the service producer's organization. For +// Google services that support this {project} is the project number, +// as in '12345' {network} is the network name. {zoneName} is the DNS +// zone name. +func (r *ServicesDnsZoneService) Get(name string) *ServicesDnsZoneGetCall { + c := &ServicesDnsZoneGetCall{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 *ServicesDnsZoneGetCall) Fields(s ...googleapi.Field) *ServicesDnsZoneGetCall { + 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 *ServicesDnsZoneGetCall) IfNoneMatch(entityTag string) *ServicesDnsZoneGetCall { + 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 *ServicesDnsZoneGetCall) Context(ctx context.Context) *ServicesDnsZoneGetCall { + 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 *ServicesDnsZoneGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ServicesDnsZoneGetCall) 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}/dnsZone:get") + 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 "servicenetworking.services.dnsZone.get" call. +// Exactly one of *GetDnsZoneResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GetDnsZoneResponse.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 *ServicesDnsZoneGetCall) Do(opts ...googleapi.CallOption) (*GetDnsZoneResponse, 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 := &GetDnsZoneResponse{ + 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": "Service producers can use this method to retrieve a DNS zone in the shared producer host project and the matching peering zones in consumer project", + // "flatPath": "v1/services/{servicesId}/dnsZone:get", + // "httpMethod": "GET", + // "id": "servicenetworking.services.dnsZone.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The network that the consumer is using to connect with services. Must be in the form of services/{service}/projects/{project}/global/networks/{network}/zones/{zoneName} Where {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this {project} is the project number, as in '12345' {network} is the network name. {zoneName} is the DNS zone name", + // "location": "path", + // "pattern": "^services/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}/dnsZone:get", + // "response": { + // "$ref": "GetDnsZoneResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/service.management" + // ] + // } + +} + // method id "servicenetworking.services.dnsZones.add": type ServicesDnsZonesAddCall struct { @@ -9099,162 +9399,6 @@ func (c *ServicesDnsZonesRemoveCall) Do(opts ...googleapi.CallOption) (*Operatio } -// method id "servicenetworking.services.dnsZones.dnsZone.get": - -type ServicesDnsZonesDnsZoneGetCall struct { - s *APIService - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Service producers can use this method to retrieve a DNS zone in -// the shared producer host project and the matching peering zones in -// consumer project -// -// - name: The network that the consumer is using to connect with -// services. Must be in the form of -// services/{service}/projects/{project}/global/networks/{network}/zone -// s/{zoneName} Where {service} is the peering service that is -// managing connectivity for the service producer's organization. For -// Google services that support this {project} is the project number, -// as in '12345' {network} is the network name. {zoneName} is the DNS -// zone name. -func (r *ServicesDnsZonesDnsZoneService) Get(name string) *ServicesDnsZonesDnsZoneGetCall { - c := &ServicesDnsZonesDnsZoneGetCall{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 *ServicesDnsZonesDnsZoneGetCall) Fields(s ...googleapi.Field) *ServicesDnsZonesDnsZoneGetCall { - 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 *ServicesDnsZonesDnsZoneGetCall) IfNoneMatch(entityTag string) *ServicesDnsZonesDnsZoneGetCall { - 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 *ServicesDnsZonesDnsZoneGetCall) Context(ctx context.Context) *ServicesDnsZonesDnsZoneGetCall { - 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 *ServicesDnsZonesDnsZoneGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ServicesDnsZonesDnsZoneGetCall) 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}/dnsZone:get") - 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 "servicenetworking.services.dnsZones.dnsZone.get" call. -// Exactly one of *GetDnsZoneResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GetDnsZoneResponse.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 *ServicesDnsZonesDnsZoneGetCall) Do(opts ...googleapi.CallOption) (*GetDnsZoneResponse, 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 := &GetDnsZoneResponse{ - 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": "Service producers can use this method to retrieve a DNS zone in the shared producer host project and the matching peering zones in consumer project", - // "flatPath": "v1/services/{servicesId}/dnsZones/{dnsZonesId}/dnsZone:get", - // "httpMethod": "GET", - // "id": "servicenetworking.services.dnsZones.dnsZone.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The network that the consumer is using to connect with services. Must be in the form of services/{service}/projects/{project}/global/networks/{network}/zones/{zoneName} Where {service} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this {project} is the project number, as in '12345' {network} is the network name. {zoneName} is the DNS zone name", - // "location": "path", - // "pattern": "^services/[^/]+/dnsZones/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}/dnsZone:get", - // "response": { - // "$ref": "GetDnsZoneResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/service.management" - // ] - // } - -} - // method id "servicenetworking.services.projects.global.networks.get": type ServicesProjectsGlobalNetworksGetCall struct { @@ -10031,186 +10175,6 @@ func (c *ServicesProjectsGlobalNetworksPeeredDnsDomainsListCall) Do(opts ...goog } -// method id "servicenetworking.services.projects.global.networks.zones.dnsRecordSet.lIST": - -type ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall struct { - s *APIService - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// LIST: Producers can use this method to retrieve a list of available -// DNS RecordSets available inside the private zone on the tenant host -// project accessible from their network. -// -// - parent: The service that is managing peering connectivity for a -// service producer's organization. For Google services that support -// this functionality, this value is -// `services/servicenetworking.googleapis.com`. -func (r *ServicesProjectsGlobalNetworksZonesDnsRecordSetService) LIST(parent string) *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall { - c := &ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// ConsumerNetwork sets the optional parameter "consumerNetwork": -// Required. The network that the consumer is using to connect with -// services. Must be in the form of -// projects/{project}/global/networks/{network} {project} is the project -// number, as in '12345' {network} is the network name. -func (c *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall) ConsumerNetwork(consumerNetwork string) *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall { - c.urlParams_.Set("consumerNetwork", consumerNetwork) - return c -} - -// Zone sets the optional parameter "zone": Required. The name of the -// private DNS zone in the shared producer host project from which the -// record set will be removed. -func (c *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall) Zone(zone string) *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall { - c.urlParams_.Set("zone", zone) - 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 *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall) Fields(s ...googleapi.Field) *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall { - 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 *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall) IfNoneMatch(entityTag string) *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall { - 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 *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall) Context(ctx context.Context) *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall { - 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 *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall) 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}/dnsRecordSet:LIST") - 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 "servicenetworking.services.projects.global.networks.zones.dnsRecordSet.lIST" call. -// Exactly one of *ListDnsRecordSetsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *ListDnsRecordSetsResponse.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 *ServicesProjectsGlobalNetworksZonesDnsRecordSetLISTCall) Do(opts ...googleapi.CallOption) (*ListDnsRecordSetsResponse, 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 := &ListDnsRecordSetsResponse{ - 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": "Producers can use this method to retrieve a list of available DNS RecordSets available inside the private zone on the tenant host project accessible from their network.", - // "flatPath": "v1/services/{servicesId}/projects/{projectsId}/global/networks/{networksId}/zones/{zonesId}/dnsRecordSet:LIST", - // "httpMethod": "GET", - // "id": "servicenetworking.services.projects.global.networks.zones.dnsRecordSet.lIST", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "consumerNetwork": { - // "description": "Required. The network that the consumer is using to connect with services. Must be in the form of projects/{project}/global/networks/{network} {project} is the project number, as in '12345' {network} is the network name.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is `services/servicenetworking.googleapis.com`.", - // "location": "path", - // "pattern": "^services/[^/]+/projects/[^/]+/global/networks/[^/]+/zones/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "zone": { - // "description": "Required. The name of the private DNS zone in the shared producer host project from which the record set will be removed.", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/dnsRecordSet:LIST", - // "response": { - // "$ref": "ListDnsRecordSetsResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/service.management" - // ] - // } - -} - // method id "servicenetworking.services.roles.add": type ServicesRolesAddCall struct { diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 9795ba02109..9e240ee3ea0 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20230705", + "revision": "20230720", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "Backup": { @@ -3150,7 +3150,7 @@ "type": "string" }, "enableDropProtection": { - "description": "Whether drop protection is enabled for this database. Defaults to false, if not set.", + "description": "Whether drop protection is enabled for this database. Defaults to false, if not set. For more details, please see how to [prevent accidental database deletion](https://cloud.google.com/spanner/docs/prevent-database-deletion).", "type": "boolean" }, "encryptionConfig": { diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index e05f0dbb7c5..a90bae84ad9 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -1421,7 +1421,9 @@ type Database struct { EarliestVersionTime string `json:"earliestVersionTime,omitempty"` // EnableDropProtection: Whether drop protection is enabled for this - // database. Defaults to false, if not set. + // database. Defaults to false, if not set. For more details, please see + // how to prevent accidental database deletion + // (https://cloud.google.com/spanner/docs/prevent-database-deletion). EnableDropProtection bool `json:"enableDropProtection,omitempty"` // EncryptionConfig: Output only. For databases that are using customer diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index 1d637e49314..712c27fa037 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -2122,7 +2122,7 @@ } } }, - "revision": "20230710", + "revision": "20230721", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2672,6 +2672,10 @@ "description": "This is always `sql#connectSettings`.", "type": "string" }, + "pscEnabled": { + "description": "Whether PSC connectivity is enabled for this instance.", + "type": "boolean" + }, "region": { "description": "The cloud region for the instance. For example, `us-central1`, `europe-west1`. The region cannot be changed after instance creation.", "type": "string" @@ -2935,6 +2939,11 @@ "$ref": "DiskEncryptionStatus", "description": "Disk encryption status specific to an instance." }, + "dnsName": { + "description": "Output only. The dns name of the instance.", + "readOnly": true, + "type": "string" + }, "etag": { "description": "This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.", "type": "string" @@ -3019,6 +3028,11 @@ "description": "The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.", "type": "string" }, + "pscServiceAttachmentLink": { + "description": "Output only. The link to service attachment of PSC instance.", + "readOnly": true, + "type": "string" + }, "region": { "description": "The geographical region. Can be: * `us-central` (`FIRST_GEN` instances only) * `us-central1` (`SECOND_GEN` instances only) * `asia-east1` or `europe-west1`. Defaults to `us-central` or `us-central1` depending on the instance type. The region cannot be changed after instance creation.", "type": "string" @@ -4028,6 +4042,10 @@ "description": "The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.", "type": "string" }, + "pscConfig": { + "$ref": "PscConfig", + "description": "PSC settings for this instance." + }, "requireSsl": { "description": "Whether SSL connections over IP are enforced or not.", "type": "boolean" @@ -4619,6 +4637,24 @@ }, "type": "object" }, + "PscConfig": { + "description": "PSC settings for a Cloud SQL instance.", + "id": "PscConfig", + "properties": { + "allowedConsumerProjects": { + "description": "List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).", + "items": { + "type": "string" + }, + "type": "array" + }, + "pscEnabled": { + "description": "Whether PSC connectivity is enabled for this instance.", + "type": "boolean" + } + }, + "type": "object" + }, "ReplicaConfiguration": { "description": "Read-replica configuration for connecting to the primary instance.", "id": "ReplicaConfiguration", diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index d57e773b3a3..f9d4317e547 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -916,6 +916,9 @@ type ConnectSettings struct { // Kind: This is always `sql#connectSettings`. Kind string `json:"kind,omitempty"` + // PscEnabled: Whether PSC connectivity is enabled for this instance. + PscEnabled bool `json:"pscEnabled,omitempty"` + // Region: The cloud region for the instance. For example, // `us-central1`, `europe-west1`. The region cannot be changed after // instance creation. @@ -1190,6 +1193,9 @@ type DatabaseInstance struct { // DiskEncryptionStatus: Disk encryption status specific to an instance. DiskEncryptionStatus *DiskEncryptionStatus `json:"diskEncryptionStatus,omitempty"` + // DnsName: Output only. The dns name of the instance. + DnsName string `json:"dnsName,omitempty"` + // Etag: This field is deprecated and will be removed from a future // version of the API. Use the `settings.settingsVersion` field instead. Etag string `json:"etag,omitempty"` @@ -1255,6 +1261,10 @@ type DatabaseInstance struct { // instance. The Google apps domain is prefixed if applicable. Project string `json:"project,omitempty"` + // PscServiceAttachmentLink: Output only. The link to service attachment + // of PSC instance. + PscServiceAttachmentLink string `json:"pscServiceAttachmentLink,omitempty"` + // Region: The geographical region. Can be: * `us-central` (`FIRST_GEN` // instances only) * `us-central1` (`SECOND_GEN` instances only) * // `asia-east1` or `europe-west1`. Defaults to `us-central` or @@ -2888,6 +2898,9 @@ type IpConfiguration struct { // updated, but it cannot be removed after it is set. PrivateNetwork string `json:"privateNetwork,omitempty"` + // PscConfig: PSC settings for this instance. + PscConfig *PscConfig `json:"pscConfig,omitempty"` + // RequireSsl: Whether SSL connections over IP are enforced or not. RequireSsl bool `json:"requireSsl,omitempty"` @@ -3643,6 +3656,43 @@ func (s *PerformDiskShrinkContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PscConfig: PSC settings for a Cloud SQL instance. +type PscConfig struct { + // AllowedConsumerProjects: List of consumer projects that are + // allow-listed for PSC connections to this instance. This instance can + // be connected to with PSC from any network in these projects. Each + // consumer project in this list may be represented by a project number + // (numeric) or by a project id (alphanumeric). + AllowedConsumerProjects []string `json:"allowedConsumerProjects,omitempty"` + + // PscEnabled: Whether PSC connectivity is enabled for this instance. + PscEnabled bool `json:"pscEnabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AllowedConsumerProjects") to unconditionally include in API + // requests. By 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. "AllowedConsumerProjects") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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 *PscConfig) MarshalJSON() ([]byte, error) { + type NoMethod PscConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ReplicaConfiguration: Read-replica configuration for connecting to // the primary instance. type ReplicaConfiguration struct { diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index d3e1c22ce93..c7a222e08c5 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -2122,7 +2122,7 @@ } } }, - "revision": "20230710", + "revision": "20230721", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2672,6 +2672,10 @@ "description": "This is always `sql#connectSettings`.", "type": "string" }, + "pscEnabled": { + "description": "Whether PSC connectivity is enabled for this instance.", + "type": "boolean" + }, "region": { "description": "The cloud region for the instance. e.g. `us-central1`, `europe-west1`. The region cannot be changed after instance creation.", "type": "string" @@ -2935,6 +2939,11 @@ "$ref": "DiskEncryptionStatus", "description": "Disk encryption status specific to an instance." }, + "dnsName": { + "description": "Output only. The dns name of the instance.", + "readOnly": true, + "type": "string" + }, "etag": { "description": "This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.", "type": "string" @@ -3019,6 +3028,11 @@ "description": "The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.", "type": "string" }, + "pscServiceAttachmentLink": { + "description": "Output only. The link to service attachment of PSC instance.", + "readOnly": true, + "type": "string" + }, "region": { "description": "The geographical region. Can be: * `us-central` (`FIRST_GEN` instances only) * `us-central1` (`SECOND_GEN` instances only) * `asia-east1` or `europe-west1`. Defaults to `us-central` or `us-central1` depending on the instance type. The region cannot be changed after instance creation.", "type": "string" @@ -4028,6 +4042,10 @@ "description": "The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.", "type": "string" }, + "pscConfig": { + "$ref": "PscConfig", + "description": "PSC settings for this instance." + }, "requireSsl": { "description": "Whether SSL connections over IP are enforced or not.", "type": "boolean" @@ -4619,6 +4637,24 @@ }, "type": "object" }, + "PscConfig": { + "description": "PSC settings for a Cloud SQL instance.", + "id": "PscConfig", + "properties": { + "allowedConsumerProjects": { + "description": "List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).", + "items": { + "type": "string" + }, + "type": "array" + }, + "pscEnabled": { + "description": "Whether PSC connectivity is enabled for this instance.", + "type": "boolean" + } + }, + "type": "object" + }, "ReplicaConfiguration": { "description": "Read-replica configuration for connecting to the primary instance.", "id": "ReplicaConfiguration", diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index d8bbe5be017..3f0b2bd6d80 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -916,6 +916,9 @@ type ConnectSettings struct { // Kind: This is always `sql#connectSettings`. Kind string `json:"kind,omitempty"` + // PscEnabled: Whether PSC connectivity is enabled for this instance. + PscEnabled bool `json:"pscEnabled,omitempty"` + // Region: The cloud region for the instance. e.g. `us-central1`, // `europe-west1`. The region cannot be changed after instance creation. Region string `json:"region,omitempty"` @@ -1189,6 +1192,9 @@ type DatabaseInstance struct { // DiskEncryptionStatus: Disk encryption status specific to an instance. DiskEncryptionStatus *DiskEncryptionStatus `json:"diskEncryptionStatus,omitempty"` + // DnsName: Output only. The dns name of the instance. + DnsName string `json:"dnsName,omitempty"` + // Etag: This field is deprecated and will be removed from a future // version of the API. Use the `settings.settingsVersion` field instead. Etag string `json:"etag,omitempty"` @@ -1254,6 +1260,10 @@ type DatabaseInstance struct { // instance. The Google apps domain is prefixed if applicable. Project string `json:"project,omitempty"` + // PscServiceAttachmentLink: Output only. The link to service attachment + // of PSC instance. + PscServiceAttachmentLink string `json:"pscServiceAttachmentLink,omitempty"` + // Region: The geographical region. Can be: * `us-central` (`FIRST_GEN` // instances only) * `us-central1` (`SECOND_GEN` instances only) * // `asia-east1` or `europe-west1`. Defaults to `us-central` or @@ -2888,6 +2898,9 @@ type IpConfiguration struct { // updated, but it cannot be removed after it is set. PrivateNetwork string `json:"privateNetwork,omitempty"` + // PscConfig: PSC settings for this instance. + PscConfig *PscConfig `json:"pscConfig,omitempty"` + // RequireSsl: Whether SSL connections over IP are enforced or not. RequireSsl bool `json:"requireSsl,omitempty"` @@ -3643,6 +3656,43 @@ func (s *PerformDiskShrinkContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PscConfig: PSC settings for a Cloud SQL instance. +type PscConfig struct { + // AllowedConsumerProjects: List of consumer projects that are + // allow-listed for PSC connections to this instance. This instance can + // be connected to with PSC from any network in these projects. Each + // consumer project in this list may be represented by a project number + // (numeric) or by a project id (alphanumeric). + AllowedConsumerProjects []string `json:"allowedConsumerProjects,omitempty"` + + // PscEnabled: Whether PSC connectivity is enabled for this instance. + PscEnabled bool `json:"pscEnabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AllowedConsumerProjects") to unconditionally include in API + // requests. By 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. "AllowedConsumerProjects") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an 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 *PscConfig) MarshalJSON() ([]byte, error) { + type NoMethod PscConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ReplicaConfiguration: Read-replica configuration for connecting to // the primary instance. type ReplicaConfiguration struct {