From 3151bd7998eca6d2f2ca22017803480057efabe6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 29 Oct 2023 00:22:13 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2240) --- connectors/v1/connectors-api.json | 59 +++++++- connectors/v1/connectors-gen.go | 56 +++++++ domains/v1/domains-api.json | 8 +- domains/v1/domains-gen.go | 1 + domains/v1alpha2/domains-api.json | 8 +- domains/v1alpha2/domains-gen.go | 1 + domains/v1beta1/domains-api.json | 8 +- domains/v1beta1/domains-gen.go | 1 + .../v1beta1/networkservices-api.json | 8 +- .../v1beta1/networkservices-gen.go | 8 +- spanner/v1/spanner-api.json | 63 ++++++++ spanner/v1/spanner-gen.go | 143 +++++++++++++++++- 12 files changed, 337 insertions(+), 27 deletions(-) diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index 46133ae67da..1907be38f56 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -1832,7 +1832,7 @@ } } }, - "revision": "20231011", + "revision": "20231024", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -2371,12 +2371,22 @@ "enum": [ "STATE_UNSPECIFIED", "REFRESHING", - "UPDATED" + "UPDATED", + "REFRESHING_SCHEMA_METADATA", + "UPDATED_SCHEMA_METADATA", + "REFRESH_SCHEMA_METADATA_FAILED", + "REFRESHING_FULL_SCHEMA", + "UPDATED_FULL_SCHEMA" ], "enumDescriptions": [ "Default state.", "Schema refresh is in progress.", - "Schema has been updated." + "Schema has been updated.", + "Schema refresh for metadata is in progress.", + "Schema metadata has been updated.", + "Failed to refresh schema metadata", + "Triggered full schema refresh", + "Updated full schema" ], "readOnly": true, "type": "string" @@ -2978,6 +2988,10 @@ "description": "Optional. Event type id of the event of current EventSubscription.", "type": "string" }, + "jms": { + "$ref": "JMS", + "description": "Optional. JMS is the source for the event listener." + }, "name": { "description": "Required. Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}", "type": "string" @@ -3184,6 +3198,20 @@ "description": "Enrichment Supported.", "type": "boolean" }, + "eventListenerType": { + "description": "The type of the event listener for a specific connector.", + "enum": [ + "EVENT_LISTENER_TYPE_UNSPECIFIED", + "WEBHOOK_LISTENER", + "JMS_LISTENER" + ], + "enumDescriptions": [ + "Default value.", + "Webhook listener. e.g. Jira, Zendesk, Servicenow etc.,", + "JMS Listener. e.g. IBM MQ, Rabbit MQ etc.," + ], + "type": "string" + }, "isEventingSupported": { "description": "Is Eventing Supported.", "type": "boolean" @@ -3789,6 +3817,31 @@ }, "type": "object" }, + "JMS": { + "description": "JMS message denotes the source of the event", + "id": "JMS", + "properties": { + "name": { + "description": "Optional. Name of the JMS source. i.e. queueName or topicName", + "type": "string" + }, + "type": { + "description": "Optional. Type of the JMS Source. i.e. Queue or Topic", + "enum": [ + "TYPE_UNSPECIFIED", + "QUEUE", + "TOPIC" + ], + "enumDescriptions": [ + "Default state.", + "JMS Queue.", + "JMS Topic." + ], + "type": "string" + } + }, + "type": "object" + }, "JsonSchema": { "description": "JsonSchema representation of schema metadata", "id": "JsonSchema", diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index b2355b0b896..515db8782df 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -970,6 +970,13 @@ type ConnectionSchemaMetadata struct { // "STATE_UNSPECIFIED" - Default state. // "REFRESHING" - Schema refresh is in progress. // "UPDATED" - Schema has been updated. + // "REFRESHING_SCHEMA_METADATA" - Schema refresh for metadata is in + // progress. + // "UPDATED_SCHEMA_METADATA" - Schema metadata has been updated. + // "REFRESH_SCHEMA_METADATA_FAILED" - Failed to refresh schema + // metadata + // "REFRESHING_FULL_SCHEMA" - Triggered full schema refresh + // "UPDATED_FULL_SCHEMA" - Updated full schema State string `json:"state,omitempty"` // UpdateTime: Output only. Timestamp when the connection runtime schema @@ -1725,6 +1732,9 @@ type EventSubscription struct { // EventSubscription. EventTypeId string `json:"eventTypeId,omitempty"` + // Jms: Optional. JMS is the source for the event listener. + Jms *JMS `json:"jms,omitempty"` + // Name: Required. Resource name of the EventSubscription. Format: // projects/{project}/locations/{location}/connections/{connection}/event // Subscriptions/{event_subscription} @@ -1986,6 +1996,16 @@ type EventingConfigTemplate struct { // EnrichmentSupported: Enrichment Supported. EnrichmentSupported bool `json:"enrichmentSupported,omitempty"` + // EventListenerType: The type of the event listener for a specific + // connector. + // + // Possible values: + // "EVENT_LISTENER_TYPE_UNSPECIFIED" - Default value. + // "WEBHOOK_LISTENER" - Webhook listener. e.g. Jira, Zendesk, + // Servicenow etc., + // "JMS_LISTENER" - JMS Listener. e.g. IBM MQ, Rabbit MQ etc., + EventListenerType string `json:"eventListenerType,omitempty"` + // IsEventingSupported: Is Eventing Supported. IsEventingSupported bool `json:"isEventingSupported,omitempty"` @@ -2590,6 +2610,42 @@ func (s *InputParameter) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// JMS: JMS message denotes the source of the event +type JMS struct { + // Name: Optional. Name of the JMS source. i.e. queueName or topicName + Name string `json:"name,omitempty"` + + // Type: Optional. Type of the JMS Source. i.e. Queue or Topic + // + // Possible values: + // "TYPE_UNSPECIFIED" - Default state. + // "QUEUE" - JMS Queue. + // "TOPIC" - JMS Topic. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *JMS) MarshalJSON() ([]byte, error) { + type NoMethod JMS + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // JsonSchema: JsonSchema representation of schema metadata type JsonSchema struct { // Default: The default value of the field or object described by this diff --git a/domains/v1/domains-api.json b/domains/v1/domains-api.json index dc11167333c..6ac15014df7 100644 --- a/domains/v1/domains-api.json +++ b/domains/v1/domains-api.json @@ -843,7 +843,7 @@ } } }, - "revision": "20230904", + "revision": "20231018", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { @@ -1834,7 +1834,8 @@ "IMPORT_PENDING", "ACTIVE", "SUSPENDED", - "EXPORTED" + "EXPORTED", + "EXPIRED" ], "enumDescriptions": [ "The state is undefined.", @@ -1845,7 +1846,8 @@ "The domain is being imported from Google Domains to Cloud Domains.", "The domain is registered and operational. The domain renews automatically as long as it remains in this state.", "The domain is suspended and inoperative. For more details, see the `issues` field.", - "The domain is no longer managed with Cloud Domains. It may have been transferred to another registrar or exported for management in [Google Domains](https://domains.google/). You can no longer update it with this API, and information shown about it may be stale. Domains in this state are not automatically renewed by Cloud Domains." + "The domain is no longer managed with Cloud Domains. It may have been transferred to another registrar or exported for management in [Google Domains](https://domains.google/). You can no longer update it with this API, and information shown about it may be stale. Domains in this state are not automatically renewed by Cloud Domains.", + "The domain is expired." ], "readOnly": true, "type": "string" diff --git a/domains/v1/domains-gen.go b/domains/v1/domains-gen.go index 6999e20a422..9986101053f 100644 --- a/domains/v1/domains-gen.go +++ b/domains/v1/domains-gen.go @@ -1888,6 +1888,7 @@ type Registration struct { // longer update it with this API, and information shown about it may be // stale. Domains in this state are not automatically renewed by Cloud // Domains. + // "EXPIRED" - The domain is expired. State string `json:"state,omitempty"` // SupportedPrivacy: Output only. Set of options for the diff --git a/domains/v1alpha2/domains-api.json b/domains/v1alpha2/domains-api.json index b8a5f595b24..094ff312a8a 100644 --- a/domains/v1alpha2/domains-api.json +++ b/domains/v1alpha2/domains-api.json @@ -843,7 +843,7 @@ } } }, - "revision": "20230904", + "revision": "20231018", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { @@ -1834,7 +1834,8 @@ "IMPORT_PENDING", "ACTIVE", "SUSPENDED", - "EXPORTED" + "EXPORTED", + "EXPIRED" ], "enumDescriptions": [ "The state is undefined.", @@ -1845,7 +1846,8 @@ "The domain is being imported from Google Domains to Cloud Domains.", "The domain is registered and operational. The domain renews automatically as long as it remains in this state.", "The domain is suspended and inoperative. For more details, see the `issues` field.", - "The domain is no longer managed with Cloud Domains. It may have been transferred to another registrar or exported for management in [Google Domains](https://domains.google/). You can no longer update it with this API, and information shown about it may be stale. Domains in this state are not automatically renewed by Cloud Domains." + "The domain is no longer managed with Cloud Domains. It may have been transferred to another registrar or exported for management in [Google Domains](https://domains.google/). You can no longer update it with this API, and information shown about it may be stale. Domains in this state are not automatically renewed by Cloud Domains.", + "The domain is expired." ], "readOnly": true, "type": "string" diff --git a/domains/v1alpha2/domains-gen.go b/domains/v1alpha2/domains-gen.go index 78be5b50269..36d6b712aaa 100644 --- a/domains/v1alpha2/domains-gen.go +++ b/domains/v1alpha2/domains-gen.go @@ -1888,6 +1888,7 @@ type Registration struct { // longer update it with this API, and information shown about it may be // stale. Domains in this state are not automatically renewed by Cloud // Domains. + // "EXPIRED" - The domain is expired. State string `json:"state,omitempty"` // SupportedPrivacy: Output only. Set of options for the diff --git a/domains/v1beta1/domains-api.json b/domains/v1beta1/domains-api.json index b46fbc61815..82d46d8c972 100644 --- a/domains/v1beta1/domains-api.json +++ b/domains/v1beta1/domains-api.json @@ -843,7 +843,7 @@ } } }, - "revision": "20230904", + "revision": "20231018", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { @@ -1834,7 +1834,8 @@ "IMPORT_PENDING", "ACTIVE", "SUSPENDED", - "EXPORTED" + "EXPORTED", + "EXPIRED" ], "enumDescriptions": [ "The state is undefined.", @@ -1845,7 +1846,8 @@ "The domain is being imported from Google Domains to Cloud Domains.", "The domain is registered and operational. The domain renews automatically as long as it remains in this state.", "The domain is suspended and inoperative. For more details, see the `issues` field.", - "The domain is no longer managed with Cloud Domains. It may have been transferred to another registrar or exported for management in [Google Domains](https://domains.google/). You can no longer update it with this API, and information shown about it may be stale. Domains in this state are not automatically renewed by Cloud Domains." + "The domain is no longer managed with Cloud Domains. It may have been transferred to another registrar or exported for management in [Google Domains](https://domains.google/). You can no longer update it with this API, and information shown about it may be stale. Domains in this state are not automatically renewed by Cloud Domains.", + "The domain is expired." ], "readOnly": true, "type": "string" diff --git a/domains/v1beta1/domains-gen.go b/domains/v1beta1/domains-gen.go index fd4babcf308..6a11be6721e 100644 --- a/domains/v1beta1/domains-gen.go +++ b/domains/v1beta1/domains-gen.go @@ -1888,6 +1888,7 @@ type Registration struct { // longer update it with this API, and information shown about it may be // stale. Domains in this state are not automatically renewed by Cloud // Domains. + // "EXPIRED" - The domain is expired. State string `json:"state,omitempty"` // SupportedPrivacy: Output only. Set of options for the diff --git a/networkservices/v1beta1/networkservices-api.json b/networkservices/v1beta1/networkservices-api.json index 19624172048..9ee7417e48f 100644 --- a/networkservices/v1beta1/networkservices-api.json +++ b/networkservices/v1beta1/networkservices-api.json @@ -2483,7 +2483,7 @@ } } }, - "revision": "20230926", + "revision": "20231018", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -3685,7 +3685,7 @@ "type": "array" }, "forwardingRules": { - "description": "Required. A list of references to the forwarding rules to which this service extension is attach to. At least one forwarding rule is required. There can be only one `LbRouteExtension` resource per forwarding rule.", + "description": "Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LbRouteExtension` resource per forwarding rule.", "items": { "type": "string" }, @@ -3699,7 +3699,7 @@ "type": "object" }, "loadBalancingScheme": { - "description": "Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`.", + "description": "Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service).", "enum": [ "LOAD_BALANCING_SCHEME_UNSPECIFIED", "INTERNAL_MANAGED", @@ -3747,7 +3747,7 @@ "type": "array" }, "forwardingRules": { - "description": "Required. A list of references to the forwarding rules to which this service extension is attach to. At least one forwarding rule is required. There can be only one `LBTrafficExtension` resource per forwarding rule.", + "description": "Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LBTrafficExtension` resource per forwarding rule.", "items": { "type": "string" }, diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index 7e68164fc34..a91c2e9b79b 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -2399,7 +2399,7 @@ type LbRouteExtension struct { ExtensionChains []*ExtensionChain `json:"extensionChains,omitempty"` // ForwardingRules: Required. A list of references to the forwarding - // rules to which this service extension is attach to. At least one + // rules to which this service extension is attached to. At least one // forwarding rule is required. There can be only one `LbRouteExtension` // resource per forwarding rule. ForwardingRules []string `json:"forwardingRules,omitempty"` @@ -2412,7 +2412,9 @@ type LbRouteExtension struct { // LoadBalancingScheme: Required. All backend services and forwarding // rules referenced by this extension must share the same load balancing - // scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. + // scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For + // more information, refer to Choosing a load balancer + // (https://cloud.google.com/load-balancing/docs/backend-service). // // Possible values: // "LOAD_BALANCING_SCHEME_UNSPECIFIED" - Default value. Do not use. @@ -2478,7 +2480,7 @@ type LbTrafficExtension struct { ExtensionChains []*ExtensionChain `json:"extensionChains,omitempty"` // ForwardingRules: Required. A list of references to the forwarding - // rules to which this service extension is attach to. At least one + // rules to which this service extension is attached to. At least one // forwarding rule is required. There can be only one // `LBTrafficExtension` resource per forwarding rule. ForwardingRules []string `json:"forwardingRules,omitempty"` diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 9465accbae8..fe0d110959d 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -2604,6 +2604,65 @@ "revision": "20231017", "rootUrl": "https://spanner.googleapis.com/", "schemas": { + "AutoscalingConfig": { + "description": "Autoscaling config for an instance.", + "id": "AutoscalingConfig", + "properties": { + "autoscalingLimits": { + "$ref": "AutoscalingLimits", + "description": "Required. Autoscaling limits for an instance." + }, + "autoscalingTargets": { + "$ref": "AutoscalingTargets", + "description": "Required. The autoscaling targets for an instance." + } + }, + "type": "object" + }, + "AutoscalingLimits": { + "description": "The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit.", + "id": "AutoscalingLimits", + "properties": { + "maxNodes": { + "description": "Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.", + "format": "int32", + "type": "integer" + }, + "maxProcessingUnits": { + "description": "Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.", + "format": "int32", + "type": "integer" + }, + "minNodes": { + "description": "Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.", + "format": "int32", + "type": "integer" + }, + "minProcessingUnits": { + "description": "Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "AutoscalingTargets": { + "description": "The autoscaling targets for an instance.", + "id": "AutoscalingTargets", + "properties": { + "highPriorityCpuUtilizationPercent": { + "description": "Required. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive.", + "format": "int32", + "type": "integer" + }, + "storageUtilizationPercent": { + "description": "Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 100] inclusive.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Backup": { "description": "A backup of a Cloud Spanner database.", "id": "Backup", @@ -3717,6 +3776,10 @@ "description": "An isolated set of Cloud Spanner resources on which databases can be hosted.", "id": "Instance", "properties": { + "autoscalingConfig": { + "$ref": "AutoscalingConfig", + "description": "Optional. The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, node_count and processing_units are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance." + }, "config": { "description": "Required. The name of the instance's configuration. Values are of the form `projects//instanceConfigs/`. See also InstanceConfig and ListInstanceConfigs.", "type": "string" diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index 3df4dc36ed4..c3e0ed7fc40 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -367,6 +367,125 @@ type ScansService struct { s *Service } +// AutoscalingConfig: Autoscaling config for an instance. +type AutoscalingConfig struct { + // AutoscalingLimits: Required. Autoscaling limits for an instance. + AutoscalingLimits *AutoscalingLimits `json:"autoscalingLimits,omitempty"` + + // AutoscalingTargets: Required. The autoscaling targets for an + // instance. + AutoscalingTargets *AutoscalingTargets `json:"autoscalingTargets,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AutoscalingLimits") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AutoscalingLimits") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AutoscalingConfig) MarshalJSON() ([]byte, error) { + type NoMethod AutoscalingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AutoscalingLimits: The autoscaling limits for the instance. Users can +// define the minimum and maximum compute capacity allocated to the +// instance, and the autoscaler will only scale within that range. Users +// can either use nodes or processing units to specify the limits, but +// should use the same unit to set both the min_limit and max_limit. +type AutoscalingLimits struct { + // MaxNodes: Maximum number of nodes allocated to the instance. If set, + // this number should be greater than or equal to min_nodes. + MaxNodes int64 `json:"maxNodes,omitempty"` + + // MaxProcessingUnits: Maximum number of processing units allocated to + // the instance. If set, this number should be multiples of 1000 and be + // greater than or equal to min_processing_units. + MaxProcessingUnits int64 `json:"maxProcessingUnits,omitempty"` + + // MinNodes: Minimum number of nodes allocated to the instance. If set, + // this number should be greater than or equal to 1. + MinNodes int64 `json:"minNodes,omitempty"` + + // MinProcessingUnits: Minimum number of processing units allocated to + // the instance. If set, this number should be multiples of 1000. + MinProcessingUnits int64 `json:"minProcessingUnits,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MaxNodes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MaxNodes") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AutoscalingLimits) MarshalJSON() ([]byte, error) { + type NoMethod AutoscalingLimits + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AutoscalingTargets: The autoscaling targets for an instance. +type AutoscalingTargets struct { + // HighPriorityCpuUtilizationPercent: Required. The target high priority + // cpu utilization percentage that the autoscaler should be trying to + // achieve for the instance. This number is on a scale from 0 (no + // utilization) to 100 (full utilization). The valid range is [10, 90] + // inclusive. + HighPriorityCpuUtilizationPercent int64 `json:"highPriorityCpuUtilizationPercent,omitempty"` + + // StorageUtilizationPercent: Required. The target storage utilization + // percentage that the autoscaler should be trying to achieve for the + // instance. This number is on a scale from 0 (no utilization) to 100 + // (full utilization). The valid range is [10, 100] inclusive. + StorageUtilizationPercent int64 `json:"storageUtilizationPercent,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "HighPriorityCpuUtilizationPercent") to unconditionally include in + // API requests. By default, fields with empty or default values are + // omitted from API requests. However, any non-pointer, non-interface + // field appearing in ForceSendFields will be sent to the server + // regardless of whether the field is empty or not. This may be used to + // include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "HighPriorityCpuUtilizationPercent") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AutoscalingTargets) MarshalJSON() ([]byte, error) { + type NoMethod AutoscalingTargets + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Backup: A backup of a Cloud Spanner database. type Backup struct { // CreateTime: Output only. The time the CreateBackup request is @@ -2470,6 +2589,13 @@ func (s *IndexedKeyRangeInfos) MarshalJSON() ([]byte, error) { // Instance: An isolated set of Cloud Spanner resources on which // databases can be hosted. type Instance struct { + // AutoscalingConfig: Optional. The autoscaling configuration. + // Autoscaling is enabled if this field is set. When autoscaling is + // enabled, node_count and processing_units are treated as OUTPUT_ONLY + // fields and reflect the current compute capacity allocated to the + // instance. + AutoscalingConfig *AutoscalingConfig `json:"autoscalingConfig,omitempty"` + // Config: Required. The name of the instance's configuration. Values // are of the form `projects//instanceConfigs/`. See also InstanceConfig // and ListInstanceConfigs. @@ -2568,20 +2694,21 @@ type Instance struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AutoscalingConfig") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an 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. "AutoscalingConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` }