diff --git a/api-list.json b/api-list.json index f359beebd0e..2f2180db980 100644 --- a/api-list.json +++ b/api-list.json @@ -2479,6 +2479,21 @@ "documentationLink": "https://developers.google.com/domains/rdap/", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "doubleclickbidmanager:v1.1", + "name": "doubleclickbidmanager", + "version": "v1.1", + "title": "DoubleClick Bid Manager API", + "description": "DoubleClick Bid Manager API allows users to manage and create campaigns and reports.", + "discoveryRestUrl": "https://doubleclickbidmanager.googleapis.com/$discovery/rest?version=v1.1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://developers.google.com/bid-manager/", + "preferred": false + }, { "kind": "discovery#directoryItem", "id": "doubleclickbidmanager:v2", diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index 9b1e2c5a100..6653ffedfe4 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -556,7 +556,7 @@ } } }, - "revision": "20230518", + "revision": "20230607", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -594,6 +594,64 @@ }, "type": "object" }, + "AgentContainer": { + "description": "Container runnable representation on the agent side.", + "id": "AgentContainer", + "properties": { + "commands": { + "description": "Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entrypoint": { + "description": "Overrides the `ENTRYPOINT` specified in the container.", + "type": "string" + }, + "imageUri": { + "description": "The URI to pull the container image from.", + "type": "string" + }, + "options": { + "description": "Arbitrary additional options to include in the \"docker run\" command when running this container, e.g. \"--network host\".", + "type": "string" + }, + "volumes": { + "description": "Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "AgentEnvironment": { + "description": "AgentEnvironment is the Environment representation between Agent and CLH communication. The environment is used in both task level and agent level.", + "id": "AgentEnvironment", + "properties": { + "encryptedVariables": { + "$ref": "AgentKMSEnvMap", + "description": "An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values." + }, + "secretVariables": { + "additionalProperties": { + "type": "string" + }, + "description": "A map of environment variable names to Secret Manager secret names. The VM will access the named secrets to set the value of each environment variable.", + "type": "object" + }, + "variables": { + "additionalProperties": { + "type": "string" + }, + "description": "A map of environment variable names to values.", + "type": "object" + } + }, + "type": "object" + }, "AgentInfo": { "description": "VM Agent Info.", "id": "AgentInfo", @@ -637,6 +695,21 @@ }, "type": "object" }, + "AgentKMSEnvMap": { + "description": "AgentKMSEnvMap contains the encrypted key/value pair to be used in the environment on the Agent side.", + "id": "AgentKMSEnvMap", + "properties": { + "cipherText": { + "description": "The value of the cipherText response from the `encrypt` method.", + "type": "string" + }, + "keyName": { + "description": "The name of the KMS key that will be used to decrypt the cipher text.", + "type": "string" + } + }, + "type": "object" + }, "AgentMetadata": { "description": "VM Agent Metadata.", "id": "AgentMetadata", @@ -685,10 +758,29 @@ }, "type": "object" }, + "AgentScript": { + "description": "Script runnable representation on the agent side.", + "id": "AgentScript", + "properties": { + "path": { + "description": "Script file path on the host VM. To specify an interpreter, please add a `#!`(also known as [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the first line of the file.(For example, to execute the script using bash, `#!/bin/bash` should be the first line of the file. To execute the script using`Python3`, `#!/usr/bin/env python3` should be the first line of the file.) Otherwise, the file will by default be excuted by `/bin/sh`.", + "type": "string" + }, + "text": { + "description": "Shell script text. To specify an interpreter, please add a `#!\\n` at the beginning of the text.(For example, to execute the script using bash, `#!/bin/bash\\n` should be added. To execute the script using`Python3`, `#!/usr/bin/env python3\\n` should be added.) Otherwise, the script will by default be excuted by `/bin/sh`.", + "type": "string" + } + }, + "type": "object" + }, "AgentTask": { "description": "TODO(b/182501497) The message needs to be redefined when the Agent API server updates data in storage per the backend design.", "id": "AgentTask", "properties": { + "agentTaskSpec": { + "$ref": "AgentTaskSpec", + "description": "AgentTaskSpec is the taskSpec representation between Agent and CLH communication. This field will replace the TaskSpec field above in future to have a better separation between user-facaing API and internal API." + }, "intendedState": { "description": "The intended state of the task.", "enum": [ @@ -712,7 +804,7 @@ }, "spec": { "$ref": "TaskSpec", - "description": "Task Spec." + "description": "Task Spec. This field will be replaced by agent_task_spec below in future." }, "status": { "$ref": "TaskStatus", @@ -759,6 +851,65 @@ }, "type": "object" }, + "AgentTaskRunnable": { + "description": "AgentTaskRunnable is the Runnable representation between Agent and CLH communication.", + "id": "AgentTaskRunnable", + "properties": { + "alwaysRun": { + "description": "By default, after a Runnable fails, no further Runnable are executed. This flag indicates that this Runnable must be run even if the Task has already failed. This is useful for Runnables that copy output files off of the VM or for debugging. The always_run flag does not override the Task's overall max_run_duration. If the max_run_duration has expired then no further Runnables will execute, not even always_run Runnables.", + "type": "boolean" + }, + "background": { + "description": "This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables. This is useful to provide services to other Runnables (or to provide debugging support tools like SSH servers).", + "type": "boolean" + }, + "container": { + "$ref": "AgentContainer", + "description": "Container runnable." + }, + "environment": { + "$ref": "AgentEnvironment", + "description": "Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup)." + }, + "ignoreExitStatus": { + "description": "Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead.", + "type": "boolean" + }, + "script": { + "$ref": "AgentScript", + "description": "Script runnable." + }, + "timeout": { + "description": "Timeout for this Runnable.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "AgentTaskSpec": { + "description": "AgentTaskSpec is the user's TaskSpec representation between Agent and CLH communication.", + "id": "AgentTaskSpec", + "properties": { + "environment": { + "$ref": "AgentEnvironment", + "description": "Environment variables to set before running the Task." + }, + "maxRunDuration": { + "description": "Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.", + "format": "google-duration", + "type": "string" + }, + "runnables": { + "description": "AgentTaskRunnable is runanbles that will be executed on the agent.", + "items": { + "$ref": "AgentTaskRunnable" + }, + "type": "array" + } + }, + "type": "object" + }, "AgentTimingInfo": { "description": "VM timing information", "id": "AgentTimingInfo", @@ -929,7 +1080,7 @@ "type": "string" }, "image": { - "description": "Name of a public or custom image used as the data source. For example, the following are all valid URLs: * Specify the image by its family name: projects/{project}/global/images/family/{image_family} * Specify the image version: projects/{project}/global/images/{image_version} You can also use Batch customized image in short names. The following image values are supported for a boot disk: * \"batch-debian\": use Batch Debian images. * \"batch-centos\": use Batch CentOS images. * \"batch-cos\": use Batch Container-Optimized images.", + "description": "Name of a public or custom image used as the data source. For example, the following are all valid URLs: * Specify the image by its family name: projects/{project}/global/images/family/{image_family} * Specify the image version: projects/{project}/global/images/{image_version} You can also use Batch customized image in short names. The following image values are supported for a boot disk: * \"batch-debian\": use Batch Debian images. * \"batch-centos\": use Batch CentOS images. * \"batch-cos\": use Batch Container-Optimized images. * \"batch-hpc-centos\": use Batch HPC CentOS images.", "type": "string" }, "sizeGb": { diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index 5ae3f93b6c0..a11ef841a91 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -286,6 +286,92 @@ func (s *ActionCondition) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AgentContainer: Container runnable representation on the agent side. +type AgentContainer struct { + // Commands: Overrides the `CMD` specified in the container. If there is + // an ENTRYPOINT (either in the container image or with the entrypoint + // field below) then commands are appended as arguments to the + // ENTRYPOINT. + Commands []string `json:"commands,omitempty"` + + // Entrypoint: Overrides the `ENTRYPOINT` specified in the container. + Entrypoint string `json:"entrypoint,omitempty"` + + // ImageUri: The URI to pull the container image from. + ImageUri string `json:"imageUri,omitempty"` + + // Options: Arbitrary additional options to include in the "docker run" + // command when running this container, e.g. "--network host". + Options string `json:"options,omitempty"` + + // Volumes: Volumes to mount (bind mount) from the host machine files or + // directories into the container, formatted to match docker run's + // --volume option, e.g. /foo:/bar, or /foo:/bar:ro + Volumes []string `json:"volumes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Commands") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Commands") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AgentContainer) MarshalJSON() ([]byte, error) { + type NoMethod AgentContainer + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AgentEnvironment: AgentEnvironment is the Environment representation +// between Agent and CLH communication. The environment is used in both +// task level and agent level. +type AgentEnvironment struct { + // EncryptedVariables: An encrypted JSON dictionary where the key/value + // pairs correspond to environment variable names and their values. + EncryptedVariables *AgentKMSEnvMap `json:"encryptedVariables,omitempty"` + + // SecretVariables: A map of environment variable names to Secret + // Manager secret names. The VM will access the named secrets to set the + // value of each environment variable. + SecretVariables map[string]string `json:"secretVariables,omitempty"` + + // Variables: A map of environment variable names to values. + Variables map[string]string `json:"variables,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EncryptedVariables") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EncryptedVariables") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AgentEnvironment) MarshalJSON() ([]byte, error) { + type NoMethod AgentEnvironment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AgentInfo: VM Agent Info. type AgentInfo struct { // JobId: The assigned Job ID @@ -334,6 +420,40 @@ func (s *AgentInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AgentKMSEnvMap: AgentKMSEnvMap contains the encrypted key/value pair +// to be used in the environment on the Agent side. +type AgentKMSEnvMap struct { + // CipherText: The value of the cipherText response from the `encrypt` + // method. + CipherText string `json:"cipherText,omitempty"` + + // KeyName: The name of the KMS key that will be used to decrypt the + // cipher text. + KeyName string `json:"keyName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CipherText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CipherText") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AgentKMSEnvMap) MarshalJSON() ([]byte, error) { + type NoMethod AgentKMSEnvMap + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AgentMetadata: VM Agent Metadata. type AgentMetadata struct { // CreationTime: When the VM agent started. Use agent_startup_time @@ -392,9 +512,57 @@ func (s *AgentMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AgentScript: Script runnable representation on the agent side. +type AgentScript struct { + // Path: Script file path on the host VM. To specify an interpreter, + // please add a `#!`(also known as shebang line + // (https://en.wikipedia.org/wiki/Shebang_(Unix))) as the first line of + // the file.(For example, to execute the script using bash, + // `#!/bin/bash` should be the first line of the file. To execute the + // script using`Python3`, `#!/usr/bin/env python3` should be the first + // line of the file.) Otherwise, the file will by default be excuted by + // `/bin/sh`. + Path string `json:"path,omitempty"` + + // Text: Shell script text. To specify an interpreter, please add a + // `#!\n` at the beginning of the text.(For example, to execute the + // script using bash, `#!/bin/bash\n` should be added. To execute the + // script using`Python3`, `#!/usr/bin/env python3\n` should be added.) + // Otherwise, the script will by default be excuted by `/bin/sh`. + Text string `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Path") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AgentScript) MarshalJSON() ([]byte, error) { + type NoMethod AgentScript + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AgentTask: TODO(b/182501497) The message needs to be redefined when // the Agent API server updates data in storage per the backend design. type AgentTask struct { + // AgentTaskSpec: AgentTaskSpec is the taskSpec representation between + // Agent and CLH communication. This field will replace the TaskSpec + // field above in future to have a better separation between + // user-facaing API and internal API. + AgentTaskSpec *AgentTaskSpec `json:"agentTaskSpec,omitempty"` + // IntendedState: The intended state of the task. // // Possible values: @@ -409,7 +577,8 @@ type AgentTask struct { // task's TaskGroup. ReachedBarrier int64 `json:"reachedBarrier,omitempty,string"` - // Spec: Task Spec. + // Spec: Task Spec. This field will be replaced by agent_task_spec below + // in future. Spec *TaskSpec `json:"spec,omitempty"` // Status: Task status. @@ -431,7 +600,7 @@ type AgentTask struct { // with "batch_task_logs" log name. TaskSource string `json:"taskSource,omitempty"` - // ForceSendFields is a list of field names (e.g. "IntendedState") to + // ForceSendFields is a list of field names (e.g. "AgentTaskSpec") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -439,7 +608,7 @@ type AgentTask struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "IntendedState") to include + // NullFields is a list of field names (e.g. "AgentTaskSpec") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -491,6 +660,102 @@ func (s *AgentTaskInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AgentTaskRunnable: AgentTaskRunnable is the Runnable representation +// between Agent and CLH communication. +type AgentTaskRunnable struct { + // AlwaysRun: By default, after a Runnable fails, no further Runnable + // are executed. This flag indicates that this Runnable must be run even + // if the Task has already failed. This is useful for Runnables that + // copy output files off of the VM or for debugging. The always_run flag + // does not override the Task's overall max_run_duration. If the + // max_run_duration has expired then no further Runnables will execute, + // not even always_run Runnables. + AlwaysRun bool `json:"alwaysRun,omitempty"` + + // Background: This flag allows a Runnable to continue running in the + // background while the Task executes subsequent Runnables. This is + // useful to provide services to other Runnables (or to provide + // debugging support tools like SSH servers). + Background bool `json:"background,omitempty"` + + // Container: Container runnable. + Container *AgentContainer `json:"container,omitempty"` + + // Environment: Environment variables for this Runnable (overrides + // variables set for the whole Task or TaskGroup). + Environment *AgentEnvironment `json:"environment,omitempty"` + + // IgnoreExitStatus: Normally, a non-zero exit status causes the Task to + // fail. This flag allows execution of other Runnables to continue + // instead. + IgnoreExitStatus bool `json:"ignoreExitStatus,omitempty"` + + // Script: Script runnable. + Script *AgentScript `json:"script,omitempty"` + + // Timeout: Timeout for this Runnable. + Timeout string `json:"timeout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AlwaysRun") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AlwaysRun") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AgentTaskRunnable) MarshalJSON() ([]byte, error) { + type NoMethod AgentTaskRunnable + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AgentTaskSpec: AgentTaskSpec is the user's TaskSpec representation +// between Agent and CLH communication. +type AgentTaskSpec struct { + // Environment: Environment variables to set before running the Task. + Environment *AgentEnvironment `json:"environment,omitempty"` + + // MaxRunDuration: Maximum duration the task should run. The task will + // be killed and marked as FAILED if over this limit. + MaxRunDuration string `json:"maxRunDuration,omitempty"` + + // Runnables: AgentTaskRunnable is runanbles that will be executed on + // the agent. + Runnables []*AgentTaskRunnable `json:"runnables,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Environment") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Environment") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AgentTaskSpec) MarshalJSON() ([]byte, error) { + type NoMethod AgentTaskSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AgentTimingInfo: VM timing information type AgentTimingInfo struct { // AgentStartupTime: Agent startup time @@ -765,7 +1030,8 @@ type Disk struct { // Batch customized image in short names. The following image values are // supported for a boot disk: * "batch-debian": use Batch Debian images. // * "batch-centos": use Batch CentOS images. * "batch-cos": use Batch - // Container-Optimized images. + // Container-Optimized images. * "batch-hpc-centos": use Batch HPC + // CentOS images. Image string `json:"image,omitempty"` // SizeGb: Disk size in GB. For persistent disk, this field is ignored diff --git a/cloudbilling/v1/cloudbilling-api.json b/cloudbilling/v1/cloudbilling-api.json index 61102cd62af..649616efdf2 100644 --- a/cloudbilling/v1/cloudbilling-api.json +++ b/cloudbilling/v1/cloudbilling-api.json @@ -521,7 +521,7 @@ } } }, - "revision": "20230130", + "revision": "20230616", "rootUrl": "https://cloudbilling.googleapis.com/", "schemas": { "AggregationInfo": { @@ -935,15 +935,18 @@ "type": "string" }, "billingEnabled": { - "description": "True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services. This field is read-only.", + "description": "Output only. True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services. This field is read-only.", + "readOnly": true, "type": "boolean" }, "name": { - "description": "The resource name for the `ProjectBillingInfo`; has the form `projects/{project_id}/billingInfo`. For example, the resource name for the billing information for project `tokyo-rain-123` would be `projects/tokyo-rain-123/billingInfo`. This field is read-only.", + "description": "Output only. The resource name for the `ProjectBillingInfo`; has the form `projects/{project_id}/billingInfo`. For example, the resource name for the billing information for project `tokyo-rain-123` would be `projects/tokyo-rain-123/billingInfo`. This field is read-only.", + "readOnly": true, "type": "string" }, "projectId": { - "description": "The ID of the project that this `ProjectBillingInfo` represents, such as `tokyo-rain-123`. This is a convenience field so that you don't need to parse the `name` field to obtain a project ID. This field is read-only.", + "description": "Output only. The ID of the project that this `ProjectBillingInfo` represents, such as `tokyo-rain-123`. This is a convenience field so that you don't need to parse the `name` field to obtain a project ID. This field is read-only.", + "readOnly": true, "type": "string" } }, diff --git a/cloudbilling/v1/cloudbilling-gen.go b/cloudbilling/v1/cloudbilling-gen.go index b988ef256d7..f6b6766981b 100644 --- a/cloudbilling/v1/cloudbilling-gen.go +++ b/cloudbilling/v1/cloudbilling-gen.go @@ -1092,23 +1092,24 @@ type ProjectBillingInfo struct { // `billingAccounts/012345-567890-ABCDEF`. BillingAccountName string `json:"billingAccountName,omitempty"` - // BillingEnabled: True if the project is associated with an open - // billing account, to which usage on the project is charged. False if - // the project is associated with a closed billing account, or no - // billing account at all, and therefore cannot use paid services. This - // field is read-only. + // BillingEnabled: Output only. True if the project is associated with + // an open billing account, to which usage on the project is charged. + // False if the project is associated with a closed billing account, or + // no billing account at all, and therefore cannot use paid services. + // This field is read-only. BillingEnabled bool `json:"billingEnabled,omitempty"` - // Name: The resource name for the `ProjectBillingInfo`; has the form - // `projects/{project_id}/billingInfo`. For example, the resource name - // for the billing information for project `tokyo-rain-123` would be - // `projects/tokyo-rain-123/billingInfo`. This field is read-only. + // Name: Output only. The resource name for the `ProjectBillingInfo`; + // has the form `projects/{project_id}/billingInfo`. For example, the + // resource name for the billing information for project + // `tokyo-rain-123` would be `projects/tokyo-rain-123/billingInfo`. This + // field is read-only. Name string `json:"name,omitempty"` - // ProjectId: The ID of the project that this `ProjectBillingInfo` - // represents, such as `tokyo-rain-123`. This is a convenience field so - // that you don't need to parse the `name` field to obtain a project ID. - // This field is read-only. + // ProjectId: Output only. The ID of the project that this + // `ProjectBillingInfo` represents, such as `tokyo-rain-123`. This is a + // convenience field so that you don't need to parse the `name` field to + // obtain a project ID. This field is read-only. ProjectId string `json:"projectId,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index 4f7517f1706..7c6be680e5a 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -1451,7 +1451,7 @@ } } }, - "revision": "20230602", + "revision": "20230609", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -2035,6 +2035,27 @@ }, "type": "object" }, + "DeployParameters": { + "description": "DeployParameters contains deploy parameters information.", + "id": "DeployParameters", + "properties": { + "matchTargetLabels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Deploy parameters are applied to targets with match labels. If unspecified, deploy parameters are applied to all targets (including child targets of a multi-target).", + "type": "object" + }, + "values": { + "additionalProperties": { + "type": "string" + }, + "description": "Required. Values are deploy parameters in key-value pairs.", + "type": "object" + } + }, + "type": "object" + }, "DeploymentJobs": { "description": "Deployment job composition.", "id": "DeploymentJobs", @@ -2933,6 +2954,13 @@ "description": "Output only. Snapshot of the parent pipeline taken at release creation time.", "readOnly": true }, + "deployParameters": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The deploy parameters to use for all targets in this release.", + "type": "object" + }, "description": { "description": "Description of the `Release`. Max length is 255 characters.", "type": "string" @@ -3482,6 +3510,13 @@ "description": "Stage specifies a location to which to deploy.", "id": "Stage", "properties": { + "deployParameters": { + "description": "Optional. The deploy parameters to use for the target in this stage.", + "items": { + "$ref": "DeployParameters" + }, + "type": "array" + }, "profiles": { "description": "Skaffold profiles to use when rendering the manifest for this stage's `Target`.", "items": { @@ -3574,6 +3609,13 @@ "readOnly": true, "type": "string" }, + "deployParameters": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The deploy parameters to use for this target.", + "type": "object" + }, "description": { "description": "Optional. Description of the `Target`. Max length is 255 characters.", "type": "string" diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 8c7a24a6547..94aabce87ee 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -1303,6 +1303,41 @@ func (s *DeployJobRunMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DeployParameters: DeployParameters contains deploy parameters +// information. +type DeployParameters struct { + // MatchTargetLabels: Optional. Deploy parameters are applied to targets + // with match labels. If unspecified, deploy parameters are applied to + // all targets (including child targets of a multi-target). + MatchTargetLabels map[string]string `json:"matchTargetLabels,omitempty"` + + // Values: Required. Values are deploy parameters in key-value pairs. + Values map[string]string `json:"values,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MatchTargetLabels") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MatchTargetLabels") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *DeployParameters) MarshalJSON() ([]byte, error) { + type NoMethod DeployParameters + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DeploymentJobs: Deployment job composition. type DeploymentJobs struct { // DeployJob: Output only. The deploy Job. This is the deploy job in the @@ -2722,6 +2757,10 @@ type Release struct { // pipeline taken at release creation time. DeliveryPipelineSnapshot *DeliveryPipeline `json:"deliveryPipelineSnapshot,omitempty"` + // DeployParameters: Optional. The deploy parameters to use for all + // targets in this release. + DeployParameters map[string]string `json:"deployParameters,omitempty"` + // Description: Description of the `Release`. Max length is 255 // characters. Description string `json:"description,omitempty"` @@ -3484,6 +3523,10 @@ func (s *SkaffoldVersion) MarshalJSON() ([]byte, error) { // Stage: Stage specifies a location to which to deploy. type Stage struct { + // DeployParameters: Optional. The deploy parameters to use for the + // target in this stage. + DeployParameters []*DeployParameters `json:"deployParameters,omitempty"` + // Profiles: Skaffold profiles to use when rendering the manifest for // this stage's `Target`. Profiles []string `json:"profiles,omitempty"` @@ -3500,7 +3543,7 @@ type Stage struct { // of the `DeliveryPipeline` that contains this `Stage`. TargetId string `json:"targetId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Profiles") to + // ForceSendFields is a list of field names (e.g. "DeployParameters") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3508,12 +3551,13 @@ type Stage struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Profiles") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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. "DeployParameters") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -3644,6 +3688,10 @@ type Target struct { // CreateTime: Output only. Time at which the `Target` was created. CreateTime string `json:"createTime,omitempty"` + // DeployParameters: Optional. The deploy parameters to use for this + // target. + DeployParameters map[string]string `json:"deployParameters,omitempty"` + // Description: Optional. Description of the `Target`. Max length is 255 // characters. Description string `json:"description,omitempty"` diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index f95dcfe1939..ae272602cb4 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -4269,7 +4269,7 @@ } } }, - "revision": "20230530", + "revision": "20230607", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -5264,7 +5264,7 @@ "type": "string" }, "quartiles": { - "description": "A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of quartile values for the scanned data, occurring in order Q1, median, Q3.", + "description": "A quartile divides the number of data points into four parts, or quarters, of more-or-less equal size. Three main quartiles used are: The first quartile (Q1) splits off the lowest 25% of data from the highest 75%. It is also known as the lower or 25th empirical quartile, as 25% of the data is below this point. The second quartile (Q2) is the median of a data set. So, 50% of the data lies below this point. The third quartile (Q3) splits off the highest 25% of data from the lowest 75%. It is known as the upper or 75th empirical quartile, as 75% of the data lies below this point. Here, the quartiles is provided as an ordered list of approximate quartile values for the scanned data, occurring in order Q1, median, Q3.", "items": { "format": "int64", "type": "string" @@ -5861,6 +5861,10 @@ "description": "Applied configs for data profile type data scan job.", "id": "GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs", "properties": { + "columnFilterApplied": { + "description": "Boolean indicating whether a column filter was applied in the DataScan job.", + "type": "boolean" + }, "rowFilterApplied": { "description": "Boolean indicating whether a row filter was applied in the DataScan job.", "type": "boolean" diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 1d44d8f7f77..3c34acd8b5c 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1898,8 +1898,8 @@ type GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoIntegerFieldIn // point. The third quartile (Q3) splits off the highest 25% of data // from the lowest 75%. It is known as the upper or 75th empirical // quartile, as 75% of the data lies below this point. Here, the - // quartiles is provided as an ordered list of quartile values for the - // scanned data, occurring in order Q1, median, Q3. + // quartiles is provided as an ordered list of approximate quartile + // values for the scanned data, occurring in order Q1, median, Q3. Quartiles googleapi.Int64s `json:"quartiles,omitempty"` // StandardDeviation: Standard deviation of non-null values in the @@ -2844,6 +2844,10 @@ func (s *GoogleCloudDataplexV1DataScanEvent) MarshalJSON() ([]byte, error) { // GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs: Applied // configs for data profile type data scan job. type GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs struct { + // ColumnFilterApplied: Boolean indicating whether a column filter was + // applied in the DataScan job. + ColumnFilterApplied bool `json:"columnFilterApplied,omitempty"` + // RowFilterApplied: Boolean indicating whether a row filter was applied // in the DataScan job. RowFilterApplied bool `json:"rowFilterApplied,omitempty"` @@ -2853,15 +2857,15 @@ type GoogleCloudDataplexV1DataScanEventDataProfileAppliedConfigs struct { // or 100.0 imply that sampling was not applied. SamplingPercent float64 `json:"samplingPercent,omitempty"` - // ForceSendFields is a list of field names (e.g. "RowFilterApplied") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ColumnFilterApplied") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RowFilterApplied") to + // NullFields is a list of field names (e.g. "ColumnFilterApplied") to // include in API requests with the JSON null value. By default, 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/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index 895d2b8711c..e1463b051ff 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8211,7 +8211,7 @@ } } }, - "revision": "20230605", + "revision": "20230612", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -13375,7 +13375,7 @@ "type": "string" }, "enableAutoReload": { - "description": "Optional. If true, we try to automatically reload the document every day (at a time picked by the system). If false or unspecified, we don't try to automatically reload the document. Currently you can only enable automatic reload for documents sourced from a public url, see `source` field for the source types. Reload status can be tracked in `latest_reload_status`. If a reload fails, we will keep the document unchanged. If a reload fails with internal errors, the system will try to reload the document on the next day. If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the system will not try to reload the document anymore. You need to manually reload the document successfully by calling `ReloadDocument` and clear the errors.", + "description": "Optional. If true, we try to automatically reload the document every day (at a time picked by the system). If false or unspecified, we don't try to automatically reload the document. Currently you can only enable automatic reload for documents sourced from a public url, see `source` field for the source types. Reload status can be tracked in `latest_reload_status`. If a reload fails, we will keep the document unchanged. If a reload fails with internal errors, the system will try to reload the document on the next day. If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the system will not try to reload the document anymore. You need to manually reload the document successfully by calling `ReloadDocument` and clear the errors.", "type": "boolean" }, "knowledgeTypes": { @@ -14412,7 +14412,7 @@ }, "gcsSource": { "$ref": "GoogleCloudDialogflowV2GcsSources", - "description": "The Google Cloud Storage location for the documents. The path can include a wildcard. These URIs may have the forms `gs:///`. `gs:////*.`." + "description": "Optional. The Google Cloud Storage location for the documents. The path can include a wildcard. These URIs may have the forms `gs:///`. `gs:////*.`." }, "importGcsCustomMetadata": { "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.", @@ -19245,6 +19245,10 @@ "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", "description": "SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST." }, + "suggestEntityExtractionResponse": { + "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", + "description": "SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION." + }, "suggestFaqAnswersResponse": { "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse", "description": "SuggestFaqAnswersResponse if request is for FAQ_ANSWER." diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 9af3f925e2a..576601bb958 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -10209,7 +10209,7 @@ type GoogleCloudDialogflowV2Document struct { // status can be tracked in `latest_reload_status`. If a reload fails, // we will keep the document unchanged. If a reload fails with internal // errors, the system will try to reload the document on the next day. - // If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), + // If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), // the system will not try to reload the document anymore. You need to // manually reload the document successfully by calling `ReloadDocument` // and clear the errors. @@ -12264,9 +12264,9 @@ type GoogleCloudDialogflowV2ImportDocumentsRequest struct { // the documents. DocumentTemplate *GoogleCloudDialogflowV2ImportDocumentTemplate `json:"documentTemplate,omitempty"` - // GcsSource: The Google Cloud Storage location for the documents. The - // path can include a wildcard. These URIs may have the forms `gs:///`. - // `gs:////*.`. + // GcsSource: Optional. The Google Cloud Storage location for the + // documents. The path can include a wildcard. These URIs may have the + // forms `gs:///`. `gs:////*.`. GcsSource *GoogleCloudDialogflowV2GcsSources `json:"gcsSource,omitempty"` // ImportGcsCustomMetadata: Whether to import custom metadata from @@ -20812,6 +20812,10 @@ type GoogleCloudDialogflowV2beta1SuggestionResult struct { // request is for DIALOGFLOW_ASSIST. SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"` + // SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if + // request is for ENTITY_EXTRACTION. + SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"` + // SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is // for FAQ_ANSWER. SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"` diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index d464259357d..e44998ec27e 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7579,7 +7579,7 @@ } } }, - "revision": "20230605", + "revision": "20230612", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -14116,7 +14116,7 @@ "id": "GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest", "properties": { "requests": { - "description": "Required. A maximum of 1000 Messages can be created in a batch. CreateMessageRequest.message.send_time is required. All created messages will have identical Message.create_time.", + "description": "Required. A maximum of 300 messages can be created in a batch. CreateMessageRequest.message.send_time is required. All created messages will have identical Message.create_time.", "items": { "$ref": "GoogleCloudDialogflowV2beta1CreateMessageRequest" }, @@ -15700,7 +15700,7 @@ }, "gcsSource": { "$ref": "GoogleCloudDialogflowV2beta1GcsSources", - "description": "The Google Cloud Storage location for the documents. The path can include a wildcard. These URIs may have the forms `gs:///`. `gs:////*.`." + "description": "Optional. The Google Cloud Storage location for the documents. The path can include a wildcard. These URIs may have the forms `gs:///`. `gs:////*.`." }, "importGcsCustomMetadata": { "description": "Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.", @@ -18622,6 +18622,10 @@ "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", "description": "SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST." }, + "suggestEntityExtractionResponse": { + "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", + "description": "SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION." + }, "suggestFaqAnswersResponse": { "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse", "description": "SuggestFaqAnswersResponse if request is for FAQ_ANSWER." diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index d55655d49d1..745da26c449 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -12457,7 +12457,7 @@ func (s *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) MarshalJSON() ( // GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest: The request // message for Conversations.BatchCreateMessagesRequest. type GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest struct { - // Requests: Required. A maximum of 1000 Messages can be created in a + // Requests: Required. A maximum of 300 messages can be created in a // batch. CreateMessageRequest.message.send_time is required. All // created messages will have identical Message.create_time. Requests []*GoogleCloudDialogflowV2beta1CreateMessageRequest `json:"requests,omitempty"` @@ -15462,9 +15462,9 @@ type GoogleCloudDialogflowV2beta1ImportDocumentsRequest struct { // the documents. DocumentTemplate *GoogleCloudDialogflowV2beta1ImportDocumentTemplate `json:"documentTemplate,omitempty"` - // GcsSource: The Google Cloud Storage location for the documents. The - // path can include a wildcard. These URIs may have the forms `gs:///`. - // `gs:////*.`. + // GcsSource: Optional. The Google Cloud Storage location for the + // documents. The path can include a wildcard. These URIs may have the + // forms `gs:///`. `gs:////*.`. GcsSource *GoogleCloudDialogflowV2beta1GcsSources `json:"gcsSource,omitempty"` // ImportGcsCustomMetadata: Whether to import custom metadata from @@ -20722,6 +20722,10 @@ type GoogleCloudDialogflowV2beta1SuggestionResult struct { // request is for DIALOGFLOW_ASSIST. SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"` + // SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if + // request is for ENTITY_EXTRACTION. + SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"` + // SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is // for FAQ_ANSWER. SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"` diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index df28804fc6a..48e3d5e8888 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20230605", + "revision": "20230612", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -14368,6 +14368,10 @@ "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", "description": "SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST." }, + "suggestEntityExtractionResponse": { + "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", + "description": "SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION." + }, "suggestFaqAnswersResponse": { "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse", "description": "SuggestFaqAnswersResponse if request is for FAQ_ANSWER." diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 6615a090c24..8e263046ac5 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -19304,6 +19304,10 @@ type GoogleCloudDialogflowV2beta1SuggestionResult struct { // request is for DIALOGFLOW_ASSIST. SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"` + // SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if + // request is for ENTITY_EXTRACTION. + SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"` + // SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is // for FAQ_ANSWER. SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"` diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 18da4c1a211..cf0b6d9c3dc 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -3820,7 +3820,7 @@ } } }, - "revision": "20230605", + "revision": "20230612", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -14368,6 +14368,10 @@ "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", "description": "SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST." }, + "suggestEntityExtractionResponse": { + "$ref": "GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse", + "description": "SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION." + }, "suggestFaqAnswersResponse": { "$ref": "GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse", "description": "SuggestFaqAnswersResponse if request is for FAQ_ANSWER." diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 17160971405..8641a37265b 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -19311,6 +19311,10 @@ type GoogleCloudDialogflowV2beta1SuggestionResult struct { // request is for DIALOGFLOW_ASSIST. SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"` + // SuggestEntityExtractionResponse: SuggestDialogflowAssistsResponse if + // request is for ENTITY_EXTRACTION. + SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"` + // SuggestFaqAnswersResponse: SuggestFaqAnswersResponse if request is // for FAQ_ANSWER. SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"` diff --git a/gkebackup/v1/gkebackup-api.json b/gkebackup/v1/gkebackup-api.json index 6c361110242..f904d92c252 100644 --- a/gkebackup/v1/gkebackup-api.json +++ b/gkebackup/v1/gkebackup-api.json @@ -1688,7 +1688,7 @@ } } }, - "revision": "20230503", + "revision": "20230609", "rootUrl": "https://gkebackup.googleapis.com/", "schemas": { "AuditConfig": { @@ -1996,6 +1996,34 @@ "$ref": "RetentionPolicy", "description": "RetentionPolicy governs lifecycle of Backups created under this plan." }, + "state": { + "description": "Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to \"DEACTIVATED\" if the BackupPlan is deactivated on an Update", + "enum": [ + "STATE_UNSPECIFIED", + "CLUSTER_PENDING", + "PROVISIONING", + "READY", + "FAILED", + "DEACTIVATED", + "DELETING" + ], + "enumDescriptions": [ + "Default first value for Enums.", + "Waiting for cluster state to be RUNNING.", + "The BackupPlan is in the process of being created.", + "The BackupPlan has successfully been created and is ready for Backups.", + "BackupPlan creation has failed.", + "The BackupPlan has been deactivated.", + "The BackupPlan is in the process of being deleted." + ], + "readOnly": true, + "type": "string" + }, + "stateReason": { + "description": "Output only. Human-readable description of why BackupPlan is in the current `state`", + "readOnly": true, + "type": "string" + }, "uid": { "description": "Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.", "readOnly": true, @@ -2066,6 +2094,21 @@ "description": "Defines the scope of cluster-scoped resources to restore. Some group kinds are not reasonable choices for a restore, and will cause an error if selected here. Any scope selection that would restore \"all valid\" resources automatically excludes these group kinds. - gkebackup.gke.io/BackupJob - gkebackup.gke.io/RestoreJob - metrics.k8s.io/NodeMetrics - migration.k8s.io/StorageState - migration.k8s.io/StorageVersionMigration - Node - snapshot.storage.k8s.io/VolumeSnapshotContent - storage.k8s.io/CSINode Some group kinds are driven by restore configuration elsewhere, and will cause an error if selected here. - Namespace - PersistentVolume", "id": "ClusterResourceRestoreScope", "properties": { + "allGroupKinds": { + "description": "If True, all valid cluster-scoped resources will be restored. Mutually exclusive to any other field in the message.", + "type": "boolean" + }, + "excludedGroupKinds": { + "description": "A list of cluster-scoped resource group kinds to NOT restore from the backup. If specified, all valid cluster-scoped resources will be restored except for those specified in the list. Mutually exclusive to any other field in the message.", + "items": { + "$ref": "GroupKind" + }, + "type": "array" + }, + "noGroupKinds": { + "description": "If True, no cluster-scoped resources will be restored. This has the same restore scope as if the message is not defined. Mutually exclusive to any other field in the message.", + "type": "boolean" + }, "selectedGroupKinds": { "description": "A list of cluster-scoped resource group kinds to restore from the backup. If specified, only the selected resources will be restored. Mutually exclusive to any other field in the message.", "items": { @@ -2516,6 +2559,31 @@ }, "type": "object" }, + "ResourceFilter": { + "description": "ResourceFilter specifies matching criteria to limit the scope of a change to a specific set of kubernetes resources that are selected for restoration from a backup.", + "id": "ResourceFilter", + "properties": { + "groupKinds": { + "description": "(Filtering parameter) Any resource subject to transformation must belong to one of the listed \"types\". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for transformation).", + "items": { + "$ref": "GroupKind" + }, + "type": "array" + }, + "jsonPath": { + "description": "This is a [JSONPath] (https://github.com/json-path/JsonPath/blob/master/README.md) expression that matches specific fields of candidate resources and it operates as a filtering parameter (resources that are not matched with this expression will not be candidates for transformation).", + "type": "string" + }, + "namespaces": { + "description": "(Filtering parameter) Any resource subject to transformation must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for transformation). To mix cluster-scoped and namespaced resources in the same rule, use an empty string (\"\") as one of the target namespaces.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Restore": { "description": "Represents both a request to Restore some portion of a Backup into a target GKE cluster and a record of the restore operation itself. Next id: 18", "id": "Restore", @@ -2649,7 +2717,7 @@ "enumDescriptions": [ "Unspecified. Only allowed if no cluster-scoped resources will be restored.", "Do not attempt to restore the conflicting resource.", - "Delete the existing version before re-creating it from the Backup. Note that this is a dangerous option which could cause unintentional data loss if used inappropriately - for example, deleting a CRD will cause Kubernetes to delete all CRs of that type." + "Delete the existing version before re-creating it from the Backup. This is a dangerous option which could cause unintentional data loss if used inappropriately. For example, deleting a CRD will cause Kubernetes to delete all CRs of that type." ], "type": "string" }, @@ -2657,6 +2725,10 @@ "$ref": "ClusterResourceRestoreScope", "description": "Identifies the cluster-scoped resources to restore from the Backup. Not specifying it means NO cluster resource will be restored." }, + "excludedNamespaces": { + "$ref": "Namespaces", + "description": "A list of selected namespaces excluded from restoration. All namespaces except those in this list will be restored." + }, "namespacedResourceRestoreMode": { "description": "Defines the behavior for handling the situation where sets of namespaced resources being restored already exist in the target cluster. This MUST be set to a value other than NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.", "enum": [ @@ -2671,6 +2743,10 @@ ], "type": "string" }, + "noNamespaces": { + "description": "Do not restore any namespaced resources if set to \"True\". Specifying this field to \"False\" is not allowed.", + "type": "boolean" + }, "selectedApplications": { "$ref": "NamespacedNames", "description": "A list of selected ProtectedApplications to restore. The listed ProtectedApplications and all the resources to which they refer will be restored." @@ -2686,6 +2762,13 @@ }, "type": "array" }, + "transformationRules": { + "description": "A list of transformation rules to be applied against Kubernetes resources as they are selected for restoration from a Backup. Rules are executed in order defined - this order matters, as changes made by a rule may impact the filtering logic of subsequent rules. An empty list means no transformation will occur.", + "items": { + "$ref": "TransformationRule" + }, + "type": "array" + }, "volumeDataRestorePolicy": { "description": "Specifies the mechanism to be used to restore volume data. Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as NO_VOLUME_DATA_RESTORATION).", "enum": [ @@ -2696,9 +2779,9 @@ ], "enumDescriptions": [ "Unspecified (illegal).", - "For each PVC to be restored, will create a new underlying volume (and PV) from the corresponding VolumeBackup contained within the Backup.", - "For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume). Note that option is likely only usable when restoring a workload to its original cluster.", - "For each PVC to be restored, PVCs will be created without any particular action to restore data. In this case, the normal Kubernetes provisioning logic would kick in, and this would likely result in either dynamically provisioning blank PVs or binding to statically provisioned PVs." + "For each PVC to be restored, create a new underlying volume and PV from the corresponding VolumeBackup contained within the Backup.", + "For each PVC to be restored, attempt to reuse the original PV contained in the Backup (with its original underlying volume). This option is likely only usable when restoring a workload to its original cluster.", + "For each PVC to be restored, create PVC without any particular action to restore data. In this case, the normal Kubernetes provisioning logic would kick in, and this would likely result in either dynamically provisioning blank PVs or binding to statically provisioned PVs." ], "type": "string" } @@ -2748,6 +2831,30 @@ "$ref": "RestoreConfig", "description": "Required. Configuration of Restores created via this RestorePlan." }, + "state": { + "description": "Output only. State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation.", + "enum": [ + "STATE_UNSPECIFIED", + "CLUSTER_PENDING", + "READY", + "FAILED", + "DELETING" + ], + "enumDescriptions": [ + "Default first value for Enums.", + "Waiting for cluster state to be RUNNING.", + "The RestorePlan has successfully been created and is ready for Restores.", + "RestorePlan creation has failed.", + "The RestorePlan is in the process of being deleted." + ], + "readOnly": true, + "type": "string" + }, + "stateReason": { + "description": "Output only. Human-readable description of why RestorePlan is in the current `state`", + "readOnly": true, + "type": "string" + }, "uid": { "description": "Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.", "readOnly": true, @@ -2784,11 +2891,11 @@ "type": "object" }, "Schedule": { - "description": "Schedule defines scheduling parameters for automatically creating Backups via this BackupPlan.", + "description": "Defines scheduling parameters for automatically creating Backups via this BackupPlan.", "id": "Schedule", "properties": { "cronSchedule": { - "description": "A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. If this is defined, then backup_retain_days must also be defined. Default (empty): no automatic backup creation will occur.", + "description": "A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the rpo_config field since at most one schedule can be defined for a BackupPlan. If this is defined, then backup_retain_days must also be defined. Default (empty): no automatic backup creation will occur.", "type": "string" }, "paused": { @@ -2875,6 +2982,69 @@ }, "type": "object" }, + "TransformationRule": { + "description": "A transformation rule to be applied against Kubernetes resources as they are selected for restoration from a Backup. A rule contains both filtering logic (which resources are subject to transform) and transformation logic.", + "id": "TransformationRule", + "properties": { + "description": { + "description": "The description is a user specified string description of the transformation rule.", + "type": "string" + }, + "fieldActions": { + "description": "Required. A list of transformation rule actions to take against candidate resources. Actions are executed in order defined - this order matters, as they could potentially interfere with each other and the first operation could affect the outcome of the second operation.", + "items": { + "$ref": "TransformationRuleAction" + }, + "type": "array" + }, + "resourceFilter": { + "$ref": "ResourceFilter", + "description": "This field is used to specify a set of fields that should be used to determine which resources in backup should be acted upon by the supplied transformation rule actions, and this will ensure that only specific resources are affected by transformation rule actions." + } + }, + "type": "object" + }, + "TransformationRuleAction": { + "description": "TransformationRuleAction defines a TransformationRule action based on the JSON Patch RFC (https://www.rfc-editor.org/rfc/rfc6902)", + "id": "TransformationRuleAction", + "properties": { + "fromPath": { + "description": "A string containing a JSON Pointer value that references the location in the target document to move the value from.", + "type": "string" + }, + "op": { + "description": "Required. op specifies the operation to perform.", + "enum": [ + "OP_UNSPECIFIED", + "REMOVE", + "MOVE", + "COPY", + "ADD", + "TEST", + "REPLACE" + ], + "enumDescriptions": [ + "Unspecified operation", + "The \"remove\" operation removes the value at the target location.", + "The \"move\" operation removes the value at a specified location and adds it to the target location.", + "The \"copy\" operation copies the value at a specified location to the target location.", + "The \"add\" operation performs one of the following functions, depending upon what the target location references: 1. If the target location specifies an array index, a new value is inserted into the array at the specified index. 2. If the target location specifies an object member that does not already exist, a new member is added to the object. 3. If the target location specifies an object member that does exist, that member's value is replaced.", + "The \"test\" operation tests that a value at the target location is equal to a specified value.", + "The \"replace\" operation replaces the value at the target location with a new value. The operation object MUST contain a \"value\" member whose content specifies the replacement value." + ], + "type": "string" + }, + "path": { + "description": "A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.", + "type": "string" + }, + "value": { + "description": "A string that specifies the desired value in string format to use for transformation.", + "type": "string" + } + }, + "type": "object" + }, "VolumeBackup": { "description": "Represents the backup of a specific persistent volume as a component of a Backup - both the record of the operation and a pointer to the underlying storage-specific artifacts. Next id: 14", "id": "VolumeBackup", diff --git a/gkebackup/v1/gkebackup-gen.go b/gkebackup/v1/gkebackup-gen.go index 39f874c60ef..1465b620995 100644 --- a/gkebackup/v1/gkebackup-gen.go +++ b/gkebackup/v1/gkebackup-gen.go @@ -621,6 +621,26 @@ type BackupPlan struct { // under this plan. RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"` + // State: Output only. State of the BackupPlan. This State field + // reflects the various stages a BackupPlan can be in during the Create + // operation. It will be set to "DEACTIVATED" if the BackupPlan is + // deactivated on an Update + // + // Possible values: + // "STATE_UNSPECIFIED" - Default first value for Enums. + // "CLUSTER_PENDING" - Waiting for cluster state to be RUNNING. + // "PROVISIONING" - The BackupPlan is in the process of being created. + // "READY" - The BackupPlan has successfully been created and is ready + // for Backups. + // "FAILED" - BackupPlan creation has failed. + // "DEACTIVATED" - The BackupPlan has been deactivated. + // "DELETING" - The BackupPlan is in the process of being deleted. + State string `json:"state,omitempty"` + + // StateReason: Output only. Human-readable description of why + // BackupPlan is in the current `state` + StateReason string `json:"stateReason,omitempty"` + // Uid: Output only. Server generated global unique identifier of UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier) format. Uid string `json:"uid,omitempty"` @@ -792,27 +812,41 @@ func (s *ClusterMetadata) MarshalJSON() ([]byte, error) { // configuration elsewhere, and will cause an error if selected here. - // Namespace - PersistentVolume type ClusterResourceRestoreScope struct { + // AllGroupKinds: If True, all valid cluster-scoped resources will be + // restored. Mutually exclusive to any other field in the message. + AllGroupKinds bool `json:"allGroupKinds,omitempty"` + + // ExcludedGroupKinds: A list of cluster-scoped resource group kinds to + // NOT restore from the backup. If specified, all valid cluster-scoped + // resources will be restored except for those specified in the list. + // Mutually exclusive to any other field in the message. + ExcludedGroupKinds []*GroupKind `json:"excludedGroupKinds,omitempty"` + + // NoGroupKinds: If True, no cluster-scoped resources will be restored. + // This has the same restore scope as if the message is not defined. + // Mutually exclusive to any other field in the message. + NoGroupKinds bool `json:"noGroupKinds,omitempty"` + // SelectedGroupKinds: A list of cluster-scoped resource group kinds to // restore from the backup. If specified, only the selected resources // will be restored. Mutually exclusive to any other field in the // message. SelectedGroupKinds []*GroupKind `json:"selectedGroupKinds,omitempty"` - // ForceSendFields is a list of field names (e.g. "SelectedGroupKinds") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AllGroupKinds") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SelectedGroupKinds") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an 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. "AllGroupKinds") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -1684,6 +1718,57 @@ func (s *Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ResourceFilter: ResourceFilter specifies matching criteria to limit +// the scope of a change to a specific set of kubernetes resources that +// are selected for restoration from a backup. +type ResourceFilter struct { + // GroupKinds: (Filtering parameter) Any resource subject to + // transformation must belong to one of the listed "types". If this + // field is not provided, no type filtering will be performed (all + // resources of all types matching previous filtering parameters will be + // candidates for transformation). + GroupKinds []*GroupKind `json:"groupKinds,omitempty"` + + // JsonPath: This is a [JSONPath] + // (https://github.com/json-path/JsonPath/blob/master/README.md) + // expression that matches specific fields of candidate resources and it + // operates as a filtering parameter (resources that are not matched + // with this expression will not be candidates for transformation). + JsonPath string `json:"jsonPath,omitempty"` + + // Namespaces: (Filtering parameter) Any resource subject to + // transformation must be contained within one of the listed Kubernetes + // Namespace in the Backup. If this field is not provided, no namespace + // filtering will be performed (all resources in all Namespaces, + // including all cluster-scoped resources, will be candidates for + // transformation). To mix cluster-scoped and namespaced resources in + // the same rule, use an empty string ("") as one of the target + // namespaces. + Namespaces []string `json:"namespaces,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GroupKinds") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GroupKinds") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ResourceFilter) MarshalJSON() ([]byte, error) { + type NoMethod ResourceFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Restore: Represents both a request to Restore some portion of a // Backup into a target GKE cluster and a record of the restore // operation itself. Next id: 18 @@ -1823,10 +1908,10 @@ type RestoreConfig struct { // "USE_EXISTING_VERSION" - Do not attempt to restore the conflicting // resource. // "USE_BACKUP_VERSION" - Delete the existing version before - // re-creating it from the Backup. Note that this is a dangerous option - // which could cause unintentional data loss if used inappropriately - - // for example, deleting a CRD will cause Kubernetes to delete all CRs - // of that type. + // re-creating it from the Backup. This is a dangerous option which + // could cause unintentional data loss if used inappropriately. For + // example, deleting a CRD will cause Kubernetes to delete all CRs of + // that type. ClusterResourceConflictPolicy string `json:"clusterResourceConflictPolicy,omitempty"` // ClusterResourceRestoreScope: Identifies the cluster-scoped resources @@ -1834,6 +1919,11 @@ type RestoreConfig struct { // resource will be restored. ClusterResourceRestoreScope *ClusterResourceRestoreScope `json:"clusterResourceRestoreScope,omitempty"` + // ExcludedNamespaces: A list of selected namespaces excluded from + // restoration. All namespaces except those in this list will be + // restored. + ExcludedNamespaces *Namespaces `json:"excludedNamespaces,omitempty"` + // NamespacedResourceRestoreMode: Defines the behavior for handling the // situation where sets of namespaced resources being restored already // exist in the target cluster. This MUST be set to a value other than @@ -1858,6 +1948,10 @@ type RestoreConfig struct { // conflict will be reported. NamespacedResourceRestoreMode string `json:"namespacedResourceRestoreMode,omitempty"` + // NoNamespaces: Do not restore any namespaced resources if set to + // "True". Specifying this field to "False" is not allowed. + NoNamespaces bool `json:"noNamespaces,omitempty"` + // SelectedApplications: A list of selected ProtectedApplications to // restore. The listed ProtectedApplications and all the resources to // which they refer will be restored. @@ -1875,6 +1969,13 @@ type RestoreConfig struct { // subsequent rules. An empty list means no substitution will occur. SubstitutionRules []*SubstitutionRule `json:"substitutionRules,omitempty"` + // TransformationRules: A list of transformation rules to be applied + // against Kubernetes resources as they are selected for restoration + // from a Backup. Rules are executed in order defined - this order + // matters, as changes made by a rule may impact the filtering logic of + // subsequent rules. An empty list means no transformation will occur. + TransformationRules []*TransformationRule `json:"transformationRules,omitempty"` + // VolumeDataRestorePolicy: Specifies the mechanism to be used to // restore volume data. Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED // (will be treated as NO_VOLUME_DATA_RESTORATION). @@ -1882,17 +1983,17 @@ type RestoreConfig struct { // Possible values: // "VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED" - Unspecified (illegal). // "RESTORE_VOLUME_DATA_FROM_BACKUP" - For each PVC to be restored, - // will create a new underlying volume (and PV) from the corresponding + // create a new underlying volume and PV from the corresponding // VolumeBackup contained within the Backup. // "REUSE_VOLUME_HANDLE_FROM_BACKUP" - For each PVC to be restored, // attempt to reuse the original PV contained in the Backup (with its - // original underlying volume). Note that option is likely only usable - // when restoring a workload to its original cluster. - // "NO_VOLUME_DATA_RESTORATION" - For each PVC to be restored, PVCs - // will be created without any particular action to restore data. In - // this case, the normal Kubernetes provisioning logic would kick in, - // and this would likely result in either dynamically provisioning blank - // PVs or binding to statically provisioned PVs. + // original underlying volume). This option is likely only usable when + // restoring a workload to its original cluster. + // "NO_VOLUME_DATA_RESTORATION" - For each PVC to be restored, create + // PVC without any particular action to restore data. In this case, the + // normal Kubernetes provisioning logic would kick in, and this would + // likely result in either dynamically provisioning blank PVs or binding + // to statically provisioned PVs. VolumeDataRestorePolicy string `json:"volumeDataRestorePolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "AllNamespaces") to @@ -1962,6 +2063,23 @@ type RestorePlan struct { // RestorePlan. RestoreConfig *RestoreConfig `json:"restoreConfig,omitempty"` + // State: Output only. State of the RestorePlan. This State field + // reflects the various stages a RestorePlan can be in during the Create + // operation. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default first value for Enums. + // "CLUSTER_PENDING" - Waiting for cluster state to be RUNNING. + // "READY" - The RestorePlan has successfully been created and is + // ready for Restores. + // "FAILED" - RestorePlan creation has failed. + // "DELETING" - The RestorePlan is in the process of being deleted. + State string `json:"state,omitempty"` + + // StateReason: Output only. Human-readable description of why + // RestorePlan is in the current `state` + StateReason string `json:"stateReason,omitempty"` + // Uid: Output only. Server generated global unique identifier of UUID // (https://en.wikipedia.org/wiki/Universally_unique_identifier) format. Uid string `json:"uid,omitempty"` @@ -2053,14 +2171,15 @@ func (s *RetentionPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Schedule: Schedule defines scheduling parameters for automatically -// creating Backups via this BackupPlan. +// Schedule: Defines scheduling parameters for automatically creating +// Backups via this BackupPlan. type Schedule struct { // CronSchedule: A standard cron (https://wikipedia.com/wiki/cron) // string that defines a repeating schedule for creating Backups via - // this BackupPlan. If this is defined, then backup_retain_days must - // also be defined. Default (empty): no automatic backup creation will - // occur. + // this BackupPlan. This is mutually exclusive with the rpo_config field + // since at most one schedule can be defined for a BackupPlan. If this + // is defined, then backup_retain_days must also be defined. Default + // (empty): no automatic backup creation will occur. CronSchedule string `json:"cronSchedule,omitempty"` // Paused: This flag denotes whether automatic Backup creation is paused @@ -2263,6 +2382,115 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TransformationRule: A transformation rule to be applied against +// Kubernetes resources as they are selected for restoration from a +// Backup. A rule contains both filtering logic (which resources are +// subject to transform) and transformation logic. +type TransformationRule struct { + // Description: The description is a user specified string description + // of the transformation rule. + Description string `json:"description,omitempty"` + + // FieldActions: Required. A list of transformation rule actions to take + // against candidate resources. Actions are executed in order defined - + // this order matters, as they could potentially interfere with each + // other and the first operation could affect the outcome of the second + // operation. + FieldActions []*TransformationRuleAction `json:"fieldActions,omitempty"` + + // ResourceFilter: This field is used to specify a set of fields that + // should be used to determine which resources in backup should be acted + // upon by the supplied transformation rule actions, and this will + // ensure that only specific resources are affected by transformation + // rule actions. + ResourceFilter *ResourceFilter `json:"resourceFilter,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 *TransformationRule) MarshalJSON() ([]byte, error) { + type NoMethod TransformationRule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TransformationRuleAction: TransformationRuleAction defines a +// TransformationRule action based on the JSON Patch RFC +// (https://www.rfc-editor.org/rfc/rfc6902) +type TransformationRuleAction struct { + // FromPath: A string containing a JSON Pointer value that references + // the location in the target document to move the value from. + FromPath string `json:"fromPath,omitempty"` + + // Op: Required. op specifies the operation to perform. + // + // Possible values: + // "OP_UNSPECIFIED" - Unspecified operation + // "REMOVE" - The "remove" operation removes the value at the target + // location. + // "MOVE" - The "move" operation removes the value at a specified + // location and adds it to the target location. + // "COPY" - The "copy" operation copies the value at a specified + // location to the target location. + // "ADD" - The "add" operation performs one of the following + // functions, depending upon what the target location references: 1. If + // the target location specifies an array index, a new value is inserted + // into the array at the specified index. 2. If the target location + // specifies an object member that does not already exist, a new member + // is added to the object. 3. If the target location specifies an object + // member that does exist, that member's value is replaced. + // "TEST" - The "test" operation tests that a value at the target + // location is equal to a specified value. + // "REPLACE" - The "replace" operation replaces the value at the + // target location with a new value. The operation object MUST contain a + // "value" member whose content specifies the replacement value. + Op string `json:"op,omitempty"` + + // Path: A string containing a JSON-Pointer value that references a + // location within the target document where the operation is performed. + Path string `json:"path,omitempty"` + + // Value: A string that specifies the desired value in string format to + // use for transformation. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FromPath") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FromPath") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TransformationRuleAction) MarshalJSON() ([]byte, error) { + type NoMethod TransformationRuleAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // VolumeBackup: Represents the backup of a specific persistent volume // as a component of a Backup - both the record of the operation and a // pointer to the underlying storage-specific artifacts. Next id: 14 diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index c7fda81570a..2efc9061da0 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -105,6 +105,54 @@ }, "protocol": "rest", "resources": { + "organizations": { + "resources": { + "locations": { + "resources": { + "fleets": { + "methods": { + "list": { + "description": "Returns all fleets within an organization or a project that the caller has access to.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/fleets", + "httpMethod": "GET", + "id": "gkehub.organizations.locations.fleets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/fleets", + "response": { + "$ref": "ListFleetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + }, "projects": { "resources": { "locations": { @@ -451,6 +499,158 @@ } } }, + "fleets": { + "methods": { + "create": { + "description": "Creates a fleet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets", + "httpMethod": "POST", + "id": "gkehub.projects.locations.fleets.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/fleets", + "request": { + "$ref": "Fleet" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Removes a Fleet. There must be no memberships remaining in the Fleet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + "httpMethod": "DELETE", + "id": "gkehub.projects.locations.fleets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Returns the details of a fleet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + "httpMethod": "GET", + "id": "gkehub.projects.locations.fleets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Fleet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Returns all fleets within an organization or a project that the caller has access to.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets", + "httpMethod": "GET", + "id": "gkehub.projects.locations.fleets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/fleets", + "response": { + "$ref": "ListFleetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a fleet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + "httpMethod": "PATCH", + "id": "gkehub.projects.locations.fleets.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google Cloud project can have at most one fleet resource, named \"default\".", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The fields to be updated;", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Fleet" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "memberships": { "methods": { "create": { @@ -1221,6 +1421,40 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "patch": { + "description": "Updates a scopes.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/scopes/{scopesId}", + "httpMethod": "PATCH", + "id": "gkehub.projects.locations.scopes.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/scopes/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Scope" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/scopes/{scopesId}:setIamPolicy", @@ -1284,7 +1518,7 @@ } } }, - "revision": "20230606", + "revision": "20230609", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -2102,6 +2336,12 @@ "templateLibraryInstalled": { "description": "Installs the default template library along with Policy Controller.", "type": "boolean" + }, + "updateTime": { + "description": "Output only. Last time this membership spec was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -2110,6 +2350,11 @@ "description": "State for the migration of PolicyController from ACM -\u003e PoCo Hub.", "id": "ConfigManagementPolicyControllerMigration", "properties": { + "copyTime": { + "description": "Last time this membership spec was copied to PoCo feature.", + "format": "google-datetime", + "type": "string" + }, "stage": { "description": "Stage of the migration.", "enum": [ @@ -2461,6 +2706,76 @@ }, "type": "object" }, + "Fleet": { + "description": "Fleet contains the Fleet-wide metadata and configuration.", + "id": "Fleet", + "properties": { + "createTime": { + "description": "Output only. When the Fleet was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deleteTime": { + "description": "Output only. When the Fleet was deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: `Production Fleet`", + "type": "string" + }, + "name": { + "description": "Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google Cloud project can have at most one fleet resource, named \"default\".", + "readOnly": true, + "type": "string" + }, + "state": { + "$ref": "FleetLifecycleState", + "description": "Output only. State of the namespace resource.", + "readOnly": true + }, + "uid": { + "description": "Output only. Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. When the Fleet was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "FleetLifecycleState": { + "description": "FleetLifecycleState describes the state of a Fleet resource.", + "id": "FleetLifecycleState", + "properties": { + "code": { + "description": "Output only. The current state of the Fleet resource.", + "enum": [ + "CODE_UNSPECIFIED", + "CREATING", + "READY", + "DELETING", + "UPDATING" + ], + "enumDescriptions": [ + "The code is not set.", + "The fleet is being created.", + "The fleet active.", + "The fleet is being deleted.", + "The fleet is being updated." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "FleetObservabilityFeatureSpec": { "description": "**Fleet Observability**: The Hub-wide input for the FleetObservability feature.", "id": "FleetObservabilityFeatureSpec", @@ -2811,6 +3126,24 @@ }, "type": "object" }, + "ListFleetsResponse": { + "description": "Response message for the `GkeHub.ListFleetsResponse` method.", + "id": "ListFleetsResponse", + "properties": { + "fleets": { + "description": "The list of matching fleets.", + "items": { + "$ref": "Fleet" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. The token is only valid for 1h.", + "type": "string" + } + }, + "type": "object" + }, "ListLocationsResponse": { "description": "The response message for Locations.ListLocations.", "id": "ListLocationsResponse", diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index 86bfe3cf1f9..e7600e78bb4 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -119,6 +119,7 @@ func New(client *http.Client) (*Service, error) { return nil, errors.New("client is nil") } s := &Service{client: client, BasePath: basePath} + s.Organizations = NewOrganizationsService(s) s.Projects = NewProjectsService(s) return s, nil } @@ -128,6 +129,8 @@ type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment + Organizations *OrganizationsService + Projects *ProjectsService } @@ -138,6 +141,39 @@ func (s *Service) userAgent() string { return googleapi.UserAgent + " " + s.UserAgent } +func NewOrganizationsService(s *Service) *OrganizationsService { + rs := &OrganizationsService{s: s} + rs.Locations = NewOrganizationsLocationsService(s) + return rs +} + +type OrganizationsService struct { + s *Service + + Locations *OrganizationsLocationsService +} + +func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService { + rs := &OrganizationsLocationsService{s: s} + rs.Fleets = NewOrganizationsLocationsFleetsService(s) + return rs +} + +type OrganizationsLocationsService struct { + s *Service + + Fleets *OrganizationsLocationsFleetsService +} + +func NewOrganizationsLocationsFleetsService(s *Service) *OrganizationsLocationsFleetsService { + rs := &OrganizationsLocationsFleetsService{s: s} + return rs +} + +type OrganizationsLocationsFleetsService struct { + s *Service +} + func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} rs.Locations = NewProjectsLocationsService(s) @@ -153,6 +189,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Features = NewProjectsLocationsFeaturesService(s) + rs.Fleets = NewProjectsLocationsFleetsService(s) rs.Memberships = NewProjectsLocationsMembershipsService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.Scopes = NewProjectsLocationsScopesService(s) @@ -164,6 +201,8 @@ type ProjectsLocationsService struct { Features *ProjectsLocationsFeaturesService + Fleets *ProjectsLocationsFleetsService + Memberships *ProjectsLocationsMembershipsService Operations *ProjectsLocationsOperationsService @@ -180,6 +219,15 @@ type ProjectsLocationsFeaturesService struct { s *Service } +func NewProjectsLocationsFleetsService(s *Service) *ProjectsLocationsFleetsService { + rs := &ProjectsLocationsFleetsService{s: s} + return rs +} + +type ProjectsLocationsFleetsService struct { + s *Service +} + func NewProjectsLocationsMembershipsService(s *Service) *ProjectsLocationsMembershipsService { rs := &ProjectsLocationsMembershipsService{s: s} rs.Bindings = NewProjectsLocationsMembershipsBindingsService(s) @@ -1515,6 +1563,9 @@ type ConfigManagementPolicyController struct { // with Policy Controller. TemplateLibraryInstalled bool `json:"templateLibraryInstalled,omitempty"` + // UpdateTime: Output only. Last time this membership spec was updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AuditIntervalSeconds") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -1543,6 +1594,9 @@ func (s *ConfigManagementPolicyController) MarshalJSON() ([]byte, error) { // ConfigManagementPolicyControllerMigration: State for the migration of // PolicyController from ACM -> PoCo Hub. type ConfigManagementPolicyControllerMigration struct { + // CopyTime: Last time this membership spec was copied to PoCo feature. + CopyTime string `json:"copyTime,omitempty"` + // Stage: Stage of the migration. // // Possible values: @@ -1553,7 +1607,7 @@ type ConfigManagementPolicyControllerMigration struct { // manages policycontroller. Stage string `json:"stage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Stage") to + // ForceSendFields is a list of field names (e.g. "CopyTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1561,8 +1615,8 @@ type ConfigManagementPolicyControllerMigration struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Stage") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "CopyTime") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2115,6 +2169,102 @@ func (s *FeatureState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Fleet: Fleet contains the Fleet-wide metadata and configuration. +type Fleet struct { + // CreateTime: Output only. When the Fleet was created. + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. When the Fleet was deleted. + DeleteTime string `json:"deleteTime,omitempty"` + + // DisplayName: Optional. A user-assigned display name of the Fleet. + // When present, it must be between 4 to 30 characters. Allowed + // characters are: lowercase and uppercase letters, numbers, hyphen, + // single-quote, double-quote, space, and exclamation point. Example: + // `Production Fleet` + DisplayName string `json:"displayName,omitempty"` + + // Name: Output only. The full, unique resource name of this fleet in + // the format of + // `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google + // Cloud project can have at most one fleet resource, named "default". + Name string `json:"name,omitempty"` + + // State: Output only. State of the namespace resource. + State *FleetLifecycleState `json:"state,omitempty"` + + // Uid: Output only. Google-generated UUID for this resource. This is + // unique across all Fleet resources. If a Fleet resource is deleted and + // another resource with the same name is created, it gets a different + // uid. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. When the Fleet was last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "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 *Fleet) MarshalJSON() ([]byte, error) { + type NoMethod Fleet + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FleetLifecycleState: FleetLifecycleState describes the state of a +// Fleet resource. +type FleetLifecycleState struct { + // Code: Output only. The current state of the Fleet resource. + // + // Possible values: + // "CODE_UNSPECIFIED" - The code is not set. + // "CREATING" - The fleet is being created. + // "READY" - The fleet active. + // "DELETING" - The fleet is being deleted. + // "UPDATING" - The fleet is being updated. + Code string `json:"code,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *FleetLifecycleState) MarshalJSON() ([]byte, error) { + type NoMethod FleetLifecycleState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // FleetObservabilityFeatureSpec: **Fleet Observability**: The Hub-wide // input for the FleetObservability feature. type FleetObservabilityFeatureSpec struct { @@ -2669,6 +2819,44 @@ func (s *ListFeaturesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListFleetsResponse: Response message for the +// `GkeHub.ListFleetsResponse` method. +type ListFleetsResponse struct { + // Fleets: The list of matching fleets. + Fleets []*Fleet `json:"fleets,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. The token is only valid for 1h. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Fleets") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Fleets") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListFleetsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListFleetsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListLocationsResponse: The response message for // Locations.ListLocations. type ListLocationsResponse struct { @@ -4290,30 +4478,51 @@ func (s *TypeMeta) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "gkehub.projects.locations.get": +// method id "gkehub.organizations.locations.fleets.list": -type ProjectsLocationsGetCall struct { +type OrganizationsLocationsFleetsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets information about a location. +// List: Returns all fleets within an organization or a project that the +// caller has access to. // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The organization or project to list for Fleets under, in +// the format `organizations/*/locations/*` or +// `projects/*/locations/*`. +func (r *OrganizationsLocationsFleetsService) List(parent string) *OrganizationsLocationsFleetsListCall { + c := &OrganizationsLocationsFleetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of fleets to return. The service may return fewer than this value. If +// unspecified, at most 200 fleets will be returned. The maximum value +// is 1000; values above 1000 will be coerced to 1000. +func (c *OrganizationsLocationsFleetsListCall) PageSize(pageSize int64) *OrganizationsLocationsFleetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListFleets` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListFleets` must match the call that provided the page token. +func (c *OrganizationsLocationsFleetsListCall) PageToken(pageToken string) *OrganizationsLocationsFleetsListCall { + 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 *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsFleetsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsFleetsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4323,7 +4532,7 @@ func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocatio // 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsFleetsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsFleetsListCall { c.ifNoneMatch_ = entityTag return c } @@ -4331,21 +4540,21 @@ func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocati // 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 *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsFleetsListCall) Context(ctx context.Context) *OrganizationsLocationsFleetsListCall { 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 *ProjectsLocationsGetCall) Header() http.Header { +func (c *OrganizationsLocationsFleetsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsFleetsListCall) 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_ { @@ -4358,7 +4567,7 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/fleets") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4366,19 +4575,19 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) } 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 "gkehub.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { +// Do executes the "gkehub.organizations.locations.fleets.list" call. +// Exactly one of *ListFleetsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListFleetsResponse.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 *OrganizationsLocationsFleetsListCall) Do(opts ...googleapi.CallOption) (*ListFleetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4397,7 +4606,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Location{ + ret := &ListFleetsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4409,25 +4618,36 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } return ret, nil // { - // "description": "Gets information about a location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + // "description": "Returns all fleets within an organization or a project that the caller has access to.", + // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/fleets", // "httpMethod": "GET", - // "id": "gkehub.projects.locations.get", + // "id": "gkehub.organizations.locations.fleets.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Resource name for the location.", + // "pageSize": { + // "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^organizations/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/fleets", // "response": { - // "$ref": "Location" + // "$ref": "ListFleetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4436,9 +4656,30 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } -// method id "gkehub.projects.locations.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 *OrganizationsLocationsFleetsListCall) Pages(ctx context.Context, f func(*ListFleetsResponse) 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 ProjectsLocationsListCall struct { +// method id "gkehub.projects.locations.get": + +type ProjectsLocationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -4447,45 +4688,19 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// Get: Gets information about a location. // -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4495,7 +4710,7 @@ func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocati // 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -4503,21 +4718,21 @@ func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocat // 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { 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 *ProjectsLocationsListCall) Header() http.Header { +func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGetCall) 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_ { @@ -4530,7 +4745,179 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + 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 "gkehub.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, 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 := &Location{ + 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 information about a location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) 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}/locations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5844,17 +6231,769 @@ func (c *ProjectsLocationsFeaturesSetIamPolicyCall) Do(opts ...googleapi.CallOpt // "resource": { // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/features/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.features.testIamPermissions": + +type ProjectsLocationsFeaturesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsFeaturesTestIamPermissionsCall { + c := &ProjectsLocationsFeaturesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesTestIamPermissionsCall { + 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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturesTestIamPermissionsCall { + 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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) 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.testiampermissionsrequest) + 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/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkehub.projects.locations.features.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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 := &TestIamPermissionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/features/{featuresId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "gkehub.projects.locations.features.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/features/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.fleets.create": + +type ProjectsLocationsFleetsCreateCall struct { + s *Service + parent string + fleet *Fleet + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a fleet. +// +// - parent: The parent (project and location) where the Fleet will be +// created. Specified in the format `projects/*/locations/*`. +func (r *ProjectsLocationsFleetsService) Create(parent string, fleet *Fleet) *ProjectsLocationsFleetsCreateCall { + c := &ProjectsLocationsFleetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.fleet = fleet + 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 *ProjectsLocationsFleetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsCreateCall { + 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 *ProjectsLocationsFleetsCreateCall) Context(ctx context.Context) *ProjectsLocationsFleetsCreateCall { + 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 *ProjectsLocationsFleetsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsCreateCall) 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.fleet) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/fleets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkehub.projects.locations.fleets.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFleetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a fleet.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets", + // "httpMethod": "POST", + // "id": "gkehub.projects.locations.fleets.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent (project and location) where the Fleet will be created. Specified in the format `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/fleets", + // "request": { + // "$ref": "Fleet" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.fleets.delete": + +type ProjectsLocationsFleetsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Removes a Fleet. There must be no memberships remaining in +// the Fleet. +// +// - name: The Fleet resource name in the format +// `projects/*/locations/*/fleets/*`. +func (r *ProjectsLocationsFleetsService) Delete(name string) *ProjectsLocationsFleetsDeleteCall { + c := &ProjectsLocationsFleetsDeleteCall{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 *ProjectsLocationsFleetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsDeleteCall { + 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 *ProjectsLocationsFleetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFleetsDeleteCall { + 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 *ProjectsLocationsFleetsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkehub.projects.locations.fleets.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFleetsDeleteCall) 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": "Removes a Fleet. There must be no memberships remaining in the Fleet.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + // "httpMethod": "DELETE", + // "id": "gkehub.projects.locations.fleets.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.fleets.get": + +type ProjectsLocationsFleetsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns the details of a fleet. +// +// - name: The Fleet resource name in the format +// `projects/*/locations/*/fleets/*`. +func (r *ProjectsLocationsFleetsService) Get(name string) *ProjectsLocationsFleetsGetCall { + c := &ProjectsLocationsFleetsGetCall{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 *ProjectsLocationsFleetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsGetCall { + 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 *ProjectsLocationsFleetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFleetsGetCall { + 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 *ProjectsLocationsFleetsGetCall) Context(ctx context.Context) *ProjectsLocationsFleetsGetCall { + 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 *ProjectsLocationsFleetsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsGetCall) 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 "gkehub.projects.locations.fleets.get" call. +// Exactly one of *Fleet or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Fleet.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 *ProjectsLocationsFleetsGetCall) Do(opts ...googleapi.CallOption) (*Fleet, 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 := &Fleet{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the details of a fleet.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.fleets.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The Fleet resource name in the format `projects/*/locations/*/fleets/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Fleet" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "gkehub.projects.locations.fleets.list": + +type ProjectsLocationsFleetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns all fleets within an organization or a project that the +// caller has access to. +// +// - parent: The organization or project to list for Fleets under, in +// the format `organizations/*/locations/*` or +// `projects/*/locations/*`. +func (r *ProjectsLocationsFleetsService) List(parent string) *ProjectsLocationsFleetsListCall { + c := &ProjectsLocationsFleetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of fleets to return. The service may return fewer than this value. If +// unspecified, at most 200 fleets will be returned. The maximum value +// is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsFleetsListCall) PageSize(pageSize int64) *ProjectsLocationsFleetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListFleets` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListFleets` must match the call that provided the page token. +func (c *ProjectsLocationsFleetsListCall) PageToken(pageToken string) *ProjectsLocationsFleetsListCall { + 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 *ProjectsLocationsFleetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsListCall { + 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 *ProjectsLocationsFleetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFleetsListCall { + 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 *ProjectsLocationsFleetsListCall) Context(ctx context.Context) *ProjectsLocationsFleetsListCall { + 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 *ProjectsLocationsFleetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFleetsListCall) 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}/fleets") + 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 "gkehub.projects.locations.fleets.list" call. +// Exactly one of *ListFleetsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListFleetsResponse.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 *ProjectsLocationsFleetsListCall) Do(opts ...googleapi.CallOption) (*ListFleetsResponse, 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 := &ListFleetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns all fleets within an organization or a project that the caller has access to.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets", + // "httpMethod": "GET", + // "id": "gkehub.projects.locations.fleets.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "Optional. The maximum number of fleets to return. The service may return fewer than this value. If unspecified, at most 200 fleets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListFleets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFleets` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The organization or project to list for Fleets under, in the format `organizations/*/locations/*` or `projects/*/locations/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, + // "path": "v1/{+parent}/fleets", // "response": { - // "$ref": "Policy" + // "$ref": "ListFleetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5863,39 +7002,63 @@ func (c *ProjectsLocationsFeaturesSetIamPolicyCall) Do(opts ...googleapi.CallOpt } -// method id "gkehub.projects.locations.features.testIamPermissions": +// 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 *ProjectsLocationsFleetsListCall) Pages(ctx context.Context, f func(*ListFleetsResponse) 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 ProjectsLocationsFeaturesTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "gkehub.projects.locations.fleets.patch": + +type ProjectsLocationsFleetsPatchCall struct { + s *Service + name string + fleet *Fleet + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// Patch: Updates a fleet. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsFeaturesTestIamPermissionsCall { - c := &ProjectsLocationsFeaturesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest +// - name: Output only. The full, unique resource name of this fleet in +// the format of +// `projects/{project}/locations/{location}/fleets/{fleet}`. Each +// Google Cloud project can have at most one fleet resource, named +// "default". +func (r *ProjectsLocationsFleetsService) Patch(name string, fleet *Fleet) *ProjectsLocationsFleetsPatchCall { + c := &ProjectsLocationsFleetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.fleet = fleet + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// fields to be updated; +func (c *ProjectsLocationsFleetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFleetsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturesTestIamPermissionsCall { +func (c *ProjectsLocationsFleetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFleetsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5903,21 +7066,21 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Fields(s ...googleapi. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturesTestIamPermissionsCall { +func (c *ProjectsLocationsFleetsPatchCall) Context(ctx context.Context) *ProjectsLocationsFleetsPatchCall { 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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsFleetsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFleetsPatchCall) 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_ { @@ -5925,34 +7088,34 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.fleet) 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "gkehub.projects.locations.features.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.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 *ProjectsLocationsFeaturesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { +// Do executes the "gkehub.projects.locations.fleets.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsFleetsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5971,7 +7134,7 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestIamPermissionsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5983,28 +7146,34 @@ func (c *ProjectsLocationsFeaturesTestIamPermissionsCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/features/{featuresId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "gkehub.projects.locations.features.testIamPermissions", + // "description": "Updates a fleet.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/fleets/{fleetsId}", + // "httpMethod": "PATCH", + // "id": "gkehub.projects.locations.fleets.patch", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "Output only. The full, unique resource name of this fleet in the format of `projects/{project}/locations/{location}/fleets/{fleet}`. Each Google Cloud project can have at most one fleet resource, named \"default\".", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/fleets/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The fields to be updated;", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+resource}:testIamPermissions", + // "path": "v1/{+name}", // "request": { - // "$ref": "TestIamPermissionsRequest" + // "$ref": "Fleet" // }, // "response": { - // "$ref": "TestIamPermissionsResponse" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -9874,6 +11043,162 @@ func (c *ProjectsLocationsScopesListCall) Pages(ctx context.Context, f func(*Lis } } +// method id "gkehub.projects.locations.scopes.patch": + +type ProjectsLocationsScopesPatchCall struct { + s *Service + name string + scope *Scope + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a scopes. +// +// - name: The resource name for the scope +// `projects/{project}/locations/{location}/scopes/{scope}`. +func (r *ProjectsLocationsScopesService) Patch(name string, scope *Scope) *ProjectsLocationsScopesPatchCall { + c := &ProjectsLocationsScopesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.scope = scope + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// fields to be updated. +func (c *ProjectsLocationsScopesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsScopesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsScopesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsScopesPatchCall { + 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 *ProjectsLocationsScopesPatchCall) Context(ctx context.Context) *ProjectsLocationsScopesPatchCall { + 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 *ProjectsLocationsScopesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsScopesPatchCall) 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.scope) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkehub.projects.locations.scopes.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsScopesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a scopes.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/scopes/{scopesId}", + // "httpMethod": "PATCH", + // "id": "gkehub.projects.locations.scopes.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The resource name for the scope `projects/{project}/locations/{location}/scopes/{scope}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/scopes/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The fields to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "Scope" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "gkehub.projects.locations.scopes.setIamPolicy": type ProjectsLocationsScopesSetIamPolicyCall struct { diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index 6a935b72fbe..5013be190bf 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -1908,7 +1908,7 @@ } } }, - "revision": "20230606", + "revision": "20230609", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -3127,6 +3127,12 @@ "templateLibraryInstalled": { "description": "Installs the default template library along with Policy Controller.", "type": "boolean" + }, + "updateTime": { + "description": "Output only. Last time this membership spec was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -3135,6 +3141,11 @@ "description": "State for the migration of PolicyController from ACM -\u003e PoCo Hub.", "id": "ConfigManagementPolicyControllerMigration", "properties": { + "copyTime": { + "description": "Last time this membership spec was copied to PoCo feature.", + "format": "google-datetime", + "type": "string" + }, "stage": { "description": "Stage of the migration.", "enum": [ @@ -5064,6 +5075,10 @@ "description": "The state of the any bundles included in the chosen version of the manifest", "type": "object" }, + "referentialSyncConfigState": { + "$ref": "PolicyControllerOnClusterState", + "description": "The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user." + }, "templateLibraryState": { "$ref": "PolicyControllerOnClusterState", "description": "The state of the template library" diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 47479552cb1..fd417431bf5 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -2320,6 +2320,9 @@ type ConfigManagementPolicyController struct { // with Policy Controller. TemplateLibraryInstalled bool `json:"templateLibraryInstalled,omitempty"` + // UpdateTime: Output only. Last time this membership spec was updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AuditIntervalSeconds") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -2348,6 +2351,9 @@ func (s *ConfigManagementPolicyController) MarshalJSON() ([]byte, error) { // ConfigManagementPolicyControllerMigration: State for the migration of // PolicyController from ACM -> PoCo Hub. type ConfigManagementPolicyControllerMigration struct { + // CopyTime: Last time this membership spec was copied to PoCo feature. + CopyTime string `json:"copyTime,omitempty"` + // Stage: Stage of the migration. // // Possible values: @@ -2358,7 +2364,7 @@ type ConfigManagementPolicyControllerMigration struct { // manages policycontroller. Stage string `json:"stage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Stage") to + // ForceSendFields is a list of field names (e.g. "CopyTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2366,8 +2372,8 @@ type ConfigManagementPolicyControllerMigration struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Stage") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "CopyTime") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -5488,6 +5494,12 @@ type PolicyControllerPolicyContentState struct { // version of the manifest BundleStates map[string]PolicyControllerOnClusterState `json:"bundleStates,omitempty"` + // ReferentialSyncConfigState: The state of the referential data sync + // configuration. This could represent the state of either the syncSet + // object(s) or the config object, depending on the version of PoCo + // configured by the user. + ReferentialSyncConfigState *PolicyControllerOnClusterState `json:"referentialSyncConfigState,omitempty"` + // TemplateLibraryState: The state of the template library TemplateLibraryState *PolicyControllerOnClusterState `json:"templateLibraryState,omitempty"` diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index d8df5522792..9dd35df068e 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -1594,7 +1594,7 @@ } } }, - "revision": "20230606", + "revision": "20230609", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2471,6 +2471,12 @@ "templateLibraryInstalled": { "description": "Installs the default template library along with Policy Controller.", "type": "boolean" + }, + "updateTime": { + "description": "Output only. Last time this membership spec was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -2479,6 +2485,11 @@ "description": "State for the migration of PolicyController from ACM -\u003e PoCo Hub.", "id": "ConfigManagementPolicyControllerMigration", "properties": { + "copyTime": { + "description": "Last time this membership spec was copied to PoCo feature.", + "format": "google-datetime", + "type": "string" + }, "stage": { "description": "Stage of the migration.", "enum": [ @@ -3973,6 +3984,10 @@ "description": "The state of the any bundles included in the chosen version of the manifest", "type": "object" }, + "referentialSyncConfigState": { + "$ref": "PolicyControllerOnClusterState", + "description": "The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user." + }, "templateLibraryState": { "$ref": "PolicyControllerOnClusterState", "description": "The state of the template library" diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 6c3a54e9d7d..c837792351d 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -1697,6 +1697,9 @@ type ConfigManagementPolicyController struct { // with Policy Controller. TemplateLibraryInstalled bool `json:"templateLibraryInstalled,omitempty"` + // UpdateTime: Output only. Last time this membership spec was updated. + UpdateTime string `json:"updateTime,omitempty"` + // ForceSendFields is a list of field names (e.g. // "AuditIntervalSeconds") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -1725,6 +1728,9 @@ func (s *ConfigManagementPolicyController) MarshalJSON() ([]byte, error) { // ConfigManagementPolicyControllerMigration: State for the migration of // PolicyController from ACM -> PoCo Hub. type ConfigManagementPolicyControllerMigration struct { + // CopyTime: Last time this membership spec was copied to PoCo feature. + CopyTime string `json:"copyTime,omitempty"` + // Stage: Stage of the migration. // // Possible values: @@ -1735,7 +1741,7 @@ type ConfigManagementPolicyControllerMigration struct { // manages policycontroller. Stage string `json:"stage,omitempty"` - // ForceSendFields is a list of field names (e.g. "Stage") to + // ForceSendFields is a list of field names (e.g. "CopyTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1743,8 +1749,8 @@ type ConfigManagementPolicyControllerMigration struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Stage") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "CopyTime") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -4137,6 +4143,12 @@ type PolicyControllerPolicyContentState struct { // version of the manifest BundleStates map[string]PolicyControllerOnClusterState `json:"bundleStates,omitempty"` + // ReferentialSyncConfigState: The state of the referential data sync + // configuration. This could represent the state of either the syncSet + // object(s) or the config object, depending on the version of PoCo + // configured by the user. + ReferentialSyncConfigState *PolicyControllerOnClusterState `json:"referentialSyncConfigState,omitempty"` + // TemplateLibraryState: The state of the template library TemplateLibraryState *PolicyControllerOnClusterState `json:"templateLibraryState,omitempty"` diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 04e00a28b84..aecb4cfc6e8 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20230508", + "revision": "20230614", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "Backup": { @@ -3216,6 +3216,28 @@ }, "type": "object" }, + "DdlStatementActionInfo": { + "description": "Action information extracted from a DDL statement. This proto is used to display the brief info of the DDL statement for the operation UpdateDatabaseDdl.", + "id": "DdlStatementActionInfo", + "properties": { + "action": { + "description": "The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. This field is a non-empty string.", + "type": "string" + }, + "entityNames": { + "description": "The entity name(s) being operated on the DDL statement. E.g. 1. For statement \"CREATE TABLE t1(...)\", `entity_names` = [\"t1\"]. 2. For statement \"GRANT ROLE r1, r2 ...\", `entity_names` = [\"r1\", \"r2\"]. 3. For statement \"ANALYZE\", `entity_names` = [].", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityType": { + "description": "The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. This field can be empty string for some DDL statement, e.g. for statement \"ANALYZE\", `entity_type` = \"\".", + "type": "string" + } + }, + "type": "object" + }, "Delete": { "description": "Arguments to delete operations.", "id": "Delete", @@ -5370,6 +5392,13 @@ "description": "Metadata type for the operation returned by UpdateDatabaseDdl.", "id": "UpdateDatabaseDdlMetadata", "properties": { + "actions": { + "description": "The brief action info for the DDL statements. `actions[i]` is the brief info for `statements[i]`.", + "items": { + "$ref": "DdlStatementActionInfo" + }, + "type": "array" + }, "commitTimestamps": { "description": "Reports the commit timestamps of all statements that have succeeded so far, where `commit_timestamps[i]` is the commit timestamp for the statement `statements[i]`.", "items": { @@ -5383,7 +5412,7 @@ "type": "string" }, "progress": { - "description": "The progress of the UpdateDatabaseDdl operations. Currently, only index creation statements will have a continuously updating progress. For non-index creation statements, `progress[i]` will have start time and end time populated with commit timestamp of operation, as well as a progress of 100% once the operation has completed. `progress[i]` is the operation progress for `statements[i]`.", + "description": "The progress of the UpdateDatabaseDdl operations. All DDL statements will have continuously updating progress, and `progress[i]` is the operation progress for `statements[i]`. Also, `progress[i]` will have start time and end time populated with commit timestamp of operation, as well as a progress of 100% once the operation has completed.", "items": { "$ref": "OperationProgress" }, diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index bff2542de67..e7a9cc4eccc 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -1532,6 +1532,48 @@ func (s *DatabaseRole) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DdlStatementActionInfo: Action information extracted from a DDL +// statement. This proto is used to display the brief info of the DDL +// statement for the operation UpdateDatabaseDdl. +type DdlStatementActionInfo struct { + // Action: The action for the DDL statement, e.g. CREATE, ALTER, DROP, + // GRANT, etc. This field is a non-empty string. + Action string `json:"action,omitempty"` + + // EntityNames: The entity name(s) being operated on the DDL statement. + // E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = + // ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = + // ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = []. + EntityNames []string `json:"entityNames,omitempty"` + + // EntityType: The entity type for the DDL statement, e.g. TABLE, INDEX, + // VIEW, etc. This field can be empty string for some DDL statement, + // e.g. for statement "ANALYZE", `entity_type` = "". + EntityType string `json:"entityType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Action") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DdlStatementActionInfo) MarshalJSON() ([]byte, error) { + type NoMethod DdlStatementActionInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Delete: Arguments to delete operations. type Delete struct { // KeySet: Required. The primary keys of the rows within table to @@ -5774,6 +5816,10 @@ func (s *Type) MarshalJSON() ([]byte, error) { // UpdateDatabaseDdlMetadata: Metadata type for the operation returned // by UpdateDatabaseDdl. type UpdateDatabaseDdlMetadata struct { + // Actions: The brief action info for the DDL statements. `actions[i]` + // is the brief info for `statements[i]`. + Actions []*DdlStatementActionInfo `json:"actions,omitempty"` + // CommitTimestamps: Reports the commit timestamps of all statements // that have succeeded so far, where `commit_timestamps[i]` is the // commit timestamp for the statement `statements[i]`. @@ -5782,13 +5828,12 @@ type UpdateDatabaseDdlMetadata struct { // Database: The database being modified. Database string `json:"database,omitempty"` - // Progress: The progress of the UpdateDatabaseDdl operations. - // Currently, only index creation statements will have a continuously - // updating progress. For non-index creation statements, `progress[i]` - // will have start time and end time populated with commit timestamp of - // operation, as well as a progress of 100% once the operation has - // completed. `progress[i]` is the operation progress for - // `statements[i]`. + // Progress: The progress of the UpdateDatabaseDdl operations. All DDL + // statements will have continuously updating progress, and + // `progress[i]` is the operation progress for `statements[i]`. Also, + // `progress[i]` will have start time and end time populated with commit + // timestamp of operation, as well as a progress of 100% once the + // operation has completed. Progress []*OperationProgress `json:"progress,omitempty"` // Statements: For an update this list contains all the statements. For @@ -5801,7 +5846,7 @@ type UpdateDatabaseDdlMetadata struct { // again. Throttled bool `json:"throttled,omitempty"` - // ForceSendFields is a list of field names (e.g. "CommitTimestamps") to + // ForceSendFields is a list of field names (e.g. "Actions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -5809,13 +5854,12 @@ type UpdateDatabaseDdlMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CommitTimestamps") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an 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. "Actions") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } diff --git a/transcoder/v1/transcoder-api.json b/transcoder/v1/transcoder-api.json index f9288e57eda..25b201bee32 100644 --- a/transcoder/v1/transcoder-api.json +++ b/transcoder/v1/transcoder-api.json @@ -385,7 +385,7 @@ } } }, - "revision": "20230426", + "revision": "20230607", "rootUrl": "https://transcoder.googleapis.com/", "schemas": { "AdBreak": { @@ -653,6 +653,27 @@ }, "type": "object" }, + "DashConfig": { + "description": "`DASH` manifest configuration.", + "id": "DashConfig", + "properties": { + "segmentReferenceScheme": { + "description": "The segment reference scheme for a `DASH` manifest. The default is `SEGMENT_LIST`", + "enum": [ + "SEGMENT_REFERENCE_SCHEME_UNSPECIFIED", + "SEGMENT_LIST", + "SEGMENT_TEMPLATE_NUMBER" + ], + "enumDescriptions": [ + "The segment reference scheme is not specified.", + "Lists the URLs of media files for each segment.", + "Lists each segment from a template with $Number$ variable." + ], + "type": "string" + } + }, + "type": "object" + }, "Deblock": { "description": "Deblock preprocessing configuration. **Note:** This configuration is not supported.", "id": "Deblock", @@ -1230,6 +1251,10 @@ "description": "Manifest configuration.", "id": "Manifest", "properties": { + "dash": { + "$ref": "DashConfig", + "description": "`DASH` manifest configuration." + }, "fileName": { "description": "The name of the generated file. The default is `manifest` with the extension suffix corresponding to the `Manifest.type`.", "type": "string" diff --git a/transcoder/v1/transcoder-gen.go b/transcoder/v1/transcoder-gen.go index d4d171bbe02..f07d7e9e244 100644 --- a/transcoder/v1/transcoder-gen.go +++ b/transcoder/v1/transcoder-gen.go @@ -691,6 +691,44 @@ func (s *Crop) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DashConfig: `DASH` manifest configuration. +type DashConfig struct { + // SegmentReferenceScheme: The segment reference scheme for a `DASH` + // manifest. The default is `SEGMENT_LIST` + // + // Possible values: + // "SEGMENT_REFERENCE_SCHEME_UNSPECIFIED" - The segment reference + // scheme is not specified. + // "SEGMENT_LIST" - Lists the URLs of media files for each segment. + // "SEGMENT_TEMPLATE_NUMBER" - Lists each segment from a template with + // $Number$ variable. + SegmentReferenceScheme string `json:"segmentReferenceScheme,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "SegmentReferenceScheme") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SegmentReferenceScheme") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *DashConfig) MarshalJSON() ([]byte, error) { + type NoMethod DashConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Deblock: Deblock preprocessing configuration. **Note:** This // configuration is not supported. type Deblock struct { @@ -1613,6 +1651,9 @@ func (s *ListJobsResponse) MarshalJSON() ([]byte, error) { // Manifest: Manifest configuration. type Manifest struct { + // Dash: `DASH` manifest configuration. + Dash *DashConfig `json:"dash,omitempty"` + // FileName: The name of the generated file. The default is `manifest` // with the extension suffix corresponding to the `Manifest.type`. FileName string `json:"fileName,omitempty"` @@ -1633,7 +1674,7 @@ type Manifest struct { // extension is `.mpd`. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "FileName") to + // ForceSendFields is a list of field names (e.g. "Dash") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1641,8 +1682,8 @@ type Manifest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FileName") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Dash") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. diff --git a/workflowexecutions/v1/workflowexecutions-api.json b/workflowexecutions/v1/workflowexecutions-api.json index 3d1e4b325f7..a9547534c2b 100644 --- a/workflowexecutions/v1/workflowexecutions-api.json +++ b/workflowexecutions/v1/workflowexecutions-api.json @@ -309,7 +309,7 @@ } } }, - "revision": "20230516", + "revision": "20230607", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "CancelExecutionRequest": { @@ -605,6 +605,11 @@ "description": "Required. LINT: LEGACY_NAMES The query parameter value for __GCP_CloudEventsMode, set by the Eventarc service when configuring triggers.", "type": "string" }, + "deliveryAttempt": { + "description": "The number of attempts that have been made to deliver this message. This is set by Pub/Sub for subscriptions that have the \"dead letter\" feature enabled, and hence provided here for compatibility, but is ignored by Workflows.", + "format": "int32", + "type": "integer" + }, "message": { "$ref": "PubsubMessage", "description": "Required. The message of the Pub/Sub push notification." diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 9335196d7e5..cc2eaed21f4 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -642,6 +642,12 @@ type TriggerPubsubExecutionRequest struct { // configuring triggers. GCPCloudEventsMode string `json:"GCPCloudEventsMode,omitempty"` + // DeliveryAttempt: The number of attempts that have been made to + // deliver this message. This is set by Pub/Sub for subscriptions that + // have the "dead letter" feature enabled, and hence provided here for + // compatibility, but is ignored by Workflows. + DeliveryAttempt int64 `json:"deliveryAttempt,omitempty"` + // Message: Required. The message of the Pub/Sub push notification. Message *PubsubMessage `json:"message,omitempty"` diff --git a/workloadmanager/v1/workloadmanager-api.json b/workloadmanager/v1/workloadmanager-api.json index 5da97a30ff5..ecf11875356 100644 --- a/workloadmanager/v1/workloadmanager-api.json +++ b/workloadmanager/v1/workloadmanager-api.json @@ -707,7 +707,7 @@ } } }, - "revision": "20230524", + "revision": "20230605", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -723,7 +723,7 @@ "type": "object" }, "Evaluation": { - "description": "Message describing Evaluation object", + "description": "LINT.IfChange Message describing Evaluation object", "id": "Evaluation", "properties": { "createTime": { @@ -776,7 +776,7 @@ "type": "array" }, "schedule": { - "description": "crontab format schedule for scheduled evaluation, example: 0 */3 * * *", + "description": "crontab format schedule for scheduled evaluation, currently only support the following schedule: \"0 */1 * * *\", \"0 */6 * * *\", \"0 */12 * * *\", \"0 0 */1 * *\", \"0 0 */7 * *\",", "type": "string" }, "updateTime": { @@ -909,6 +909,10 @@ "description": "A presentation of host resource usage where the workload runs.", "id": "Insight", "properties": { + "instanceId": { + "description": "Required. The instance id where the insight is generated from", + "type": "string" + }, "sapDiscovery": { "$ref": "SapDiscovery", "description": "The insights data for sap system discovery. This is a copy of SAP System proto and should get updated whenever that one changes." @@ -1332,7 +1336,7 @@ "type": "object" }, "SapDiscovery": { - "description": "The schema of SAP system discovery data.", + "description": "LINT.IfChange The schema of SAP system discovery data.", "id": "SapDiscovery", "properties": { "applicationLayer": { @@ -1629,10 +1633,6 @@ "$ref": "Insight", "description": "Required. The metrics data details." }, - "instanceId": { - "description": "Optional. The instance id where the insight is generated from", - "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 since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", "type": "string" diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index d2581df6f5b..a5cfcd0ebd0 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -259,7 +259,7 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } -// Evaluation: Message describing Evaluation object +// Evaluation: LINT.IfChange Message describing Evaluation object type Evaluation struct { // CreateTime: Output only. [Output only] Create time stamp CreateTime string `json:"createTime,omitempty"` @@ -292,8 +292,9 @@ type Evaluation struct { // exist. RuleVersions []string `json:"ruleVersions,omitempty"` - // Schedule: crontab format schedule for scheduled evaluation, example: - // 0 */3 * * * + // Schedule: crontab format schedule for scheduled evaluation, currently + // only support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 + // */12 * * *", "0 0 */1 * *", "0 0 */7 * *", Schedule string `json:"schedule,omitempty"` // UpdateTime: Output only. [Output only] Update time stamp @@ -469,6 +470,10 @@ func (s *GceInstanceFilter) MarshalJSON() ([]byte, error) { // Insight: A presentation of host resource usage where the workload // runs. type Insight struct { + // InstanceId: Required. The instance id where the insight is generated + // from + InstanceId string `json:"instanceId,omitempty"` + // SapDiscovery: The insights data for sap system discovery. This is a // copy of SAP System proto and should get updated whenever that one // changes. @@ -484,7 +489,7 @@ type Insight struct { // validation. SqlserverValidation *SqlserverValidation `json:"sqlserverValidation,omitempty"` - // ForceSendFields is a list of field names (e.g. "SapDiscovery") to + // ForceSendFields is a list of field names (e.g. "InstanceId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -492,10 +497,10 @@ type Insight struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "SapDiscovery") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "InstanceId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -1151,7 +1156,7 @@ func (s *RunEvaluationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SapDiscovery: The schema of SAP system discovery data. +// SapDiscovery: LINT.IfChange The schema of SAP system discovery data. type SapDiscovery struct { // ApplicationLayer: An SAP system may run without an application layer. ApplicationLayer *SapDiscoveryComponent `json:"applicationLayer,omitempty"` @@ -1582,10 +1587,6 @@ type WriteInsightRequest struct { // Insight: Required. The metrics data details. Insight *Insight `json:"insight,omitempty"` - // InstanceId: Optional. The instance id where the insight is generated - // from - InstanceId string `json:"instanceId,omitempty"` - // RequestId: 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