From 260fc1ef78c67de11cc5d654fcbe08edd8c01843 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Feb 2024 00:22:16 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2417) --- appengine/v1/appengine-api.json | 9 +- appengine/v1/appengine-gen.go | 4 + appengine/v1beta/appengine-api.json | 9 +- appengine/v1beta/appengine-gen.go | 4 + .../v1/blockchainnodeengine-api.json | 6 +- .../v1/blockchainnodeengine-gen.go | 31 +- cloudbuild/v2/cloudbuild-api.json | 76 +- cloudbuild/v2/cloudbuild-gen.go | 125 +- cloudfunctions/v1/cloudfunctions-api.json | 16 +- cloudfunctions/v1/cloudfunctions-gen.go | 34 +- cloudfunctions/v2/cloudfunctions-api.json | 16 +- cloudfunctions/v2/cloudfunctions-gen.go | 33 +- .../v2alpha/cloudfunctions-api.json | 16 +- cloudfunctions/v2alpha/cloudfunctions-gen.go | 33 +- cloudfunctions/v2beta/cloudfunctions-api.json | 16 +- cloudfunctions/v2beta/cloudfunctions-gen.go | 33 +- .../v1/contactcenterinsights-api.json | 4 +- .../v1/contactcenterinsights-gen.go | 11 +- dataproc/v1/dataproc-api.json | 134 +- dataproc/v1/dataproc-gen.go | 277 ++- datastore/v1/datastore-api.json | 21 +- datastore/v1/datastore-gen.go | 42 + datastore/v1beta3/datastore-api.json | 21 +- datastore/v1beta3/datastore-gen.go | 57 +- .../v2/deploymentmanager-api.json | 4 +- deploymentmanager/v2/deploymentmanager-gen.go | 6 +- .../v2beta/deploymentmanager-api.json | 4 +- .../v2beta/deploymentmanager-gen.go | 6 +- firestore/v1/firestore-api.json | 44 +- firestore/v1/firestore-gen.go | 101 +- firestore/v1beta1/firestore-api.json | 21 +- firestore/v1beta1/firestore-gen.go | 50 +- pubsub/v1/pubsub-api.json | 12 +- pubsub/v1/pubsub-gen.go | 20 +- retail/v2/retail-api.json | 23 +- retail/v2/retail-gen.go | 36 +- retail/v2alpha/retail-api.json | 23 +- retail/v2alpha/retail-gen.go | 36 +- retail/v2beta/retail-api.json | 23 +- retail/v2beta/retail-gen.go | 36 +- run/v2/run-api.json | 8 +- run/v2/run-gen.go | 6 +- safebrowsing/v5/safebrowsing-api.json | 16 +- safebrowsing/v5/safebrowsing-gen.go | 60 +- storage/v1/storage-api.json | 21 +- storage/v1/storage-gen.go | 25 +- trafficdirector/v3/trafficdirector-api.json | 6 +- trafficdirector/v3/trafficdirector-gen.go | 22 +- walletobjects/v1/walletobjects-api.json | 128 +- walletobjects/v1/walletobjects-gen.go | 368 +-- workloadmanager/v1/workloadmanager-api.json | 789 +++++- workloadmanager/v1/workloadmanager-gen.go | 2188 ++++++++++++++--- youtube/v3/youtube-api.json | 92 +- youtube/v3/youtube-gen.go | 152 +- 54 files changed, 4248 insertions(+), 1106 deletions(-) diff --git a/appengine/v1/appengine-api.json b/appengine/v1/appengine-api.json index 576292525f2..b9122b22c24 100644 --- a/appengine/v1/appengine-api.json +++ b/appengine/v1/appengine-api.json @@ -1651,7 +1651,7 @@ } } }, - "revision": "20231107", + "revision": "20240212", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -3570,6 +3570,13 @@ ], "type": "string" }, + "supportedOperatingSystems": { + "description": "Supported operating systems for the runtime, e.g., 'ubuntu22', etc.", + "items": { + "type": "string" + }, + "type": "array" + }, "warnings": { "description": "Warning messages, e.g., a deprecation warning.", "items": { diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index 7eb0d667da7..94a45e831ab 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -3432,6 +3432,10 @@ type Runtime struct { // "END_OF_SUPPORT" - The runtime is end of support. Stage string `json:"stage,omitempty"` + // SupportedOperatingSystems: Supported operating systems for the + // runtime, e.g., 'ubuntu22', etc. + SupportedOperatingSystems []string `json:"supportedOperatingSystems,omitempty"` + // Warnings: Warning messages, e.g., a deprecation warning. Warnings []string `json:"warnings,omitempty"` diff --git a/appengine/v1beta/appengine-api.json b/appengine/v1beta/appengine-api.json index 01f292eb5bc..a3c89fdfcbd 100644 --- a/appengine/v1beta/appengine-api.json +++ b/appengine/v1beta/appengine-api.json @@ -1859,7 +1859,7 @@ } } }, - "revision": "20231107", + "revision": "20240212", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -3827,6 +3827,13 @@ ], "type": "string" }, + "supportedOperatingSystems": { + "description": "Supported operating systems for the runtime, e.g., 'ubuntu22', etc.", + "items": { + "type": "string" + }, + "type": "array" + }, "warnings": { "description": "Warning messages, e.g., a deprecation warning.", "items": { diff --git a/appengine/v1beta/appengine-gen.go b/appengine/v1beta/appengine-gen.go index 1959931ed8c..99c0be8e465 100644 --- a/appengine/v1beta/appengine-gen.go +++ b/appengine/v1beta/appengine-gen.go @@ -3564,6 +3564,10 @@ type Runtime struct { // "END_OF_SUPPORT" - The runtime is end of support. Stage string `json:"stage,omitempty"` + // SupportedOperatingSystems: Supported operating systems for the + // runtime, e.g., 'ubuntu22', etc. + SupportedOperatingSystems []string `json:"supportedOperatingSystems,omitempty"` + // Warnings: Warning messages, e.g., a deprecation warning. Warnings []string `json:"warnings,omitempty"` diff --git a/blockchainnodeengine/v1/blockchainnodeengine-api.json b/blockchainnodeengine/v1/blockchainnodeengine-api.json index 5796d39ed44..fc971e35591 100644 --- a/blockchainnodeengine/v1/blockchainnodeengine-api.json +++ b/blockchainnodeengine/v1/blockchainnodeengine-api.json @@ -487,7 +487,7 @@ } } }, - "revision": "20240124", + "revision": "20240207", "rootUrl": "https://blockchainnodeengine.googleapis.com/", "schemas": { "BlockchainNode": { @@ -960,6 +960,10 @@ "description": "Configuration for validator-related parameters on the beacon client, and for any GCP-managed validator client.", "id": "ValidatorConfig", "properties": { + "beaconFeeRecipient": { + "description": "An Ethereum address which the beacon client will send fee rewards to if no recipient is configured in the validator client. See https://lighthouse-book.sigmaprime.io/suggested-fee-recipient.html or https://docs.prylabs.network/docs/execution-node/fee-recipient for examples of how this is used. Note that while this is often described as \"suggested\", as we run the execution node we can trust the execution node, and therefore this is considered enforced.", + "type": "string" + }, "managedValidatorClient": { "description": "Immutable. When true, deploys a GCP-managed validator client alongside the beacon client.", "type": "boolean" diff --git a/blockchainnodeengine/v1/blockchainnodeengine-gen.go b/blockchainnodeengine/v1/blockchainnodeengine-gen.go index e743ee5c576..ecc6040b980 100644 --- a/blockchainnodeengine/v1/blockchainnodeengine-gen.go +++ b/blockchainnodeengine/v1/blockchainnodeengine-gen.go @@ -888,6 +888,16 @@ func (s *Status) MarshalJSON() ([]byte, error) { // ValidatorConfig: Configuration for validator-related parameters on // the beacon client, and for any GCP-managed validator client. type ValidatorConfig struct { + // BeaconFeeRecipient: An Ethereum address which the beacon client will + // send fee rewards to if no recipient is configured in the validator + // client. See + // https://lighthouse-book.sigmaprime.io/suggested-fee-recipient.html or + // https://docs.prylabs.network/docs/execution-node/fee-recipient for + // examples of how this is used. Note that while this is often described + // as "suggested", as we run the execution node we can trust the + // execution node, and therefore this is considered enforced. + BeaconFeeRecipient string `json:"beaconFeeRecipient,omitempty"` + // ManagedValidatorClient: Immutable. When true, deploys a GCP-managed // validator client alongside the beacon client. ManagedValidatorClient bool `json:"managedValidatorClient,omitempty"` @@ -897,19 +907,18 @@ type ValidatorConfig struct { // client. MevRelayUrls []string `json:"mevRelayUrls,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ManagedValidatorClient") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent 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. "BeaconFeeRecipient") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ManagedValidatorClient") - // to include in API requests with the JSON null value. By default, - // 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. "BeaconFeeRecipient") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. diff --git a/cloudbuild/v2/cloudbuild-api.json b/cloudbuild/v2/cloudbuild-api.json index c66f1783887..90190643765 100644 --- a/cloudbuild/v2/cloudbuild-api.json +++ b/cloudbuild/v2/cloudbuild-api.json @@ -844,7 +844,7 @@ } } }, - "revision": "20240130", + "revision": "20240207", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "AuditConfig": { @@ -945,6 +945,65 @@ }, "type": "object" }, + "BitbucketCloudConfig": { + "description": "Configuration for connections to Bitbucket Cloud.", + "id": "BitbucketCloudConfig", + "properties": { + "authorizerCredential": { + "$ref": "UserCredential", + "description": "Required. An access token with the `webhook`, `repository`, `repository:admin` and `pullrequest` scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials." + }, + "readAuthorizerCredential": { + "$ref": "UserCredential", + "description": "Required. An access token with the `repository` access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials." + }, + "webhookSecretSecretVersion": { + "description": "Required. SecretManager resource containing the webhook secret used to verify webhook events, formatted as `projects/*/secrets/*/versions/*`.", + "type": "string" + }, + "workspace": { + "description": "Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.", + "type": "string" + } + }, + "type": "object" + }, + "BitbucketDataCenterConfig": { + "description": "Configuration for connections to Bitbucket Data Center.", + "id": "BitbucketDataCenterConfig", + "properties": { + "authorizerCredential": { + "$ref": "UserCredential", + "description": "Required. A http access token with the `REPO_ADMIN` scope access." + }, + "hostUri": { + "description": "Required. The URI of the Bitbucket Data Center instance or cluster this connection is for.", + "type": "string" + }, + "readAuthorizerCredential": { + "$ref": "UserCredential", + "description": "Required. A http access token with the `REPO_READ` access." + }, + "serverVersion": { + "description": "Output only. Version of the Bitbucket Data Center running on the `host_uri`.", + "readOnly": true, + "type": "string" + }, + "serviceDirectoryConfig": { + "$ref": "GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig", + "description": "Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet." + }, + "sslCa": { + "description": "Optional. SSL certificate to use for requests to the Bitbucket Data Center.", + "type": "string" + }, + "webhookSecretSecretVersion": { + "description": "Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as `projects/*/secrets/*/versions/*`.", + "type": "string" + } + }, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", @@ -1008,7 +1067,7 @@ "type": "object" }, "Connection": { - "description": "A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Data Center or GitLab.", + "description": "A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Data Center, Bitbucket Cloud or GitLab.", "id": "Connection", "properties": { "annotations": { @@ -1018,6 +1077,14 @@ "description": "Allows clients to store small amounts of arbitrary data.", "type": "object" }, + "bitbucketCloudConfig": { + "$ref": "BitbucketCloudConfig", + "description": "Configuration for connections to Bitbucket Cloud." + }, + "bitbucketDataCenterConfig": { + "$ref": "BitbucketDataCenterConfig", + "description": "Configuration for connections to Bitbucket Data Center." + }, "createTime": { "description": "Output only. Server assigned timestamp for when the connection was created.", "format": "google-datetime", @@ -1911,6 +1978,11 @@ "$ref": "Provenance", "description": "Optional. Provenance configuration." }, + "record": { + "description": "Output only. The `Record` of this `PipelineRun`. Format: `projects/{project}/locations/{location}/results/{result_id}/records/{record_id}`", + "readOnly": true, + "type": "string" + }, "resolvedPipelineSpec": { "$ref": "PipelineSpec", "description": "Output only. The exact PipelineSpec used to instantiate the run.", diff --git a/cloudbuild/v2/cloudbuild-gen.go b/cloudbuild/v2/cloudbuild-gen.go index 4f7e80f9ce6..4f87fc6ccf7 100644 --- a/cloudbuild/v2/cloudbuild-gen.go +++ b/cloudbuild/v2/cloudbuild-gen.go @@ -478,6 +478,116 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BitbucketCloudConfig: Configuration for connections to Bitbucket +// Cloud. +type BitbucketCloudConfig struct { + // AuthorizerCredential: Required. An access token with the `webhook`, + // `repository`, `repository:admin` and `pullrequest` scope access. It + // can be either a workspace, project or repository access token. It's + // recommended to use a system account to generate these credentials. + AuthorizerCredential *UserCredential `json:"authorizerCredential,omitempty"` + + // ReadAuthorizerCredential: Required. An access token with the + // `repository` access. It can be either a workspace, project or + // repository access token. It's recommended to use a system account to + // generate the credentials. + ReadAuthorizerCredential *UserCredential `json:"readAuthorizerCredential,omitempty"` + + // WebhookSecretSecretVersion: Required. SecretManager resource + // containing the webhook secret used to verify webhook events, + // formatted as `projects/*/secrets/*/versions/*`. + WebhookSecretSecretVersion string `json:"webhookSecretSecretVersion,omitempty"` + + // Workspace: Required. The Bitbucket Cloud Workspace ID to be connected + // to Google Cloud Platform. + Workspace string `json:"workspace,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AuthorizerCredential") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthorizerCredential") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *BitbucketCloudConfig) MarshalJSON() ([]byte, error) { + type NoMethod BitbucketCloudConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// BitbucketDataCenterConfig: Configuration for connections to Bitbucket +// Data Center. +type BitbucketDataCenterConfig struct { + // AuthorizerCredential: Required. A http access token with the + // `REPO_ADMIN` scope access. + AuthorizerCredential *UserCredential `json:"authorizerCredential,omitempty"` + + // HostUri: Required. The URI of the Bitbucket Data Center instance or + // cluster this connection is for. + HostUri string `json:"hostUri,omitempty"` + + // ReadAuthorizerCredential: Required. A http access token with the + // `REPO_READ` access. + ReadAuthorizerCredential *UserCredential `json:"readAuthorizerCredential,omitempty"` + + // ServerVersion: Output only. Version of the Bitbucket Data Center + // running on the `host_uri`. + ServerVersion string `json:"serverVersion,omitempty"` + + // ServiceDirectoryConfig: Optional. Configuration for using Service + // Directory to privately connect to a Bitbucket Data Center. This + // should only be set if the Bitbucket Data Center is hosted on-premises + // and not reachable by public internet. If this field is left empty, + // calls to the Bitbucket Data Center will be made over the public + // internet. + ServiceDirectoryConfig *GoogleDevtoolsCloudbuildV2ServiceDirectoryConfig `json:"serviceDirectoryConfig,omitempty"` + + // SslCa: Optional. SSL certificate to use for requests to the Bitbucket + // Data Center. + SslCa string `json:"sslCa,omitempty"` + + // WebhookSecretSecretVersion: Required. Immutable. SecretManager + // resource containing the webhook secret used to verify webhook events, + // formatted as `projects/*/secrets/*/versions/*`. + WebhookSecretSecretVersion string `json:"webhookSecretSecretVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AuthorizerCredential") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AuthorizerCredential") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *BitbucketDataCenterConfig) MarshalJSON() ([]byte, error) { + type NoMethod BitbucketDataCenterConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CancelOperationRequest: The request message for // Operations.CancelOperation. type CancelOperationRequest struct { @@ -560,11 +670,19 @@ func (s *ChildStatusReference) MarshalJSON() ([]byte, error) { } // Connection: A connection to a SCM like GitHub, GitHub Enterprise, -// Bitbucket Data Center or GitLab. +// Bitbucket Data Center, Bitbucket Cloud or GitLab. type Connection struct { // Annotations: Allows clients to store small amounts of arbitrary data. Annotations map[string]string `json:"annotations,omitempty"` + // BitbucketCloudConfig: Configuration for connections to Bitbucket + // Cloud. + BitbucketCloudConfig *BitbucketCloudConfig `json:"bitbucketCloudConfig,omitempty"` + + // BitbucketDataCenterConfig: Configuration for connections to Bitbucket + // Data Center. + BitbucketDataCenterConfig *BitbucketDataCenterConfig `json:"bitbucketDataCenterConfig,omitempty"` + // CreateTime: Output only. Server assigned timestamp for when the // connection was created. CreateTime string `json:"createTime,omitempty"` @@ -1938,6 +2056,11 @@ type PipelineRun struct { // Provenance: Optional. Provenance configuration. Provenance *Provenance `json:"provenance,omitempty"` + // Record: Output only. The `Record` of this `PipelineRun`. Format: + // `projects/{project}/locations/{location}/results/{result_id}/records/{ + // record_id}` + Record string `json:"record,omitempty"` + // ResolvedPipelineSpec: Output only. The exact PipelineSpec used to // instantiate the run. ResolvedPipelineSpec *PipelineSpec `json:"resolvedPipelineSpec,omitempty"` diff --git a/cloudfunctions/v1/cloudfunctions-api.json b/cloudfunctions/v1/cloudfunctions-api.json index 2efa379967f..6b426a3259a 100644 --- a/cloudfunctions/v1/cloudfunctions-api.json +++ b/cloudfunctions/v1/cloudfunctions-api.json @@ -140,23 +140,23 @@ "parameterOrder": [], "parameters": { "filter": { - "description": "Required. A filter for matching the requested operations. The supported formats of *filter* are: To query for a specific function: project:*,location:*,function:* To query for all of the latest operations for a project: project:*,latest:true", + "description": "The standard list filter.", "location": "query", "type": "string" }, "name": { - "description": "Must not be set.", + "description": "The name of the operation's parent resource.", "location": "query", "type": "string" }, "pageSize": { - "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set, the default page size is 100. Pagination is only supported when querying for a specific function.", + "description": "The standard list page size.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Token identifying which result to start with, which is returned by a previous list call. Pagination is only supported when querying for a specific function.", + "description": "The standard list page token.", "location": "query", "type": "string" } @@ -552,7 +552,7 @@ } } }, - "revision": "20240205", + "revision": "20240207", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -666,8 +666,7 @@ "id": "CloudFunction", "properties": { "automaticUpdatePolicy": { - "$ref": "AutomaticUpdatePolicy", - "description": "See the comment next to this message for more details." + "$ref": "AutomaticUpdatePolicy" }, "availableMemoryMb": { "description": "The amount of memory in MB available for a function. Defaults to 256MB.", @@ -787,8 +786,7 @@ "type": "string" }, "onDeployUpdatePolicy": { - "$ref": "OnDeployUpdatePolicy", - "description": "See the comment next to this message for more details." + "$ref": "OnDeployUpdatePolicy" }, "runtime": { "description": "The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).", diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index 8d0eefb9479..df069fc1b2e 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -485,8 +485,6 @@ func (s *CallFunctionResponse) MarshalJSON() ([]byte, error) { // computation executed in response to an event. It encapsulate function // and triggers configurations. type CloudFunction struct { - // AutomaticUpdatePolicy: See the comment next to this message for more - // details. AutomaticUpdatePolicy *AutomaticUpdatePolicy `json:"automaticUpdatePolicy,omitempty"` // AvailableMemoryMb: The amount of memory in MB available for a @@ -632,8 +630,6 @@ type CloudFunction struct { // Network: Deprecated: use vpc_connector Network string `json:"network,omitempty"` - // OnDeployUpdatePolicy: See the comment next to this message for more - // details. OnDeployUpdatePolicy *OnDeployUpdatePolicy `json:"onDeployUpdatePolicy,omitempty"` // Runtime: The runtime in which to run the function. Required when @@ -2643,35 +2639,29 @@ func (r *OperationsService) List() *OperationsListCall { return c } -// Filter sets the optional parameter "filter": Required. A filter for -// matching the requested operations. The supported formats of *filter* -// are: To query for a specific function: -// project:*,location:*,function:* To query for all of the latest -// operations for a project: project:*,latest:true +// Filter sets the optional parameter "filter": The standard list +// filter. func (c *OperationsListCall) Filter(filter string) *OperationsListCall { c.urlParams_.Set("filter", filter) return c } -// Name sets the optional parameter "name": Must not be set. +// Name sets the optional parameter "name": The name of the operation's +// parent resource. func (c *OperationsListCall) Name(name string) *OperationsListCall { c.urlParams_.Set("name", name) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of records that should be returned. Requested page size cannot exceed -// 100. If not set, the default page size is 100. Pagination is only -// supported when querying for a specific function. +// PageSize sets the optional parameter "pageSize": The standard list +// page size. func (c *OperationsListCall) PageSize(pageSize int64) *OperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token identifying -// which result to start with, which is returned by a previous list -// call. Pagination is only supported when querying for a specific -// function. +// PageToken sets the optional parameter "pageToken": The standard list +// page token. func (c *OperationsListCall) PageToken(pageToken string) *OperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -2780,23 +2770,23 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe // "parameterOrder": [], // "parameters": { // "filter": { - // "description": "Required. A filter for matching the requested operations. The supported formats of *filter* are: To query for a specific function: project:*,location:*,function:* To query for all of the latest operations for a project: project:*,latest:true", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, // "name": { - // "description": "Must not be set.", + // "description": "The name of the operation's parent resource.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set, the default page size is 100. Pagination is only supported when querying for a specific function.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Token identifying which result to start with, which is returned by a previous list call. Pagination is only supported when querying for a specific function.", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index e3024c557d3..3b35e6f2c94 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -639,25 +639,25 @@ ], "parameters": { "filter": { - "description": "Required. A filter for matching the requested operations. The supported formats of *filter* are: To query for a specific function: project:*,location:*,function:* To query for all of the latest operations for a project: project:*,latest:true", + "description": "The standard list filter.", "location": "query", "type": "string" }, "name": { - "description": "Must not be set.", + "description": "The name of the operation's parent resource.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, "pageSize": { - "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set, the default page size is 100. Pagination is only supported when querying for a specific function.", + "description": "The standard list page size.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Token identifying which result to start with, which is returned by a previous list call. Pagination is only supported when querying for a specific function.", + "description": "The standard list page token.", "location": "query", "type": "string" } @@ -711,7 +711,7 @@ } } }, - "revision": "20240205", + "revision": "20240207", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -801,8 +801,7 @@ "id": "BuildConfig", "properties": { "automaticUpdatePolicy": { - "$ref": "AutomaticUpdatePolicy", - "description": "See the comment next to this message for more details." + "$ref": "AutomaticUpdatePolicy" }, "build": { "description": "Output only. The Cloud Build name of the latest successful deployment of the function.", @@ -839,8 +838,7 @@ "type": "object" }, "onDeployUpdatePolicy": { - "$ref": "OnDeployUpdatePolicy", - "description": "See the comment next to this message for more details." + "$ref": "OnDeployUpdatePolicy" }, "runtime": { "description": "The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).", diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index a0878043dcf..4150d91e139 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -432,8 +432,6 @@ func (s *Binding) MarshalJSON() ([]byte, error) { // BuildConfig: Describes the Build step of the function that builds a // container from the given source. type BuildConfig struct { - // AutomaticUpdatePolicy: See the comment next to this message for more - // details. AutomaticUpdatePolicy *AutomaticUpdatePolicy `json:"automaticUpdatePolicy,omitempty"` // Build: Output only. The Cloud Build name of the latest successful @@ -482,8 +480,6 @@ type BuildConfig struct { // for the function EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"` - // OnDeployUpdatePolicy: See the comment next to this message for more - // details. OnDeployUpdatePolicy *OnDeployUpdatePolicy `json:"onDeployUpdatePolicy,omitempty"` // Runtime: The runtime in which to run the function. Required when @@ -5551,36 +5547,29 @@ type ProjectsLocationsOperationsListCall struct { // request. If the server doesn't support this method, it returns // `UNIMPLEMENTED`. // -// - name: Must not be set. +// - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": Required. A filter for -// matching the requested operations. The supported formats of *filter* -// are: To query for a specific function: -// project:*,location:*,function:* To query for all of the latest -// operations for a project: project:*,latest:true +// Filter sets the optional parameter "filter": The standard list +// filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of records that should be returned. Requested page size cannot exceed -// 100. If not set, the default page size is 100. Pagination is only -// supported when querying for a specific function. +// PageSize sets the optional parameter "pageSize": The standard list +// page size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token identifying -// which result to start with, which is returned by a previous list -// call. Pagination is only supported when querying for a specific -// function. +// PageToken sets the optional parameter "pageToken": The standard list +// page token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -5694,25 +5683,25 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "filter": { - // "description": "Required. A filter for matching the requested operations. The supported formats of *filter* are: To query for a specific function: project:*,location:*,function:* To query for all of the latest operations for a project: project:*,latest:true", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, // "name": { - // "description": "Must not be set.", + // "description": "The name of the operation's parent resource.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set, the default page size is 100. Pagination is only supported when querying for a specific function.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Token identifying which result to start with, which is returned by a previous list call. Pagination is only supported when querying for a specific function.", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 3062b20fff0..bcd6b8f9b2e 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -639,25 +639,25 @@ ], "parameters": { "filter": { - "description": "Required. A filter for matching the requested operations. The supported formats of *filter* are: To query for a specific function: project:*,location:*,function:* To query for all of the latest operations for a project: project:*,latest:true", + "description": "The standard list filter.", "location": "query", "type": "string" }, "name": { - "description": "Must not be set.", + "description": "The name of the operation's parent resource.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, "pageSize": { - "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set, the default page size is 100. Pagination is only supported when querying for a specific function.", + "description": "The standard list page size.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Token identifying which result to start with, which is returned by a previous list call. Pagination is only supported when querying for a specific function.", + "description": "The standard list page token.", "location": "query", "type": "string" } @@ -711,7 +711,7 @@ } } }, - "revision": "20240205", + "revision": "20240207", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -801,8 +801,7 @@ "id": "BuildConfig", "properties": { "automaticUpdatePolicy": { - "$ref": "AutomaticUpdatePolicy", - "description": "See the comment next to this message for more details." + "$ref": "AutomaticUpdatePolicy" }, "build": { "description": "Output only. The Cloud Build name of the latest successful deployment of the function.", @@ -839,8 +838,7 @@ "type": "object" }, "onDeployUpdatePolicy": { - "$ref": "OnDeployUpdatePolicy", - "description": "See the comment next to this message for more details." + "$ref": "OnDeployUpdatePolicy" }, "runtime": { "description": "The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).", diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 126d1544b6d..c110da1f2d8 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -432,8 +432,6 @@ func (s *Binding) MarshalJSON() ([]byte, error) { // BuildConfig: Describes the Build step of the function that builds a // container from the given source. type BuildConfig struct { - // AutomaticUpdatePolicy: See the comment next to this message for more - // details. AutomaticUpdatePolicy *AutomaticUpdatePolicy `json:"automaticUpdatePolicy,omitempty"` // Build: Output only. The Cloud Build name of the latest successful @@ -482,8 +480,6 @@ type BuildConfig struct { // for the function EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"` - // OnDeployUpdatePolicy: See the comment next to this message for more - // details. OnDeployUpdatePolicy *OnDeployUpdatePolicy `json:"onDeployUpdatePolicy,omitempty"` // Runtime: The runtime in which to run the function. Required when @@ -5551,36 +5547,29 @@ type ProjectsLocationsOperationsListCall struct { // request. If the server doesn't support this method, it returns // `UNIMPLEMENTED`. // -// - name: Must not be set. +// - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": Required. A filter for -// matching the requested operations. The supported formats of *filter* -// are: To query for a specific function: -// project:*,location:*,function:* To query for all of the latest -// operations for a project: project:*,latest:true +// Filter sets the optional parameter "filter": The standard list +// filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of records that should be returned. Requested page size cannot exceed -// 100. If not set, the default page size is 100. Pagination is only -// supported when querying for a specific function. +// PageSize sets the optional parameter "pageSize": The standard list +// page size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token identifying -// which result to start with, which is returned by a previous list -// call. Pagination is only supported when querying for a specific -// function. +// PageToken sets the optional parameter "pageToken": The standard list +// page token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -5694,25 +5683,25 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "filter": { - // "description": "Required. A filter for matching the requested operations. The supported formats of *filter* are: To query for a specific function: project:*,location:*,function:* To query for all of the latest operations for a project: project:*,latest:true", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, // "name": { - // "description": "Must not be set.", + // "description": "The name of the operation's parent resource.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set, the default page size is 100. Pagination is only supported when querying for a specific function.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Token identifying which result to start with, which is returned by a previous list call. Pagination is only supported when querying for a specific function.", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index b6ab296667e..9658beb241e 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -639,25 +639,25 @@ ], "parameters": { "filter": { - "description": "Required. A filter for matching the requested operations. The supported formats of *filter* are: To query for a specific function: project:*,location:*,function:* To query for all of the latest operations for a project: project:*,latest:true", + "description": "The standard list filter.", "location": "query", "type": "string" }, "name": { - "description": "Must not be set.", + "description": "The name of the operation's parent resource.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, "pageSize": { - "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set, the default page size is 100. Pagination is only supported when querying for a specific function.", + "description": "The standard list page size.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Token identifying which result to start with, which is returned by a previous list call. Pagination is only supported when querying for a specific function.", + "description": "The standard list page token.", "location": "query", "type": "string" } @@ -711,7 +711,7 @@ } } }, - "revision": "20240205", + "revision": "20240207", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -801,8 +801,7 @@ "id": "BuildConfig", "properties": { "automaticUpdatePolicy": { - "$ref": "AutomaticUpdatePolicy", - "description": "See the comment next to this message for more details." + "$ref": "AutomaticUpdatePolicy" }, "build": { "description": "Output only. The Cloud Build name of the latest successful deployment of the function.", @@ -839,8 +838,7 @@ "type": "object" }, "onDeployUpdatePolicy": { - "$ref": "OnDeployUpdatePolicy", - "description": "See the comment next to this message for more details." + "$ref": "OnDeployUpdatePolicy" }, "runtime": { "description": "The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the [`gcloud` command reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).", diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index dd696e0f871..7a37a487f22 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -432,8 +432,6 @@ func (s *Binding) MarshalJSON() ([]byte, error) { // BuildConfig: Describes the Build step of the function that builds a // container from the given source. type BuildConfig struct { - // AutomaticUpdatePolicy: See the comment next to this message for more - // details. AutomaticUpdatePolicy *AutomaticUpdatePolicy `json:"automaticUpdatePolicy,omitempty"` // Build: Output only. The Cloud Build name of the latest successful @@ -482,8 +480,6 @@ type BuildConfig struct { // for the function EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"` - // OnDeployUpdatePolicy: See the comment next to this message for more - // details. OnDeployUpdatePolicy *OnDeployUpdatePolicy `json:"onDeployUpdatePolicy,omitempty"` // Runtime: The runtime in which to run the function. Required when @@ -5551,36 +5547,29 @@ type ProjectsLocationsOperationsListCall struct { // request. If the server doesn't support this method, it returns // `UNIMPLEMENTED`. // -// - name: Must not be set. +// - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": Required. A filter for -// matching the requested operations. The supported formats of *filter* -// are: To query for a specific function: -// project:*,location:*,function:* To query for all of the latest -// operations for a project: project:*,latest:true +// Filter sets the optional parameter "filter": The standard list +// filter. func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of records that should be returned. Requested page size cannot exceed -// 100. If not set, the default page size is 100. Pagination is only -// supported when querying for a specific function. +// PageSize sets the optional parameter "pageSize": The standard list +// page size. func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Token identifying -// which result to start with, which is returned by a previous list -// call. Pagination is only supported when querying for a specific -// function. +// PageToken sets the optional parameter "pageToken": The standard list +// page token. func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c @@ -5694,25 +5683,25 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( // ], // "parameters": { // "filter": { - // "description": "Required. A filter for matching the requested operations. The supported formats of *filter* are: To query for a specific function: project:*,location:*,function:* To query for all of the latest operations for a project: project:*,latest:true", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, // "name": { - // "description": "Must not be set.", + // "description": "The name of the operation's parent resource.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set, the default page size is 100. Pagination is only supported when querying for a specific function.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Token identifying which result to start with, which is returned by a previous list call. Pagination is only supported when querying for a specific function.", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index aaf1b763ca8..7e92c5e0497 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -404,7 +404,7 @@ "type": "string" }, "orderBy": { - "description": "Optional. The attribute by which to order conversations in the response. If empty, conversations will be ordered by descending creation time. Supported values are one of the following: * create_time * duration * turn_count * latest_analysis The default sort order is ascending. To specify order, append `asc` or `desc`, i.e. `create_time desc`. See https://google.aip.dev/132#ordering for more details.", + "description": "Optional. The attribute by which to order conversations in the response. If empty, conversations will be ordered by descending creation time. Supported values are one of the following: * create_time * customer_satisfaction_rating * duration * latest_analysis * start_time * turn_count The default sort order is ascending. To specify order, append `asc` or `desc`, i.e. `create_time desc`. See https://google.aip.dev/132#ordering for more details.", "location": "query", "type": "string" }, @@ -1473,7 +1473,7 @@ } } }, - "revision": "20240206", + "revision": "20240212", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 09170979f9b..e062b4af8e8 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -9488,10 +9488,11 @@ func (c *ProjectsLocationsConversationsListCall) Filter(filter string) *Projects // OrderBy sets the optional parameter "orderBy": The attribute by which // to order conversations in the response. If empty, conversations will // be ordered by descending creation time. Supported values are one of -// the following: * create_time * duration * turn_count * -// latest_analysis The default sort order is ascending. To specify -// order, append `asc` or `desc`, i.e. `create_time desc`. See -// https://google.aip.dev/132#ordering for more details. +// the following: * create_time * customer_satisfaction_rating * +// duration * latest_analysis * start_time * turn_count The default sort +// order is ascending. To specify order, append `asc` or `desc`, i.e. +// `create_time desc`. See https://google.aip.dev/132#ordering for more +// details. func (c *ProjectsLocationsConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsConversationsListCall { c.urlParams_.Set("orderBy", orderBy) return c @@ -9651,7 +9652,7 @@ func (c *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption // "type": "string" // }, // "orderBy": { - // "description": "Optional. The attribute by which to order conversations in the response. If empty, conversations will be ordered by descending creation time. Supported values are one of the following: * create_time * duration * turn_count * latest_analysis The default sort order is ascending. To specify order, append `asc` or `desc`, i.e. `create_time desc`. See https://google.aip.dev/132#ordering for more details.", + // "description": "Optional. The attribute by which to order conversations in the response. If empty, conversations will be ordered by descending creation time. Supported values are one of the following: * create_time * customer_satisfaction_rating * duration * latest_analysis * start_time * turn_count The default sort order is ascending. To specify order, append `asc` or `desc`, i.e. `create_time desc`. See https://google.aip.dev/132#ordering for more details.", // "location": "query", // "type": "string" // }, diff --git a/dataproc/v1/dataproc-api.json b/dataproc/v1/dataproc-api.json index c716a3ee64e..e41a0665264 100644 --- a/dataproc/v1/dataproc-api.json +++ b/dataproc/v1/dataproc-api.json @@ -1730,7 +1730,7 @@ ], "parameters": { "filter": { - "description": "Optional. A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING and ERROR states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *", + "description": "Optional. A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, or STOPPED. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING, ERROR, STOPPING, and STOPPED states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *", "location": "query", "type": "string" }, @@ -2034,7 +2034,7 @@ "type": "string" }, "requestId": { - "description": "Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "description": "Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequest) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", "location": "query", "type": "string" } @@ -2075,6 +2075,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "repair": { + "description": "Repair nodes in a node group.", + "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}:repair", + "httpMethod": "POST", + "id": "dataproc.projects.regions.clusters.nodeGroups.repair", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + "location": "path", + "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:repair", + "request": { + "$ref": "RepairNodeGroupRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "resize": { "description": "Resizes a node group in a cluster. The returned Operation.metadata is NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).", "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}:resize", @@ -3006,7 +3034,7 @@ } } }, - "revision": "20240103", + "revision": "20240209", "rootUrl": "https://dataproc.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3025,6 +3053,69 @@ }, "type": "object" }, + "AnalyzeOperationMetadata": { + "description": "Metadata describing the Analyze operation.", + "id": "AnalyzeOperationMetadata", + "properties": { + "analyzedWorkloadName": { + "description": "Output only. name of the workload being analyzed.", + "readOnly": true, + "type": "string" + }, + "analyzedWorkloadType": { + "description": "Output only. Type of the workload being analyzed.", + "enum": [ + "WORKLOAD_TYPE_UNSPECIFIED", + "BATCH" + ], + "enumDescriptions": [ + "Undefined option", + "Serverless batch job" + ], + "readOnly": true, + "type": "string" + }, + "analyzedWorkloadUuid": { + "description": "Output only. unique identifier of the workload typically generated by control plane. E.g. batch uuid.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time when the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Output only. Short description of the operation.", + "readOnly": true, + "type": "string" + }, + "doneTime": { + "description": "Output only. The time when the operation finished.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Output only. Labels associated with the operation.", + "readOnly": true, + "type": "object" + }, + "warnings": { + "description": "Output only. Warnings encountered during operation execution.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "AutoscalingConfig": { "description": "Autoscaling Policy config associated with the cluster.", "id": "AutoscalingConfig", @@ -3334,7 +3425,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.", + "description": "Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles and permissions, see the IAM documentation (https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see here (https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, @@ -5465,7 +5556,8 @@ "UPDATE", "DELETE", "RESIZE", - "REPAIR" + "REPAIR", + "UPDATE_LABELS" ], "enumDescriptions": [ "Node group operation type is unknown.", @@ -5473,7 +5565,8 @@ "Update node group operation type.", "Delete node group operation type.", "Resize node group operation type.", - "Repair node group operation type." + "Repair node group operation type.", + "Update node group label operation type." ], "type": "string" }, @@ -5963,6 +6056,35 @@ }, "type": "object" }, + "RepairNodeGroupRequest": { + "id": "RepairNodeGroupRequest", + "properties": { + "instanceNames": { + "description": "Required. Name of instances to be repaired. These instances must belong to specified node pool.", + "items": { + "type": "string" + }, + "type": "array" + }, + "repairAction": { + "description": "Required. Repair action to take on specified resources of the node pool.", + "enum": [ + "REPAIR_ACTION_UNSPECIFIED", + "REPLACE" + ], + "enumDescriptions": [ + "No action will be taken by default.", + "replace the specified list of nodes." + ], + "type": "string" + }, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two RepairNodeGroupRequest with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "type": "string" + } + }, + "type": "object" + }, "RepositoryConfig": { "description": "Configuration for dependency repositories", "id": "RepositoryConfig", diff --git a/dataproc/v1/dataproc-gen.go b/dataproc/v1/dataproc-gen.go index d62886e1d6b..07bde40adc9 100644 --- a/dataproc/v1/dataproc-gen.go +++ b/dataproc/v1/dataproc-gen.go @@ -379,6 +379,65 @@ func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AnalyzeOperationMetadata: Metadata describing the Analyze operation. +type AnalyzeOperationMetadata struct { + // AnalyzedWorkloadName: Output only. name of the workload being + // analyzed. + AnalyzedWorkloadName string `json:"analyzedWorkloadName,omitempty"` + + // AnalyzedWorkloadType: Output only. Type of the workload being + // analyzed. + // + // Possible values: + // "WORKLOAD_TYPE_UNSPECIFIED" - Undefined option + // "BATCH" - Serverless batch job + AnalyzedWorkloadType string `json:"analyzedWorkloadType,omitempty"` + + // AnalyzedWorkloadUuid: Output only. unique identifier of the workload + // typically generated by control plane. E.g. batch uuid. + AnalyzedWorkloadUuid string `json:"analyzedWorkloadUuid,omitempty"` + + // CreateTime: Output only. The time when the operation was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Output only. Short description of the operation. + Description string `json:"description,omitempty"` + + // DoneTime: Output only. The time when the operation finished. + DoneTime string `json:"doneTime,omitempty"` + + // Labels: Output only. Labels associated with the operation. + Labels map[string]string `json:"labels,omitempty"` + + // Warnings: Output only. Warnings encountered during operation + // execution. + Warnings []string `json:"warnings,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AnalyzedWorkloadName") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AnalyzedWorkloadName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AnalyzeOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod AnalyzeOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AutoscalingConfig: Autoscaling Policy config associated with the // cluster. type AutoscalingConfig struct { @@ -914,7 +973,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of members, or principals. - // For example, roles/viewer, roles/editor, or roles/owner. + // For example, roles/viewer, roles/editor, or roles/owner.For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to @@ -4437,6 +4500,7 @@ type NodeGroupOperationMetadata struct { // "DELETE" - Delete node group operation type. // "RESIZE" - Resize node group operation type. // "REPAIR" - Repair node group operation type. + // "UPDATE_LABELS" - Update node group label operation type. OperationType string `json:"operationType,omitempty"` // Status: Output only. Current operation status. @@ -5245,6 +5309,52 @@ func (s *RepairClusterRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type RepairNodeGroupRequest struct { + // InstanceNames: Required. Name of instances to be repaired. These + // instances must belong to specified node pool. + InstanceNames []string `json:"instanceNames,omitempty"` + + // RepairAction: Required. Repair action to take on specified resources + // of the node pool. + // + // Possible values: + // "REPAIR_ACTION_UNSPECIFIED" - No action will be taken by default. + // "REPLACE" - replace the specified list of nodes. + RepairAction string `json:"repairAction,omitempty"` + + // RequestId: Optional. A unique ID used to identify the request. If the + // server receives two RepairNodeGroupRequest with the same ID, the + // second request is ignored and the first google.longrunning.Operation + // created and stored in the backend is returned.Recommendation: Set + // this value to a UUID + // (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID + // must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), + // and hyphens (-). The maximum length is 40 characters. + RequestId string `json:"requestId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InstanceNames") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InstanceNames") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RepairNodeGroupRequest) MarshalJSON() ([]byte, error) { + type NoMethod RepairNodeGroupRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RepositoryConfig: Configuration for dependency repositories type RepositoryConfig struct { // PypiRepositoryConfig: Optional. Configuration for PyPi repository. @@ -15494,13 +15604,14 @@ func (r *ProjectsRegionsClustersService) List(projectId string, region string) * // one of status.state, clusterName, or labels.[KEY], and [KEY] is a // label key. value can be * to match all values. status.state can be // one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, -// DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and -// RUNNING states. INACTIVE contains the DELETING and ERROR states. -// clusterName is the name of the cluster provided at creation time. -// Only the logical AND operator is supported; space-separated items are -// treated as having an implicit AND operator.Example -// filter:status.state = ACTIVE AND clusterName = mycluster AND -// labels.env = staging AND labels.starred = * +// DELETING, UPDATING, STOPPING, or STOPPED. ACTIVE contains the +// CREATING, UPDATING, and RUNNING states. INACTIVE contains the +// DELETING, ERROR, STOPPING, and STOPPED states. clusterName is the +// name of the cluster provided at creation time. Only the logical AND +// operator is supported; space-separated items are treated as having an +// implicit AND operator.Example filter:status.state = ACTIVE AND +// clusterName = mycluster AND labels.env = staging AND labels.starred = +// * func (c *ProjectsRegionsClustersListCall) Filter(filter string) *ProjectsRegionsClustersListCall { c.urlParams_.Set("filter", filter) return c @@ -15630,7 +15741,7 @@ func (c *ProjectsRegionsClustersListCall) Do(opts ...googleapi.CallOption) (*Lis // ], // "parameters": { // "filter": { - // "description": "Optional. A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING and ERROR states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *", + // "description": "Optional. A filter constraining the clusters to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, or STOPPED. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING, ERROR, STOPPING, and STOPPED states. clusterName is the name of the cluster provided at creation time. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND labels.starred = *", // "location": "query", // "type": "string" // }, @@ -16758,7 +16869,7 @@ func (c *ProjectsRegionsClustersNodeGroupsCreateCall) ParentOperationId(parentOp // RequestId sets the optional parameter "requestId": A unique ID used // to identify the request. If the server receives two // CreateNodeGroupRequest -// (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests) +// (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequest) // with the same ID, the second request is ignored and the first // google.longrunning.Operation created and stored in the backend is // returned.Recommendation: Set this value to a UUID @@ -16887,7 +16998,7 @@ func (c *ProjectsRegionsClustersNodeGroupsCreateCall) Do(opts ...googleapi.CallO // "type": "string" // }, // "requestId": { - // "description": "Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequests) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "description": "Optional. A unique ID used to identify the request. If the server receives two CreateNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateNodeGroupRequest) with the same ID, the second request is ignored and the first google.longrunning.Operation created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", // "location": "query", // "type": "string" // } @@ -17054,6 +17165,150 @@ func (c *ProjectsRegionsClustersNodeGroupsGetCall) Do(opts ...googleapi.CallOpti } +// method id "dataproc.projects.regions.clusters.nodeGroups.repair": + +type ProjectsRegionsClustersNodeGroupsRepairCall struct { + s *Service + name string + repairnodegrouprequest *RepairNodeGroupRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Repair: Repair nodes in a node group. +// +// - name: The name of the node group to resize. Format: +// projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{n +// odeGroup}. +func (r *ProjectsRegionsClustersNodeGroupsService) Repair(name string, repairnodegrouprequest *RepairNodeGroupRequest) *ProjectsRegionsClustersNodeGroupsRepairCall { + c := &ProjectsRegionsClustersNodeGroupsRepairCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.repairnodegrouprequest = repairnodegrouprequest + 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 *ProjectsRegionsClustersNodeGroupsRepairCall) Fields(s ...googleapi.Field) *ProjectsRegionsClustersNodeGroupsRepairCall { + 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 *ProjectsRegionsClustersNodeGroupsRepairCall) Context(ctx context.Context) *ProjectsRegionsClustersNodeGroupsRepairCall { + 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 *ProjectsRegionsClustersNodeGroupsRepairCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsRegionsClustersNodeGroupsRepairCall) 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.repairnodegrouprequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:repair") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataproc.projects.regions.clusters.nodeGroups.repair" 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 *ProjectsRegionsClustersNodeGroupsRepairCall) 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": "Repair nodes in a node group.", + // "flatPath": "v1/projects/{projectsId}/regions/{regionsId}/clusters/{clustersId}/nodeGroups/{nodeGroupsId}:repair", + // "httpMethod": "POST", + // "id": "dataproc.projects.regions.clusters.nodeGroups.repair", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the node group to resize. Format: projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}", + // "location": "path", + // "pattern": "^projects/[^/]+/regions/[^/]+/clusters/[^/]+/nodeGroups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:repair", + // "request": { + // "$ref": "RepairNodeGroupRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "dataproc.projects.regions.clusters.nodeGroups.resize": type ProjectsRegionsClustersNodeGroupsResizeCall struct { diff --git a/datastore/v1/datastore-api.json b/datastore/v1/datastore-api.json index e0cdf974e46..bdb56dd5580 100644 --- a/datastore/v1/datastore-api.json +++ b/datastore/v1/datastore-api.json @@ -654,7 +654,7 @@ } } }, - "revision": "20240131", + "revision": "20240208", "rootUrl": "https://datastore.googleapis.com/", "schemas": { "Aggregation": { @@ -993,6 +993,17 @@ }, "type": "object" }, + "ExplainOptions": { + "description": "Explain options for the query.", + "id": "ExplainOptions", + "properties": { + "analyze": { + "description": "Optional. Whether to execute this query. When false (the default), the query will be planned, returning only metrics from the planning stages. When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics.", + "type": "boolean" + } + }, + "type": "object" + }, "Filter": { "description": "A holder for any type of filter.", "id": "Filter", @@ -2309,6 +2320,10 @@ "description": "The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.", "type": "string" }, + "explainOptions": { + "$ref": "ExplainOptions", + "description": "Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned." + }, "gqlQuery": { "$ref": "GqlQuery", "description": "The GQL query to run. This query must be an aggregation query." @@ -2352,6 +2367,10 @@ "description": "The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.", "type": "string" }, + "explainOptions": { + "$ref": "ExplainOptions", + "description": "Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned." + }, "gqlQuery": { "$ref": "GqlQuery", "description": "The GQL query to run. This query must be a non-aggregation query." diff --git a/datastore/v1/datastore-gen.go b/datastore/v1/datastore-gen.go index 4eb8dcb16d5..4d8565c6195 100644 --- a/datastore/v1/datastore-gen.go +++ b/datastore/v1/datastore-gen.go @@ -839,6 +839,38 @@ func (s *EntityResult) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ExplainOptions: Explain options for the query. +type ExplainOptions struct { + // Analyze: Optional. Whether to execute this query. When false (the + // default), the query will be planned, returning only metrics from the + // planning stages. When true, the query will be planned and executed, + // returning the full query results along with both planning and + // execution stage metrics. + Analyze bool `json:"analyze,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Analyze") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Analyze") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ExplainOptions) MarshalJSON() ([]byte, error) { + type NoMethod ExplainOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Filter: A holder for any type of filter. type Filter struct { // CompositeFilter: A composite filter. @@ -3022,6 +3054,11 @@ type RunAggregationQueryRequest struct { // default database. DatabaseId string `json:"databaseId,omitempty"` + // ExplainOptions: Optional. Explain options for the query. If set, + // additional query statistics will be returned. If not, only query + // results will be returned. + ExplainOptions *ExplainOptions `json:"explainOptions,omitempty"` + // GqlQuery: The GQL query to run. This query must be an aggregation // query. GqlQuery *GqlQuery `json:"gqlQuery,omitempty"` @@ -3109,6 +3146,11 @@ type RunQueryRequest struct { // default database. DatabaseId string `json:"databaseId,omitempty"` + // ExplainOptions: Optional. Explain options for the query. If set, + // additional query statistics will be returned. If not, only query + // results will be returned. + ExplainOptions *ExplainOptions `json:"explainOptions,omitempty"` + // GqlQuery: The GQL query to run. This query must be a non-aggregation // query. GqlQuery *GqlQuery `json:"gqlQuery,omitempty"` diff --git a/datastore/v1beta3/datastore-api.json b/datastore/v1beta3/datastore-api.json index 01eaf351f07..de6a8848d2b 100644 --- a/datastore/v1beta3/datastore-api.json +++ b/datastore/v1beta3/datastore-api.json @@ -336,7 +336,7 @@ } } }, - "revision": "20240131", + "revision": "20240208", "rootUrl": "https://datastore.googleapis.com/", "schemas": { "Aggregation": { @@ -653,6 +653,17 @@ }, "type": "object" }, + "ExplainOptions": { + "description": "Explain options for the query.", + "id": "ExplainOptions", + "properties": { + "analyze": { + "description": "Optional. Whether to execute this query. When false (the default), the query will be planned, returning only metrics from the planning stages. When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics.", + "type": "boolean" + } + }, + "type": "object" + }, "Filter": { "description": "A holder for any type of filter.", "id": "Filter", @@ -1743,6 +1754,10 @@ "$ref": "AggregationQuery", "description": "The query to run." }, + "explainOptions": { + "$ref": "ExplainOptions", + "description": "Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned." + }, "gqlQuery": { "$ref": "GqlQuery", "description": "The GQL query to run. This query must be an aggregation query." @@ -1777,6 +1792,10 @@ "description": "The request for Datastore.RunQuery.", "id": "RunQueryRequest", "properties": { + "explainOptions": { + "$ref": "ExplainOptions", + "description": "Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned." + }, "gqlQuery": { "$ref": "GqlQuery", "description": "The GQL query to run. This query must be a non-aggregation query." diff --git a/datastore/v1beta3/datastore-gen.go b/datastore/v1beta3/datastore-gen.go index a430fd57b0d..90b74963980 100644 --- a/datastore/v1beta3/datastore-gen.go +++ b/datastore/v1beta3/datastore-gen.go @@ -784,6 +784,38 @@ func (s *EntityResult) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ExplainOptions: Explain options for the query. +type ExplainOptions struct { + // Analyze: Optional. Whether to execute this query. When false (the + // default), the query will be planned, returning only metrics from the + // planning stages. When true, the query will be planned and executed, + // returning the full query results along with both planning and + // execution stage metrics. + Analyze bool `json:"analyze,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Analyze") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Analyze") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ExplainOptions) MarshalJSON() ([]byte, error) { + type NoMethod ExplainOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Filter: A holder for any type of filter. type Filter struct { // CompositeFilter: A composite filter. @@ -2589,6 +2621,11 @@ type RunAggregationQueryRequest struct { // AggregationQuery: The query to run. AggregationQuery *AggregationQuery `json:"aggregationQuery,omitempty"` + // ExplainOptions: Optional. Explain options for the query. If set, + // additional query statistics will be returned. If not, only query + // results will be returned. + ExplainOptions *ExplainOptions `json:"explainOptions,omitempty"` + // GqlQuery: The GQL query to run. This query must be an aggregation // query. GqlQuery *GqlQuery `json:"gqlQuery,omitempty"` @@ -2665,6 +2702,11 @@ func (s *RunAggregationQueryResponse) MarshalJSON() ([]byte, error) { // RunQueryRequest: The request for Datastore.RunQuery. type RunQueryRequest struct { + // ExplainOptions: Optional. Explain options for the query. If set, + // additional query statistics will be returned. If not, only query + // results will be returned. + ExplainOptions *ExplainOptions `json:"explainOptions,omitempty"` + // GqlQuery: The GQL query to run. This query must be a non-aggregation // query. GqlQuery *GqlQuery `json:"gqlQuery,omitempty"` @@ -2681,7 +2723,7 @@ type RunQueryRequest struct { // ReadOptions: The options for this query. ReadOptions *ReadOptions `json:"readOptions,omitempty"` - // ForceSendFields is a list of field names (e.g. "GqlQuery") to + // ForceSendFields is a list of field names (e.g. "ExplainOptions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2689,12 +2731,13 @@ type RunQueryRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GqlQuery") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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. "ExplainOptions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/deploymentmanager/v2/deploymentmanager-api.json b/deploymentmanager/v2/deploymentmanager-api.json index ec110dcfabe..6ddcf6e4eaf 100644 --- a/deploymentmanager/v2/deploymentmanager-api.json +++ b/deploymentmanager/v2/deploymentmanager-api.json @@ -988,7 +988,7 @@ } } }, - "revision": "20240104", + "revision": "20240214", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -1055,7 +1055,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/deploymentmanager/v2/deploymentmanager-gen.go b/deploymentmanager/v2/deploymentmanager-gen.go index 7abb5239305..d7e9bc97afd 100644 --- a/deploymentmanager/v2/deploymentmanager-gen.go +++ b/deploymentmanager/v2/deploymentmanager-gen.go @@ -409,7 +409,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/deploymentmanager/v2beta/deploymentmanager-api.json b/deploymentmanager/v2beta/deploymentmanager-api.json index 83e5e169ee5..55ddef43073 100644 --- a/deploymentmanager/v2beta/deploymentmanager-api.json +++ b/deploymentmanager/v2beta/deploymentmanager-api.json @@ -1552,7 +1552,7 @@ } } }, - "revision": "20240104", + "revision": "20240214", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AsyncOptions": { @@ -1673,7 +1673,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/deploymentmanager/v2beta/deploymentmanager-gen.go b/deploymentmanager/v2beta/deploymentmanager-gen.go index caedef19917..26d79a3d972 100644 --- a/deploymentmanager/v2beta/deploymentmanager-gen.go +++ b/deploymentmanager/v2beta/deploymentmanager-gen.go @@ -536,7 +536,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json index d4aade4c674..c825a4510e5 100644 --- a/firestore/v1/firestore-api.json +++ b/firestore/v1/firestore-api.json @@ -1672,7 +1672,7 @@ } } }, - "revision": "20240131", + "revision": "20240208", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -2179,6 +2179,17 @@ }, "type": "object" }, + "ExplainOptions": { + "description": "Explain options for the query.", + "id": "ExplainOptions", + "properties": { + "analyze": { + "description": "Optional. Whether to execute this query. When false (the default), the query will be planned, returning only metrics from the planning stages. When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics.", + "type": "boolean" + } + }, + "type": "object" + }, "FieldFilter": { "description": "A filter on a specific field.", "id": "FieldFilter", @@ -2390,6 +2401,25 @@ }, "type": "object" }, + "GoogleFirestoreAdminV1CmekConfig": { + "description": "The CMEK (Customer Managed Encryption Key) configuration for a Firestore database. If not present, the database is secured by the default Google encryption key.", + "id": "GoogleFirestoreAdminV1CmekConfig", + "properties": { + "activeKeyVersion": { + "description": "Output only. Currently in-use [KMS key versions](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions). During [key rotation](https://cloud.google.com/kms/docs/key-rotation), there can be multiple in-use key versions. The expected format is `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{key_version}`.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "kmsKeyName": { + "description": "Required. Only keys in the same location as this database are allowed to be used for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations. The expected format is `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleFirestoreAdminV1CreateDatabaseMetadata": { "description": "Metadata related to the create database operation.", "id": "GoogleFirestoreAdminV1CreateDatabaseMetadata", @@ -2420,6 +2450,10 @@ ], "type": "string" }, + "cmekConfig": { + "$ref": "GoogleFirestoreAdminV1CmekConfig", + "description": "Optional. Presence indicates CMEK is enabled for this database." + }, "concurrencyMode": { "description": "The concurrency control mode to use for this database.", "enum": [ @@ -3767,6 +3801,10 @@ "description": "The request for Firestore.RunAggregationQuery.", "id": "RunAggregationQueryRequest", "properties": { + "explainOptions": { + "$ref": "ExplainOptions", + "description": "Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned." + }, "newTransaction": { "$ref": "TransactionOptions", "description": "Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream." @@ -3813,6 +3851,10 @@ "description": "The request for Firestore.RunQuery.", "id": "RunQueryRequest", "properties": { + "explainOptions": { + "$ref": "ExplainOptions", + "description": "Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned." + }, "newTransaction": { "$ref": "TransactionOptions", "description": "Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream." diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index c77cbd6bb9e..42601bb8ddc 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -1301,6 +1301,38 @@ func (s *ExistenceFilter) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ExplainOptions: Explain options for the query. +type ExplainOptions struct { + // Analyze: Optional. Whether to execute this query. When false (the + // default), the query will be planned, returning only metrics from the + // planning stages. When true, the query will be planned and executed, + // returning the full query results along with both planning and + // execution stage metrics. + Analyze bool `json:"analyze,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Analyze") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Analyze") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ExplainOptions) MarshalJSON() ([]byte, error) { + type NoMethod ExplainOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // FieldFilter: A filter on a specific field. type FieldFilter struct { // Field: The field to filter by. @@ -1658,6 +1690,53 @@ func (s *GoogleFirestoreAdminV1BackupSchedule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleFirestoreAdminV1CmekConfig: The CMEK (Customer Managed +// Encryption Key) configuration for a Firestore database. If not +// present, the database is secured by the default Google encryption +// key. +type GoogleFirestoreAdminV1CmekConfig struct { + // ActiveKeyVersion: Output only. Currently in-use KMS key versions + // (https://cloud.google.com/kms/docs/resource-hierarchy#key_versions). + // During key rotation (https://cloud.google.com/kms/docs/key-rotation), + // there can be multiple in-use key versions. The expected format is + // `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cr + // yptoKeys/{crypto_key}/cryptoKeyVersions/{key_version}`. + ActiveKeyVersion []string `json:"activeKeyVersion,omitempty"` + + // KmsKeyName: Required. Only keys in the same location as this database + // are allowed to be used for encryption. For Firestore's nam5 + // multi-region, this corresponds to Cloud KMS multi-region us. For + // Firestore's eur3 multi-region, this corresponds to Cloud KMS + // multi-region europe. See https://cloud.google.com/kms/docs/locations. + // The expected format is + // `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cr + // yptoKeys/{crypto_key}`. + KmsKeyName string `json:"kmsKeyName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ActiveKeyVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ActiveKeyVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleFirestoreAdminV1CmekConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirestoreAdminV1CmekConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleFirestoreAdminV1CreateDatabaseMetadata: Metadata related to the // create database operation. type GoogleFirestoreAdminV1CreateDatabaseMetadata struct { @@ -1684,6 +1763,10 @@ type GoogleFirestoreAdminV1Database struct { // created with the Firestore API. AppEngineIntegrationMode string `json:"appEngineIntegrationMode,omitempty"` + // CmekConfig: Optional. Presence indicates CMEK is enabled for this + // database. + CmekConfig *GoogleFirestoreAdminV1CmekConfig `json:"cmekConfig,omitempty"` + // ConcurrencyMode: The concurrency control mode to use for this // database. // @@ -3909,6 +3992,11 @@ func (s *RollbackRequest) MarshalJSON() ([]byte, error) { // RunAggregationQueryRequest: The request for // Firestore.RunAggregationQuery. type RunAggregationQueryRequest struct { + // ExplainOptions: Optional. Explain options for the query. If set, + // additional query statistics will be returned. If not, only query + // results will be returned. + ExplainOptions *ExplainOptions `json:"explainOptions,omitempty"` + // NewTransaction: Starts a new transaction as part of the query, // defaulting to read-only. The new transaction ID will be returned as // the first response in the stream. @@ -3928,7 +4016,7 @@ type RunAggregationQueryRequest struct { // the query in. Transaction string `json:"transaction,omitempty"` - // ForceSendFields is a list of field names (e.g. "NewTransaction") to + // ForceSendFields is a list of field names (e.g. "ExplainOptions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3936,7 +4024,7 @@ type RunAggregationQueryRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NewTransaction") to + // NullFields is a list of field names (e.g. "ExplainOptions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -4001,6 +4089,11 @@ func (s *RunAggregationQueryResponse) MarshalJSON() ([]byte, error) { // RunQueryRequest: The request for Firestore.RunQuery. type RunQueryRequest struct { + // ExplainOptions: Optional. Explain options for the query. If set, + // additional query statistics will be returned. If not, only query + // results will be returned. + ExplainOptions *ExplainOptions `json:"explainOptions,omitempty"` + // NewTransaction: Starts a new transaction and reads the documents. // Defaults to a read-only transaction. The new transaction ID will be // returned as the first response in the stream. @@ -4019,7 +4112,7 @@ type RunQueryRequest struct { // value here is the opaque transaction ID to execute the query in. Transaction string `json:"transaction,omitempty"` - // ForceSendFields is a list of field names (e.g. "NewTransaction") to + // ForceSendFields is a list of field names (e.g. "ExplainOptions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4027,7 +4120,7 @@ type RunQueryRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NewTransaction") to + // NullFields is a list of field names (e.g. "ExplainOptions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the diff --git a/firestore/v1beta1/firestore-api.json b/firestore/v1beta1/firestore-api.json index 4c38f8cce62..c6077b68d68 100644 --- a/firestore/v1beta1/firestore-api.json +++ b/firestore/v1beta1/firestore-api.json @@ -950,7 +950,7 @@ } } }, - "revision": "20240131", + "revision": "20240208", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -1457,6 +1457,17 @@ }, "type": "object" }, + "ExplainOptions": { + "description": "Explain options for the query.", + "id": "ExplainOptions", + "properties": { + "analyze": { + "description": "Optional. Whether to execute this query. When false (the default), the query will be planned, returning only metrics from the planning stages. When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics.", + "type": "boolean" + } + }, + "type": "object" + }, "FieldFilter": { "description": "A filter on a specific field.", "id": "FieldFilter", @@ -2308,6 +2319,10 @@ "description": "The request for Firestore.RunAggregationQuery.", "id": "RunAggregationQueryRequest", "properties": { + "explainOptions": { + "$ref": "ExplainOptions", + "description": "Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned." + }, "newTransaction": { "$ref": "TransactionOptions", "description": "Starts a new transaction as part of the query, defaulting to read-only. The new transaction ID will be returned as the first response in the stream." @@ -2354,6 +2369,10 @@ "description": "The request for Firestore.RunQuery.", "id": "RunQueryRequest", "properties": { + "explainOptions": { + "$ref": "ExplainOptions", + "description": "Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned." + }, "newTransaction": { "$ref": "TransactionOptions", "description": "Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream." diff --git a/firestore/v1beta1/firestore-gen.go b/firestore/v1beta1/firestore-gen.go index 1352bf54e22..45c2f88d7d3 100644 --- a/firestore/v1beta1/firestore-gen.go +++ b/firestore/v1beta1/firestore-gen.go @@ -1229,6 +1229,38 @@ func (s *ExistenceFilter) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ExplainOptions: Explain options for the query. +type ExplainOptions struct { + // Analyze: Optional. Whether to execute this query. When false (the + // default), the query will be planned, returning only metrics from the + // planning stages. When true, the query will be planned and executed, + // returning the full query results along with both planning and + // execution stage metrics. + Analyze bool `json:"analyze,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Analyze") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Analyze") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ExplainOptions) MarshalJSON() ([]byte, error) { + type NoMethod ExplainOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // FieldFilter: A filter on a specific field. type FieldFilter struct { // Field: The field to filter by. @@ -2714,6 +2746,11 @@ func (s *RollbackRequest) MarshalJSON() ([]byte, error) { // RunAggregationQueryRequest: The request for // Firestore.RunAggregationQuery. type RunAggregationQueryRequest struct { + // ExplainOptions: Optional. Explain options for the query. If set, + // additional query statistics will be returned. If not, only query + // results will be returned. + ExplainOptions *ExplainOptions `json:"explainOptions,omitempty"` + // NewTransaction: Starts a new transaction as part of the query, // defaulting to read-only. The new transaction ID will be returned as // the first response in the stream. @@ -2733,7 +2770,7 @@ type RunAggregationQueryRequest struct { // the query in. Transaction string `json:"transaction,omitempty"` - // ForceSendFields is a list of field names (e.g. "NewTransaction") to + // ForceSendFields is a list of field names (e.g. "ExplainOptions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2741,7 +2778,7 @@ type RunAggregationQueryRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NewTransaction") to + // NullFields is a list of field names (e.g. "ExplainOptions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -2806,6 +2843,11 @@ func (s *RunAggregationQueryResponse) MarshalJSON() ([]byte, error) { // RunQueryRequest: The request for Firestore.RunQuery. type RunQueryRequest struct { + // ExplainOptions: Optional. Explain options for the query. If set, + // additional query statistics will be returned. If not, only query + // results will be returned. + ExplainOptions *ExplainOptions `json:"explainOptions,omitempty"` + // NewTransaction: Starts a new transaction and reads the documents. // Defaults to a read-only transaction. The new transaction ID will be // returned as the first response in the stream. @@ -2824,7 +2866,7 @@ type RunQueryRequest struct { // value here is the opaque transaction ID to execute the query in. Transaction string `json:"transaction,omitempty"` - // ForceSendFields is a list of field names (e.g. "NewTransaction") to + // ForceSendFields is a list of field names (e.g. "ExplainOptions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2832,7 +2874,7 @@ type RunQueryRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NewTransaction") to + // NullFields is a list of field names (e.g. "ExplainOptions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index cca8c46ea94..a49ea7f8215 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -1573,7 +1573,7 @@ } } }, - "revision": "20240126", + "revision": "20240208", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -1631,7 +1631,7 @@ "Default value. This value is unused.", "Ingestion is active.", "Permission denied encountered while consuming data from Kinesis. This can happen if: - The provided `aws_role_arn` does not exist or does not have the appropriate permissions attached. - The provided `aws_role_arn` is not set up properly for Identity Federation using `gcp_service_account`. - The Pub/Sub SA is not granted the `iam.serviceAccounts.getOpenIdToken` permission on `gcp_service_account`.", - "Permission denied encountered while publishing to the topic. This can happen due to Pub/Sub SA has not been granted the [appropriate publish permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)", + "Permission denied encountered while publishing to the topic. This can happen if the Pub/Sub SA has not been granted the [appropriate publish permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)", "The Kinesis stream does not exist.", "The Kinesis consumer does not exist." ], @@ -1653,6 +1653,10 @@ "description": "Optional. When true and use_topic_schema is true, any fields that are a part of the topic schema that are not part of the BigQuery table schema are dropped when writing to BigQuery. Otherwise, the schemas must be kept in sync and any messages with extra fields are not written and remain in the subscription's backlog.", "type": "boolean" }, + "serviceAccountEmail": { + "description": "Optional. The service account to use to write to BigQuery. The subscription creator or updater that specifies this field must have `iam.serviceAccounts.actAs` permission on the service account. If not specified, the Pub/Sub [service agent](https://cloud.google.com/iam/docs/service-agents), service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.", + "type": "string" + }, "state": { "description": "Output only. An output-only field that indicates whether or not the subscription can receive messages.", "enum": [ @@ -1745,6 +1749,10 @@ "format": "google-duration", "type": "string" }, + "serviceAccountEmail": { + "description": "Optional. The service account to use to write to Cloud Storage. The subscription creator or updater that specifies this field must have `iam.serviceAccounts.actAs` permission on the service account. If not specified, the Pub/Sub [service agent](https://cloud.google.com/iam/docs/service-agents), service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.", + "type": "string" + }, "state": { "description": "Output only. An output-only field that indicates whether or not the subscription can receive messages.", "enum": [ diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index d8465f0c508..5aedaa3f35c 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -346,7 +346,7 @@ type AwsKinesis struct { // Pub/Sub SA is not granted the `iam.serviceAccounts.getOpenIdToken` // permission on `gcp_service_account`. // "PUBLISH_PERMISSION_DENIED" - Permission denied encountered while - // publishing to the topic. This can happen due to Pub/Sub SA has not + // publishing to the topic. This can happen if the Pub/Sub SA has not // been granted the [appropriate publish // permissions](https://cloud.google.com/pubsub/docs/access-control#pubsu // b.publisher) @@ -390,6 +390,15 @@ type BigQueryConfig struct { // backlog. DropUnknownFields bool `json:"dropUnknownFields,omitempty"` + // ServiceAccountEmail: Optional. The service account to use to write to + // BigQuery. The subscription creator or updater that specifies this + // field must have `iam.serviceAccounts.actAs` permission on the service + // account. If not specified, the Pub/Sub service agent + // (https://cloud.google.com/iam/docs/service-agents), + // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is + // used. + ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` + // State: Output only. An output-only field that indicates whether or // not the subscription can receive messages. // @@ -604,6 +613,15 @@ type CloudStorageConfig struct { // deadline. MaxDuration string `json:"maxDuration,omitempty"` + // ServiceAccountEmail: Optional. The service account to use to write to + // Cloud Storage. The subscription creator or updater that specifies + // this field must have `iam.serviceAccounts.actAs` permission on the + // service account. If not specified, the Pub/Sub service agent + // (https://cloud.google.com/iam/docs/service-agents), + // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is + // used. + ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` + // State: Output only. An output-only field that indicates whether or // not the subscription can receive messages. // diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index e4e35638a5e..1329286a111 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://retail.googleapis.com/", "batchPath": "batch", "canonicalName": "Cloud Retail", - "description": "Cloud Retail service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud.", + "description": "Vertex AI Search for Retail API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/recommendations", "fullyEncodeReservedExpansion": true, @@ -2087,7 +2087,7 @@ } } }, - "revision": "20240207", + "revision": "20240212", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3089,6 +3089,23 @@ }, "type": "object" }, + "GoogleCloudRetailV2ExportMetadata": { + "description": "Metadata related to the progress of the Export operation. This is returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudRetailV2ExportMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2FulfillmentInfo": { "description": "Fulfillment information, such as the store IDs for in-store pickup or region IDs for different shipping methods.", "id": "GoogleCloudRetailV2FulfillmentInfo", @@ -7271,7 +7288,7 @@ } }, "servicePath": "", - "title": "Retail API", + "title": "Vertex AI Search for Retail API", "version": "v2", "version_module": true } \ No newline at end of file diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index 78e570f56ff..36c6fbe5873 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package retail provides access to the Retail API. +// Package retail provides access to the Vertex AI Search for Retail API. // // For product documentation, see: https://cloud.google.com/recommendations // @@ -2279,6 +2279,40 @@ func (s *GoogleCloudRetailV2ExportErrorsConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2ExportMetadata: Metadata related to the progress +// of the Export operation. This is returned by the +// google.longrunning.Operation.metadata field. +type GoogleCloudRetailV2ExportMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2ExportMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2ExportMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2FulfillmentInfo: Fulfillment information, such as // the store IDs for in-store pickup or region IDs for different // shipping methods. diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 61b0b91a7ef..9990e196a1d 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://retail.googleapis.com/", "batchPath": "batch", "canonicalName": "Cloud Retail", - "description": "Cloud Retail service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud.", + "description": "Vertex AI Search for Retail API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/recommendations", "fullyEncodeReservedExpansion": true, @@ -2416,7 +2416,7 @@ } } }, - "revision": "20240207", + "revision": "20240212", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2652,6 +2652,23 @@ }, "type": "object" }, + "GoogleCloudRetailV2ExportMetadata": { + "description": "Metadata related to the progress of the Export operation. This is returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudRetailV2ExportMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2GcsOutputResult": { "description": "A Gcs output result.", "id": "GoogleCloudRetailV2GcsOutputResult", @@ -7948,7 +7965,7 @@ } }, "servicePath": "", - "title": "Retail API", + "title": "Vertex AI Search for Retail API", "version": "v2alpha", "version_module": true } \ No newline at end of file diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index dac3d482d50..db043dca6e8 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package retail provides access to the Retail API. +// Package retail provides access to the Vertex AI Search for Retail API. // // For product documentation, see: https://cloud.google.com/recommendations // @@ -847,6 +847,40 @@ func (s *GoogleCloudRetailV2ExportErrorsConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2ExportMetadata: Metadata related to the progress +// of the Export operation. This is returned by the +// google.longrunning.Operation.metadata field. +type GoogleCloudRetailV2ExportMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2ExportMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2ExportMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2GcsOutputResult: A Gcs output result. type GoogleCloudRetailV2GcsOutputResult struct { // OutputUri: The uri of Gcs output diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 881b220e939..8d09230d9e9 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://retail.googleapis.com/", "batchPath": "batch", "canonicalName": "Cloud Retail", - "description": "Cloud Retail service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud.", + "description": "Vertex AI Search for Retail API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/recommendations", "fullyEncodeReservedExpansion": true, @@ -2115,7 +2115,7 @@ } } }, - "revision": "20240207", + "revision": "20240212", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -2351,6 +2351,23 @@ }, "type": "object" }, + "GoogleCloudRetailV2ExportMetadata": { + "description": "Metadata related to the progress of the Export operation. This is returned by the google.longrunning.Operation.metadata field.", + "id": "GoogleCloudRetailV2ExportMetadata", + "properties": { + "createTime": { + "description": "Operation create time.", + "format": "google-datetime", + "type": "string" + }, + "updateTime": { + "description": "Operation last update time. If the operation is done, this is also the finish time.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRetailV2GcsOutputResult": { "description": "A Gcs output result.", "id": "GoogleCloudRetailV2GcsOutputResult", @@ -7425,7 +7442,7 @@ } }, "servicePath": "", - "title": "Retail API", + "title": "Vertex AI Search for Retail API", "version": "v2beta", "version_module": true } \ No newline at end of file diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index bf6f4e84c2e..6f5536c7622 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package retail provides access to the Retail API. +// Package retail provides access to the Vertex AI Search for Retail API. // // For product documentation, see: https://cloud.google.com/recommendations // @@ -799,6 +799,40 @@ func (s *GoogleCloudRetailV2ExportErrorsConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRetailV2ExportMetadata: Metadata related to the progress +// of the Export operation. This is returned by the +// google.longrunning.Operation.metadata field. +type GoogleCloudRetailV2ExportMetadata struct { + // CreateTime: Operation create time. + CreateTime string `json:"createTime,omitempty"` + + // UpdateTime: Operation last update time. If the operation is done, + // this is also the finish time. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudRetailV2ExportMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRetailV2ExportMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRetailV2GcsOutputResult: A Gcs output result. type GoogleCloudRetailV2GcsOutputResult struct { // OutputUri: The uri of Gcs output diff --git a/run/v2/run-api.json b/run/v2/run-api.json index f89ba99c200..8f27eb5628a 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1317,7 +1317,7 @@ } } }, - "revision": "20240204", + "revision": "20240211", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -2635,6 +2635,10 @@ ], "type": "string" }, + "healthCheckDisabled": { + "description": "Optional. Disables health checking containers during deployment.", + "type": "boolean" + }, "labels": { "additionalProperties": { "type": "string" @@ -2660,7 +2664,7 @@ "type": "string" }, "sessionAffinity": { - "description": "Enable session affinity.", + "description": "Optional. Enable session affinity.", "type": "boolean" }, "timeout": { diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 1b4dc6296e8..16cbfb407ba 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -2126,6 +2126,10 @@ type GoogleCloudRunV2RevisionTemplate struct { // "EXECUTION_ENVIRONMENT_GEN2" - Uses Second Generation environment. ExecutionEnvironment string `json:"executionEnvironment,omitempty"` + // HealthCheckDisabled: Optional. Disables health checking containers + // during deployment. + HealthCheckDisabled bool `json:"healthCheckDisabled,omitempty"` + // Labels: Unstructured key value map that can be used to organize and // categorize objects. User-provided labels are shared with Google's // billing system, so they can be used to filter, or break down billing @@ -2158,7 +2162,7 @@ type GoogleCloudRunV2RevisionTemplate struct { // default service account. ServiceAccount string `json:"serviceAccount,omitempty"` - // SessionAffinity: Enable session affinity. + // SessionAffinity: Optional. Enable session affinity. SessionAffinity bool `json:"sessionAffinity,omitempty"` // Timeout: Max allowed time for an instance to respond to a request. diff --git a/safebrowsing/v5/safebrowsing-api.json b/safebrowsing/v5/safebrowsing-api.json index f2ad09cc29b..27cb6445189 100644 --- a/safebrowsing/v5/safebrowsing-api.json +++ b/safebrowsing/v5/safebrowsing-api.json @@ -99,14 +99,14 @@ "hashes": { "methods": { "search": { - "description": "Search for full hashes matching the specified prefixes. This is a custom method as described by guidance at https://google.aip.dev/136", + "description": "Search for full hashes matching the specified prefixes. This is a custom method as defined by https://google.aip.dev/136 (the custom method refers to this method having a custom name within Google's general API development nomenclature; it does not refer to using a custom HTTP method).", "flatPath": "v5/hashes:search", "httpMethod": "GET", "id": "safebrowsing.hashes.search", "parameterOrder": [], "parameters": { "hashPrefixes": { - "description": "Required. The hash prefixes to be looked up.", + "description": "Required. The hash prefixes to be looked up. Clients MUST NOT send more than 1000 hash prefixes. However, following the URL processing procedure, clients SHOULD NOT need to send more than 30 hash prefixes. Currently each hash prefix is required to be exactly 4 bytes long. This MAY be relaxed in the future.", "format": "byte", "location": "query", "repeated": true, @@ -121,7 +121,7 @@ } } }, - "revision": "20230923", + "revision": "20240211", "rootUrl": "https://safebrowsing.googleapis.com/", "schemas": { "GoogleSecuritySafebrowsingV5FullHash": { @@ -144,7 +144,7 @@ "type": "object" }, "GoogleSecuritySafebrowsingV5FullHashFullHashDetail": { - "description": "Details about a matching full hash. An important note about forward compatibility: new threat types and threat attributes may be added by the server at any time; those additions are considered minor version changes. It is Google's policy not to expose minor version numbers in APIs (see https://cloud.google.com/apis/design/versioning), so clients MUST be prepared to receive FullHashDetail messages containing ThreatType enum values or ThreatAttribute enum values that are considered invalid by the client. Therefore, it is the client's responsibility to check for the validity of all ThreatType and ThreatAttribute enum values; if any value is considered invalid, the client MUST disregard the entire FullHashDetail message.", + "description": "Details about a matching full hash. An important note about forward compatibility: new threat types and threat attributes may be added by the server at any time; those additions are considered minor version changes. It is Google's policy not to expose minor version numbers in APIs (see https://cloud.google.com/apis/design/versioning for the versioning policy), so clients MUST be prepared to receive `FullHashDetail` messages containing `ThreatType` enum values or `ThreatAttribute` enum values that are considered invalid by the client. Therefore, it is the client's responsibility to check for the validity of all `ThreatType` and `ThreatAttribute` enum values; if any value is considered invalid, the client MUST disregard the entire `FullHashDetail` message.", "id": "GoogleSecuritySafebrowsingV5FullHashFullHashDetail", "properties": { "attributes": { @@ -156,7 +156,7 @@ "FRAME_ONLY" ], "enumDescriptions": [ - "Unknown.", + "Unknown attribute. If this is returned by the server, the client shall disregard the enclosing `FullHashDetail` altogether.", "Indicates that the threat_type should not be used for enforcement.", "Indicates that the threat_type should only be used for enforcement on frames." ], @@ -174,7 +174,7 @@ "POTENTIALLY_HARMFUL_APPLICATION" ], "enumDescriptions": [ - "Unknown.", + "Unknown threat type. If this is returned by the server, the client shall disregard the enclosing `FullHashDetail` altogether.", "Malware threat type.", "Social engineering threat type.", "Unwanted software threat type.", @@ -186,11 +186,11 @@ "type": "object" }, "GoogleSecuritySafebrowsingV5SearchHashesResponse": { - "description": "The response returned after searching threat hashes. Note that if nothing is found, the server will return an OK status (HTTP status code 200) with the `full_hashes` field empty, rather than returning a NOT_FOUND status (HTTP status code 404).", + "description": "The response returned after searching threat hashes. If nothing is found, the server will return an OK status (HTTP status code 200) with the `full_hashes` field empty, rather than returning a NOT_FOUND status (HTTP status code 404). **What's new in V5**: There is a separation between FullHash and FullHashDetail. In the case when a hash represents a site having multiple threats (e.g. both MALWARE and SOCIAL_ENGINEERING), the full hash does not need to be sent twice as in V4. Furthermore, the cache duration has been simplified into a single `cache_duration` field.", "id": "GoogleSecuritySafebrowsingV5SearchHashesResponse", "properties": { "cacheDuration": { - "description": "The client-side cache duration. The client shall add this duration to the current time to determine the expiration time. The expiration time then applies to every hash prefix queried by the client in the request, regardless of how many full hashes are returned in the response. Even if the server returns no full hashes for a particular hash prefix, this fact should also be cached by the client. Important: the client must not assume that the server will return the same cache duration for all responses. The server may choose different cache durations for different responses depending on the situation.", + "description": "The client-side cache duration. The client MUST add this duration to the current time to determine the expiration time. The expiration time then applies to every hash prefix queried by the client in the request, regardless of how many full hashes are returned in the response. Even if the server returns no full hashes for a particular hash prefix, this fact MUST also be cached by the client. Important: the client MUST NOT assume that the server will return the same cache duration for all responses. The server MAY choose different cache durations for different responses depending on the situation.", "format": "google-duration", "type": "string" }, diff --git a/safebrowsing/v5/safebrowsing-gen.go b/safebrowsing/v5/safebrowsing-gen.go index 082768ddd44..97ab1783c13 100644 --- a/safebrowsing/v5/safebrowsing-gen.go +++ b/safebrowsing/v5/safebrowsing-gen.go @@ -191,19 +191,22 @@ func (s *GoogleSecuritySafebrowsingV5FullHash) MarshalJSON() ([]byte, error) { // new threat types and threat attributes may be added by the server at // any time; those additions are considered minor version changes. It is // Google's policy not to expose minor version numbers in APIs (see -// https://cloud.google.com/apis/design/versioning), so clients MUST be -// prepared to receive FullHashDetail messages containing ThreatType -// enum values or ThreatAttribute enum values that are considered -// invalid by the client. Therefore, it is the client's responsibility -// to check for the validity of all ThreatType and ThreatAttribute enum -// values; if any value is considered invalid, the client MUST disregard -// the entire FullHashDetail message. +// https://cloud.google.com/apis/design/versioning for the versioning +// policy), so clients MUST be prepared to receive `FullHashDetail` +// messages containing `ThreatType` enum values or `ThreatAttribute` +// enum values that are considered invalid by the client. Therefore, it +// is the client's responsibility to check for the validity of all +// `ThreatType` and `ThreatAttribute` enum values; if any value is +// considered invalid, the client MUST disregard the entire +// `FullHashDetail` message. type GoogleSecuritySafebrowsingV5FullHashFullHashDetail struct { // Attributes: Unordered list. Additional attributes about those full // hashes. This may be empty. // // Possible values: - // "THREAT_ATTRIBUTE_UNSPECIFIED" - Unknown. + // "THREAT_ATTRIBUTE_UNSPECIFIED" - Unknown attribute. If this is + // returned by the server, the client shall disregard the enclosing + // `FullHashDetail` altogether. // "CANARY" - Indicates that the threat_type should not be used for // enforcement. // "FRAME_ONLY" - Indicates that the threat_type should only be used @@ -213,7 +216,9 @@ type GoogleSecuritySafebrowsingV5FullHashFullHashDetail struct { // ThreatType: The type of threat. This field will never be empty. // // Possible values: - // "THREAT_TYPE_UNSPECIFIED" - Unknown. + // "THREAT_TYPE_UNSPECIFIED" - Unknown threat type. If this is + // returned by the server, the client shall disregard the enclosing + // `FullHashDetail` altogether. // "MALWARE" - Malware threat type. // "SOCIAL_ENGINEERING" - Social engineering threat type. // "UNWANTED_SOFTWARE" - Unwanted software threat type. @@ -245,19 +250,24 @@ func (s *GoogleSecuritySafebrowsingV5FullHashFullHashDetail) MarshalJSON() ([]by } // GoogleSecuritySafebrowsingV5SearchHashesResponse: The response -// returned after searching threat hashes. Note that if nothing is -// found, the server will return an OK status (HTTP status code 200) -// with the `full_hashes` field empty, rather than returning a NOT_FOUND -// status (HTTP status code 404). +// returned after searching threat hashes. If nothing is found, the +// server will return an OK status (HTTP status code 200) with the +// `full_hashes` field empty, rather than returning a NOT_FOUND status +// (HTTP status code 404). **What's new in V5**: There is a separation +// between FullHash and FullHashDetail. In the case when a hash +// represents a site having multiple threats (e.g. both MALWARE and +// SOCIAL_ENGINEERING), the full hash does not need to be sent twice as +// in V4. Furthermore, the cache duration has been simplified into a +// single `cache_duration` field. type GoogleSecuritySafebrowsingV5SearchHashesResponse struct { - // CacheDuration: The client-side cache duration. The client shall add + // CacheDuration: The client-side cache duration. The client MUST add // this duration to the current time to determine the expiration time. // The expiration time then applies to every hash prefix queried by the // client in the request, regardless of how many full hashes are // returned in the response. Even if the server returns no full hashes - // for a particular hash prefix, this fact should also be cached by the - // client. Important: the client must not assume that the server will - // return the same cache duration for all responses. The server may + // for a particular hash prefix, this fact MUST also be cached by the + // client. Important: the client MUST NOT assume that the server will + // return the same cache duration for all responses. The server MAY // choose different cache durations for different responses depending on // the situation. CacheDuration string `json:"cacheDuration,omitempty"` @@ -303,15 +313,21 @@ type HashesSearchCall struct { } // Search: Search for full hashes matching the specified prefixes. This -// is a custom method as described by guidance at -// https://google.aip.dev/136 +// is a custom method as defined by https://google.aip.dev/136 (the +// custom method refers to this method having a custom name within +// Google's general API development nomenclature; it does not refer to +// using a custom HTTP method). func (r *HashesService) Search() *HashesSearchCall { c := &HashesSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c } // HashPrefixes sets the optional parameter "hashPrefixes": Required. -// The hash prefixes to be looked up. +// The hash prefixes to be looked up. Clients MUST NOT send more than +// 1000 hash prefixes. However, following the URL processing procedure, +// clients SHOULD NOT need to send more than 30 hash prefixes. Currently +// each hash prefix is required to be exactly 4 bytes long. This MAY be +// relaxed in the future. func (c *HashesSearchCall) HashPrefixes(hashPrefixes ...string) *HashesSearchCall { c.urlParams_.SetMulti("hashPrefixes", append([]string{}, hashPrefixes...)) return c @@ -415,14 +431,14 @@ func (c *HashesSearchCall) Do(opts ...googleapi.CallOption) (*GoogleSecuritySafe } return ret, nil // { - // "description": "Search for full hashes matching the specified prefixes. This is a custom method as described by guidance at https://google.aip.dev/136", + // "description": "Search for full hashes matching the specified prefixes. This is a custom method as defined by https://google.aip.dev/136 (the custom method refers to this method having a custom name within Google's general API development nomenclature; it does not refer to using a custom HTTP method).", // "flatPath": "v5/hashes:search", // "httpMethod": "GET", // "id": "safebrowsing.hashes.search", // "parameterOrder": [], // "parameters": { // "hashPrefixes": { - // "description": "Required. The hash prefixes to be looked up.", + // "description": "Required. The hash prefixes to be looked up. Clients MUST NOT send more than 1000 hash prefixes. However, following the URL processing procedure, clients SHOULD NOT need to send more than 30 hash prefixes. Currently each hash prefix is required to be exactly 4 bytes long. This MAY be relaxed in the future.", // "format": "byte", // "location": "query", // "repeated": true, diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index 6535d954c78..cb34638d2be 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -33,7 +33,7 @@ "location": "me-central2" } ], - "etag": "\"3136303536373738333537393834303934353433\"", + "etag": "\"3135323132313733303039343736303631393739\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -1632,11 +1632,6 @@ "managedFolder" ], "parameters": { - "allowNonEmpty": { - "description": "Allows the deletion of a managed folder even if it is not empty. A managed folder is empty if there are no objects or managed folders that it applies to. Callers must have storage.managedFolders.setIamPolicy permission.", - "location": "query", - "type": "boolean" - }, "bucket": { "description": "Name of the bucket containing the managed folder.", "location": "path", @@ -4045,7 +4040,7 @@ } } }, - "revision": "20240205", + "revision": "20240209", "rootUrl": "https://storage.googleapis.com/", "schemas": { "AnywhereCache": { @@ -4858,6 +4853,11 @@ "description": "The name of the bucket containing this folder.", "type": "string" }, + "createTime": { + "description": "The creation time of the folder in RFC 3339 format.", + "format": "date-time", + "type": "string" + }, "id": { "description": "The ID of the folder, including the bucket name, folder name.", "type": "string" @@ -4890,12 +4890,7 @@ "description": "The link to this folder.", "type": "string" }, - "timeCreated": { - "description": "The creation time of the folder in RFC 3339 format.", - "format": "date-time", - "type": "string" - }, - "updated": { + "updateTime": { "description": "The modification time of the folder metadata in RFC 3339 format.", "format": "date-time", "type": "string" diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index f540f7c8382..6f01795faa9 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -1853,6 +1853,9 @@ type Folder struct { // Bucket: The name of the bucket containing this folder. Bucket string `json:"bucket,omitempty"` + // CreateTime: The creation time of the folder in RFC 3339 format. + CreateTime string `json:"createTime,omitempty"` + // Id: The ID of the folder, including the bucket name, folder name. Id string `json:"id,omitempty"` @@ -1876,12 +1879,9 @@ type Folder struct { // SelfLink: The link to this folder. SelfLink string `json:"selfLink,omitempty"` - // TimeCreated: The creation time of the folder in RFC 3339 format. - TimeCreated string `json:"timeCreated,omitempty"` - - // Updated: The modification time of the folder metadata in RFC 3339 + // UpdateTime: The modification time of the folder metadata in RFC 3339 // format. - Updated string `json:"updated,omitempty"` + UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. @@ -9452,16 +9452,6 @@ func (r *ManagedFoldersService) Delete(bucket string, managedFolder string) *Man return c } -// AllowNonEmpty sets the optional parameter "allowNonEmpty": Allows the -// deletion of a managed folder even if it is not empty. A managed -// folder is empty if there are no objects or managed folders that it -// applies to. Callers must have storage.managedFolders.setIamPolicy -// permission. -func (c *ManagedFoldersDeleteCall) AllowNonEmpty(allowNonEmpty bool) *ManagedFoldersDeleteCall { - c.urlParams_.Set("allowNonEmpty", fmt.Sprint(allowNonEmpty)) - return c -} - // IfMetagenerationMatch sets the optional parameter // "ifMetagenerationMatch": If set, only deletes the managed folder if // its metageneration matches this value. @@ -9548,11 +9538,6 @@ func (c *ManagedFoldersDeleteCall) Do(opts ...googleapi.CallOption) error { // "managedFolder" // ], // "parameters": { - // "allowNonEmpty": { - // "description": "Allows the deletion of a managed folder even if it is not empty. A managed folder is empty if there are no objects or managed folders that it applies to. Callers must have storage.managedFolders.setIamPolicy permission.", - // "location": "query", - // "type": "boolean" - // }, // "bucket": { // "description": "Name of the bucket containing the managed folder.", // "location": "path", diff --git a/trafficdirector/v3/trafficdirector-api.json b/trafficdirector/v3/trafficdirector-api.json index 1a072df0ee3..78aaff3c7ac 100644 --- a/trafficdirector/v3/trafficdirector-api.json +++ b/trafficdirector/v3/trafficdirector-api.json @@ -128,7 +128,7 @@ } } }, - "revision": "20240201", + "revision": "20240213", "rootUrl": "https://trafficdirector.googleapis.com/", "schemas": { "Address": { @@ -171,10 +171,6 @@ "description": "All xds configs for a particular client.", "id": "ClientConfig", "properties": { - "clientScope": { - "description": "For xDS clients, the scope in which the data is used. For example, gRPC indicates the data plane target or that the data is associated with gRPC server(s).", - "type": "string" - }, "genericXdsConfigs": { "description": "Represents generic xDS config and the exact config structure depends on the type URL (like Cluster if it is CDS)", "items": { diff --git a/trafficdirector/v3/trafficdirector-gen.go b/trafficdirector/v3/trafficdirector-gen.go index 1277c50f3ba..b2678feba11 100644 --- a/trafficdirector/v3/trafficdirector-gen.go +++ b/trafficdirector/v3/trafficdirector-gen.go @@ -237,11 +237,6 @@ func (s *BuildVersion) MarshalJSON() ([]byte, error) { // ClientConfig: All xds configs for a particular client. type ClientConfig struct { - // ClientScope: For xDS clients, the scope in which the data is used. - // For example, gRPC indicates the data plane target or that the data is - // associated with gRPC server(s). - ClientScope string `json:"clientScope,omitempty"` - // GenericXdsConfigs: Represents generic xDS config and the exact config // structure depends on the type URL (like Cluster if it is CDS) GenericXdsConfigs []*GenericXdsConfig `json:"genericXdsConfigs,omitempty"` @@ -253,20 +248,21 @@ type ClientConfig struct { // which is much simpler and uniform in structure. XdsConfig []*PerXdsConfig `json:"xdsConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientScope") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "GenericXdsConfigs") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ClientScope") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an 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. "GenericXdsConfigs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/walletobjects/v1/walletobjects-api.json b/walletobjects/v1/walletobjects-api.json index e66b1fbaa5b..881fee5bab0 100644 --- a/walletobjects/v1/walletobjects-api.json +++ b/walletobjects/v1/walletobjects-api.json @@ -2625,39 +2625,9 @@ ] } } - }, - "walletobjects": { - "resources": { - "v1": { - "resources": { - "privateContent": { - "methods": { - "uploadPrivateData": { - "description": "Upload private data (text or URI) and returns an Id to be used in its place.", - "flatPath": "walletobjects/v1/privateContent/uploadPrivateData", - "httpMethod": "POST", - "id": "walletobjects.walletobjects.v1.privateContent.uploadPrivateData", - "parameterOrder": [], - "parameters": {}, - "path": "walletobjects/v1/privateContent/uploadPrivateData", - "request": { - "$ref": "UploadPrivateDataRequest" - }, - "response": { - "$ref": "UploadPrivateDataResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/wallet_object.issuer" - ] - } - } - } - } - } - } } }, - "revision": "20240206", + "revision": "20240214", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -5087,6 +5057,13 @@ "$ref": "LinksModuleData", "description": "Links module data. If `linksModuleData` is also defined on the object, both will be displayed. The maximum number of these fields displayed is 10 from class and 10 from object." }, + "messages": { + "description": "An array of messages displayed in the app. All users of this object will receive its associated messages. The maximum number of these fields is 10.", + "items": { + "$ref": "Message" + }, + "type": "array" + }, "multipleDevicesAndHoldersAllowedStatus": { "description": "Identifies whether multiple users and devices will save the same object referencing this class.", "enum": [ @@ -7680,36 +7657,6 @@ }, "type": "object" }, - "PrivateText": { - "description": "Private data for TextModule. This data will be rendered as a TextModule for a pass.", - "id": "PrivateText", - "properties": { - "body": { - "$ref": "LocalizedString", - "description": "Translated strings for the body." - }, - "header": { - "$ref": "LocalizedString", - "description": "Translated strings for the header." - } - }, - "type": "object" - }, - "PrivateUri": { - "description": "Private data for LinkModule. This data will be rendered as the LinkModule for a pass.", - "id": "PrivateUri", - "properties": { - "description": { - "$ref": "LocalizedString", - "description": "The URI's title appearing in the app as text and its translated strings. Recommended maximum is 20 characters to ensure the full string is displayed on smaller screens." - }, - "uri": { - "description": "The location of a web page, image, or other resource. URIs in the `LinksModuleData` can have different prefixes indicating the type of URI (a link to a web page, a link to a map, a telephone number, or an email address).", - "type": "string" - } - }, - "type": "object" - }, "PurchaseDetails": { "id": "PurchaseDetails", "properties": { @@ -9124,65 +9071,6 @@ }, "type": "object" }, - "UploadPrivateDataRequest": { - "description": "Request for sending user private Text or URI by the Issuer.", - "id": "UploadPrivateDataRequest", - "properties": { - "issuerId": { - "description": "The ID of the issuer sending the data.", - "format": "int64", - "type": "string" - }, - "text": { - "$ref": "PrivateText", - "description": "Private text data of the user." - }, - "uri": { - "$ref": "PrivateUri", - "description": "Private URIs of the user." - } - }, - "type": "object" - }, - "UploadPrivateDataResponse": { - "description": "Response for uploading user private data (text or URIs)", - "id": "UploadPrivateDataResponse", - "properties": { - "privateContentId": { - "description": "A 64-bit content id for the private data that was uploaded by the Issuer.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "UploadPrivateImageRequest": { - "description": "Request to upload user's private images by Issuers to be used in passes.", - "id": "UploadPrivateImageRequest", - "properties": { - "blob": { - "$ref": "Media", - "description": "A reference to the image payload that was uploaded by Scotty." - }, - "mediaRequestInfo": { - "$ref": "MediaRequestInfo", - "description": "Extra information about the uploaded media." - } - }, - "type": "object" - }, - "UploadPrivateImageResponse": { - "description": "Response for uploading the private image", - "id": "UploadPrivateImageResponse", - "properties": { - "privateContentId": { - "description": "A 64-bit content id for the image that was uploaded by the Issuer.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "Uri": { "id": "Uri", "properties": { diff --git a/walletobjects/v1/walletobjects-gen.go b/walletobjects/v1/walletobjects-gen.go index f4d357a2463..16f6a0bb5c6 100644 --- a/walletobjects/v1/walletobjects-gen.go +++ b/walletobjects/v1/walletobjects-gen.go @@ -154,7 +154,6 @@ func New(client *http.Client) (*Service, error) { s.Smarttap = NewSmarttapService(s) s.Transitclass = NewTransitclassService(s) s.Transitobject = NewTransitobjectService(s) - s.Walletobjects = NewWalletobjectsService(s) return s, nil } @@ -200,8 +199,6 @@ type Service struct { Transitclass *TransitclassService Transitobject *TransitobjectService - - Walletobjects *WalletobjectsService } func (s *Service) userAgent() string { @@ -382,39 +379,6 @@ type TransitobjectService struct { s *Service } -func NewWalletobjectsService(s *Service) *WalletobjectsService { - rs := &WalletobjectsService{s: s} - rs.V1 = NewWalletobjectsV1Service(s) - return rs -} - -type WalletobjectsService struct { - s *Service - - V1 *WalletobjectsV1Service -} - -func NewWalletobjectsV1Service(s *Service) *WalletobjectsV1Service { - rs := &WalletobjectsV1Service{s: s} - rs.PrivateContent = NewWalletobjectsV1PrivateContentService(s) - return rs -} - -type WalletobjectsV1Service struct { - s *Service - - PrivateContent *WalletobjectsV1PrivateContentService -} - -func NewWalletobjectsV1PrivateContentService(s *Service) *WalletobjectsV1PrivateContentService { - rs := &WalletobjectsV1PrivateContentService{s: s} - return rs -} - -type WalletobjectsV1PrivateContentService struct { - s *Service -} - // ActivationOptions: ActivationOptions for the class type ActivationOptions struct { // ActivationUrl: HTTPS URL that supports REST semantics. Would be used @@ -3820,6 +3784,11 @@ type GenericClass struct { // these fields displayed is 10 from class and 10 from object. LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"` + // Messages: An array of messages displayed in the app. All users of + // this object will receive its associated messages. The maximum number + // of these fields is 10. + Messages []*Message `json:"messages,omitempty"` + // MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple // users and devices will save the same object referencing this class. // @@ -7239,75 +7208,6 @@ func (s *Permissions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PrivateText: Private data for TextModule. This data will be rendered -// as a TextModule for a pass. -type PrivateText struct { - // Body: Translated strings for the body. - Body *LocalizedString `json:"body,omitempty"` - - // Header: Translated strings for the header. - Header *LocalizedString `json:"header,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Body") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Body") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *PrivateText) MarshalJSON() ([]byte, error) { - type NoMethod PrivateText - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PrivateUri: Private data for LinkModule. This data will be rendered -// as the LinkModule for a pass. -type PrivateUri struct { - // Description: The URI's title appearing in the app as text and its - // translated strings. Recommended maximum is 20 characters to ensure - // the full string is displayed on smaller screens. - Description *LocalizedString `json:"description,omitempty"` - - // Uri: The location of a web page, image, or other resource. URIs in - // the `LinksModuleData` can have different prefixes indicating the type - // of URI (a link to a web page, a link to a map, a telephone number, or - // an email address). - Uri string `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Description") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Description") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *PrivateUri) MarshalJSON() ([]byte, error) { - type NoMethod PrivateUri - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type PurchaseDetails struct { // AccountId: ID of the account used to purchase the ticket. AccountId string `json:"accountId,omitempty"` @@ -9059,138 +8959,6 @@ func (s *UpcomingNotification) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UploadPrivateDataRequest: Request for sending user private Text or -// URI by the Issuer. -type UploadPrivateDataRequest struct { - // IssuerId: The ID of the issuer sending the data. - IssuerId int64 `json:"issuerId,omitempty,string"` - - // Text: Private text data of the user. - Text *PrivateText `json:"text,omitempty"` - - // Uri: Private URIs of the user. - Uri *PrivateUri `json:"uri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "IssuerId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "IssuerId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *UploadPrivateDataRequest) MarshalJSON() ([]byte, error) { - type NoMethod UploadPrivateDataRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UploadPrivateDataResponse: Response for uploading user private data -// (text or URIs) -type UploadPrivateDataResponse struct { - // PrivateContentId: A 64-bit content id for the private data that was - // uploaded by the Issuer. - PrivateContentId int64 `json:"privateContentId,omitempty,string"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "PrivateContentId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PrivateContentId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *UploadPrivateDataResponse) MarshalJSON() ([]byte, error) { - type NoMethod UploadPrivateDataResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UploadPrivateImageRequest: Request to upload user's private images by -// Issuers to be used in passes. -type UploadPrivateImageRequest struct { - // Blob: A reference to the image payload that was uploaded by Scotty. - Blob *Media `json:"blob,omitempty"` - - // MediaRequestInfo: Extra information about the uploaded media. - MediaRequestInfo *MediaRequestInfo `json:"mediaRequestInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Blob") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Blob") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *UploadPrivateImageRequest) MarshalJSON() ([]byte, error) { - type NoMethod UploadPrivateImageRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// UploadPrivateImageResponse: Response for uploading the private image -type UploadPrivateImageResponse struct { - // PrivateContentId: A 64-bit content id for the image that was uploaded - // by the Issuer. - PrivateContentId int64 `json:"privateContentId,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "PrivateContentId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PrivateContentId") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *UploadPrivateImageResponse) MarshalJSON() ([]byte, error) { - type NoMethod UploadPrivateImageResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type Uri struct { // Description: The URI's title appearing in the app as text. // Recommended maximum is 20 characters to ensure full string is @@ -23241,129 +23009,3 @@ func (c *TransitobjectUpdateCall) Do(opts ...googleapi.CallOption) (*TransitObje // } } - -// method id "walletobjects.walletobjects.v1.privateContent.uploadPrivateData": - -type WalletobjectsV1PrivateContentUploadPrivateDataCall struct { - s *Service - uploadprivatedatarequest *UploadPrivateDataRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// UploadPrivateData: Upload private data (text or URI) and returns an -// Id to be used in its place. -func (r *WalletobjectsV1PrivateContentService) UploadPrivateData(uploadprivatedatarequest *UploadPrivateDataRequest) *WalletobjectsV1PrivateContentUploadPrivateDataCall { - c := &WalletobjectsV1PrivateContentUploadPrivateDataCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.uploadprivatedatarequest = uploadprivatedatarequest - 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 *WalletobjectsV1PrivateContentUploadPrivateDataCall) Fields(s ...googleapi.Field) *WalletobjectsV1PrivateContentUploadPrivateDataCall { - 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 *WalletobjectsV1PrivateContentUploadPrivateDataCall) Context(ctx context.Context) *WalletobjectsV1PrivateContentUploadPrivateDataCall { - 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 *WalletobjectsV1PrivateContentUploadPrivateDataCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *WalletobjectsV1PrivateContentUploadPrivateDataCall) 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.uploadprivatedatarequest) - 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, "walletobjects/v1/privateContent/uploadPrivateData") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "walletobjects.walletobjects.v1.privateContent.uploadPrivateData" call. -// Exactly one of *UploadPrivateDataResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *UploadPrivateDataResponse.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 *WalletobjectsV1PrivateContentUploadPrivateDataCall) Do(opts ...googleapi.CallOption) (*UploadPrivateDataResponse, 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 := &UploadPrivateDataResponse{ - 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": "Upload private data (text or URI) and returns an Id to be used in its place.", - // "flatPath": "walletobjects/v1/privateContent/uploadPrivateData", - // "httpMethod": "POST", - // "id": "walletobjects.walletobjects.v1.privateContent.uploadPrivateData", - // "parameterOrder": [], - // "parameters": {}, - // "path": "walletobjects/v1/privateContent/uploadPrivateData", - // "request": { - // "$ref": "UploadPrivateDataRequest" - // }, - // "response": { - // "$ref": "UploadPrivateDataResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/wallet_object.issuer" - // ] - // } - -} diff --git a/workloadmanager/v1/workloadmanager-api.json b/workloadmanager/v1/workloadmanager-api.json index 6a262f86d76..8cbbe613cef 100644 --- a/workloadmanager/v1/workloadmanager-api.json +++ b/workloadmanager/v1/workloadmanager-api.json @@ -217,6 +217,36 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "delete": { + "description": "Deletes a single Evaluation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}", + "httpMethod": "DELETE", + "id": "workloadmanager.projects.locations.evaluations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets details of a single Evaluation.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}", @@ -292,6 +322,36 @@ "resources": { "executions": { "methods": { + "delete": { + "description": "Deletes a single Execution.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}/executions/{executionsId}", + "httpMethod": "DELETE", + "id": "workloadmanager.projects.locations.evaluations.executions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluations/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets details of a single Execution.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}/executions/{executionsId}", @@ -701,15 +761,179 @@ ] } } + }, + "workloadProfiles": { + "methods": { + "get": { + "description": "Gets details of a single workload.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadProfiles/{workloadProfilesId}", + "httpMethod": "GET", + "id": "workloadmanager.projects.locations.workloadProfiles.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workloadProfiles/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "WorkloadProfile" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "deprecated": true, + "description": "List workloads", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadProfiles", + "httpMethod": "GET", + "id": "workloadmanager.projects.locations.workloadProfiles.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Parent value for ListWorkloadRequest", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/workloadProfiles", + "response": { + "$ref": "ListWorkloadProfilesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } } } }, - "revision": "20240117", + "revision": "20240208", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { + "APILayerServer": { + "description": "The API layer server", + "id": "APILayerServer", + "properties": { + "name": { + "description": "Output only. The api layer name", + "readOnly": true, + "type": "string" + }, + "osVersion": { + "description": "Output only. OS information", + "readOnly": true, + "type": "string" + }, + "resources": { + "description": "Output only. resources in the component", + "items": { + "$ref": "CloudResource" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "AvailabilityGroup": { + "description": "The availability groups for sqlserver", + "id": "AvailabilityGroup", + "properties": { + "databases": { + "description": "Output only. The databases", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "name": { + "description": "Output only. The availability group name", + "readOnly": true, + "type": "string" + }, + "primaryServer": { + "description": "Output only. The primary server", + "readOnly": true, + "type": "string" + }, + "secondaryServers": { + "description": "Output only. The secondary servers", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "BackendServer": { + "description": "The backend server", + "id": "BackendServer", + "properties": { + "backupFile": { + "description": "Output only. The backup file", + "readOnly": true, + "type": "string" + }, + "backupSchedule": { + "description": "Output only. The backup schedule", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The backend name", + "readOnly": true, + "type": "string" + }, + "osVersion": { + "description": "Output only. OS information", + "readOnly": true, + "type": "string" + }, + "resources": { + "description": "Output only. resources in the component", + "items": { + "$ref": "CloudResource" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "BigQueryDestination": { "description": "Message describing big query destination", "id": "BigQueryDestination", @@ -731,6 +955,98 @@ "properties": {}, "type": "object" }, + "CloudResource": { + "description": "The resource on GCP", + "id": "CloudResource", + "properties": { + "kind": { + "description": "Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc.", + "enum": [ + "RESOURCE_KIND_UNSPECIFIED", + "RESOURCE_KIND_INSTANCE", + "RESOURCE_KIND_DISK", + "RESOURCE_KIND_ADDRESS", + "RESOURCE_KIND_FILESTORE", + "RESOURCE_KIND_HEALTH_CHECK", + "RESOURCE_KIND_FORWARDING_RULE", + "RESOURCE_KIND_BACKEND_SERVICE", + "RESOURCE_KIND_SUBNETWORK", + "RESOURCE_KIND_NETWORK", + "RESOURCE_KIND_PUBLIC_ADDRESS", + "RESOURCE_KIND_INSTANCE_GROUP" + ], + "enumDescriptions": [ + "Unspecified resource kind.", + "This is a compute instance.", + "This is a compute disk.", + "This is a compute address.", + "This is a filestore instance.", + "This is a compute health check.", + "This is a compute forwarding rule.", + "This is a compute backend service.", + "This is a compute subnetwork.", + "This is a compute network.", + "This is a public accessible IP Address.", + "This is a compute instance group." + ], + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. resource name", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Cluster": { + "description": "The cluster for sqlserver", + "id": "Cluster", + "properties": { + "nodes": { + "description": "Output only. The nodes", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "witnessServer": { + "description": "Output only. The witness server", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Database": { + "description": "The database for sqlserver", + "id": "Database", + "properties": { + "backupFile": { + "description": "Output only. The backup file", + "readOnly": true, + "type": "string" + }, + "backupSchedule": { + "description": "Output only. The backup schedule", + "readOnly": true, + "type": "string" + }, + "hostVm": { + "description": "Output only. The host VM", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The database name", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -910,6 +1226,31 @@ }, "type": "object" }, + "FrontEndServer": { + "description": "The front end server", + "id": "FrontEndServer", + "properties": { + "name": { + "description": "Output only. The frontend name", + "readOnly": true, + "type": "string" + }, + "osVersion": { + "description": "Output only. OS information", + "readOnly": true, + "type": "string" + }, + "resources": { + "description": "Output only. resources in the component", + "items": { + "$ref": "CloudResource" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, "GceInstanceFilter": { "description": "Message describing compute engine instance filter", "id": "GceInstanceFilter", @@ -953,6 +1294,81 @@ }, "type": "object" }, + "Instance": { + "description": "a vm instance", + "id": "Instance", + "properties": { + "name": { + "description": "Output only. name of the VM", + "readOnly": true, + "type": "string" + }, + "region": { + "description": "Output only. The location of the VM", + "readOnly": true, + "type": "string" + }, + "status": { + "description": "Output only. The state of the VM", + "enum": [ + "INSTANCESTATE_UNSPECIFIED", + "PROVISIONING", + "STAGING", + "RUNNING", + "STOPPING", + "STOPPED", + "TERMINATED", + "SUSPENDING", + "SUSPENDED", + "REPAIRING", + "DEPROVISIONING" + ], + "enumDescriptions": [ + "The Status of the VM is unspecified", + "Resources are being allocated for the instance.", + "All required resources have been allocated and the instance is being started.", + "The instance is running.", + "The instance is currently stopping (either being deleted or killed).", + "The instance has stopped due to various reasons (user request, VM preemption, project freezing, etc.).", + "The instance has failed in some way.", + "The instance is suspending.", + "The instance is suspended.", + "The instance is in repair.", + "The instance is in de-provisioning state." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Layer": { + "description": "The database layer", + "id": "Layer", + "properties": { + "applicationType": { + "description": "the application layer", + "type": "string" + }, + "databaseType": { + "description": "Optional. the database layer", + "type": "string" + }, + "instances": { + "description": "Optional. instances in a layer", + "items": { + "$ref": "Instance" + }, + "type": "array" + }, + "sid": { + "description": "Output only. system identification of a layer", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ListEvaluationsResponse": { "description": "Message for response to listing Evaluations", "id": "ListEvaluationsResponse", @@ -1093,6 +1509,50 @@ }, "type": "object" }, + "ListWorkloadProfilesResponse": { + "description": "List workloadResponse returns a response with the list of workload overview", + "id": "ListWorkloadProfilesResponse", + "properties": { + "nextPageToken": { + "description": "Output only. A token identifying a page of results the server should return", + "readOnly": true, + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + }, + "workloadOverviews": { + "description": "Output only. The list of Workload Overview", + "items": { + "$ref": "WorkloadProfileOverview" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "LoadBalancerServer": { + "description": "The load balancer for sqlserver", + "id": "LoadBalancerServer", + "properties": { + "ip": { + "description": "Output only. The IP address", + "readOnly": true, + "type": "string" + }, + "vm": { + "description": "Output only. The VM name", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Location": { "description": "A resource that represents a Google Cloud location.", "id": "Location", @@ -1362,6 +1822,26 @@ }, "type": "object" }, + "SapComponent": { + "description": "The component of sap workload", + "id": "SapComponent", + "properties": { + "resources": { + "description": "Output only. resources in the component", + "items": { + "$ref": "CloudResource" + }, + "readOnly": true, + "type": "array" + }, + "sid": { + "description": "Output only. sid is the sap component identificator", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "SapDiscovery": { "description": "The schema of SAP system discovery data.", "id": "SapDiscovery", @@ -1391,6 +1871,10 @@ "description": "Required. Unix timestamp this system has been updated last.", "format": "google-datetime", "type": "string" + }, + "workloadProperties": { + "$ref": "SapDiscoveryWorkloadProperties", + "description": "Optional. The properties of the workload." } }, "type": "object" @@ -1632,6 +2116,65 @@ }, "type": "object" }, + "SapDiscoveryWorkloadProperties": { + "description": "A set of properties describing an SAP workload.", + "id": "SapDiscoveryWorkloadProperties", + "properties": { + "productVersions": { + "description": "Optional. List of SAP Products and their versions running on the system.", + "items": { + "$ref": "SapDiscoveryWorkloadPropertiesProductVersion" + }, + "type": "array" + }, + "softwareComponentVersions": { + "description": "Optional. A list of SAP software components and their versions running on the system.", + "items": { + "$ref": "SapDiscoveryWorkloadPropertiesSoftwareComponentProperties" + }, + "type": "array" + } + }, + "type": "object" + }, + "SapDiscoveryWorkloadPropertiesProductVersion": { + "description": "A product name and version.", + "id": "SapDiscoveryWorkloadPropertiesProductVersion", + "properties": { + "name": { + "description": "Optional. Name of the product.", + "type": "string" + }, + "version": { + "description": "Optional. Version of the product.", + "type": "string" + } + }, + "type": "object" + }, + "SapDiscoveryWorkloadPropertiesSoftwareComponentProperties": { + "description": "A SAP software component name, version, and type.", + "id": "SapDiscoveryWorkloadPropertiesSoftwareComponentProperties", + "properties": { + "extVersion": { + "description": "Optional. The component's minor version.", + "type": "string" + }, + "name": { + "description": "Optional. Name of the component.", + "type": "string" + }, + "type": { + "description": "Optional. The component's type.", + "type": "string" + }, + "version": { + "description": "Optional. The component's major version.", + "type": "string" + } + }, + "type": "object" + }, "SapValidation": { "description": "A presentation of SAP workload insight. The schema of SAP workloads validation related data.", "id": "SapValidation", @@ -1696,6 +2239,53 @@ }, "type": "object" }, + "SapWorkload": { + "description": "The body of sap workload", + "id": "SapWorkload", + "properties": { + "application": { + "$ref": "SapComponent", + "description": "Output only. the acsc componment", + "readOnly": true + }, + "database": { + "$ref": "SapComponent", + "description": "Output only. the database componment", + "readOnly": true + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Output only. The metadata for SAP workload.", + "readOnly": true, + "type": "object" + } + }, + "type": "object" + }, + "SapWorkloadOverview": { + "description": "The overview of sap workload", + "id": "SapWorkloadOverview", + "properties": { + "appSid": { + "description": "Output only. The application SID", + "readOnly": true, + "type": "string" + }, + "dbSid": { + "description": "Output only. The database SID", + "readOnly": true, + "type": "string" + }, + "sapSystemId": { + "description": "Output only. The UUID for a SAP workload", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ScannedResource": { "description": "Message of scanned resource", "id": "ScannedResource", @@ -1799,6 +2389,59 @@ }, "type": "object" }, + "SqlserverWorkload": { + "description": "The body of sqlserver workload", + "id": "SqlserverWorkload", + "properties": { + "ags": { + "description": "Output only. The availability groups for sqlserver", + "items": { + "$ref": "AvailabilityGroup" + }, + "readOnly": true, + "type": "array" + }, + "cluster": { + "$ref": "Cluster", + "description": "Output only. The cluster for sqlserver", + "readOnly": true + }, + "databases": { + "description": "Output only. The databases for sqlserver", + "items": { + "$ref": "Database" + }, + "readOnly": true, + "type": "array" + }, + "loadBalancerServer": { + "$ref": "LoadBalancerServer", + "description": "Output only. The load balancer for sqlserver", + "readOnly": true + } + }, + "type": "object" + }, + "SqlserverWorkloadOverview": { + "description": "The overview of sqlserver workload", + "id": "SqlserverWorkloadOverview", + "properties": { + "availabilityGroup": { + "description": "Output only. The availability groups", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "sqlserverSystemId": { + "description": "Output only. The UUID for a Sqlserver workload", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -1826,6 +2469,45 @@ }, "type": "object" }, + "ThreeTierWorkload": { + "description": "The body of three tier workload", + "id": "ThreeTierWorkload", + "properties": { + "apiLayer": { + "$ref": "APILayerServer", + "description": "Output only. The API layer for three tier workload", + "readOnly": true + }, + "backend": { + "$ref": "BackendServer", + "description": "Output only. The backend for three tier workload", + "readOnly": true + }, + "endpoint": { + "description": "Output only. the workload endpoint", + "readOnly": true, + "type": "string" + }, + "frontend": { + "$ref": "FrontEndServer", + "description": "Output only. The frontend for three tier workload", + "readOnly": true + } + }, + "type": "object" + }, + "ThreeTierWorkloadOverview": { + "description": "The overview of three tier workload", + "id": "ThreeTierWorkloadOverview", + "properties": { + "threeTierSystemId": { + "description": "Output only. The UUID for a three tier workload", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ViolationDetails": { "description": "Message describing the violdation in execution result", "id": "ViolationDetails", @@ -1848,6 +2530,111 @@ }, "type": "object" }, + "WorkloadProfile": { + "description": "workload resource", + "id": "WorkloadProfile", + "properties": { + "application": { + "$ref": "Layer", + "deprecated": true, + "description": "Optional. The application layer" + }, + "ascs": { + "$ref": "Layer", + "deprecated": true, + "description": "Optional. The ascs layer" + }, + "database": { + "$ref": "Layer", + "deprecated": true, + "description": "Optional. The database layer" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. such as name, description, version. More example can be found in deployment", + "type": "object" + }, + "name": { + "description": "Identifier. name of resource names have the form 'projects/{project_id}/workloads/{workload_id}'", + "type": "string" + }, + "refreshedTime": { + "description": "Required. time when the workload data was refreshed", + "format": "google-datetime", + "type": "string" + }, + "sapWorkload": { + "$ref": "SapWorkload", + "description": "The sap workload content" + }, + "sqlserverWorkload": { + "$ref": "SqlserverWorkload", + "description": "The sqlserver workload content" + }, + "state": { + "deprecated": true, + "description": "Output only. [output only] the current state if a a workload", + "enum": [ + "STATE_UNSPECIFIED", + "ACTIVE", + "DEPLOYING", + "DESTROYING", + "MAINTENANCE" + ], + "enumDescriptions": [ + "unspecified", + "ACTIVE state", + "workload is in Deploying state", + "The workload is in Destroying state", + "The Workload is undermaintance" + ], + "readOnly": true, + "type": "string" + }, + "threeTierWorkload": { + "$ref": "ThreeTierWorkload", + "description": "The 3 tier web app workload content" + }, + "workloadType": { + "description": "Required. The type of the workload", + "enum": [ + "WORKLOAD_TYPE_UNSPECIFIED", + "S4_HANA", + "SQL_SERVER", + "THREE_TIER_WEB_APP" + ], + "enumDescriptions": [ + "unspecified workload type", + "running sap workload s4/hana", + "running sqlserver workload", + "running 3 tier web app workload" + ], + "type": "string" + } + }, + "type": "object" + }, + "WorkloadProfileOverview": { + "description": "a workload profile overview", + "id": "WorkloadProfileOverview", + "properties": { + "sapWorkloadOverview": { + "$ref": "SapWorkloadOverview", + "description": "The sap workload overview" + }, + "sqlserverWorkloadOverview": { + "$ref": "SqlserverWorkloadOverview", + "description": "The sqlserver workload overview" + }, + "threeTierWorkloadOverview": { + "$ref": "ThreeTierWorkloadOverview", + "description": "The three tier workload overview" + } + }, + "type": "object" + }, "WriteInsightRequest": { "description": "Request for sending the data insights.", "id": "WriteInsightRequest", diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index 51a50b1d8df..8148af8c8ff 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -173,6 +173,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.Insights = NewProjectsLocationsInsightsService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.Rules = NewProjectsLocationsRulesService(s) + rs.WorkloadProfiles = NewProjectsLocationsWorkloadProfilesService(s) return rs } @@ -186,6 +187,8 @@ type ProjectsLocationsService struct { Operations *ProjectsLocationsOperationsService Rules *ProjectsLocationsRulesService + + WorkloadProfiles *ProjectsLocationsWorkloadProfilesService } func NewProjectsLocationsEvaluationsService(s *Service) *ProjectsLocationsEvaluationsService { @@ -260,6 +263,126 @@ type ProjectsLocationsRulesService struct { s *Service } +func NewProjectsLocationsWorkloadProfilesService(s *Service) *ProjectsLocationsWorkloadProfilesService { + rs := &ProjectsLocationsWorkloadProfilesService{s: s} + return rs +} + +type ProjectsLocationsWorkloadProfilesService struct { + s *Service +} + +// APILayerServer: The API layer server +type APILayerServer struct { + // Name: Output only. The api layer name + Name string `json:"name,omitempty"` + + // OsVersion: Output only. OS information + OsVersion string `json:"osVersion,omitempty"` + + // Resources: Output only. resources in the component + Resources []*CloudResource `json:"resources,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *APILayerServer) MarshalJSON() ([]byte, error) { + type NoMethod APILayerServer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AvailabilityGroup: The availability groups for sqlserver +type AvailabilityGroup struct { + // Databases: Output only. The databases + Databases []string `json:"databases,omitempty"` + + // Name: Output only. The availability group name + Name string `json:"name,omitempty"` + + // PrimaryServer: Output only. The primary server + PrimaryServer string `json:"primaryServer,omitempty"` + + // SecondaryServers: Output only. The secondary servers + SecondaryServers []string `json:"secondaryServers,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Databases") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Databases") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AvailabilityGroup) MarshalJSON() ([]byte, error) { + type NoMethod AvailabilityGroup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// BackendServer: The backend server +type BackendServer struct { + // BackupFile: Output only. The backup file + BackupFile string `json:"backupFile,omitempty"` + + // BackupSchedule: Output only. The backup schedule + BackupSchedule string `json:"backupSchedule,omitempty"` + + // Name: Output only. The backend name + Name string `json:"name,omitempty"` + + // OsVersion: Output only. OS information + OsVersion string `json:"osVersion,omitempty"` + + // Resources: Output only. resources in the component + Resources []*CloudResource `json:"resources,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupFile") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BackupFile") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BackendServer) MarshalJSON() ([]byte, error) { + type NoMethod BackendServer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BigQueryDestination: Message describing big query destination type BigQueryDestination struct { // CreateNewResultsTable: Optional. determine if results will be saved @@ -300,6 +423,123 @@ func (s *BigQueryDestination) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// CloudResource: The resource on GCP +type CloudResource struct { + // Kind: Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal + // server, etc. + // + // Possible values: + // "RESOURCE_KIND_UNSPECIFIED" - Unspecified resource kind. + // "RESOURCE_KIND_INSTANCE" - This is a compute instance. + // "RESOURCE_KIND_DISK" - This is a compute disk. + // "RESOURCE_KIND_ADDRESS" - This is a compute address. + // "RESOURCE_KIND_FILESTORE" - This is a filestore instance. + // "RESOURCE_KIND_HEALTH_CHECK" - This is a compute health check. + // "RESOURCE_KIND_FORWARDING_RULE" - This is a compute forwarding + // rule. + // "RESOURCE_KIND_BACKEND_SERVICE" - This is a compute backend + // service. + // "RESOURCE_KIND_SUBNETWORK" - This is a compute subnetwork. + // "RESOURCE_KIND_NETWORK" - This is a compute network. + // "RESOURCE_KIND_PUBLIC_ADDRESS" - This is a public accessible IP + // Address. + // "RESOURCE_KIND_INSTANCE_GROUP" - This is a compute instance group. + Kind string `json:"kind,omitempty"` + + // Name: Output only. resource name + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Kind") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Kind") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CloudResource) MarshalJSON() ([]byte, error) { + type NoMethod CloudResource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Cluster: The cluster for sqlserver +type Cluster struct { + // Nodes: Output only. The nodes + Nodes []string `json:"nodes,omitempty"` + + // WitnessServer: Output only. The witness server + WitnessServer string `json:"witnessServer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Nodes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Nodes") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Cluster) MarshalJSON() ([]byte, error) { + type NoMethod Cluster + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Database: The database for sqlserver +type Database struct { + // BackupFile: Output only. The backup file + BackupFile string `json:"backupFile,omitempty"` + + // BackupSchedule: Output only. The backup schedule + BackupSchedule string `json:"backupSchedule,omitempty"` + + // HostVm: Output only. The host VM + HostVm string `json:"hostVm,omitempty"` + + // Name: Output only. The database name + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupFile") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BackupFile") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Database) MarshalJSON() ([]byte, error) { + type NoMethod Database + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -494,6 +734,40 @@ func (s *ExecutionResult) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FrontEndServer: The front end server +type FrontEndServer struct { + // Name: Output only. The frontend name + Name string `json:"name,omitempty"` + + // OsVersion: Output only. OS information + OsVersion string `json:"osVersion,omitempty"` + + // Resources: Output only. resources in the component + Resources []*CloudResource `json:"resources,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *FrontEndServer) MarshalJSON() ([]byte, error) { + type NoMethod FrontEndServer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GceInstanceFilter: Message describing compute engine instance filter type GceInstanceFilter struct { // ServiceAccounts: Service account of compute engine @@ -568,6 +842,94 @@ func (s *Insight) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Instance: a vm instance +type Instance struct { + // Name: Output only. name of the VM + Name string `json:"name,omitempty"` + + // Region: Output only. The location of the VM + Region string `json:"region,omitempty"` + + // Status: Output only. The state of the VM + // + // Possible values: + // "INSTANCESTATE_UNSPECIFIED" - The Status of the VM is unspecified + // "PROVISIONING" - Resources are being allocated for the instance. + // "STAGING" - All required resources have been allocated and the + // instance is being started. + // "RUNNING" - The instance is running. + // "STOPPING" - The instance is currently stopping (either being + // deleted or killed). + // "STOPPED" - The instance has stopped due to various reasons (user + // request, VM preemption, project freezing, etc.). + // "TERMINATED" - The instance has failed in some way. + // "SUSPENDING" - The instance is suspending. + // "SUSPENDED" - The instance is suspended. + // "REPAIRING" - The instance is in repair. + // "DEPROVISIONING" - The instance is in de-provisioning state. + Status string `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Instance) MarshalJSON() ([]byte, error) { + type NoMethod Instance + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Layer: The database layer +type Layer struct { + // ApplicationType: the application layer + ApplicationType string `json:"applicationType,omitempty"` + + // DatabaseType: Optional. the database layer + DatabaseType string `json:"databaseType,omitempty"` + + // Instances: Optional. instances in a layer + Instances []*Instance `json:"instances,omitempty"` + + // Sid: Output only. system identification of a layer + Sid string `json:"sid,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApplicationType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApplicationType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Layer) MarshalJSON() ([]byte, error) { + type NoMethod Layer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListEvaluationsResponse: Message for response to listing Evaluations type ListEvaluationsResponse struct { // Evaluations: The list of Evaluation @@ -833,15 +1195,86 @@ func (s *ListScannedResourcesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Location: A resource that represents a Google Cloud location. -type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". - DisplayName string `json:"displayName,omitempty"` +// ListWorkloadProfilesResponse: List workloadResponse returns a +// response with the list of workload overview +type ListWorkloadProfilesResponse struct { + // NextPageToken: Output only. A token identifying a page of results the + // server should return + NextPageToken string `json:"nextPageToken,omitempty"` - // Labels: Cross-service attributes for the location. For example - // {"cloud.googleapis.com/region": "us-east1"} - Labels map[string]string `json:"labels,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // WorkloadOverviews: Output only. The list of Workload Overview + WorkloadOverviews []*WorkloadProfileOverview `json:"workloadOverviews,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListWorkloadProfilesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListWorkloadProfilesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LoadBalancerServer: The load balancer for sqlserver +type LoadBalancerServer struct { + // Ip: Output only. The IP address + Ip string `json:"ip,omitempty"` + + // Vm: Output only. The VM name + Vm string `json:"vm,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Ip") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Ip") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LoadBalancerServer) MarshalJSON() ([]byte, error) { + type NoMethod LoadBalancerServer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Location: A resource that represents a Google Cloud location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` // LocationId: The canonical id for this location. For example: // "us-east1". @@ -1215,6 +1648,37 @@ func (s *RunEvaluationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SapComponent: The component of sap workload +type SapComponent struct { + // Resources: Output only. resources in the component + Resources []*CloudResource `json:"resources,omitempty"` + + // Sid: Output only. sid is the sap component identificator + Sid string `json:"sid,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Resources") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Resources") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SapComponent) MarshalJSON() ([]byte, error) { + type NoMethod SapComponent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SapDiscovery: The schema of SAP system discovery data. type SapDiscovery struct { // ApplicationLayer: Optional. An SAP system may run without an @@ -1240,6 +1704,9 @@ type SapDiscovery struct { // last. UpdateTime string `json:"updateTime,omitempty"` + // WorkloadProperties: Optional. The properties of the workload. + WorkloadProperties *SapDiscoveryWorkloadProperties `json:"workloadProperties,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApplicationLayer") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1567,6 +2034,111 @@ func (s *SapDiscoveryResourceInstanceProperties) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SapDiscoveryWorkloadProperties: A set of properties describing an SAP +// workload. +type SapDiscoveryWorkloadProperties struct { + // ProductVersions: Optional. List of SAP Products and their versions + // running on the system. + ProductVersions []*SapDiscoveryWorkloadPropertiesProductVersion `json:"productVersions,omitempty"` + + // SoftwareComponentVersions: Optional. A list of SAP software + // components and their versions running on the system. + SoftwareComponentVersions []*SapDiscoveryWorkloadPropertiesSoftwareComponentProperties `json:"softwareComponentVersions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProductVersions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ProductVersions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SapDiscoveryWorkloadProperties) MarshalJSON() ([]byte, error) { + type NoMethod SapDiscoveryWorkloadProperties + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapDiscoveryWorkloadPropertiesProductVersion: A product name and +// version. +type SapDiscoveryWorkloadPropertiesProductVersion struct { + // Name: Optional. Name of the product. + Name string `json:"name,omitempty"` + + // Version: Optional. Version of the product. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SapDiscoveryWorkloadPropertiesProductVersion) MarshalJSON() ([]byte, error) { + type NoMethod SapDiscoveryWorkloadPropertiesProductVersion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapDiscoveryWorkloadPropertiesSoftwareComponentProperties: A SAP +// software component name, version, and type. +type SapDiscoveryWorkloadPropertiesSoftwareComponentProperties struct { + // ExtVersion: Optional. The component's minor version. + ExtVersion string `json:"extVersion,omitempty"` + + // Name: Optional. Name of the component. + Name string `json:"name,omitempty"` + + // Type: Optional. The component's type. + Type string `json:"type,omitempty"` + + // Version: Optional. The component's major version. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExtVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExtVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SapDiscoveryWorkloadPropertiesSoftwareComponentProperties) MarshalJSON() ([]byte, error) { + type NoMethod SapDiscoveryWorkloadPropertiesSoftwareComponentProperties + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SapValidation: A presentation of SAP workload insight. The schema of // SAP workloads validation related data. type SapValidation struct { @@ -1664,6 +2236,74 @@ func (s *SapValidationValidationDetail) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SapWorkload: The body of sap workload +type SapWorkload struct { + // Application: Output only. the acsc componment + Application *SapComponent `json:"application,omitempty"` + + // Database: Output only. the database componment + Database *SapComponent `json:"database,omitempty"` + + // Metadata: Output only. The metadata for SAP workload. + Metadata map[string]string `json:"metadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Application") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Application") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SapWorkload) MarshalJSON() ([]byte, error) { + type NoMethod SapWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SapWorkloadOverview: The overview of sap workload +type SapWorkloadOverview struct { + // AppSid: Output only. The application SID + AppSid string `json:"appSid,omitempty"` + + // DbSid: Output only. The database SID + DbSid string `json:"dbSid,omitempty"` + + // SapSystemId: Output only. The UUID for a SAP workload + SapSystemId string `json:"sapSystemId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppSid") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AppSid") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SapWorkloadOverview) MarshalJSON() ([]byte, error) { + type NoMethod SapWorkloadOverview + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ScannedResource: Message of scanned resource type ScannedResource struct { // Resource: resource name @@ -1817,6 +2457,75 @@ func (s *SqlserverValidationValidationDetail) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SqlserverWorkload: The body of sqlserver workload +type SqlserverWorkload struct { + // Ags: Output only. The availability groups for sqlserver + Ags []*AvailabilityGroup `json:"ags,omitempty"` + + // Cluster: Output only. The cluster for sqlserver + Cluster *Cluster `json:"cluster,omitempty"` + + // Databases: Output only. The databases for sqlserver + Databases []*Database `json:"databases,omitempty"` + + // LoadBalancerServer: Output only. The load balancer for sqlserver + LoadBalancerServer *LoadBalancerServer `json:"loadBalancerServer,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Ags") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Ags") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SqlserverWorkload) MarshalJSON() ([]byte, error) { + type NoMethod SqlserverWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SqlserverWorkloadOverview: The overview of sqlserver workload +type SqlserverWorkloadOverview struct { + // AvailabilityGroup: Output only. The availability groups + AvailabilityGroup []string `json:"availabilityGroup,omitempty"` + + // SqlserverSystemId: Output only. The UUID for a Sqlserver workload + SqlserverSystemId string `json:"sqlserverSystemId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AvailabilityGroup") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AvailabilityGroup") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SqlserverWorkloadOverview) MarshalJSON() ([]byte, error) { + type NoMethod SqlserverWorkloadOverview + raw := NoMethod(*s) + 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 @@ -1861,19 +2570,21 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ViolationDetails: Message describing the violdation in execution -// result -type ViolationDetails struct { - // Asset: the name of asset - Asset string `json:"asset,omitempty"` +// ThreeTierWorkload: The body of three tier workload +type ThreeTierWorkload struct { + // ApiLayer: Output only. The API layer for three tier workload + ApiLayer *APILayerServer `json:"apiLayer,omitempty"` - // Observed: observed - Observed map[string]string `json:"observed,omitempty"` + // Backend: Output only. The backend for three tier workload + Backend *BackendServer `json:"backend,omitempty"` - // ServiceAccount: the service account associate with resource - ServiceAccount string `json:"serviceAccount,omitempty"` + // Endpoint: Output only. the workload endpoint + Endpoint string `json:"endpoint,omitempty"` - // ForceSendFields is a list of field names (e.g. "Asset") to + // Frontend: Output only. The frontend for three tier workload + Frontend *FrontEndServer `json:"frontend,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiLayer") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1881,8 +2592,8 @@ type ViolationDetails struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Asset") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "ApiLayer") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1890,8 +2601,184 @@ type ViolationDetails struct { NullFields []string `json:"-"` } -func (s *ViolationDetails) MarshalJSON() ([]byte, error) { - type NoMethod ViolationDetails +func (s *ThreeTierWorkload) MarshalJSON() ([]byte, error) { + type NoMethod ThreeTierWorkload + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ThreeTierWorkloadOverview: The overview of three tier workload +type ThreeTierWorkloadOverview struct { + // ThreeTierSystemId: Output only. The UUID for a three tier workload + ThreeTierSystemId string `json:"threeTierSystemId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ThreeTierSystemId") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ThreeTierSystemId") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ThreeTierWorkloadOverview) MarshalJSON() ([]byte, error) { + type NoMethod ThreeTierWorkloadOverview + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ViolationDetails: Message describing the violdation in execution +// result +type ViolationDetails struct { + // Asset: the name of asset + Asset string `json:"asset,omitempty"` + + // Observed: observed + Observed map[string]string `json:"observed,omitempty"` + + // ServiceAccount: the service account associate with resource + ServiceAccount string `json:"serviceAccount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Asset") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Asset") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ViolationDetails) MarshalJSON() ([]byte, error) { + type NoMethod ViolationDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WorkloadProfile: workload resource +type WorkloadProfile struct { + // Application: Optional. The application layer + Application *Layer `json:"application,omitempty"` + + // Ascs: Optional. The ascs layer + Ascs *Layer `json:"ascs,omitempty"` + + // Database: Optional. The database layer + Database *Layer `json:"database,omitempty"` + + // Labels: Optional. such as name, description, version. More example + // can be found in deployment + Labels map[string]string `json:"labels,omitempty"` + + // Name: Identifier. name of resource names have the form + // 'projects/{project_id}/workloads/{workload_id}' + Name string `json:"name,omitempty"` + + // RefreshedTime: Required. time when the workload data was refreshed + RefreshedTime string `json:"refreshedTime,omitempty"` + + // SapWorkload: The sap workload content + SapWorkload *SapWorkload `json:"sapWorkload,omitempty"` + + // SqlserverWorkload: The sqlserver workload content + SqlserverWorkload *SqlserverWorkload `json:"sqlserverWorkload,omitempty"` + + // State: Output only. [output only] the current state if a a workload + // + // Possible values: + // "STATE_UNSPECIFIED" - unspecified + // "ACTIVE" - ACTIVE state + // "DEPLOYING" - workload is in Deploying state + // "DESTROYING" - The workload is in Destroying state + // "MAINTENANCE" - The Workload is undermaintance + State string `json:"state,omitempty"` + + // ThreeTierWorkload: The 3 tier web app workload content + ThreeTierWorkload *ThreeTierWorkload `json:"threeTierWorkload,omitempty"` + + // WorkloadType: Required. The type of the workload + // + // Possible values: + // "WORKLOAD_TYPE_UNSPECIFIED" - unspecified workload type + // "S4_HANA" - running sap workload s4/hana + // "SQL_SERVER" - running sqlserver workload + // "THREE_TIER_WEB_APP" - running 3 tier web app workload + WorkloadType string `json:"workloadType,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Application") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Application") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *WorkloadProfile) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadProfile + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// WorkloadProfileOverview: a workload profile overview +type WorkloadProfileOverview struct { + // SapWorkloadOverview: The sap workload overview + SapWorkloadOverview *SapWorkloadOverview `json:"sapWorkloadOverview,omitempty"` + + // SqlserverWorkloadOverview: The sqlserver workload overview + SqlserverWorkloadOverview *SqlserverWorkloadOverview `json:"sqlserverWorkloadOverview,omitempty"` + + // ThreeTierWorkloadOverview: The three tier workload overview + ThreeTierWorkloadOverview *ThreeTierWorkloadOverview `json:"threeTierWorkloadOverview,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SapWorkloadOverview") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SapWorkloadOverview") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *WorkloadProfileOverview) MarshalJSON() ([]byte, error) { + type NoMethod WorkloadProfileOverview raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -2478,77 +3365,81 @@ func (c *ProjectsLocationsEvaluationsCreateCall) Do(opts ...googleapi.CallOption } -// method id "workloadmanager.projects.locations.evaluations.get": +// method id "workloadmanager.projects.locations.evaluations.delete": -type ProjectsLocationsEvaluationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEvaluationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single Evaluation. +// Delete: Deletes a single Evaluation. // // - name: Name of the resource. -func (r *ProjectsLocationsEvaluationsService) Get(name string) *ProjectsLocationsEvaluationsGetCall { - c := &ProjectsLocationsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsEvaluationsService) Delete(name string) *ProjectsLocationsEvaluationsDeleteCall { + c := &ProjectsLocationsEvaluationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. The server will guarantee +// that for at least 60 minutes after the first request. For example, +// consider a situation where you make an initial request and the +// request times out. If you make the request again with the same +// request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate +// commitments. The request ID must be a valid UUID with the exception +// that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsEvaluationsDeleteCall) RequestId(requestId string) *ProjectsLocationsEvaluationsDeleteCall { + 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 *ProjectsLocationsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsGetCall { +func (c *ProjectsLocationsEvaluationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsDeleteCall { 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 *ProjectsLocationsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsGetCall { - 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 *ProjectsLocationsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsGetCall { +func (c *ProjectsLocationsEvaluationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsDeleteCall { 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 *ProjectsLocationsEvaluationsGetCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -2559,14 +3450,14 @@ func (c *ProjectsLocationsEvaluationsGetCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "workloadmanager.projects.locations.evaluations.get" call. -// Exactly one of *Evaluation or error will be non-nil. Any non-2xx +// Do executes the "workloadmanager.projects.locations.evaluations.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *Evaluation.ServerResponse.Header or (if a response was returned at +// *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 *ProjectsLocationsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*Evaluation, error) { +func (c *ProjectsLocationsEvaluationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2585,7 +3476,7 @@ func (c *ProjectsLocationsEvaluationsGetCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Evaluation{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2597,10 +3488,10 @@ func (c *ProjectsLocationsEvaluationsGetCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Gets details of a single Evaluation.", + // "description": "Deletes a single Evaluation.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}", - // "httpMethod": "GET", - // "id": "workloadmanager.projects.locations.evaluations.get", + // "httpMethod": "DELETE", + // "id": "workloadmanager.projects.locations.evaluations.delete", // "parameterOrder": [ // "name" // ], @@ -2611,11 +3502,16 @@ func (c *ProjectsLocationsEvaluationsGetCall) Do(opts ...googleapi.CallOption) ( // "pattern": "^projects/[^/]+/locations/[^/]+/evaluations/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Evaluation" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -2624,58 +3520,30 @@ func (c *ProjectsLocationsEvaluationsGetCall) Do(opts ...googleapi.CallOption) ( } -// method id "workloadmanager.projects.locations.evaluations.list": +// method id "workloadmanager.projects.locations.evaluations.get": -type ProjectsLocationsEvaluationsListCall struct { +type ProjectsLocationsEvaluationsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists Evaluations in a given project and location. +// Get: Gets details of a single Evaluation. // -// - parent: Parent value for ListEvaluationsRequest. -func (r *ProjectsLocationsEvaluationsService) List(parent string) *ProjectsLocationsEvaluationsListCall { - c := &ProjectsLocationsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Filtering results -func (c *ProjectsLocationsEvaluationsListCall) Filter(filter string) *ProjectsLocationsEvaluationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Hint for how to order -// the results -func (c *ProjectsLocationsEvaluationsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Requested page size. -// Server may return fewer items than requested. If unspecified, server -// will pick an appropriate default. -func (c *ProjectsLocationsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. -func (c *ProjectsLocationsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: Name of the resource. +func (r *ProjectsLocationsEvaluationsService) Get(name string) *ProjectsLocationsEvaluationsGetCall { + c := &ProjectsLocationsEvaluationsGetCall{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 *ProjectsLocationsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsListCall { +func (c *ProjectsLocationsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -2685,7 +3553,7 @@ func (c *ProjectsLocationsEvaluationsListCall) Fields(s ...googleapi.Field) *Pro // 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 *ProjectsLocationsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsListCall { +func (c *ProjectsLocationsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -2693,21 +3561,21 @@ func (c *ProjectsLocationsEvaluationsListCall) IfNoneMatch(entityTag string) *Pr // 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 *ProjectsLocationsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsListCall { +func (c *ProjectsLocationsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsGetCall { 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 *ProjectsLocationsEvaluationsListCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationsGetCall) 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_ { @@ -2720,7 +3588,7 @@ func (c *ProjectsLocationsEvaluationsListCall) doRequest(alt string) (*http.Resp var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/evaluations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -2728,20 +3596,194 @@ func (c *ProjectsLocationsEvaluationsListCall) doRequest(alt string) (*http.Resp } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "workloadmanager.projects.locations.evaluations.list" call. -// Exactly one of *ListEvaluationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListEvaluationsResponse.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 *ProjectsLocationsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*ListEvaluationsResponse, error) { - gensupport.SetOptions(c.urlParams_, opts...) +// Do executes the "workloadmanager.projects.locations.evaluations.get" call. +// Exactly one of *Evaluation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Evaluation.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 *ProjectsLocationsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*Evaluation, 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 := &Evaluation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single Evaluation.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}", + // "httpMethod": "GET", + // "id": "workloadmanager.projects.locations.evaluations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the resource", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/evaluations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Evaluation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workloadmanager.projects.locations.evaluations.list": + +type ProjectsLocationsEvaluationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Evaluations in a given project and location. +// +// - parent: Parent value for ListEvaluationsRequest. +func (r *ProjectsLocationsEvaluationsService) List(parent string) *ProjectsLocationsEvaluationsListCall { + c := &ProjectsLocationsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results +func (c *ProjectsLocationsEvaluationsListCall) Filter(filter string) *ProjectsLocationsEvaluationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order +// the results +func (c *ProjectsLocationsEvaluationsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer items than requested. If unspecified, server +// will pick an appropriate default. +func (c *ProjectsLocationsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results the server should return. +func (c *ProjectsLocationsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsListCall { + 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 *ProjectsLocationsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsListCall { + 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 *ProjectsLocationsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsListCall { + 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 *ProjectsLocationsEvaluationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationsListCall) 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}/evaluations") + 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 "workloadmanager.projects.locations.evaluations.list" call. +// Exactly one of *ListEvaluationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListEvaluationsResponse.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 *ProjectsLocationsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*ListEvaluationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { @@ -2840,77 +3882,81 @@ func (c *ProjectsLocationsEvaluationsListCall) Pages(ctx context.Context, f func } } -// method id "workloadmanager.projects.locations.evaluations.executions.get": +// method id "workloadmanager.projects.locations.evaluations.executions.delete": -type ProjectsLocationsEvaluationsExecutionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEvaluationsExecutionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single Execution. +// Delete: Deletes a single Execution. // // - name: Name of the resource. -func (r *ProjectsLocationsEvaluationsExecutionsService) Get(name string) *ProjectsLocationsEvaluationsExecutionsGetCall { - c := &ProjectsLocationsEvaluationsExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsEvaluationsExecutionsService) Delete(name string) *ProjectsLocationsEvaluationsExecutionsDeleteCall { + c := &ProjectsLocationsEvaluationsExecutionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. The server will guarantee +// that for at least 60 minutes after the first request. For example, +// consider a situation where you make an initial request and the +// request times out. If you make the request again with the same +// request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate +// commitments. The request ID must be a valid UUID with the exception +// that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) RequestId(requestId string) *ProjectsLocationsEvaluationsExecutionsDeleteCall { + 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 *ProjectsLocationsEvaluationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsGetCall { +func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsDeleteCall { 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 *ProjectsLocationsEvaluationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsGetCall { - 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 *ProjectsLocationsEvaluationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsGetCall { +func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsDeleteCall { 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 *ProjectsLocationsEvaluationsExecutionsGetCall) Header() http.Header { +func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEvaluationsExecutionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -2921,14 +3967,14 @@ func (c *ProjectsLocationsEvaluationsExecutionsGetCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "workloadmanager.projects.locations.evaluations.executions.get" call. -// Exactly one of *Execution or error will be non-nil. Any non-2xx +// Do executes the "workloadmanager.projects.locations.evaluations.executions.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *Execution.ServerResponse.Header or (if a response was returned at +// *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 *ProjectsLocationsEvaluationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*Execution, error) { +func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -2947,7 +3993,7 @@ func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Execution{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -2959,10 +4005,10 @@ func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Gets details of a single Execution.", + // "description": "Deletes a single Execution.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}/executions/{executionsId}", - // "httpMethod": "GET", - // "id": "workloadmanager.projects.locations.evaluations.executions.get", + // "httpMethod": "DELETE", + // "id": "workloadmanager.projects.locations.evaluations.executions.delete", // "parameterOrder": [ // "name" // ], @@ -2973,11 +4019,16 @@ func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Do(opts ...googleapi.Cal // "pattern": "^projects/[^/]+/locations/[^/]+/evaluations/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "Execution" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -2986,9 +4037,155 @@ func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Do(opts ...googleapi.Cal } -// method id "workloadmanager.projects.locations.evaluations.executions.list": +// method id "workloadmanager.projects.locations.evaluations.executions.get": -type ProjectsLocationsEvaluationsExecutionsListCall struct { +type ProjectsLocationsEvaluationsExecutionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single Execution. +// +// - name: Name of the resource. +func (r *ProjectsLocationsEvaluationsExecutionsService) Get(name string) *ProjectsLocationsEvaluationsExecutionsGetCall { + c := &ProjectsLocationsEvaluationsExecutionsGetCall{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 *ProjectsLocationsEvaluationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsGetCall { + 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 *ProjectsLocationsEvaluationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsGetCall { + 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 *ProjectsLocationsEvaluationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsGetCall { + 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 *ProjectsLocationsEvaluationsExecutionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEvaluationsExecutionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.evaluations.executions.get" call. +// Exactly one of *Execution or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Execution.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 *ProjectsLocationsEvaluationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*Execution, 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 := &Execution{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single Execution.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluations/{evaluationsId}/executions/{executionsId}", + // "httpMethod": "GET", + // "id": "workloadmanager.projects.locations.evaluations.executions.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the resource", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/evaluations/[^/]+/executions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Execution" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workloadmanager.projects.locations.evaluations.executions.list": + +type ProjectsLocationsEvaluationsExecutionsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -4220,21 +5417,405 @@ type ProjectsLocationsOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. -// -// - name: The name of the operation resource. -func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { - c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{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 *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.operations.get" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "workloadmanager.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "workloadmanager.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "workloadmanager.projects.locations.operations.list" call. +// Exactly one of *ListOperationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, 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 := &ListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "workloadmanager.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/operations", + // "response": { + // "$ref": "ListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "workloadmanager.projects.locations.rules.list": + +type ProjectsLocationsRulesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists rules in a given project. +// +// - parent: The [project] on which to execute the request. The format +// is: projects/{project_id}/locations/{location} Currently, the +// pre-defined rules are global available to all projects and all +// regions. +func (r *ProjectsLocationsRulesService) List(parent string) *ProjectsLocationsRulesListCall { + c := &ProjectsLocationsRulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// CustomRulesBucket sets the optional parameter "customRulesBucket": +// The Cloud Storage bucket name for custom rules. +func (c *ProjectsLocationsRulesListCall) CustomRulesBucket(customRulesBucket string) *ProjectsLocationsRulesListCall { + c.urlParams_.Set("customRulesBucket", customRulesBucket) + return c +} + +// Filter sets the optional parameter "filter": Filter based on +// primary_category, secondary_category +func (c *ProjectsLocationsRulesListCall) Filter(filter string) *ProjectsLocationsRulesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer items than requested. If unspecified, server +// will pick an appropriate default. +func (c *ProjectsLocationsRulesListCall) PageSize(pageSize int64) *ProjectsLocationsRulesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results the server should return. +func (c *ProjectsLocationsRulesListCall) PageToken(pageToken string) *ProjectsLocationsRulesListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRulesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4244,7 +5825,7 @@ func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *Proje // 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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsRulesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRulesListCall { c.ifNoneMatch_ = entityTag return c } @@ -4252,21 +5833,21 @@ func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *Proj // 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 *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { +func (c *ProjectsLocationsRulesListCall) Context(ctx context.Context) *ProjectsLocationsRulesListCall { 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 *ProjectsLocationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsRulesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsRulesListCall) 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_ { @@ -4279,7 +5860,7 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rules") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4287,19 +5868,19 @@ func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Respon } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "workloadmanager.projects.locations.operations.get" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "workloadmanager.projects.locations.rules.list" call. +// Exactly one of *ListRulesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListRulesResponse.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 *ProjectsLocationsRulesListCall) Do(opts ...googleapi.CallOption) (*ListRulesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4318,7 +5899,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListRulesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4330,25 +5911,46 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "description": "Lists rules in a given project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/rules", // "httpMethod": "GET", - // "id": "workloadmanager.projects.locations.operations.get", + // "id": "workloadmanager.projects.locations.rules.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "customRulesBucket": { + // "description": "The Cloud Storage bucket name for custom rules.", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Filter based on primary_category, secondary_category", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results the server should return.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all projects and all regions", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/rules", // "response": { - // "$ref": "Operation" + // "$ref": "ListRulesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4357,9 +5959,30 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* } -// method id "workloadmanager.projects.locations.operations.list": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsRulesListCall) Pages(ctx context.Context, f func(*ListRulesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsOperationsListCall struct { +// method id "workloadmanager.projects.locations.workloadProfiles.get": + +type ProjectsLocationsWorkloadProfilesGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -4368,42 +5991,19 @@ type ProjectsLocationsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// Get: Gets details of a single workload. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { - c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the resource. +func (r *ProjectsLocationsWorkloadProfilesService) Get(name string) *ProjectsLocationsWorkloadProfilesGetCall { + c := &ProjectsLocationsWorkloadProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsWorkloadProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadProfilesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4413,7 +6013,7 @@ func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *Proj // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsWorkloadProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadProfilesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -4421,21 +6021,21 @@ func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *Pro // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { +func (c *ProjectsLocationsWorkloadProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsWorkloadProfilesGetCall { 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 *ProjectsLocationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadProfilesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadProfilesGetCall) 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_ { @@ -4448,7 +6048,7 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4461,14 +6061,14 @@ func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "workloadmanager.projects.locations.operations.list" call. -// Exactly one of *ListOperationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "workloadmanager.projects.locations.workloadProfiles.get" call. +// Exactly one of *WorkloadProfile or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *WorkloadProfile.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { +func (c *ProjectsLocationsWorkloadProfilesGetCall) Do(opts ...googleapi.CallOption) (*WorkloadProfile, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4487,7 +6087,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListOperationsResponse{ + ret := &WorkloadProfile{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4499,41 +6099,25 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "description": "Gets details of a single workload.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadProfiles/{workloadProfilesId}", // "httpMethod": "GET", - // "id": "workloadmanager.projects.locations.operations.list", + // "id": "workloadmanager.projects.locations.workloadProfiles.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The name of the operation's parent resource.", + // "description": "Required. Name of the resource", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/workloadProfiles/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}/operations", + // "path": "v1/{+name}", // "response": { - // "$ref": "ListOperationsResponse" + // "$ref": "WorkloadProfile" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4542,30 +6126,9 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "workloadmanager.projects.locations.rules.list": +// method id "workloadmanager.projects.locations.workloadProfiles.list": -type ProjectsLocationsRulesListCall struct { +type ProjectsLocationsWorkloadProfilesListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -4574,28 +6137,17 @@ type ProjectsLocationsRulesListCall struct { header_ http.Header } -// List: Lists rules in a given project. +// List: List workloads // -// - parent: The [project] on which to execute the request. The format -// is: projects/{project_id}/locations/{location} Currently, the -// pre-defined rules are global available to all projects and all -// regions. -func (r *ProjectsLocationsRulesService) List(parent string) *ProjectsLocationsRulesListCall { - c := &ProjectsLocationsRulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: Parent value for ListWorkloadRequest. +func (r *ProjectsLocationsWorkloadProfilesService) List(parent string) *ProjectsLocationsWorkloadProfilesListCall { + c := &ProjectsLocationsWorkloadProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// CustomRulesBucket sets the optional parameter "customRulesBucket": -// The Cloud Storage bucket name for custom rules. -func (c *ProjectsLocationsRulesListCall) CustomRulesBucket(customRulesBucket string) *ProjectsLocationsRulesListCall { - c.urlParams_.Set("customRulesBucket", customRulesBucket) - return c -} - -// Filter sets the optional parameter "filter": Filter based on -// primary_category, secondary_category -func (c *ProjectsLocationsRulesListCall) Filter(filter string) *ProjectsLocationsRulesListCall { +// Filter sets the optional parameter "filter": Filtering results +func (c *ProjectsLocationsWorkloadProfilesListCall) Filter(filter string) *ProjectsLocationsWorkloadProfilesListCall { c.urlParams_.Set("filter", filter) return c } @@ -4603,14 +6155,14 @@ func (c *ProjectsLocationsRulesListCall) Filter(filter string) *ProjectsLocation // PageSize sets the optional parameter "pageSize": Requested page size. // Server may return fewer items than requested. If unspecified, server // will pick an appropriate default. -func (c *ProjectsLocationsRulesListCall) PageSize(pageSize int64) *ProjectsLocationsRulesListCall { +func (c *ProjectsLocationsWorkloadProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsWorkloadProfilesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A token // identifying a page of results the server should return. -func (c *ProjectsLocationsRulesListCall) PageToken(pageToken string) *ProjectsLocationsRulesListCall { +func (c *ProjectsLocationsWorkloadProfilesListCall) PageToken(pageToken string) *ProjectsLocationsWorkloadProfilesListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -4618,7 +6170,7 @@ func (c *ProjectsLocationsRulesListCall) PageToken(pageToken string) *ProjectsLo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRulesListCall { +func (c *ProjectsLocationsWorkloadProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkloadProfilesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4628,7 +6180,7 @@ func (c *ProjectsLocationsRulesListCall) Fields(s ...googleapi.Field) *ProjectsL // 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 *ProjectsLocationsRulesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRulesListCall { +func (c *ProjectsLocationsWorkloadProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkloadProfilesListCall { c.ifNoneMatch_ = entityTag return c } @@ -4636,21 +6188,21 @@ func (c *ProjectsLocationsRulesListCall) IfNoneMatch(entityTag string) *Projects // 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 *ProjectsLocationsRulesListCall) Context(ctx context.Context) *ProjectsLocationsRulesListCall { +func (c *ProjectsLocationsWorkloadProfilesListCall) Context(ctx context.Context) *ProjectsLocationsWorkloadProfilesListCall { 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 *ProjectsLocationsRulesListCall) Header() http.Header { +func (c *ProjectsLocationsWorkloadProfilesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsRulesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsWorkloadProfilesListCall) 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_ { @@ -4663,7 +6215,7 @@ func (c *ProjectsLocationsRulesListCall) doRequest(alt string) (*http.Response, var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rules") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/workloadProfiles") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4676,14 +6228,14 @@ func (c *ProjectsLocationsRulesListCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "workloadmanager.projects.locations.rules.list" call. -// Exactly one of *ListRulesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListRulesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "workloadmanager.projects.locations.workloadProfiles.list" call. +// Exactly one of *ListWorkloadProfilesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListWorkloadProfilesResponse.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 *ProjectsLocationsRulesListCall) Do(opts ...googleapi.CallOption) (*ListRulesResponse, error) { +func (c *ProjectsLocationsWorkloadProfilesListCall) Do(opts ...googleapi.CallOption) (*ListWorkloadProfilesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4702,7 +6254,7 @@ func (c *ProjectsLocationsRulesListCall) Do(opts ...googleapi.CallOption) (*List if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListRulesResponse{ + ret := &ListWorkloadProfilesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4714,46 +6266,42 @@ func (c *ProjectsLocationsRulesListCall) Do(opts ...googleapi.CallOption) (*List } return ret, nil // { - // "description": "Lists rules in a given project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/rules", + // "deprecated": true, + // "description": "List workloads", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/workloadProfiles", // "httpMethod": "GET", - // "id": "workloadmanager.projects.locations.rules.list", + // "id": "workloadmanager.projects.locations.workloadProfiles.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "customRulesBucket": { - // "description": "The Cloud Storage bucket name for custom rules.", - // "location": "query", - // "type": "string" - // }, // "filter": { - // "description": "Filter based on primary_category, secondary_category", + // "description": "Optional. Filtering results", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + // "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A token identifying a page of results the server should return.", + // "description": "Optional. A token identifying a page of results the server should return.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The [project] on which to execute the request. The format is: projects/{project_id}/locations/{location} Currently, the pre-defined rules are global available to all projects and all regions", + // "description": "Required. Parent value for ListWorkloadRequest", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/rules", + // "path": "v1/{+parent}/workloadProfiles", // "response": { - // "$ref": "ListRulesResponse" + // "$ref": "ListWorkloadProfilesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4765,7 +6313,7 @@ func (c *ProjectsLocationsRulesListCall) Do(opts ...googleapi.CallOption) (*List // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsRulesListCall) Pages(ctx context.Context, f func(*ListRulesResponse) error) error { +func (c *ProjectsLocationsWorkloadProfilesListCall) Pages(ctx context.Context, f func(*ListWorkloadProfilesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index e9496a63d29..88ea1861743 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -3999,7 +3999,7 @@ } } }, - "revision": "20240211", + "revision": "20240213", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -5473,6 +5473,10 @@ "description": "Information specific to a store on a merchandising platform linked to a YouTube channel.", "id": "ChannelToStoreLinkDetails", "properties": { + "billingDetails": { + "$ref": "ChannelToStoreLinkDetailsBillingDetails", + "description": "Information specific to billing (read-only)." + }, "merchantId": { "description": "Google Merchant Center id of the store.", "format": "uint64", @@ -5489,6 +5493,29 @@ }, "type": "object" }, + "ChannelToStoreLinkDetailsBillingDetails": { + "description": "Information specific to billing.", + "id": "ChannelToStoreLinkDetailsBillingDetails", + "properties": { + "billingStatus": { + "description": "The current billing profile status.", + "enum": [ + "billingStatusUnspecified", + "billingStatusPending", + "billingStatusActive", + "billingStatusInactive" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "ChannelTopicDetails": { "description": "Freebase topic information related to the channel.", "id": "ChannelTopicDetails", @@ -8738,11 +8765,11 @@ "type": "object" }, "LiveChatMessageSnippet": { - "description": "Next ID: 33", + "description": "Next ID: 34", "id": "LiveChatMessageSnippet", "properties": { "authorChannelId": { - "description": "The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase", + "description": "The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase pollEvent - the user that created the poll", "type": "string" }, "displayMessage": { @@ -8783,6 +8810,10 @@ "$ref": "LiveChatNewSponsorDetails", "description": "Details about the New Member Announcement event, this is only set if the type is 'newSponsorEvent'. Please note that \"member\" is the new term for \"sponsor\"." }, + "pollDetails": { + "$ref": "LiveChatPollDetails", + "description": "Details about the poll event, this is only set if the type is 'pollEvent'." + }, "publishedAt": { "description": "The date and time when the message was orignally published.", "format": "date-time", @@ -8818,7 +8849,8 @@ "messageRetractedEvent", "userBannedEvent", "superChatEvent", - "superStickerEvent" + "superStickerEvent", + "pollEvent" ], "enumDescriptions": [ "", @@ -8836,6 +8868,7 @@ "", "", "", + "", "" ], "type": "string" @@ -8946,6 +8979,57 @@ }, "type": "object" }, + "LiveChatPollDetails": { + "id": "LiveChatPollDetails", + "properties": { + "metadata": { + "$ref": "LiveChatPollDetailsPollMetadata" + }, + "status": { + "enum": [ + "unknown", + "active", + "closed" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "LiveChatPollDetailsPollMetadata": { + "id": "LiveChatPollDetailsPollMetadata", + "properties": { + "options": { + "description": "The options will be returned in the order that is displayed in 1P", + "items": { + "$ref": "LiveChatPollDetailsPollMetadataPollOption" + }, + "type": "array" + }, + "questionText": { + "type": "string" + } + }, + "type": "object" + }, + "LiveChatPollDetailsPollMetadataPollOption": { + "id": "LiveChatPollDetailsPollMetadataPollOption", + "properties": { + "optionText": { + "type": "string" + }, + "tally": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "LiveChatSuperChatDetails": { "id": "LiveChatSuperChatDetails", "properties": { diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index ae064efe639..2109d898f82 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -2606,6 +2606,9 @@ func (s *ChannelStatus) MarshalJSON() ([]byte, error) { // ChannelToStoreLinkDetails: Information specific to a store on a // merchandising platform linked to a YouTube channel. type ChannelToStoreLinkDetails struct { + // BillingDetails: Information specific to billing (read-only). + BillingDetails *ChannelToStoreLinkDetailsBillingDetails `json:"billingDetails,omitempty"` + // MerchantId: Google Merchant Center id of the store. MerchantId uint64 `json:"merchantId,omitempty,string"` @@ -2615,7 +2618,7 @@ type ChannelToStoreLinkDetails struct { // StoreUrl: Landing page of the store. StoreUrl string `json:"storeUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "MerchantId") to + // ForceSendFields is a list of field names (e.g. "BillingDetails") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2623,12 +2626,13 @@ type ChannelToStoreLinkDetails struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MerchantId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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. "BillingDetails") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2638,6 +2642,41 @@ func (s *ChannelToStoreLinkDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ChannelToStoreLinkDetailsBillingDetails: Information specific to +// billing. +type ChannelToStoreLinkDetailsBillingDetails struct { + // BillingStatus: The current billing profile status. + // + // Possible values: + // "billingStatusUnspecified" + // "billingStatusPending" + // "billingStatusActive" + // "billingStatusInactive" + BillingStatus string `json:"billingStatus,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BillingStatus") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BillingStatus") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ChannelToStoreLinkDetailsBillingDetails) MarshalJSON() ([]byte, error) { + type NoMethod ChannelToStoreLinkDetailsBillingDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ChannelTopicDetails: Freebase topic information related to the // channel. type ChannelTopicDetails struct { @@ -5846,7 +5885,7 @@ func (s *LiveChatMessageRetractedDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// LiveChatMessageSnippet: Next ID: 33 +// LiveChatMessageSnippet: Next ID: 34 type LiveChatMessageSnippet struct { // AuthorChannelId: The ID of the user that authored this message, this // field is not always filled. textMessageEvent - the user that wrote @@ -5859,7 +5898,7 @@ type LiveChatMessageSnippet struct { // messageRetractedEvent - the author that retracted their message // userBannedEvent - the moderator that took the action superChatEvent - // the user that made the purchase superStickerEvent - the user that - // made the purchase + // made the purchase pollEvent - the user that created the poll AuthorChannelId string `json:"authorChannelId,omitempty"` // DisplayMessage: Contains a string that can be displayed to the user. @@ -5899,6 +5938,10 @@ type LiveChatMessageSnippet struct { // "member" is the new term for "sponsor". NewSponsorDetails *LiveChatNewSponsorDetails `json:"newSponsorDetails,omitempty"` + // PollDetails: Details about the poll event, this is only set if the + // type is 'pollEvent'. + PollDetails *LiveChatPollDetails `json:"pollDetails,omitempty"` + // PublishedAt: The date and time when the message was orignally // published. PublishedAt string `json:"publishedAt,omitempty"` @@ -5935,6 +5978,7 @@ type LiveChatMessageSnippet struct { // "userBannedEvent" // "superChatEvent" // "superStickerEvent" + // "pollEvent" Type string `json:"type,omitempty"` UserBannedDetails *LiveChatUserBannedMessageDetails `json:"userBannedDetails,omitempty"` @@ -6130,6 +6174,96 @@ func (s *LiveChatNewSponsorDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type LiveChatPollDetails struct { + Metadata *LiveChatPollDetailsPollMetadata `json:"metadata,omitempty"` + + // Possible values: + // "unknown" + // "active" + // "closed" + Status string `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Metadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Metadata") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LiveChatPollDetails) MarshalJSON() ([]byte, error) { + type NoMethod LiveChatPollDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LiveChatPollDetailsPollMetadata struct { + // Options: The options will be returned in the order that is displayed + // in 1P + Options []*LiveChatPollDetailsPollMetadataPollOption `json:"options,omitempty"` + + QuestionText string `json:"questionText,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Options") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Options") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LiveChatPollDetailsPollMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LiveChatPollDetailsPollMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LiveChatPollDetailsPollMetadataPollOption struct { + OptionText string `json:"optionText,omitempty"` + + Tally int64 `json:"tally,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "OptionText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OptionText") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LiveChatPollDetailsPollMetadataPollOption) MarshalJSON() ([]byte, error) { + type NoMethod LiveChatPollDetailsPollMetadataPollOption + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type LiveChatSuperChatDetails struct { // AmountDisplayString: A rendered string that displays the fund amount // and currency to the user.