From b3fe441cccb3832da66b96ee3cb7a11db96bde53 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 10 Nov 2023 00:22:14 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2257) --- appengine/v1/appengine-api.json | 8 +- appengine/v1/appengine-gen.go | 9 +- appengine/v1beta/appengine-api.json | 8 +- appengine/v1beta/appengine-gen.go | 9 +- chromemanagement/v1/chromemanagement-api.json | 29 ++- chromemanagement/v1/chromemanagement-gen.go | 38 +++ cloudbuild/v1/cloudbuild-api.json | 8 +- cloudbuild/v1/cloudbuild-gen.go | 1 + cloudbuild/v2/cloudbuild-api.json | 110 ++++++++- cloudbuild/v2/cloudbuild-gen.go | 222 +++++++++++++++++- fitness/v1/fitness-api.json | 3 +- manufacturers/v1/manufacturers-api.json | 28 ++- manufacturers/v1/manufacturers-gen.go | 39 +++ pubsub/v1/pubsub-api.json | 6 +- pubsub/v1/pubsub-gen.go | 7 + 15 files changed, 483 insertions(+), 42 deletions(-) diff --git a/appengine/v1/appengine-api.json b/appengine/v1/appengine-api.json index d475760900b..576292525f2 100644 --- a/appengine/v1/appengine-api.json +++ b/appengine/v1/appengine-api.json @@ -1651,7 +1651,7 @@ } } }, - "revision": "20231030", + "revision": "20231107", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -3995,7 +3995,7 @@ }, "healthCheck": { "$ref": "HealthCheck", - "description": "Configures health checking for instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment.Only returned in GET requests if view=FULL is set." + "description": "Configures health checking for instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment." }, "id": { "description": "Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: \"default\", \"latest\", and any name with the prefix \"ah-\".", @@ -4043,7 +4043,7 @@ }, "livenessCheck": { "$ref": "LivenessCheck", - "description": "Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set." + "description": "Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instances" }, "manualScaling": { "$ref": "ManualScaling", @@ -4063,7 +4063,7 @@ }, "readinessCheck": { "$ref": "ReadinessCheck", - "description": "Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set." + "description": "Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation." }, "resources": { "$ref": "Resources", diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index ac15e380e7f..8fc61411965 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -4070,8 +4070,7 @@ type Version struct { // HealthCheck: Configures health checking for instances. Unhealthy // instances are stopped and replaced with new instances. Only - // applicable in the App Engine flexible environment.Only returned in - // GET requests if view=FULL is set. + // applicable in the App Engine flexible environment. HealthCheck *HealthCheck `json:"healthCheck,omitempty"` // Id: Relative name of the version within the service. Example: v1. @@ -4113,8 +4112,7 @@ type Version struct { Libraries []*Library `json:"libraries,omitempty"` // LivenessCheck: Configures liveness health checking for instances. - // Unhealthy instances are stopped and replaced with new instancesOnly - // returned in GET requests if view=FULL is set. + // Unhealthy instances are stopped and replaced with new instances LivenessCheck *LivenessCheck `json:"livenessCheck,omitempty"` // ManualScaling: A service with manual scaling runs continuously, @@ -4137,8 +4135,7 @@ type Version struct { NobuildFilesRegex string `json:"nobuildFilesRegex,omitempty"` // ReadinessCheck: Configures readiness health checking for instances. - // Unhealthy instances are not put into the backend traffic - // rotation.Only returned in GET requests if view=FULL is set. + // Unhealthy instances are not put into the backend traffic rotation. ReadinessCheck *ReadinessCheck `json:"readinessCheck,omitempty"` // Resources: Machine resources for this version. Only applicable in the diff --git a/appengine/v1beta/appengine-api.json b/appengine/v1beta/appengine-api.json index 7efc4fecd6a..01f292eb5bc 100644 --- a/appengine/v1beta/appengine-api.json +++ b/appengine/v1beta/appengine-api.json @@ -1859,7 +1859,7 @@ } } }, - "revision": "20231016", + "revision": "20231107", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -4250,7 +4250,7 @@ }, "healthCheck": { "$ref": "HealthCheck", - "description": "Configures health checking for instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment.Only returned in GET requests if view=FULL is set." + "description": "Configures health checking for instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment." }, "id": { "description": "Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: \"default\", \"latest\", and any name with the prefix \"ah-\".", @@ -4298,7 +4298,7 @@ }, "livenessCheck": { "$ref": "LivenessCheck", - "description": "Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set." + "description": "Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instances" }, "manualScaling": { "$ref": "ManualScaling", @@ -4318,7 +4318,7 @@ }, "readinessCheck": { "$ref": "ReadinessCheck", - "description": "Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set." + "description": "Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation." }, "resources": { "$ref": "Resources", diff --git a/appengine/v1beta/appengine-gen.go b/appengine/v1beta/appengine-gen.go index 0d53dbfaefa..a219035bcbf 100644 --- a/appengine/v1beta/appengine-gen.go +++ b/appengine/v1beta/appengine-gen.go @@ -4201,8 +4201,7 @@ type Version struct { // HealthCheck: Configures health checking for instances. Unhealthy // instances are stopped and replaced with new instances. Only - // applicable in the App Engine flexible environment.Only returned in - // GET requests if view=FULL is set. + // applicable in the App Engine flexible environment. HealthCheck *HealthCheck `json:"healthCheck,omitempty"` // Id: Relative name of the version within the service. Example: v1. @@ -4244,8 +4243,7 @@ type Version struct { Libraries []*Library `json:"libraries,omitempty"` // LivenessCheck: Configures liveness health checking for instances. - // Unhealthy instances are stopped and replaced with new instancesOnly - // returned in GET requests if view=FULL is set. + // Unhealthy instances are stopped and replaced with new instances LivenessCheck *LivenessCheck `json:"livenessCheck,omitempty"` // ManualScaling: A service with manual scaling runs continuously, @@ -4268,8 +4266,7 @@ type Version struct { NobuildFilesRegex string `json:"nobuildFilesRegex,omitempty"` // ReadinessCheck: Configures readiness health checking for instances. - // Unhealthy instances are not put into the backend traffic - // rotation.Only returned in GET requests if view=FULL is set. + // Unhealthy instances are not put into the backend traffic rotation. ReadinessCheck *ReadinessCheck `json:"readinessCheck,omitempty"` // Resources: Machine resources for this version. Only applicable in the diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index 8879ff288c9..a0de84e5dba 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -1040,7 +1040,7 @@ } } }, - "revision": "20230913", + "revision": "20231108", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -2693,6 +2693,25 @@ }, "type": "object" }, + "GoogleChromeManagementV1NetworkBandwidthReport": { + "description": "Network bandwidth report. * Granular permission needed: TELEMETRY_API_NETWORK_REPORT", + "id": "GoogleChromeManagementV1NetworkBandwidthReport", + "properties": { + "downloadSpeedKbps": { + "description": "Output only. Download speed in kilobits per second.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "reportTime": { + "description": "Output only. Timestamp of when the report was collected.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleChromeManagementV1NetworkDevice": { "description": "Details about the network device. * This field provides device information, which is static and will not change over time. * Data for this field is controlled via policy: [ReportNetworkDeviceConfiguration](https://chromeenterprise.google/policies/#ReportNetworkDeviceConfiguration) * Data Collection Frequency: At device startup * Default Data Reporting Frequency: At device startup - Policy Controlled: Yes * Cache: If the device is offline, the collected data is stored locally, and will be reported when the device is next online: Yes * Reported for affiliated users only: N/A", "id": "GoogleChromeManagementV1NetworkDevice", @@ -3678,6 +3697,14 @@ "description": "The unique Directory API ID of the device. This value is the same as the Admin Console's Directory API ID in the ChromeOS Devices tab.", "type": "string" }, + "networkBandwidthReport": { + "description": "Output only. Network bandwidth reports collected periodically sorted in a decreasing order of report_time.", + "items": { + "$ref": "GoogleChromeManagementV1NetworkBandwidthReport" + }, + "readOnly": true, + "type": "array" + }, "peripheralsReport": { "description": "Output only. Peripherals reports collected periodically sorted in a decreasing order of report_time.", "items": { diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index db3e7610771..c7efc8732d6 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -2579,6 +2579,40 @@ func (s *GoogleChromeManagementV1MemoryStatusReport) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleChromeManagementV1NetworkBandwidthReport: Network bandwidth +// report. * Granular permission needed: TELEMETRY_API_NETWORK_REPORT +type GoogleChromeManagementV1NetworkBandwidthReport struct { + // DownloadSpeedKbps: Output only. Download speed in kilobits per + // second. + DownloadSpeedKbps int64 `json:"downloadSpeedKbps,omitempty,string"` + + // ReportTime: Output only. Timestamp of when the report was collected. + ReportTime string `json:"reportTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DownloadSpeedKbps") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DownloadSpeedKbps") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleChromeManagementV1NetworkBandwidthReport) MarshalJSON() ([]byte, error) { + type NoMethod GoogleChromeManagementV1NetworkBandwidthReport + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleChromeManagementV1NetworkDevice: Details about the network // device. * This field provides device information, which is static and // will not change over time. * Data for this field is controlled via @@ -3804,6 +3838,10 @@ type GoogleChromeManagementV1TelemetryUserDevice struct { // Devices tab. DeviceId string `json:"deviceId,omitempty"` + // NetworkBandwidthReport: Output only. Network bandwidth reports + // collected periodically sorted in a decreasing order of report_time. + NetworkBandwidthReport []*GoogleChromeManagementV1NetworkBandwidthReport `json:"networkBandwidthReport,omitempty"` + // PeripheralsReport: Output only. Peripherals reports collected // periodically sorted in a decreasing order of report_time. PeripheralsReport []*GoogleChromeManagementV1PeripheralsReport `json:"peripheralsReport,omitempty"` diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index 0c519b87118..73e79b2e443 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -2319,7 +2319,7 @@ } } }, - "revision": "20231017", + "revision": "20231031", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -4753,13 +4753,15 @@ "REPOSITORY_TYPE_UNSPECIFIED", "GITHUB", "GITHUB_ENTERPRISE", - "GITLAB_ENTERPRISE" + "GITLAB_ENTERPRISE", + "BITBUCKET_DATA_CENTER" ], "enumDescriptions": [ "If unspecified, RepositoryType defaults to GITHUB.", "The SCM repo is GITHUB.", "The SCM repo is GITHUB Enterprise.", - "The SCM repo is GITLAB Enterprise." + "The SCM repo is GITLAB Enterprise.", + "The SCM repo is BITBUCKET Data Center." ], "readOnly": true, "type": "string" diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index 618ba98caae..f221adfeef1 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -4232,6 +4232,7 @@ type RepositoryEventConfig struct { // "GITHUB" - The SCM repo is GITHUB. // "GITHUB_ENTERPRISE" - The SCM repo is GITHUB Enterprise. // "GITLAB_ENTERPRISE" - The SCM repo is GITLAB Enterprise. + // "BITBUCKET_DATA_CENTER" - The SCM repo is BITBUCKET Data Center. RepositoryType string `json:"repositoryType,omitempty"` // ForceSendFields is a list of field names (e.g. "PullRequest") to diff --git a/cloudbuild/v2/cloudbuild-api.json b/cloudbuild/v2/cloudbuild-api.json index eb509ff7d6a..4da6181a23a 100644 --- a/cloudbuild/v2/cloudbuild-api.json +++ b/cloudbuild/v2/cloudbuild-api.json @@ -844,7 +844,7 @@ } } }, - "revision": "20231017", + "revision": "20231031", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "AuditConfig": { @@ -951,6 +951,27 @@ "properties": {}, "type": "object" }, + "Capabilities": { + "description": "Capabilities adds and removes POSIX capabilities from running containers.", + "id": "Capabilities", + "properties": { + "add": { + "description": "Optional. Added capabilities +optional", + "items": { + "type": "string" + }, + "type": "array" + }, + "drop": { + "description": "Optional. Removed capabilities +optional", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ChildStatusReference": { "description": "ChildStatusReference is used to point to the statuses of individual TaskRuns and Runs within this PipelineRun.", "id": "ChildStatusReference", @@ -1110,6 +1131,20 @@ }, "type": "object" }, + "ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", + "id": "ExecAction", + "properties": { + "command": { + "description": "Optional. Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. +optional", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Expr": { "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", "id": "Expr", @@ -2063,6 +2098,22 @@ }, "type": "object" }, + "Probe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "id": "Probe", + "properties": { + "exec": { + "$ref": "ExecAction", + "description": "Optional. Exec specifies the action to take. +optional" + }, + "periodSeconds": { + "description": "Optional. How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "PropertySpec": { "description": "PropertySpec holds information about a property in an object.", "id": "PropertySpec", @@ -2189,9 +2240,31 @@ "description": "Security options the container should be run with.", "id": "SecurityContext", "properties": { + "allowPrivilegeEscalation": { + "description": "Optional. AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. +optional", + "type": "boolean" + }, + "capabilities": { + "$ref": "Capabilities", + "description": "Optional. Adds and removes POSIX capabilities from running containers." + }, "privileged": { "description": "Run container in privileged mode.", "type": "boolean" + }, + "runAsGroup": { + "description": "Optional. The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. +optional", + "format": "int64", + "type": "string" + }, + "runAsNonRoot": { + "description": "Optional. Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional", + "type": "boolean" + }, + "runAsUser": { + "description": "Optional. The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. +optional", + "format": "int64", + "type": "string" } }, "type": "object" @@ -2245,13 +2318,17 @@ "description": "Name of the Sidecar.", "type": "string" }, + "readinessProbe": { + "$ref": "Probe", + "description": "Optional. Periodic probe of Sidecar service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional" + }, "script": { "description": "The contents of an executable file to execute.", "type": "string" }, "securityContext": { "$ref": "SecurityContext", - "description": "Security options the container should be run with." + "description": "Optional. Security options the container should be run with." }, "volumeMounts": { "description": "Pod volumes to mount into the container's filesystem.", @@ -2354,6 +2431,10 @@ "description": "The contents of an executable file to execute.", "type": "string" }, + "securityContext": { + "$ref": "SecurityContext", + "description": "Optional. SecurityContext defines the security options the Step should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ +optional" + }, "timeout": { "description": "Time after which the Step times out. Defaults to never.", "format": "google-duration", @@ -2373,6 +2454,20 @@ }, "type": "object" }, + "StepTemplate": { + "description": "StepTemplate can be used as the basis for all step containers within the Task, so that the steps inherit settings on the base container.", + "id": "StepTemplate", + "properties": { + "env": { + "description": "Optional. List of environment variables to set in the Step. Cannot be updated.", + "items": { + "$ref": "EnvVar" + }, + "type": "array" + } + }, + "type": "object" + }, "TaskRef": { "description": "TaskRef can be used to refer to a specific instance of a task. PipelineRef can be used to refer to a specific instance of a Pipeline.", "id": "TaskRef", @@ -2490,6 +2585,13 @@ }, "type": "array" }, + "stepTemplate": { + "description": "Optional. StepTemplate can be used as the basis for all step containers within the Task, so that the steps inherit settings on the base container.", + "items": { + "$ref": "StepTemplate" + }, + "type": "array" + }, "steps": { "description": "Steps of the task.", "items": { @@ -2700,6 +2802,10 @@ "description": "Name is the name by which you can bind the volume at runtime.", "type": "string" }, + "optional": { + "description": "Optional. Optional marks a Workspace as not being required in TaskRuns. By default this field is false and so declared workspaces are required.", + "type": "boolean" + }, "readOnly": { "description": "ReadOnly dictates whether a mounted volume is writable.", "type": "boolean" diff --git a/cloudbuild/v2/cloudbuild-gen.go b/cloudbuild/v2/cloudbuild-gen.go index 0f49ed03d66..34c7a301fce 100644 --- a/cloudbuild/v2/cloudbuild-gen.go +++ b/cloudbuild/v2/cloudbuild-gen.go @@ -447,6 +447,38 @@ func (s *Binding) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// Capabilities: Capabilities adds and removes POSIX capabilities from +// running containers. +type Capabilities struct { + // Add: Optional. Added capabilities +optional + Add []string `json:"add,omitempty"` + + // Drop: Optional. Removed capabilities +optional + Drop []string `json:"drop,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Add") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Add") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Capabilities) MarshalJSON() ([]byte, error) { + type NoMethod Capabilities + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ChildStatusReference: ChildStatusReference is used to point to the // statuses of individual TaskRuns and Runs within this PipelineRun. type ChildStatusReference struct { @@ -682,6 +714,40 @@ func (s *EnvVar) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ExecAction: ExecAction describes a "run in container" action. +type ExecAction struct { + // Command: Optional. Command is the command line to execute inside the + // container, the working directory for the command is root ('/') in the + // container's filesystem. The command is simply exec'd, it is not run + // inside a shell, so traditional shell instructions ('|', etc) won't + // work. To use a shell, you need to explicitly call out to that shell. + // Exit status of 0 is treated as live/healthy and non-zero is + // unhealthy. +optional + Command []string `json:"command,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Command") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Command") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ExecAction) MarshalJSON() ([]byte, error) { + type NoMethod ExecAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Expr: Represents a textual expression in the Common Expression // Language (CEL) syntax. CEL is a C-like expression language. The // syntax and semantics of CEL are documented at @@ -2136,6 +2202,40 @@ func (s *Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Probe: Probe describes a health check to be performed against a +// container to determine whether it is alive or ready to receive +// traffic. +type Probe struct { + // Exec: Optional. Exec specifies the action to take. +optional + Exec *ExecAction `json:"exec,omitempty"` + + // PeriodSeconds: Optional. How often (in seconds) to perform the probe. + // Default to 10 seconds. Minimum value is 1. +optional + PeriodSeconds int64 `json:"periodSeconds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Exec") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Exec") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Probe) MarshalJSON() ([]byte, error) { + type NoMethod Probe + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PropertySpec: PropertySpec holds information about a property in an // object. type PropertySpec struct { @@ -2311,23 +2411,62 @@ func (s *SecretVolumeSource) MarshalJSON() ([]byte, error) { // SecurityContext: Security options the container should be run with. type SecurityContext struct { + // AllowPrivilegeEscalation: Optional. AllowPrivilegeEscalation controls + // whether a process can gain more privileges than its parent process. + // This bool directly controls if the no_new_privs flag will be set on + // the container process. AllowPrivilegeEscalation is true always when + // the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that + // this field cannot be set when spec.os.name is windows. +optional + AllowPrivilegeEscalation bool `json:"allowPrivilegeEscalation,omitempty"` + + // Capabilities: Optional. Adds and removes POSIX capabilities from + // running containers. + Capabilities *Capabilities `json:"capabilities,omitempty"` + // Privileged: Run container in privileged mode. Privileged bool `json:"privileged,omitempty"` - // ForceSendFields is a list of field names (e.g. "Privileged") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // RunAsGroup: Optional. The GID to run the entrypoint of the container + // process. Uses runtime default if unset. May also be set in + // PodSecurityContext. If set in both SecurityContext and + // PodSecurityContext, the value specified in SecurityContext takes + // precedence. Note that this field cannot be set when spec.os.name is + // windows. +optional + RunAsGroup int64 `json:"runAsGroup,omitempty,string"` + + // RunAsNonRoot: Optional. Indicates that the container must run as a + // non-root user. If true, the Kubelet will validate the image at + // runtime to ensure that it does not run as UID 0 (root) and fail to + // start the container if it does. If unset or false, no such validation + // will be performed. May also be set in PodSecurityContext. If set in + // both SecurityContext and PodSecurityContext, the value specified in + // SecurityContext takes precedence. +optional + RunAsNonRoot bool `json:"runAsNonRoot,omitempty"` + + // RunAsUser: Optional. The UID to run the entrypoint of the container + // process. Defaults to user specified in image metadata if unspecified. + // May also be set in PodSecurityContext. If set in both SecurityContext + // and PodSecurityContext, the value specified in SecurityContext takes + // precedence. Note that this field cannot be set when spec.os.name is + // windows. +optional + RunAsUser int64 `json:"runAsUser,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. + // "AllowPrivilegeEscalation") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Privileged") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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. "AllowPrivilegeEscalation") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2391,10 +2530,18 @@ type Sidecar struct { // Name: Name of the Sidecar. Name string `json:"name,omitempty"` + // ReadinessProbe: Optional. Periodic probe of Sidecar service + // readiness. Container will be removed from service endpoints if the + // probe fails. Cannot be updated. More info: + // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + // +optional + ReadinessProbe *Probe `json:"readinessProbe,omitempty"` + // Script: The contents of an executable file to execute. Script string `json:"script,omitempty"` - // SecurityContext: Security options the container should be run with. + // SecurityContext: Optional. Security options the container should be + // run with. SecurityContext *SecurityContext `json:"securityContext,omitempty"` // VolumeMounts: Pod volumes to mount into the container's filesystem. @@ -2528,6 +2675,14 @@ type Step struct { // Script: The contents of an executable file to execute. Script string `json:"script,omitempty"` + // SecurityContext: Optional. SecurityContext defines the security + // options the Step should be run with. If set, the fields of + // SecurityContext override the equivalent fields of PodSecurityContext. + // More info: + // https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + // +optional + SecurityContext *SecurityContext `json:"securityContext,omitempty"` + // Timeout: Time after which the Step times out. Defaults to never. Timeout string `json:"timeout,omitempty"` @@ -2560,6 +2715,37 @@ func (s *Step) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// StepTemplate: StepTemplate can be used as the basis for all step +// containers within the Task, so that the steps inherit settings on the +// base container. +type StepTemplate struct { + // Env: Optional. List of environment variables to set in the Step. + // Cannot be updated. + Env []*EnvVar `json:"env,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Env") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Env") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StepTemplate) MarshalJSON() ([]byte, error) { + type NoMethod StepTemplate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // TaskRef: TaskRef can be used to refer to a specific instance of a // task. PipelineRef can be used to refer to a specific instance of a // Pipeline. @@ -2677,6 +2863,11 @@ type TaskSpec struct { // Sidecars: Sidecars that run alongside the Task's step containers. Sidecars []*Sidecar `json:"sidecars,omitempty"` + // StepTemplate: Optional. StepTemplate can be used as the basis for all + // step containers within the Task, so that the steps inherit settings + // on the base container. + StepTemplate []*StepTemplate `json:"stepTemplate,omitempty"` + // Steps: Steps of the task. Steps []*Step `json:"steps,omitempty"` @@ -3052,6 +3243,11 @@ type WorkspaceDeclaration struct { // Name: Name is the name by which you can bind the volume at runtime. Name string `json:"name,omitempty"` + // Optional: Optional. Optional marks a Workspace as not being required + // in TaskRuns. By default this field is false and so declared + // workspaces are required. + Optional bool `json:"optional,omitempty"` + // ReadOnly: ReadOnly dictates whether a mounted volume is writable. ReadOnly bool `json:"readOnly,omitempty"` diff --git a/fitness/v1/fitness-api.json b/fitness/v1/fitness-api.json index ada59dcf13a..8433c3ed142 100644 --- a/fitness/v1/fitness-api.json +++ b/fitness/v1/fitness-api.json @@ -77,6 +77,7 @@ "description": "The Fitness API for managing users' fitness tracking data.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/fit/rest/v1/get-started", + "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", "x32": "http://www.google.com/images/icons/product/search-32.gif" @@ -831,7 +832,7 @@ } } }, - "revision": "20230703", + "revision": "20231107", "rootUrl": "https://fitness.googleapis.com/", "schemas": { "AggregateBucket": { diff --git a/manufacturers/v1/manufacturers-api.json b/manufacturers/v1/manufacturers-api.json index 3e3a98c9057..d9a107b5192 100644 --- a/manufacturers/v1/manufacturers-api.json +++ b/manufacturers/v1/manufacturers-api.json @@ -416,7 +416,7 @@ } } }, - "revision": "20230831", + "revision": "20231109", "rootUrl": "https://manufacturers.googleapis.com/", "schemas": { "Attributes": { @@ -442,6 +442,13 @@ "$ref": "Capacity", "description": "The capacity of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#capacity." }, + "certification": { + "description": "Optional. List of certifications claimed by this product.", + "items": { + "$ref": "GoogleShoppingManufacturersV1ProductCertification" + }, + "type": "array" + }, "color": { "description": "The color of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#color.", "type": "string" @@ -754,6 +761,25 @@ }, "type": "object" }, + "GoogleShoppingManufacturersV1ProductCertification": { + "description": "Description of a certification.", + "id": "GoogleShoppingManufacturersV1ProductCertification", + "properties": { + "authority": { + "description": "Required. Name of the certification body.", + "type": "string" + }, + "code": { + "description": "Required. A unique code to identify the certification.", + "type": "string" + }, + "name": { + "description": "Required. Name of the certification.", + "type": "string" + } + }, + "type": "object" + }, "Grocery": { "id": "Grocery", "properties": { diff --git a/manufacturers/v1/manufacturers-gen.go b/manufacturers/v1/manufacturers-gen.go index 0705493f044..8cddf035254 100644 --- a/manufacturers/v1/manufacturers-gen.go +++ b/manufacturers/v1/manufacturers-gen.go @@ -215,6 +215,10 @@ type Attributes struct { // https://support.google.com/manufacturers/answer/6124116#capacity. Capacity *Capacity `json:"capacity,omitempty"` + // Certification: Optional. List of certifications claimed by this + // product. + Certification []*GoogleShoppingManufacturersV1ProductCertification `json:"certification,omitempty"` + // Color: The color of the product. For more information, see // https://support.google.com/manufacturers/answer/6124116#color. Color string `json:"color,omitempty"` @@ -639,6 +643,41 @@ func (s *FloatUnit) UnmarshalJSON(data []byte) error { return nil } +// GoogleShoppingManufacturersV1ProductCertification: Description of a +// certification. +type GoogleShoppingManufacturersV1ProductCertification struct { + // Authority: Required. Name of the certification body. + Authority string `json:"authority,omitempty"` + + // Code: Required. A unique code to identify the certification. + Code string `json:"code,omitempty"` + + // Name: Required. Name of the certification. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Authority") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Authority") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleShoppingManufacturersV1ProductCertification) MarshalJSON() ([]byte, error) { + type NoMethod GoogleShoppingManufacturersV1ProductCertification + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type Grocery struct { // ActiveIngredients: Active ingredients. ActiveIngredients string `json:"activeIngredients,omitempty"` diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index 845d6822946..98ee6adc906 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -1573,7 +1573,7 @@ } } }, - "revision": "20231019", + "revision": "20231104", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -1951,6 +1951,10 @@ "type": "string" }, "type": "array" + }, + "enforceInTransit": { + "description": "Optional. If true, `allowed_persistence_regions` is also used to enforce in-transit guarantees for messages. That is, Pub/Sub will fail Publish operations on this topic and subscribe operations on any subscription attached to this topic in any region that is not in `allowed_persistence_regions`.", + "type": "boolean" } }, "type": "object" diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index a84d8102701..dc3518ba724 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -1044,6 +1044,13 @@ type MessageStoragePolicy struct { // configuration. AllowedPersistenceRegions []string `json:"allowedPersistenceRegions,omitempty"` + // EnforceInTransit: Optional. If true, `allowed_persistence_regions` is + // also used to enforce in-transit guarantees for messages. That is, + // Pub/Sub will fail Publish operations on this topic and subscribe + // operations on any subscription attached to this topic in any region + // that is not in `allowed_persistence_regions`. + EnforceInTransit bool `json:"enforceInTransit,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AllowedPersistenceRegions") to unconditionally include in API // requests. By default, fields with empty or default values are omitted