diff --git a/alloydb/v1alpha/alloydb-api.json b/alloydb/v1alpha/alloydb-api.json index 655c5613883..00fc2863cbf 100644 --- a/alloydb/v1alpha/alloydb-api.json +++ b/alloydb/v1alpha/alloydb-api.json @@ -1517,7 +1517,7 @@ } } }, - "revision": "20240828", + "revision": "20240909", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2143,7 +2143,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -2151,7 +2153,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -2739,7 +2743,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -2747,7 +2753,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -3461,7 +3469,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -3469,7 +3479,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -4087,7 +4099,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata.", + "description": "Common model for database resource instance metadata. Next ID: 21", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -4226,6 +4238,10 @@ "description": "Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. That is, after a resource named \"ABC\" is deleted, the name \"ABC\" can be used to to create a new resource within the same source. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel", "type": "string" }, + "tagsSet": { + "$ref": "StorageDatabasecenterPartnerapiV1mainTags", + "description": "Optional. Tags associated with this resources." + }, "updationTime": { "description": "The time at which the resource was updated and recorded at partner service.", "format": "google-datetime", @@ -4612,6 +4628,11 @@ "description": "Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.", "format": "int64", "type": "string" + }, + "shardCount": { + "description": "Optional. Number of shards (if applicable).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -4739,6 +4760,20 @@ }, "type": "object" }, + "StorageDatabasecenterPartnerapiV1mainTags": { + "description": "Message type for storing tags. Tags provide a way to create annotations for resources, and in some cases conditionally allow or deny policies based on whether a resource has a specific tag.", + "id": "StorageDatabasecenterPartnerapiV1mainTags", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "The Tag key/value mappings.", + "type": "object" + } + }, + "type": "object" + }, "StorageDatabasecenterPartnerapiV1mainUserLabels": { "description": "Message type for storing user labels. User labels are used to tag App Engine resources, allowing users to search for resources matching a set of labels and to aggregate usage data by labels.", "id": "StorageDatabasecenterPartnerapiV1mainUserLabels", @@ -5124,7 +5159,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -5132,7 +5169,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } diff --git a/alloydb/v1alpha/alloydb-gen.go b/alloydb/v1alpha/alloydb-gen.go index 99589e3a9a9..72db4320b82 100644 --- a/alloydb/v1alpha/alloydb-gen.go +++ b/alloydb/v1alpha/alloydb-gen.go @@ -766,6 +766,8 @@ type ClusterUpgradeDetails struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. UpgradeStatus string `json:"upgradeStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterType") to // unconditionally include in API requests. By default, fields with empty or @@ -1455,6 +1457,8 @@ type InstanceUpgradeDetails struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. UpgradeStatus string `json:"upgradeStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceType") to // unconditionally include in API requests. By default, fields with empty or @@ -2432,6 +2436,8 @@ type StageInfo struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "LogsUrl") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3034,7 +3040,7 @@ func (s StorageDatabasecenterPartnerapiV1mainDatabaseResourceId) MarshalJSON() ( } // StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata: Common model -// for database resource instance metadata. +// for database resource instance metadata. Next ID: 21 type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -3112,6 +3118,8 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // the same source. Resource name to follow CAIS resource_name format as noted // here go/condor-common-datamodel ResourceName string `json:"resourceName,omitempty"` + // TagsSet: Optional. Tags associated with this resources. + TagsSet *StorageDatabasecenterPartnerapiV1mainTags `json:"tagsSet,omitempty"` // UpdationTime: The time at which the resource was updated and recorded at // partner service. UpdationTime string `json:"updationTime,omitempty"` @@ -3468,6 +3476,8 @@ type StorageDatabasecenterPartnerapiV1mainMachineConfiguration struct { // MemorySizeInBytes: Memory size in bytes. TODO(b/342344482, b/342346271) add // proto validations again after bug fix. MemorySizeInBytes int64 `json:"memorySizeInBytes,omitempty,string"` + // ShardCount: Optional. Number of shards (if applicable). + ShardCount int64 `json:"shardCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CpuCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3603,6 +3613,31 @@ func (s StorageDatabasecenterPartnerapiV1mainRetentionSettings) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// StorageDatabasecenterPartnerapiV1mainTags: Message type for storing tags. +// Tags provide a way to create annotations for resources, and in some cases +// conditionally allow or deny policies based on whether a resource has a +// specific tag. +type StorageDatabasecenterPartnerapiV1mainTags struct { + // Tags: The Tag key/value mappings. + Tags map[string]string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "Tags") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Tags") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StorageDatabasecenterPartnerapiV1mainTags) MarshalJSON() ([]byte, error) { + type NoMethod StorageDatabasecenterPartnerapiV1mainTags + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // StorageDatabasecenterPartnerapiV1mainUserLabels: Message type for storing // user labels. User labels are used to tag App Engine resources, allowing // users to search for resources matching a set of labels and to aggregate @@ -4007,6 +4042,8 @@ type UpgradeClusterResponse struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterUpgradeDetails") to // unconditionally include in API requests. By default, fields with empty or diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 5713e50d5d4..c460215b9d6 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -12585,6 +12585,56 @@ "https://www.googleapis.com/auth/compute" ] }, + "reportHostAsFaulty": { + "description": "Mark the host as faulty and try to restart the instance on a new host.", + "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty", + "httpMethod": "POST", + "id": "compute.instances.reportHostAsFaulty", + "parameterOrder": [ + "project", + "zone", + "instance" + ], + "parameters": { + "instance": { + "description": "Name of the instance scoping this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty", + "request": { + "$ref": "InstancesReportHostAsFaultyRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "reset": { "description": "Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.", "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/reset", @@ -45558,7 +45608,7 @@ } } }, - "revision": "20240903", + "revision": "20240919", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -49032,6 +49082,13 @@ "description": "[Output Only] Creation timestamp in RFC3339 text format.", "type": "string" }, + "customMetrics": { + "description": "List of custom metrics that are used for the WEIGHTED_ROUND_ROBIN locality_lb_policy.", + "items": { + "$ref": "BackendServiceCustomMetric" + }, + "type": "array" + }, "customRequestHeaders": { "description": "Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers).", "items": { @@ -49656,6 +49713,21 @@ }, "type": "object" }, + "BackendServiceCustomMetric": { + "description": "Custom Metrics are used for WEIGHTED_ROUND_ROBIN locality_lb_policy.", + "id": "BackendServiceCustomMetric", + "properties": { + "dryRun": { + "description": "If true, the metric data is not used for load balancing.", + "type": "boolean" + }, + "name": { + "description": "Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.", + "type": "string" + } + }, + "type": "object" + }, "BackendServiceFailoverPolicy": { "description": "For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). On failover or failback, this field indicates whether connection draining will be honored. Google Cloud has a fixed connection draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool during failover and failback, immediately draining traffic. A setting of false allows existing TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of the connection draining timeout (10 minutes).", "id": "BackendServiceFailoverPolicy", @@ -50856,7 +50928,7 @@ }, "locationPolicy": { "$ref": "LocationPolicy", - "description": "Policy for chosing target zone. For more information, see Create VMs in bulk ." + "description": "Policy for choosing target zone. For more information, see Create VMs in bulk." }, "minCount": { "description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.", @@ -64601,6 +64673,42 @@ }, "type": "object" }, + "InstancesReportHostAsFaultyRequest": { + "id": "InstancesReportHostAsFaultyRequest", + "properties": { + "faultReasons": { + "items": { + "$ref": "InstancesReportHostAsFaultyRequestFaultReason" + }, + "type": "array" + } + }, + "type": "object" + }, + "InstancesReportHostAsFaultyRequestFaultReason": { + "id": "InstancesReportHostAsFaultyRequestFaultReason", + "properties": { + "behavior": { + "enum": [ + "BEHAVIOR_UNSPECIFIED", + "PERFORMANCE", + "SILENT_DATA_CORRUPTION", + "UNRECOVERABLE_GPU_ERROR" + ], + "enumDescriptions": [ + "Public reportable behaviors", + "", + "", + "" + ], + "type": "string" + }, + "description": { + "type": "string" + } + }, + "type": "object" + }, "InstancesResumeRequest": { "id": "InstancesResumeRequest", "properties": { @@ -65584,7 +65692,7 @@ "description": "Configuration for enabling Application Aware Interconnect (AAI) on this Cloud Interconnect connection between Google and your on-premises router." }, "availableFeatures": { - "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", + "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - IF_MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", "items": { "enum": [ "IF_MACSEC" @@ -65737,7 +65845,7 @@ "type": "string" }, "requestedFeatures": { - "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", + "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - IF_MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", "items": { "enum": [ "IF_MACSEC" @@ -65867,6 +65975,7 @@ "bandwidth": { "description": "Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s ", "enum": [ + "BPS_100G", "BPS_100M", "BPS_10G", "BPS_1G", @@ -65881,6 +65990,7 @@ "BPS_5G" ], "enumDescriptions": [ + "100 Gbit/s", "100 Mbit/s", "10 Gbit/s", "1 Gbit/s", diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index a2970bd9291..17c991a50b8 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -5551,6 +5551,9 @@ type BackendService struct { ConsistentHash *ConsistentHashLoadBalancerSettings `json:"consistentHash,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. CreationTimestamp string `json:"creationTimestamp,omitempty"` + // CustomMetrics: List of custom metrics that are used for the + // WEIGHTED_ROUND_ROBIN locality_lb_policy. + CustomMetrics []*BackendServiceCustomMetric `json:"customMetrics,omitempty"` // CustomRequestHeaders: Headers that the load balancer adds to proxied // requests. See Creating custom headers // (https://cloud.google.com/load-balancing/docs/custom-headers). @@ -6387,6 +6390,39 @@ func (s BackendServiceConnectionTrackingPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// BackendServiceCustomMetric: Custom Metrics are used for WEIGHTED_ROUND_ROBIN +// locality_lb_policy. +type BackendServiceCustomMetric struct { + // DryRun: If true, the metric data is not used for load balancing. + DryRun bool `json:"dryRun,omitempty"` + // Name: Name of a custom utilization signal. The name must be 1-64 characters + // long and match the regular expression a-z ([-_.a-z0-9]*[a-z0-9])? which + // means the first character must be a lowercase letter, and all following + // characters must be a dash, period, underscore, lowercase letter, or digit, + // except the last character, which cannot be a dash, period, or underscore. + // For usage guidelines, see Custom Metrics balancing mode. This field can only + // be used for a global or regional backend service with the + // loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED + // INTERNAL_SELF_MANAGED. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "DryRun") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DryRun") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s BackendServiceCustomMetric) MarshalJSON() ([]byte, error) { + type NoMethod BackendServiceCustomMetric + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // BackendServiceFailoverPolicy: For load balancers that have configurable // failover: Internal passthrough Network Load Balancers // (https://cloud.google.com/load-balancing/docs/internal/failover-overview) @@ -7918,8 +7954,8 @@ type BulkInsertInstanceResource struct { // InstanceProperties: The instance properties defining the VM instances to be // created. Required if sourceInstanceTemplate is not provided. InstanceProperties *InstanceProperties `json:"instanceProperties,omitempty"` - // LocationPolicy: Policy for chosing target zone. For more information, see - // Create VMs in bulk . + // LocationPolicy: Policy for choosing target zone. For more information, see + // Create VMs in bulk. LocationPolicy *LocationPolicy `json:"locationPolicy,omitempty"` // MinCount: The minimum number of instances to create. If no min_count is // specified then count is used as the default value. If min_count instances @@ -23820,6 +23856,52 @@ func (s InstancesRemoveResourcePoliciesRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type InstancesReportHostAsFaultyRequest struct { + FaultReasons []*InstancesReportHostAsFaultyRequestFaultReason `json:"faultReasons,omitempty"` + // ForceSendFields is a list of field names (e.g. "FaultReasons") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FaultReasons") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s InstancesReportHostAsFaultyRequest) MarshalJSON() ([]byte, error) { + type NoMethod InstancesReportHostAsFaultyRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type InstancesReportHostAsFaultyRequestFaultReason struct { + // Possible values: + // "BEHAVIOR_UNSPECIFIED" - Public reportable behaviors + // "PERFORMANCE" + // "SILENT_DATA_CORRUPTION" + // "UNRECOVERABLE_GPU_ERROR" + Behavior string `json:"behavior,omitempty"` + Description string `json:"description,omitempty"` + // ForceSendFields is a list of field names (e.g. "Behavior") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Behavior") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s InstancesReportHostAsFaultyRequestFaultReason) MarshalJSON() ([]byte, error) { + type NoMethod InstancesReportHostAsFaultyRequestFaultReason + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type InstancesResumeRequest struct { // Disks: Array of disks associated with this instance that are protected with // a customer-supplied encryption key. In order to resume the instance, the @@ -24939,10 +25021,10 @@ type Interconnect struct { ApplicationAwareInterconnect *InterconnectApplicationAwareInterconnect `json:"applicationAwareInterconnect,omitempty"` // AvailableFeatures: [Output only] List of features available for this // Interconnect connection, which can take one of the following values: - - // MACSEC If present then the Interconnect connection is provisioned on MACsec - // capable hardware ports. If not present then the Interconnect connection is - // provisioned on non-MACsec capable ports and MACsec isn't supported and - // enabling MACsec fails. + // IF_MACSEC If present then the Interconnect connection is provisioned on + // MACsec capable hardware ports. If not present then the Interconnect + // connection is provisioned on non-MACsec capable ports and MACsec isn't + // supported and enabling MACsec fails. // // Possible values: // "IF_MACSEC" - Media Access Control security (MACsec) @@ -25066,7 +25148,7 @@ type Interconnect struct { RemoteLocation string `json:"remoteLocation,omitempty"` // RequestedFeatures: Optional. List of features requested for this // Interconnect connection, which can take one of the following values: - - // MACSEC If specified then the connection is created on MACsec capable + // IF_MACSEC If specified then the connection is created on MACsec capable // hardware ports. If not specified, the default value is false, which // allocates non-MACsec capable ports first if available. This parameter can be // provided only with Interconnect INSERT. It isn't valid for Interconnect @@ -25231,6 +25313,7 @@ type InterconnectAttachment struct { // BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s // // Possible values: + // "BPS_100G" - 100 Gbit/s // "BPS_100M" - 100 Mbit/s // "BPS_10G" - 10 Gbit/s // "BPS_1G" - 1 Gbit/s diff --git a/compute/v0.alpha/compute2-gen.go b/compute/v0.alpha/compute2-gen.go index 782d35de5fb..2f942a1ca34 100644 --- a/compute/v0.alpha/compute2-gen.go +++ b/compute/v0.alpha/compute2-gen.go @@ -36905,6 +36905,131 @@ func (c *InstancesRemoveResourcePoliciesCall) Do(opts ...googleapi.CallOption) ( return ret, nil } +type InstancesReportHostAsFaultyCall struct { + s *Service + project string + zone string + instance string + instancesreporthostasfaultyrequest *InstancesReportHostAsFaultyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ReportHostAsFaulty: Mark the host as faulty and try to restart the instance +// on a new host. +// +// - instance: Name of the instance scoping this request. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *InstancesService) ReportHostAsFaulty(project string, zone string, instance string, instancesreporthostasfaultyrequest *InstancesReportHostAsFaultyRequest) *InstancesReportHostAsFaultyCall { + c := &InstancesReportHostAsFaultyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.instance = instance + c.instancesreporthostasfaultyrequest = instancesreporthostasfaultyrequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *InstancesReportHostAsFaultyCall) RequestId(requestId string) *InstancesReportHostAsFaultyCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *InstancesReportHostAsFaultyCall) Fields(s ...googleapi.Field) *InstancesReportHostAsFaultyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *InstancesReportHostAsFaultyCall) Context(ctx context.Context) *InstancesReportHostAsFaultyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *InstancesReportHostAsFaultyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InstancesReportHostAsFaultyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancesreporthostasfaultyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty") + 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{ + "project": c.project, + "zone": c.zone, + "instance": c.instance, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.instances.reportHostAsFaulty" call. +// 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 *InstancesReportHostAsFaultyCall) 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 +} + type InstancesResetCall struct { s *Service project string diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 491252bb42b..47874fd0365 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -25057,6 +25057,279 @@ } } }, + "regionInstanceGroupManagerResizeRequests": { + "methods": { + "cancel": { + "description": "Cancels the specified resize request. Cancelled resize request no longer waits for the resources to be provisioned. Cancel is only possible for requests that are in accepted state.", + "flatPath": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel", + "httpMethod": "POST", + "id": "compute.regionInstanceGroupManagerResizeRequests.cancel", + "parameterOrder": [ + "project", + "region", + "instanceGroupManager", + "resizeRequest" + ], + "parameters": { + "instanceGroupManager": { + "description": "The name of the managed instance group. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region scoping this request. Name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "resizeRequest": { + "description": "The name of the resize request to cancel. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "delete": { + "description": "Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.", + "flatPath": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}", + "httpMethod": "DELETE", + "id": "compute.regionInstanceGroupManagerResizeRequests.delete", + "parameterOrder": [ + "project", + "region", + "instanceGroupManager", + "resizeRequest" + ], + "parameters": { + "instanceGroupManager": { + "description": "The name of the managed instance group. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region scoping this request. Name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "resizeRequest": { + "description": "The name of the resize request to delete. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "get": { + "description": "Returns all of the details about the specified resize request.", + "flatPath": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}", + "httpMethod": "GET", + "id": "compute.regionInstanceGroupManagerResizeRequests.get", + "parameterOrder": [ + "project", + "region", + "instanceGroupManager", + "resizeRequest" + ], + "parameters": { + "instanceGroupManager": { + "description": "The name of the managed instance group. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region scoping this request. Name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "resizeRequest": { + "description": "The name of the resize request. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}", + "response": { + "$ref": "InstanceGroupManagerResizeRequest" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "insert": { + "description": "Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation.", + "flatPath": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests", + "httpMethod": "POST", + "id": "compute.regionInstanceGroupManagerResizeRequests.insert", + "parameterOrder": [ + "project", + "region", + "instanceGroupManager" + ], + "parameters": { + "instanceGroupManager": { + "description": "Name of the managed instance group to which the resize request is scoped. Name should conform to RFC1035 or be a resource ID.", + "location": "path", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region scoping this request. Name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests", + "request": { + "$ref": "InstanceGroupManagerResizeRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, + "list": { + "description": "Retrieves a list of Resize Requests that are contained in the managed instance group.", + "flatPath": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests", + "httpMethod": "GET", + "id": "compute.regionInstanceGroupManagerResizeRequests.list", + "parameterOrder": [ + "project", + "region", + "instanceGroupManager" + ], + "parameters": { + "filter": { + "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", + "location": "query", + "type": "string" + }, + "instanceGroupManager": { + "description": "The name of the managed instance group. The name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "maxResults": { + "default": "500", + "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", + "format": "uint32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "orderBy": { + "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", + "location": "query", + "type": "string" + }, + "pageToken": { + "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", + "location": "query", + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region scoping this request. Name should conform to RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "returnPartialSuccess": { + "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", + "location": "query", + "type": "boolean" + } + }, + "path": "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests", + "response": { + "$ref": "RegionInstanceGroupManagerResizeRequestsListResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + } + } + }, "regionInstanceGroupManagers": { "methods": { "abandonInstances": { @@ -41911,7 +42184,7 @@ } } }, - "revision": "20240903", + "revision": "20240919", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -46679,7 +46952,7 @@ }, "locationPolicy": { "$ref": "LocationPolicy", - "description": "Policy for chosing target zone. For more information, see Create VMs in bulk ." + "description": "Policy for choosing target zone. For more information, see Create VMs in bulk." }, "minCount": { "description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.", @@ -60223,7 +60496,7 @@ "type": "boolean" }, "availableFeatures": { - "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", + "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - IF_MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", "items": { "enum": [ "IF_MACSEC" @@ -60376,7 +60649,7 @@ "type": "string" }, "requestedFeatures": { - "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", + "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - IF_MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", "items": { "enum": [ "IF_MACSEC" @@ -73190,6 +73463,167 @@ }, "type": "object" }, + "RegionInstanceGroupManagerResizeRequestsListResponse": { + "id": "RegionInstanceGroupManagerResizeRequestsListResponse", + "properties": { + "etag": { + "type": "string" + }, + "id": { + "description": "[Output Only] Unique identifier for the resource; defined by the server.", + "type": "string" + }, + "items": { + "description": "A list of Resize Request resources.", + "items": { + "$ref": "InstanceGroupManagerResizeRequest" + }, + "type": "array" + }, + "kind": { + "default": "compute#regionInstanceGroupManagerResizeRequestList", + "description": "[Output Only] Type of the resource. Always compute#regionInstanceGroupManagerResizeRequestList for a list of Resize Requests.", + "type": "string" + }, + "nextPageToken": { + "description": "[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.", + "type": "string" + }, + "selfLink": { + "description": "[Output Only] Server-defined URL for this resource.", + "type": "string" + }, + "unreachables": { + "description": "[Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder", + "items": { + "type": "string" + }, + "type": "array" + }, + "warning": { + "description": "[Output Only] Informational warning message.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, "RegionInstanceGroupManagerUpdateInstanceConfigReq": { "description": "RegionInstanceGroupManagers.updatePerInstanceConfigs", "id": "RegionInstanceGroupManagerUpdateInstanceConfigReq", @@ -74104,6 +74538,11 @@ "backendService": { "description": "The full or partial URL to the BackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service. ", "type": "string" + }, + "mirrorPercent": { + "description": "The percentage of requests to be mirrored to `backend_service`.", + "format": "double", + "type": "number" } }, "type": "object" diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index b9ffa516de7..6d1d6366e85 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -220,6 +220,7 @@ func New(client *http.Client) (*Service, error) { s.RegionDisks = NewRegionDisksService(s) s.RegionHealthCheckServices = NewRegionHealthCheckServicesService(s) s.RegionHealthChecks = NewRegionHealthChecksService(s) + s.RegionInstanceGroupManagerResizeRequests = NewRegionInstanceGroupManagerResizeRequestsService(s) s.RegionInstanceGroupManagers = NewRegionInstanceGroupManagersService(s) s.RegionInstanceGroups = NewRegionInstanceGroupsService(s) s.RegionInstanceTemplates = NewRegionInstanceTemplatesService(s) @@ -388,6 +389,8 @@ type Service struct { RegionHealthChecks *RegionHealthChecksService + RegionInstanceGroupManagerResizeRequests *RegionInstanceGroupManagerResizeRequestsService + RegionInstanceGroupManagers *RegionInstanceGroupManagersService RegionInstanceGroups *RegionInstanceGroupsService @@ -1006,6 +1009,15 @@ type RegionHealthChecksService struct { s *Service } +func NewRegionInstanceGroupManagerResizeRequestsService(s *Service) *RegionInstanceGroupManagerResizeRequestsService { + rs := &RegionInstanceGroupManagerResizeRequestsService{s: s} + return rs +} + +type RegionInstanceGroupManagerResizeRequestsService struct { + s *Service +} + func NewRegionInstanceGroupManagersService(s *Service) *RegionInstanceGroupManagersService { rs := &RegionInstanceGroupManagersService{s: s} return rs @@ -7143,8 +7155,8 @@ type BulkInsertInstanceResource struct { // InstanceProperties: The instance properties defining the VM instances to be // created. Required if sourceInstanceTemplate is not provided. InstanceProperties *InstanceProperties `json:"instanceProperties,omitempty"` - // LocationPolicy: Policy for chosing target zone. For more information, see - // Create VMs in bulk . + // LocationPolicy: Policy for choosing target zone. For more information, see + // Create VMs in bulk. LocationPolicy *LocationPolicy `json:"locationPolicy,omitempty"` // MinCount: The minimum number of instances to create. If no min_count is // specified then count is used as the default value. If min_count instances @@ -22765,10 +22777,10 @@ type Interconnect struct { AdminEnabled bool `json:"adminEnabled,omitempty"` // AvailableFeatures: [Output only] List of features available for this // Interconnect connection, which can take one of the following values: - - // MACSEC If present then the Interconnect connection is provisioned on MACsec - // capable hardware ports. If not present then the Interconnect connection is - // provisioned on non-MACsec capable ports and MACsec isn't supported and - // enabling MACsec fails. + // IF_MACSEC If present then the Interconnect connection is provisioned on + // MACsec capable hardware ports. If not present then the Interconnect + // connection is provisioned on non-MACsec capable ports and MACsec isn't + // supported and enabling MACsec fails. // // Possible values: // "IF_MACSEC" - Media Access Control security (MACsec) @@ -22892,7 +22904,7 @@ type Interconnect struct { RemoteLocation string `json:"remoteLocation,omitempty"` // RequestedFeatures: Optional. List of features requested for this // Interconnect connection, which can take one of the following values: - - // MACSEC If specified then the connection is created on MACsec capable + // IF_MACSEC If specified then the connection is created on MACsec capable // hardware ports. If not specified, the default value is false, which // allocates non-MACsec capable ports first if available. This parameter can be // provided only with Interconnect INSERT. It isn't valid for Interconnect @@ -36827,6 +36839,165 @@ func (s RegionInstanceGroupManagerPatchInstanceConfigReq) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type RegionInstanceGroupManagerResizeRequestsListResponse struct { + Etag string `json:"etag,omitempty"` + // Id: [Output Only] Unique identifier for the resource; defined by the server. + Id string `json:"id,omitempty"` + // Items: A list of Resize Request resources. + Items []*InstanceGroupManagerResizeRequest `json:"items,omitempty"` + // Kind: [Output Only] Type of the resource. Always + // compute#regionInstanceGroupManagerResizeRequestList for a list of Resize + // Requests. + Kind string `json:"kind,omitempty"` + // NextPageToken: [Output Only] This token allows you to get the next page of + // results for list requests. If the number of results is larger than + // maxResults, use the nextPageToken as a value for the query parameter + // pageToken in the next list request. Subsequent list requests will have their + // own nextPageToken to continue paging through the results. + NextPageToken string `json:"nextPageToken,omitempty"` + // SelfLink: [Output Only] Server-defined URL for this resource. + SelfLink string `json:"selfLink,omitempty"` + // Unreachables: [Output Only] Unreachable resources. end_interface: + // MixerListResponseWithEtagBuilder + Unreachables []string `json:"unreachables,omitempty"` + // Warning: [Output Only] Informational warning message. + Warning *RegionInstanceGroupManagerResizeRequestsListResponseWarning `json:"warning,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Etag") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RegionInstanceGroupManagerResizeRequestsListResponse) MarshalJSON() ([]byte, error) { + type NoMethod RegionInstanceGroupManagerResizeRequestsListResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// RegionInstanceGroupManagerResizeRequestsListResponseWarning: [Output Only] +// Informational warning message. +type RegionInstanceGroupManagerResizeRequestsListResponseWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, Compute + // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made + // by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources + // has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is + // larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected + // kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend + // service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list + // overhead quota exceed which captures the amount of resources filtered out by + // user-defined list filter. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not + // assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip + // forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance + // URL refers to an instance that does not have an ipv6 interface on the same + // network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to + // an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL + // refers to an instance that is not on the same network as the route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a + // status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue + // the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing + // due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that + // requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is + // in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete + // could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance + // group manager is valid as such, but its application does not make a lot of + // sense, because it allows only single instance in instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are + // present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + // Data: [Output Only] Metadata about this warning in key: value format. For + // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } + Data []*RegionInstanceGroupManagerResizeRequestsListResponseWarningData `json:"data,omitempty"` + // Message: [Output Only] A human-readable description of the warning code. + Message string `json:"message,omitempty"` + // ForceSendFields is a list of field names (e.g. "Code") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RegionInstanceGroupManagerResizeRequestsListResponseWarning) MarshalJSON() ([]byte, error) { + type NoMethod RegionInstanceGroupManagerResizeRequestsListResponseWarning + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type RegionInstanceGroupManagerResizeRequestsListResponseWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning being + // returned. For example, for warnings where there are no results in a list + // request for a particular zone, this key might be scope and the key value + // might be the zone name. Other examples might be a key indicating a + // deprecated resource and a suggested replacement, or a warning about invalid + // network settings (for example, if an instance attempts to perform IP + // forwarding but is not enabled for IP forwarding). + Key string `json:"key,omitempty"` + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Key") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Key") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RegionInstanceGroupManagerResizeRequestsListResponseWarningData) MarshalJSON() ([]byte, error) { + type NoMethod RegionInstanceGroupManagerResizeRequestsListResponseWarningData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RegionInstanceGroupManagerUpdateInstanceConfigReq: // RegionInstanceGroupManagers.updatePerInstanceConfigs type RegionInstanceGroupManagerUpdateInstanceConfigReq struct { @@ -38001,6 +38172,9 @@ type RequestMirrorPolicy struct { // matched in the URL map. Serverless NEG backends are not currently supported // as a mirrored backend service. BackendService string `json:"backendService,omitempty"` + // MirrorPercent: The percentage of requests to be mirrored to + // `backend_service`. + MirrorPercent float64 `json:"mirrorPercent,omitempty"` // ForceSendFields is a list of field names (e.g. "BackendService") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -38019,6 +38193,20 @@ func (s RequestMirrorPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +func (s *RequestMirrorPolicy) UnmarshalJSON(data []byte) error { + type NoMethod RequestMirrorPolicy + var s1 struct { + MirrorPercent gensupport.JSONFloat64 `json:"mirrorPercent"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.MirrorPercent = float64(s1.MirrorPercent) + return nil +} + // Reservation: Represents a reservation resource. A reservation ensures that // capacity is held in a specific zone even if the reserved VMs are not // running. For more information, read Reserving zonal resources. diff --git a/compute/v0.beta/compute3-gen.go b/compute/v0.beta/compute3-gen.go index 8ef614c2273..89e7b35e64a 100644 --- a/compute/v0.beta/compute3-gen.go +++ b/compute/v0.beta/compute3-gen.go @@ -7848,6 +7848,729 @@ func (c *RegionHealthChecksUpdateCall) Do(opts ...googleapi.CallOption) (*Operat return ret, nil } +type RegionInstanceGroupManagerResizeRequestsCancelCall struct { + s *Service + project string + region string + instanceGroupManager string + resizeRequest string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels the specified resize request. Cancelled resize request no +// longer waits for the resources to be provisioned. Cancel is only possible +// for requests that are in accepted state. +// +// - instanceGroupManager: The name of the managed instance group. Name should +// conform to RFC1035 or be a resource ID. +// - project: Project ID for this request. +// - region: The name of the region scoping this request. Name should conform +// to RFC1035. +// - resizeRequest: The name of the resize request to cancel. Name should +// conform to RFC1035 or be a resource ID. +func (r *RegionInstanceGroupManagerResizeRequestsService) Cancel(project string, region string, instanceGroupManager string, resizeRequest string) *RegionInstanceGroupManagerResizeRequestsCancelCall { + c := &RegionInstanceGroupManagerResizeRequestsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.instanceGroupManager = instanceGroupManager + c.resizeRequest = resizeRequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RegionInstanceGroupManagerResizeRequestsCancelCall) RequestId(requestId string) *RegionInstanceGroupManagerResizeRequestsCancelCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionInstanceGroupManagerResizeRequestsCancelCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagerResizeRequestsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionInstanceGroupManagerResizeRequestsCancelCall) Context(ctx context.Context) *RegionInstanceGroupManagerResizeRequestsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionInstanceGroupManagerResizeRequestsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionInstanceGroupManagerResizeRequestsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel") + 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{ + "project": c.project, + "region": c.region, + "instanceGroupManager": c.instanceGroupManager, + "resizeRequest": c.resizeRequest, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionInstanceGroupManagerResizeRequests.cancel" call. +// 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 *RegionInstanceGroupManagerResizeRequestsCancelCall) 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 +} + +type RegionInstanceGroupManagerResizeRequestsDeleteCall struct { + s *Service + project string + region string + instanceGroupManager string + resizeRequest string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified, inactive resize request. Requests that are +// still active cannot be deleted. Deleting request does not delete instances +// that were provisioned previously. +// +// - instanceGroupManager: The name of the managed instance group. Name should +// conform to RFC1035 or be a resource ID. +// - project: Project ID for this request. +// - region: The name of the region scoping this request. Name should conform +// to RFC1035. +// - resizeRequest: The name of the resize request to delete. Name should +// conform to RFC1035 or be a resource ID. +func (r *RegionInstanceGroupManagerResizeRequestsService) Delete(project string, region string, instanceGroupManager string, resizeRequest string) *RegionInstanceGroupManagerResizeRequestsDeleteCall { + c := &RegionInstanceGroupManagerResizeRequestsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.instanceGroupManager = instanceGroupManager + c.resizeRequest = resizeRequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RegionInstanceGroupManagerResizeRequestsDeleteCall) RequestId(requestId string) *RegionInstanceGroupManagerResizeRequestsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionInstanceGroupManagerResizeRequestsDeleteCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagerResizeRequestsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionInstanceGroupManagerResizeRequestsDeleteCall) Context(ctx context.Context) *RegionInstanceGroupManagerResizeRequestsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionInstanceGroupManagerResizeRequestsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionInstanceGroupManagerResizeRequestsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}") + 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{ + "project": c.project, + "region": c.region, + "instanceGroupManager": c.instanceGroupManager, + "resizeRequest": c.resizeRequest, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionInstanceGroupManagerResizeRequests.delete" call. +// 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 *RegionInstanceGroupManagerResizeRequestsDeleteCall) 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 +} + +type RegionInstanceGroupManagerResizeRequestsGetCall struct { + s *Service + project string + region string + instanceGroupManager string + resizeRequest string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns all of the details about the specified resize request. +// +// - instanceGroupManager: The name of the managed instance group. Name should +// conform to RFC1035 or be a resource ID. +// - project: Project ID for this request. +// - region: The name of the region scoping this request. Name should conform +// to RFC1035. +// - resizeRequest: The name of the resize request. Name should conform to +// RFC1035 or be a resource ID. +func (r *RegionInstanceGroupManagerResizeRequestsService) Get(project string, region string, instanceGroupManager string, resizeRequest string) *RegionInstanceGroupManagerResizeRequestsGetCall { + c := &RegionInstanceGroupManagerResizeRequestsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.instanceGroupManager = instanceGroupManager + c.resizeRequest = resizeRequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionInstanceGroupManagerResizeRequestsGetCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagerResizeRequestsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *RegionInstanceGroupManagerResizeRequestsGetCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagerResizeRequestsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionInstanceGroupManagerResizeRequestsGetCall) Context(ctx context.Context) *RegionInstanceGroupManagerResizeRequestsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionInstanceGroupManagerResizeRequestsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionInstanceGroupManagerResizeRequestsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}") + 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{ + "project": c.project, + "region": c.region, + "instanceGroupManager": c.instanceGroupManager, + "resizeRequest": c.resizeRequest, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionInstanceGroupManagerResizeRequests.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *InstanceGroupManagerResizeRequest.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 *RegionInstanceGroupManagerResizeRequestsGetCall) Do(opts ...googleapi.CallOption) (*InstanceGroupManagerResizeRequest, 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 := &InstanceGroupManagerResizeRequest{ + 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 +} + +type RegionInstanceGroupManagerResizeRequestsInsertCall struct { + s *Service + project string + region string + instanceGroupManager string + instancegroupmanagerresizerequest *InstanceGroupManagerResizeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Insert: Creates a new Resize Request that starts provisioning VMs +// immediately or queues VM creation. +// +// - instanceGroupManager: Name of the managed instance group to which the +// resize request is scoped. Name should conform to RFC1035 or be a resource +// ID. +// - project: Project ID for this request. +// - region: Name of the region scoping this request. Name should conform to +// RFC1035. +func (r *RegionInstanceGroupManagerResizeRequestsService) Insert(project string, region string, instanceGroupManager string, instancegroupmanagerresizerequest *InstanceGroupManagerResizeRequest) *RegionInstanceGroupManagerResizeRequestsInsertCall { + c := &RegionInstanceGroupManagerResizeRequestsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.instanceGroupManager = instanceGroupManager + c.instancegroupmanagerresizerequest = instancegroupmanagerresizerequest + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RegionInstanceGroupManagerResizeRequestsInsertCall) RequestId(requestId string) *RegionInstanceGroupManagerResizeRequestsInsertCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionInstanceGroupManagerResizeRequestsInsertCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagerResizeRequestsInsertCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionInstanceGroupManagerResizeRequestsInsertCall) Context(ctx context.Context) *RegionInstanceGroupManagerResizeRequestsInsertCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionInstanceGroupManagerResizeRequestsInsertCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionInstanceGroupManagerResizeRequestsInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.instancegroupmanagerresizerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests") + 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{ + "project": c.project, + "region": c.region, + "instanceGroupManager": c.instanceGroupManager, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionInstanceGroupManagerResizeRequests.insert" call. +// 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 *RegionInstanceGroupManagerResizeRequestsInsertCall) 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 +} + +type RegionInstanceGroupManagerResizeRequestsListCall struct { + s *Service + project string + region string + instanceGroupManager string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieves a list of Resize Requests that are contained in the managed +// instance group. +// +// - instanceGroupManager: The name of the managed instance group. The name +// should conform to RFC1035. +// - project: Project ID for this request. +// - region: Name of the region scoping this request. Name should conform to +// RFC1035. +func (r *RegionInstanceGroupManagerResizeRequestsService) List(project string, region string, instanceGroupManager string) *RegionInstanceGroupManagerResizeRequestsListCall { + c := &RegionInstanceGroupManagerResizeRequestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.instanceGroupManager = instanceGroupManager + return c +} + +// Filter sets the optional parameter "filter": A filter expression that +// filters resources listed in the response. Most Compute resources support two +// types of filter expressions: expressions that support regular expressions +// and expressions that follow API improvement proposal AIP-160. These two +// types of filter expressions cannot be mixed in one request. If you want to +// use AIP-160, your expression must specify the field name, an operator, and +// the value that you want to use for filtering. The value must be a string, a +// number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, +// `>=` or `:`. For example, if you are filtering Compute Engine instances, you +// can exclude instances named `example-instance` by specifying `name != +// example-instance`. The `:*` comparison can be used to test whether a key has +// been defined. For example, to find all objects with `owner` label use: ``` +// labels.owner:* ``` You can also filter nested fields. For example, you could +// specify `scheduling.automaticRestart = false` to include instances only if +// they are not scheduled for automatic restarts. You can use filtering on +// nested fields to filter based on resource labels. To filter on multiple +// expressions, provide each separate expression within parentheses. For +// example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel +// Skylake") ``` By default, each expression is an `AND` expression. However, +// you can include `AND` and `OR` expressions explicitly. For example: ``` +// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND +// (scheduling.automaticRestart = true) ``` If you want to use a regular +// expression, use the `eq` (equal) or `ne` (not equal) operator against a +// single un-parenthesized expression with or without quotes or against +// multiple parenthesized expressions. Examples: `fieldname eq unquoted +// literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted +// literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal +// value is interpreted as a regular expression using Google RE2 library +// syntax. The literal value must match the entire field. For example, to +// filter for instances that do not end with name "instance", you would use +// `name ne .*instance`. You cannot combine constraints on multiple fields +// using regular expressions. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) Filter(filter string) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxResults sets the optional parameter "maxResults": The maximum number of +// results per page that should be returned. If the number of available results +// is larger than `maxResults`, Compute Engine returns a `nextPageToken` that +// can be used to get the next page of results in subsequent list requests. +// Acceptable values are `0` to `500`, inclusive. (Default: `500`) +func (c *RegionInstanceGroupManagerResizeRequestsListCall) MaxResults(maxResults int64) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) + return c +} + +// OrderBy sets the optional parameter "orderBy": Sorts list results by a +// certain order. By default, results are returned in alphanumerical order +// based on the resource name. You can also sort results in descending order +// based on the creation timestamp using `orderBy="creationTimestamp desc". +// This sorts results based on the `creationTimestamp` field in reverse +// chronological order (newest result first). Use this to sort resources like +// operations so that the newest operation is returned first. Currently, only +// sorting by `name` or `creationTimestamp desc` is supported. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) OrderBy(orderBy string) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageToken sets the optional parameter "pageToken": Specifies a page token to +// use. Set `pageToken` to the `nextPageToken` returned by a previous list +// request to get the next page of results. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) PageToken(pageToken string) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": +// Opt-in for partial success behavior which provides partial results in case +// of failure. The default value is false. For example, when partial success +// behavior is enabled, aggregatedList for a single zone scope either returns +// all resources in the zone or no resources, with an error code. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) Fields(s ...googleapi.Field) *RegionInstanceGroupManagerResizeRequestsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) IfNoneMatch(entityTag string) *RegionInstanceGroupManagerResizeRequestsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) Context(ctx context.Context) *RegionInstanceGroupManagerResizeRequestsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *RegionInstanceGroupManagerResizeRequestsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionInstanceGroupManagerResizeRequestsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests") + 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{ + "project": c.project, + "region": c.region, + "instanceGroupManager": c.instanceGroupManager, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionInstanceGroupManagerResizeRequests.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *RegionInstanceGroupManagerResizeRequestsListResponse.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 *RegionInstanceGroupManagerResizeRequestsListCall) Do(opts ...googleapi.CallOption) (*RegionInstanceGroupManagerResizeRequestsListResponse, 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 := &RegionInstanceGroupManagerResizeRequestsListResponse{ + 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 +} + +// 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 *RegionInstanceGroupManagerResizeRequestsListCall) Pages(ctx context.Context, f func(*RegionInstanceGroupManagerResizeRequestsListResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + 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 RegionInstanceGroupManagersAbandonInstancesCall struct { s *Service project string diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 289bb106e45..23ee83811c3 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2540,7 +2540,7 @@ } } }, - "revision": "20240814", + "revision": "20240905", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2594,6 +2594,10 @@ "$ref": "MaxPodsConstraint", "description": "The maximum number of pods per node which use this pod network." }, + "networkAttachment": { + "description": "The name of the network attachment for pods to communicate to; cannot be specified along with subnetwork or secondary_pod_range.", + "type": "string" + }, "secondaryPodRange": { "description": "The name of the secondary range on the subnet which provides IP address for this pod range.", "type": "string" @@ -4398,7 +4402,7 @@ "properties": { "cacheHeader": { "$ref": "HttpCacheControlResponseHeader", - "description": "OnePlatform automatically extracts this field and uses it to set the HTTP Cache-Control header." + "description": "For HTTP requests, this field is automatically extracted into the Cache-Control HTTP header." }, "keys": { "description": "The public component of the keys used by the cluster to sign token requests.", @@ -4416,7 +4420,7 @@ "properties": { "cacheHeader": { "$ref": "HttpCacheControlResponseHeader", - "description": "OnePlatform automatically extracts this field and uses it to set the HTTP Cache-Control header." + "description": "For HTTP requests, this field is automatically extracted into the Cache-Control HTTP header." }, "claims_supported": { "description": "Supported claims.", diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 3a6035210a3..0acd9f16d65 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -363,6 +363,10 @@ type AdditionalPodNetworkConfig struct { // MaxPodsPerNode: The maximum number of pods per node which use this pod // network. MaxPodsPerNode *MaxPodsConstraint `json:"maxPodsPerNode,omitempty"` + // NetworkAttachment: The name of the network attachment for pods to + // communicate to; cannot be specified along with subnetwork or + // secondary_pod_range. + NetworkAttachment string `json:"networkAttachment,omitempty"` // SecondaryPodRange: The name of the secondary range on the subnet which // provides IP address for this pod range. SecondaryPodRange string `json:"secondaryPodRange,omitempty"` @@ -2510,8 +2514,8 @@ func (s GcsFuseCsiDriverConfig) MarshalJSON() ([]byte, error) { // GetJSONWebKeysResponse: GetJSONWebKeysResponse is a valid JSON Web Key Set // as specififed in rfc 7517 type GetJSONWebKeysResponse struct { - // CacheHeader: OnePlatform automatically extracts this field and uses it to - // set the HTTP Cache-Control header. + // CacheHeader: For HTTP requests, this field is automatically extracted into + // the Cache-Control HTTP header. CacheHeader *HttpCacheControlResponseHeader `json:"cacheHeader,omitempty"` // Keys: The public component of the keys used by the cluster to sign token // requests. @@ -2541,8 +2545,8 @@ func (s GetJSONWebKeysResponse) MarshalJSON() ([]byte, error) { // document for the cluster. See the OpenID Connect Discovery 1.0 specification // for details. type GetOpenIDConfigResponse struct { - // CacheHeader: OnePlatform automatically extracts this field and uses it to - // set the HTTP Cache-Control header. + // CacheHeader: For HTTP requests, this field is automatically extracted into + // the Cache-Control HTTP header. CacheHeader *HttpCacheControlResponseHeader `json:"cacheHeader,omitempty"` // ClaimsSupported: Supported claims. ClaimsSupported []string `json:"claims_supported,omitempty"` diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 0c3ae01aed6..c0d9e09c920 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -2218,7 +2218,7 @@ } } }, - "revision": "20240902", + "revision": "20240914", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -2391,6 +2391,17 @@ }, "type": "object" }, + "AuthorizedNetwork": { + "description": "AuthorizedNetwork contains metadata for an authorized network.", + "id": "AuthorizedNetwork", + "properties": { + "cidrRange": { + "description": "Optional. CIDR range for one authorzied network of the instance.", + "type": "string" + } + }, + "type": "object" + }, "BackgroundJobLogEntry": { "description": "Execution log of a background job.", "id": "BackgroundJobLogEntry", @@ -2609,7 +2620,7 @@ "type": "object" }, "databaseVersion": { - "description": "The database engine type and version.", + "description": "The database engine type and version. Deprecated. Use database_version_name instead.", "enum": [ "SQL_DATABASE_VERSION_UNSPECIFIED", "MYSQL_5_6", @@ -2666,6 +2677,10 @@ ], "type": "string" }, + "databaseVersionName": { + "description": "Optional. The database engine type and version name.", + "type": "string" + }, "edition": { "description": "Optional. The edition of the given Cloud SQL instance.", "enum": [ @@ -4067,6 +4082,28 @@ }, "type": "object" }, + "InstanceNetworkConfig": { + "description": "Metadata related to instance level network configuration.", + "id": "InstanceNetworkConfig", + "properties": { + "authorizedExternalNetworks": { + "description": "Optional. A list of external network authorized to access this instance.", + "items": { + "$ref": "AuthorizedNetwork" + }, + "type": "array" + }, + "enableOutboundPublicIp": { + "description": "Optional. Enabling an outbound public IP address to support a database server sending requests out into the internet.", + "type": "boolean" + }, + "enablePublicIp": { + "description": "Optional. Enabling public ip for the instance.", + "type": "boolean" + } + }, + "type": "object" + }, "IntComparisonFilter": { "description": "Filter based on relation between source value and compare value of type integer in ConditionalColumnSetValue", "id": "IntComparisonFilter", @@ -5190,6 +5227,10 @@ "description": "Required. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression \"[a-z0-9-]+\".", "type": "string" }, + "instanceNetworkConfig": { + "$ref": "InstanceNetworkConfig", + "description": "Optional. Metadata related to instance level network configuration." + }, "labels": { "additionalProperties": { "type": "string" @@ -5201,6 +5242,14 @@ "$ref": "MachineConfig", "description": "Configuration for the machines that host the underlying database engine." }, + "outboundPublicIpAddresses": { + "description": "Output only. All outbound public IP addresses configured for the instance.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "privateIp": { "description": "Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.", "readOnly": true, diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index c347f571b4a..ec20b4f7485 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -516,6 +516,29 @@ func (s AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AuthorizedNetwork: AuthorizedNetwork contains metadata for an authorized +// network. +type AuthorizedNetwork struct { + // CidrRange: Optional. CIDR range for one authorzied network of the instance. + CidrRange string `json:"cidrRange,omitempty"` + // ForceSendFields is a list of field names (e.g. "CidrRange") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CidrRange") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AuthorizedNetwork) MarshalJSON() ([]byte, error) { + type NoMethod AuthorizedNetwork + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // BackgroundJobLogEntry: Execution log of a background job. type BackgroundJobLogEntry struct { // ApplyJobDetails: Output only. Apply job details. @@ -772,7 +795,8 @@ type CloudSqlSettings struct { // startup. An object containing a list of "key": value pairs. Example: { // "name": "wrench", "mass": "1.3kg", "count": "3" }. DatabaseFlags map[string]string `json:"databaseFlags,omitempty"` - // DatabaseVersion: The database engine type and version. + // DatabaseVersion: The database engine type and version. Deprecated. Use + // database_version_name instead. // // Possible values: // "SQL_DATABASE_VERSION_UNSPECIFIED" - Unspecified version. @@ -813,6 +837,8 @@ type CloudSqlSettings struct { // "POSTGRES_15" - PostgreSQL 15. // "POSTGRES_16" - PostgreSQL 16. DatabaseVersion string `json:"databaseVersion,omitempty"` + // DatabaseVersionName: Optional. The database engine type and version name. + DatabaseVersionName string `json:"databaseVersionName,omitempty"` // Edition: Optional. The edition of the given Cloud SQL instance. // // Possible values: @@ -2276,6 +2302,35 @@ func (s IndexEntity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// InstanceNetworkConfig: Metadata related to instance level network +// configuration. +type InstanceNetworkConfig struct { + // AuthorizedExternalNetworks: Optional. A list of external network authorized + // to access this instance. + AuthorizedExternalNetworks []*AuthorizedNetwork `json:"authorizedExternalNetworks,omitempty"` + // EnableOutboundPublicIp: Optional. Enabling an outbound public IP address to + // support a database server sending requests out into the internet. + EnableOutboundPublicIp bool `json:"enableOutboundPublicIp,omitempty"` + // EnablePublicIp: Optional. Enabling public ip for the instance. + EnablePublicIp bool `json:"enablePublicIp,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuthorizedExternalNetworks") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AuthorizedExternalNetworks") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s InstanceNetworkConfig) MarshalJSON() ([]byte, error) { + type NoMethod InstanceNetworkConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // IntComparisonFilter: Filter based on relation between source value and // compare value of type integer in ConditionalColumnSetValue type IntComparisonFilter struct { @@ -3506,12 +3561,18 @@ type PrimaryInstanceSettings struct { // Id: Required. The ID of the AlloyDB primary instance. The ID must satisfy // the regex expression "[a-z0-9-]+". Id string `json:"id,omitempty"` + // InstanceNetworkConfig: Optional. Metadata related to instance level network + // configuration. + InstanceNetworkConfig *InstanceNetworkConfig `json:"instanceNetworkConfig,omitempty"` // Labels: Labels for the AlloyDB primary instance created by DMS. An object // containing a list of 'key', 'value' pairs. Labels map[string]string `json:"labels,omitempty"` // MachineConfig: Configuration for the machines that host the underlying // database engine. MachineConfig *MachineConfig `json:"machineConfig,omitempty"` + // OutboundPublicIpAddresses: Output only. All outbound public IP addresses + // configured for the instance. + OutboundPublicIpAddresses []string `json:"outboundPublicIpAddresses,omitempty"` // PrivateIp: Output only. The private IP address for the Instance. This is the // connection endpoint for an end-user application. PrivateIp string `json:"privateIp,omitempty"` diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index 5d121278879..49668c20beb 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -398,7 +398,7 @@ ] }, "lookupEntry": { - "description": "Looks up a single Entry by name using the permission on the source system.", + "description": "Looks up a single Entry by name using the permission on the source system.Caution: The BigQuery metadata that is stored in Dataplex Catalog is changing. For more information, see Changes to BigQuery metadata stored in Dataplex Catalog (https://cloud.google.com/dataplex/docs/biqquery-metadata-changes).", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:lookupEntry", "httpMethod": "GET", "id": "dataplex.projects.locations.lookupEntry", @@ -2369,7 +2369,7 @@ ] }, "get": { - "description": "Gets an Entry.", + "description": "Gets an Entry.Caution: The BigQuery metadata that is stored in Dataplex Catalog is changing. For more information, see Changes to BigQuery metadata stored in Dataplex Catalog (https://cloud.google.com/dataplex/docs/biqquery-metadata-changes).", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entryGroups/{entryGroupsId}/entries/{entriesId}", "httpMethod": "GET", "id": "dataplex.projects.locations.entryGroups.entries.get", @@ -5997,397 +5997,9 @@ } } }, - "revision": "20240820", + "revision": "20240914", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { - "CloudReliabilityZicyWs3DataplaneProtosAssetLocation": { - "description": "Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.", - "id": "CloudReliabilityZicyWs3DataplaneProtosAssetLocation", - "properties": { - "ccfeRmsPath": { - "description": "Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata.", - "type": "string" - }, - "expected": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations", - "description": "Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation." - }, - "extraParameters": { - "description": "Defines extra parameters required for specific asset types.", - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosExtraParameter" - }, - "type": "array" - }, - "locationData": { - "description": "Contains all kinds of physical location definitions for this asset.", - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosLocationData" - }, - "type": "array" - }, - "parentAsset": { - "description": "Defines parents assets if any in order to allow later generation of child_asset_location data via child assets.", - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosCloudAsset" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations": { - "id": "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations", - "properties": { - "requirementOverride": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride", - "description": "Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic." - }, - "ziOrgPolicy": { - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "ziRegionPolicy": { - "enum": [ - "ZI_REGION_POLICY_UNSPECIFIED", - "ZI_REGION_POLICY_UNKNOWN", - "ZI_REGION_POLICY_NOT_SET", - "ZI_REGION_POLICY_FAIL_OPEN", - "ZI_REGION_POLICY_FAIL_CLOSED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "ziRegionState": { - "enum": [ - "ZI_REGION_UNSPECIFIED", - "ZI_REGION_UNKNOWN", - "ZI_REGION_NOT_ENABLED", - "ZI_REGION_ENABLED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zoneIsolation": { - "deprecated": true, - "description": "Deprecated: use zi_org_policy, zi_region_policy and zi_region_state instead for setting ZI expectations as per go/zicy-publish-physical-location.", - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "zoneSeparation": { - "deprecated": true, - "description": "Deprecated: use zs_org_policy, and zs_region_stateinstead for setting Zs expectations as per go/zicy-publish-physical-location.", - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zsOrgPolicy": { - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zsRegionState": { - "enum": [ - "ZS_REGION_UNSPECIFIED", - "ZS_REGION_UNKNOWN", - "ZS_REGION_NOT_ENABLED", - "ZS_REGION_ENABLED" - ], - "enumDescriptions": [ - "", - "To be used if tracking of the asset ZS-bit is not available", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride": { - "id": "CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride", - "properties": { - "ziOverride": { - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "zsOverride": { - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation": { - "description": "Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains", - "id": "CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation", - "properties": { - "policyId": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosCloudAsset": { - "id": "CloudReliabilityZicyWs3DataplaneProtosCloudAsset", - "properties": { - "assetName": { - "type": "string" - }, - "assetType": { - "type": "string" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition": { - "id": "CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition", - "properties": { - "childAsset": { - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosCloudAsset" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment": { - "id": "CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment", - "properties": { - "location": { - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosLocationAssignment" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosExtraParameter": { - "description": "Defines parameters that should only be used for specific asset types.", - "id": "CloudReliabilityZicyWs3DataplaneProtosExtraParameter", - "properties": { - "regionalMigDistributionPolicy": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy", - "description": "Details about zones used by regional compute.googleapis.com/InstanceGroupManager to create instances." - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosLocationAssignment": { - "id": "CloudReliabilityZicyWs3DataplaneProtosLocationAssignment", - "properties": { - "location": { - "type": "string" - }, - "locationType": { - "enum": [ - "UNSPECIFIED", - "CLUSTER", - "POP", - "CLOUD_ZONE", - "CLOUD_REGION", - "MULTI_REGION_GEO", - "MULTI_REGION_JURISDICTION", - "GLOBAL", - "OTHER" - ], - "enumDescriptions": [ - "", - "1-10: Physical failure domains.", - "", - "11-20: Logical failure domains.", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosLocationData": { - "id": "CloudReliabilityZicyWs3DataplaneProtosLocationData", - "properties": { - "blobstoreLocation": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation" - }, - "childAssetLocation": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition" - }, - "directLocation": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment" - }, - "gcpProjectProxy": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy" - }, - "placerLocation": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosPlacerLocation" - }, - "spannerLocation": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosSpannerLocation" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosPlacerLocation": { - "description": "Message describing that the location of the customer resource is tied to placer allocations", - "id": "CloudReliabilityZicyWs3DataplaneProtosPlacerLocation", - "properties": { - "placerConfig": { - "description": "Directory with a config related to it in placer (e.g. \"/placer/prod/home/my-root/my-dir\")", - "type": "string" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy": { - "description": "To be used for specifying the intended distribution of regional compute.googleapis.com/InstanceGroupManager instances", - "id": "CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy", - "properties": { - "targetShape": { - "description": "The shape in which the group converges around distribution of resources. Instance of proto2 enum", - "format": "int32", - "type": "integer" - }, - "zones": { - "description": "Cloud zones used by regional MIG to create instances.", - "items": { - "$ref": "CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosSpannerLocation": { - "id": "CloudReliabilityZicyWs3DataplaneProtosSpannerLocation", - "properties": { - "backupName": { - "description": "Set of backups used by the resource with name in the same format as what is available at http://table/spanner_automon.backup_metadata", - "items": { - "type": "string" - }, - "type": "array" - }, - "dbName": { - "description": "Set of databases used by the resource in format /span//", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy": { - "id": "CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy", - "properties": { - "projectNumbers": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration": { - "id": "CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration", - "properties": { - "zone": { - "type": "string" - } - }, - "type": "object" - }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } ", "id": "Empty", @@ -6703,6 +6315,21 @@ "readOnly": true, "type": "string" }, + "transferStatus": { + "description": "Output only. Denotes the transfer status of the Aspect Type. It is unspecified for Aspect Types created from Dataplex API.", + "enum": [ + "TRANSFER_STATUS_UNSPECIFIED", + "TRANSFER_STATUS_MIGRATED", + "TRANSFER_STATUS_TRANSFERRED" + ], + "enumDescriptions": [ + "The default value. It is set for resources that were not subject for migration from Data Catalog service.", + "Indicates that a resource was migrated from Data Catalog service but it hasn't been transferred yet. In particular the resource cannot be updated from Dataplex API.", + "Indicates that a resource was transferred from Data Catalog service. The resource can only be updated from Dataplex API." + ], + "readOnly": true, + "type": "string" + }, "uid": { "description": "Output only. System generated globally unique ID for the AspectType. If you delete and recreate the AspectType with the same name, then this ID will be different.", "readOnly": true, @@ -9008,6 +8635,10 @@ "description": "The data location associated with the event.", "type": "string" }, + "datascanId": { + "description": "The id of the associated datascan for standalone discovery.", + "type": "string" + }, "entity": { "$ref": "GoogleCloudDataplexV1DiscoveryEventEntityDetails", "description": "Details about the entity associated with the event." @@ -9024,6 +8655,10 @@ "$ref": "GoogleCloudDataplexV1DiscoveryEventPartitionDetails", "description": "Details about the partition associated with the event." }, + "table": { + "$ref": "GoogleCloudDataplexV1DiscoveryEventTableDetails", + "description": "Details about the BigQuery table publishing associated with the event." + }, "type": { "description": "The type of the event being logged.", "enum": [ @@ -9141,6 +8776,33 @@ }, "type": "object" }, + "GoogleCloudDataplexV1DiscoveryEventTableDetails": { + "description": "Details about the published table.", + "id": "GoogleCloudDataplexV1DiscoveryEventTableDetails", + "properties": { + "table": { + "description": "The fully-qualified resource name of the table resource.", + "type": "string" + }, + "type": { + "description": "The type of the table resource.", + "enum": [ + "TABLE_TYPE_UNSPECIFIED", + "EXTERNAL_TABLE", + "BIGLAKE_TABLE", + "OBJECT_TABLE" + ], + "enumDescriptions": [ + "An unspecified table type.", + "External table type.", + "BigLake table type.", + "Object table type for unstructured data." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1Entity": { "description": "Represents tables and fileset metadata contained within a zone.", "id": "GoogleCloudDataplexV1Entity", @@ -9363,6 +9025,21 @@ "readOnly": true, "type": "string" }, + "transferStatus": { + "description": "Output only. Denotes the transfer status of the Entry Group. It is unspecified for Entry Group created from Dataplex API.", + "enum": [ + "TRANSFER_STATUS_UNSPECIFIED", + "TRANSFER_STATUS_MIGRATED", + "TRANSFER_STATUS_TRANSFERRED" + ], + "enumDescriptions": [ + "The default value. It is set for resources that were not subject for migration from Data Catalog service.", + "Indicates that a resource was migrated from Data Catalog service but it hasn't been transferred yet. In particular the resource cannot be updated from Dataplex API.", + "Indicates that a resource was transferred from Data Catalog service. The resource can only be updated from Dataplex API." + ], + "readOnly": true, + "type": "string" + }, "uid": { "description": "Output only. System generated globally unique ID for the EntryGroup. If you delete and recreate the EntryGroup with the same name, this ID will be different.", "readOnly": true, @@ -11863,7 +11540,7 @@ "type": "string" }, "sqlScriptFile": { - "description": "A reference to a query file. This can be the Cloud Storage URI of the query file or it can the path to a SqlScript Content. The execution args are used to declare a set of script variables (set key=\"value\";).", + "description": "A reference to a query file. This should be the Cloud Storage URI of the query file. The execution args are used to declare a set of script variables (set key=\"value\";).", "type": "string" } }, diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index eccf899e4a8..fec3722054e 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -583,428 +583,6 @@ type ProjectsLocationsOperationsService struct { s *Service } -// CloudReliabilityZicyWs3DataplaneProtosAssetLocation: Provides the mapping of -// a cloud asset to a direct physical location or to a proxy that defines the -// location on its behalf. -type CloudReliabilityZicyWs3DataplaneProtosAssetLocation struct { - // CcfeRmsPath: Spanner path of the CCFE RMS database. It is only applicable - // for CCFE tenants that use CCFE RMS for storing resource metadata. - CcfeRmsPath string `json:"ccfeRmsPath,omitempty"` - // Expected: Defines the customer expectation around ZI/ZS for this asset and - // ZI/ZS state of the region at the time of asset creation. - Expected *CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations `json:"expected,omitempty"` - // ExtraParameters: Defines extra parameters required for specific asset types. - ExtraParameters []*CloudReliabilityZicyWs3DataplaneProtosExtraParameter `json:"extraParameters,omitempty"` - // LocationData: Contains all kinds of physical location definitions for this - // asset. - LocationData []*CloudReliabilityZicyWs3DataplaneProtosLocationData `json:"locationData,omitempty"` - // ParentAsset: Defines parents assets if any in order to allow later - // generation of child_asset_location data via child assets. - ParentAsset []*CloudReliabilityZicyWs3DataplaneProtosCloudAsset `json:"parentAsset,omitempty"` - // ForceSendFields is a list of field names (e.g. "CcfeRmsPath") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CcfeRmsPath") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosAssetLocation) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosAssetLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations struct { - // RequirementOverride: Explicit overrides for ZI and ZS requirements to be - // used for resources that should be excluded from ZI/ZS verification logic. - RequirementOverride *CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride `json:"requirementOverride,omitempty"` - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZiOrgPolicy string `json:"ziOrgPolicy,omitempty"` - // Possible values: - // "ZI_REGION_POLICY_UNSPECIFIED" - // "ZI_REGION_POLICY_UNKNOWN" - To be used if tracking is not available - // "ZI_REGION_POLICY_NOT_SET" - // "ZI_REGION_POLICY_FAIL_OPEN" - // "ZI_REGION_POLICY_FAIL_CLOSED" - ZiRegionPolicy string `json:"ziRegionPolicy,omitempty"` - // Possible values: - // "ZI_REGION_UNSPECIFIED" - // "ZI_REGION_UNKNOWN" - To be used if tracking is not available - // "ZI_REGION_NOT_ENABLED" - // "ZI_REGION_ENABLED" - ZiRegionState string `json:"ziRegionState,omitempty"` - // ZoneIsolation: Deprecated: use zi_org_policy, zi_region_policy and - // zi_region_state instead for setting ZI expectations as per - // go/zicy-publish-physical-location. - // - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZoneIsolation string `json:"zoneIsolation,omitempty"` - // ZoneSeparation: Deprecated: use zs_org_policy, and zs_region_stateinstead - // for setting Zs expectations as per go/zicy-publish-physical-location. - // - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZoneSeparation string `json:"zoneSeparation,omitempty"` - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZsOrgPolicy string `json:"zsOrgPolicy,omitempty"` - // Possible values: - // "ZS_REGION_UNSPECIFIED" - // "ZS_REGION_UNKNOWN" - To be used if tracking of the asset ZS-bit is not - // available - // "ZS_REGION_NOT_ENABLED" - // "ZS_REGION_ENABLED" - ZsRegionState string `json:"zsRegionState,omitempty"` - // ForceSendFields is a list of field names (e.g. "RequirementOverride") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RequirementOverride") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectations - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride struct { - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZiOverride string `json:"ziOverride,omitempty"` - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZsOverride string `json:"zsOverride,omitempty"` - // ForceSendFields is a list of field names (e.g. "ZiOverride") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ZiOverride") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosAssetLocationIsolationExpectationsRequirementOverride - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation: Policy ID that -// identified data placement in Blobstore as per -// go/blobstore-user-guide#data-metadata-placement-and-failure-domains -type CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation struct { - PolicyId []string `json:"policyId,omitempty"` - // ForceSendFields is a list of field names (e.g. "PolicyId") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PolicyId") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosCloudAsset struct { - AssetName string `json:"assetName,omitempty"` - AssetType string `json:"assetType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AssetName") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AssetName") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosCloudAsset) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosCloudAsset - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition struct { - ChildAsset []*CloudReliabilityZicyWs3DataplaneProtosCloudAsset `json:"childAsset,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChildAsset") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ChildAsset") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment struct { - Location []*CloudReliabilityZicyWs3DataplaneProtosLocationAssignment `json:"location,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Location") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// CloudReliabilityZicyWs3DataplaneProtosExtraParameter: Defines parameters -// that should only be used for specific asset types. -type CloudReliabilityZicyWs3DataplaneProtosExtraParameter struct { - // RegionalMigDistributionPolicy: Details about zones used by regional - // compute.googleapis.com/InstanceGroupManager to create instances. - RegionalMigDistributionPolicy *CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy `json:"regionalMigDistributionPolicy,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "RegionalMigDistributionPolicy") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RegionalMigDistributionPolicy") - // to include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosExtraParameter) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosExtraParameter - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosLocationAssignment struct { - Location string `json:"location,omitempty"` - // Possible values: - // "UNSPECIFIED" - // "CLUSTER" - 1-10: Physical failure domains. - // "POP" - // "CLOUD_ZONE" - 11-20: Logical failure domains. - // "CLOUD_REGION" - // "MULTI_REGION_GEO" - // "MULTI_REGION_JURISDICTION" - // "GLOBAL" - // "OTHER" - LocationType string `json:"locationType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Location") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosLocationAssignment) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosLocationAssignment - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosLocationData struct { - BlobstoreLocation *CloudReliabilityZicyWs3DataplaneProtosBlobstoreLocation `json:"blobstoreLocation,omitempty"` - ChildAssetLocation *CloudReliabilityZicyWs3DataplaneProtosCloudAssetComposition `json:"childAssetLocation,omitempty"` - DirectLocation *CloudReliabilityZicyWs3DataplaneProtosDirectLocationAssignment `json:"directLocation,omitempty"` - GcpProjectProxy *CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy `json:"gcpProjectProxy,omitempty"` - PlacerLocation *CloudReliabilityZicyWs3DataplaneProtosPlacerLocation `json:"placerLocation,omitempty"` - SpannerLocation *CloudReliabilityZicyWs3DataplaneProtosSpannerLocation `json:"spannerLocation,omitempty"` - // ForceSendFields is a list of field names (e.g. "BlobstoreLocation") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BlobstoreLocation") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosLocationData) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosLocationData - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// CloudReliabilityZicyWs3DataplaneProtosPlacerLocation: Message describing -// that the location of the customer resource is tied to placer allocations -type CloudReliabilityZicyWs3DataplaneProtosPlacerLocation struct { - // PlacerConfig: Directory with a config related to it in placer (e.g. - // "/placer/prod/home/my-root/my-dir") - PlacerConfig string `json:"placerConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlacerConfig") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PlacerConfig") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosPlacerLocation) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosPlacerLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy: To be -// used for specifying the intended distribution of regional -// compute.googleapis.com/InstanceGroupManager instances -type CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy struct { - // TargetShape: The shape in which the group converges around distribution of - // resources. Instance of proto2 enum - TargetShape int64 `json:"targetShape,omitempty"` - // Zones: Cloud zones used by regional MIG to create instances. - Zones []*CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration `json:"zones,omitempty"` - // ForceSendFields is a list of field names (e.g. "TargetShape") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TargetShape") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosRegionalMigDistributionPolicy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosSpannerLocation struct { - // BackupName: Set of backups used by the resource with name in the same format - // as what is available at http://table/spanner_automon.backup_metadata - BackupName []string `json:"backupName,omitempty"` - // DbName: Set of databases used by the resource in format /span// - DbName []string `json:"dbName,omitempty"` - // ForceSendFields is a list of field names (e.g. "BackupName") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BackupName") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosSpannerLocation) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosSpannerLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy struct { - ProjectNumbers []string `json:"projectNumbers,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectNumbers") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ProjectNumbers") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosTenantProjectProxy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration struct { - Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "Zone") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Zone") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration) MarshalJSON() ([]byte, error) { - type NoMethod CloudReliabilityZicyWs3DataplaneProtosZoneConfiguration - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use it as // the request or the response type of an API method. For instance: service Foo @@ -1327,6 +905,19 @@ type GoogleCloudDataplexV1AspectType struct { // projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id // }. Name string `json:"name,omitempty"` + // TransferStatus: Output only. Denotes the transfer status of the Aspect Type. + // It is unspecified for Aspect Types created from Dataplex API. + // + // Possible values: + // "TRANSFER_STATUS_UNSPECIFIED" - The default value. It is set for resources + // that were not subject for migration from Data Catalog service. + // "TRANSFER_STATUS_MIGRATED" - Indicates that a resource was migrated from + // Data Catalog service but it hasn't been transferred yet. In particular the + // resource cannot be updated from Dataplex API. + // "TRANSFER_STATUS_TRANSFERRED" - Indicates that a resource was transferred + // from Data Catalog service. The resource can only be updated from Dataplex + // API. + TransferStatus string `json:"transferStatus,omitempty"` // Uid: Output only. System generated globally unique ID for the AspectType. If // you delete and recreate the AspectType with the same name, then this ID will // be different. @@ -4241,6 +3832,8 @@ type GoogleCloudDataplexV1DiscoveryEvent struct { Config *GoogleCloudDataplexV1DiscoveryEventConfigDetails `json:"config,omitempty"` // DataLocation: The data location associated with the event. DataLocation string `json:"dataLocation,omitempty"` + // DatascanId: The id of the associated datascan for standalone discovery. + DatascanId string `json:"datascanId,omitempty"` // Entity: Details about the entity associated with the event. Entity *GoogleCloudDataplexV1DiscoveryEventEntityDetails `json:"entity,omitempty"` // LakeId: The id of the associated lake. @@ -4249,6 +3842,9 @@ type GoogleCloudDataplexV1DiscoveryEvent struct { Message string `json:"message,omitempty"` // Partition: Details about the partition associated with the event. Partition *GoogleCloudDataplexV1DiscoveryEventPartitionDetails `json:"partition,omitempty"` + // Table: Details about the BigQuery table publishing associated with the + // event. + Table *GoogleCloudDataplexV1DiscoveryEventTableDetails `json:"table,omitempty"` // Type: The type of the event being logged. // // Possible values: @@ -4395,6 +3991,37 @@ func (s GoogleCloudDataplexV1DiscoveryEventPartitionDetails) MarshalJSON() ([]by return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDataplexV1DiscoveryEventTableDetails: Details about the published +// table. +type GoogleCloudDataplexV1DiscoveryEventTableDetails struct { + // Table: The fully-qualified resource name of the table resource. + Table string `json:"table,omitempty"` + // Type: The type of the table resource. + // + // Possible values: + // "TABLE_TYPE_UNSPECIFIED" - An unspecified table type. + // "EXTERNAL_TABLE" - External table type. + // "BIGLAKE_TABLE" - BigLake table type. + // "OBJECT_TABLE" - Object table type for unstructured data. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Table") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Table") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDataplexV1DiscoveryEventTableDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DiscoveryEventTableDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1Entity: Represents tables and fileset metadata // contained within a zone. type GoogleCloudDataplexV1Entity struct { @@ -4617,6 +4244,19 @@ type GoogleCloudDataplexV1EntryGroup struct { // projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_gr // oup_id}. Name string `json:"name,omitempty"` + // TransferStatus: Output only. Denotes the transfer status of the Entry Group. + // It is unspecified for Entry Group created from Dataplex API. + // + // Possible values: + // "TRANSFER_STATUS_UNSPECIFIED" - The default value. It is set for resources + // that were not subject for migration from Data Catalog service. + // "TRANSFER_STATUS_MIGRATED" - Indicates that a resource was migrated from + // Data Catalog service but it hasn't been transferred yet. In particular the + // resource cannot be updated from Dataplex API. + // "TRANSFER_STATUS_TRANSFERRED" - Indicates that a resource was transferred + // from Data Catalog service. The resource can only be updated from Dataplex + // API. + TransferStatus string `json:"transferStatus,omitempty"` // Uid: Output only. System generated globally unique ID for the EntryGroup. If // you delete and recreate the EntryGroup with the same name, this ID will be // different. @@ -7459,10 +7099,9 @@ type GoogleCloudDataplexV1TaskSparkTaskConfig struct { // SqlScript: The query text. The execution args are used to declare a set of // script variables (set key="value";). SqlScript string `json:"sqlScript,omitempty"` - // SqlScriptFile: A reference to a query file. This can be the Cloud Storage - // URI of the query file or it can the path to a SqlScript Content. The - // execution args are used to declare a set of script variables (set - // key="value";). + // SqlScriptFile: A reference to a query file. This should be the Cloud Storage + // URI of the query file. The execution args are used to declare a set of + // script variables (set key="value";). SqlScriptFile string `json:"sqlScriptFile,omitempty"` // ForceSendFields is a list of field names (e.g. "ArchiveUris") to // unconditionally include in API requests. By default, fields with empty or @@ -9453,7 +9092,10 @@ type ProjectsLocationsLookupEntryCall struct { } // LookupEntry: Looks up a single Entry by name using the permission on the -// source system. +// source system.Caution: The BigQuery metadata that is stored in Dataplex +// Catalog is changing. For more information, see Changes to BigQuery metadata +// stored in Dataplex Catalog +// (https://cloud.google.com/dataplex/docs/biqquery-metadata-changes). // // - name: The project to which the request should be attributed in the // following form: projects/{project}/locations/{location}. @@ -16369,7 +16011,10 @@ type ProjectsLocationsEntryGroupsEntriesGetCall struct { header_ http.Header } -// Get: Gets an Entry. +// Get: Gets an Entry.Caution: The BigQuery metadata that is stored in Dataplex +// Catalog is changing. For more information, see Changes to BigQuery metadata +// stored in Dataplex Catalog +// (https://cloud.google.com/dataplex/docs/biqquery-metadata-changes). // // - name: The resource name of the Entry: // projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{ diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index cdf811e960e..d38e92a80a9 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -9267,7 +9267,7 @@ } } }, - "revision": "20240905", + "revision": "20240919", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -12345,7 +12345,7 @@ true, true, true, - false, + true, false, false, false @@ -13329,14 +13329,16 @@ "DEVICE_TYPE_COMPUTER", "DEVICE_TYPE_CONNECTED_TV", "DEVICE_TYPE_SMART_PHONE", - "DEVICE_TYPE_TABLET" + "DEVICE_TYPE_TABLET", + "DEVICE_TYPE_CONNECTED_DEVICE" ], "enumDescriptions": [ "Default value when device type is not specified in this version. This enum is a placeholder for default value and does not represent a real device type option.", "Computer.", "Connected TV.", "Smart phone.", - "Tablet." + "Tablet.", + "Connected device." ], "type": "string" }, @@ -13360,14 +13362,16 @@ "DEVICE_TYPE_COMPUTER", "DEVICE_TYPE_CONNECTED_TV", "DEVICE_TYPE_SMART_PHONE", - "DEVICE_TYPE_TABLET" + "DEVICE_TYPE_TABLET", + "DEVICE_TYPE_CONNECTED_DEVICE" ], "enumDescriptions": [ "Default value when device type is not specified in this version. This enum is a placeholder for default value and does not represent a real device type option.", "Computer.", "Connected TV.", "Smart phone.", - "Tablet." + "Tablet.", + "Connected device." ], "readOnly": true, "type": "string" @@ -19250,6 +19254,7 @@ "PERFORMANCE_GOAL_TYPE_VIEWABILITY", "PERFORMANCE_GOAL_TYPE_CPIAVC", "PERFORMANCE_GOAL_TYPE_CPE", + "PERFORMANCE_GOAL_TYPE_CPV", "PERFORMANCE_GOAL_TYPE_CLICK_CVR", "PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR", "PERFORMANCE_GOAL_TYPE_VCPM", @@ -19267,6 +19272,7 @@ "The performance goal is set in Viewability percentage.", "The performance goal is set as CPIAVC (cost per impression audible and visible at completion).", "The performance goal is set in CPE (cost per engagement).", + "The performance goal is set in CPV (cost per view).", "The performance goal is set in click conversion rate (conversions per click) percentage.", "The performance goal is set in impression conversion rate (conversions per impression) percentage.", "The performance goal is set in VCPM (cost per thousand viewable impressions).", @@ -19856,7 +19862,7 @@ true, true, true, - false, + true, false, false, false @@ -19936,7 +19942,7 @@ true, true, true, - false, + true, false, false, false diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index ad9c2789962..e1f8d912b74 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -5898,6 +5898,7 @@ type DeviceTypeAssignedTargetingOptionDetails struct { // "DEVICE_TYPE_CONNECTED_TV" - Connected TV. // "DEVICE_TYPE_SMART_PHONE" - Smart phone. // "DEVICE_TYPE_TABLET" - Tablet. + // "DEVICE_TYPE_CONNECTED_DEVICE" - Connected device. DeviceType string `json:"deviceType,omitempty"` // YoutubeAndPartnersBidMultiplier: Output only. Bid multiplier allows you to // show your ads more or less frequently based on the device type. It will @@ -5953,6 +5954,7 @@ type DeviceTypeTargetingOptionDetails struct { // "DEVICE_TYPE_CONNECTED_TV" - Connected TV. // "DEVICE_TYPE_SMART_PHONE" - Smart phone. // "DEVICE_TYPE_TABLET" - Tablet. + // "DEVICE_TYPE_CONNECTED_DEVICE" - Connected device. DeviceType string `json:"deviceType,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceType") to // unconditionally include in API requests. By default, fields with empty or @@ -12421,6 +12423,8 @@ type PerformanceGoal struct { // (cost per impression audible and visible at completion). // "PERFORMANCE_GOAL_TYPE_CPE" - The performance goal is set in CPE (cost per // engagement). + // "PERFORMANCE_GOAL_TYPE_CPV" - The performance goal is set in CPV (cost per + // view). // "PERFORMANCE_GOAL_TYPE_CLICK_CVR" - The performance goal is set in click // conversion rate (conversions per click) percentage. // "PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR" - The performance goal is set in diff --git a/displayvideo/v3/displayvideo-api.json b/displayvideo/v3/displayvideo-api.json index d2494f03f2b..7c211b8825d 100644 --- a/displayvideo/v3/displayvideo-api.json +++ b/displayvideo/v3/displayvideo-api.json @@ -9222,7 +9222,7 @@ } } }, - "revision": "20240905", + "revision": "20240919", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -12920,7 +12920,7 @@ true, true, true, - false, + true, false, false, false @@ -14045,14 +14045,16 @@ "DEVICE_TYPE_COMPUTER", "DEVICE_TYPE_CONNECTED_TV", "DEVICE_TYPE_SMART_PHONE", - "DEVICE_TYPE_TABLET" + "DEVICE_TYPE_TABLET", + "DEVICE_TYPE_CONNECTED_DEVICE" ], "enumDescriptions": [ "Default value when device type is not specified in this version. This enum is a placeholder for default value and does not represent a real device type option.", "Computer.", "Connected TV.", "Smart phone.", - "Tablet." + "Tablet.", + "Connected device." ], "type": "string" }, @@ -14076,14 +14078,16 @@ "DEVICE_TYPE_COMPUTER", "DEVICE_TYPE_CONNECTED_TV", "DEVICE_TYPE_SMART_PHONE", - "DEVICE_TYPE_TABLET" + "DEVICE_TYPE_TABLET", + "DEVICE_TYPE_CONNECTED_DEVICE" ], "enumDescriptions": [ "Default value when device type is not specified in this version. This enum is a placeholder for default value and does not represent a real device type option.", "Computer.", "Connected TV.", "Smart phone.", - "Tablet." + "Tablet.", + "Connected device." ], "readOnly": true, "type": "string" @@ -20021,6 +20025,7 @@ "PERFORMANCE_GOAL_TYPE_VIEWABILITY", "PERFORMANCE_GOAL_TYPE_CPIAVC", "PERFORMANCE_GOAL_TYPE_CPE", + "PERFORMANCE_GOAL_TYPE_CPV", "PERFORMANCE_GOAL_TYPE_CLICK_CVR", "PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR", "PERFORMANCE_GOAL_TYPE_VCPM", @@ -20038,6 +20043,7 @@ "The performance goal is set in Viewability percentage.", "The performance goal is set as CPIAVC (cost per impression audible and visible at completion).", "The performance goal is set in CPE (cost per engagement).", + "The performance goal is set in CPV (cost per view).", "The performance goal is set in click conversion rate (conversions per click) percentage.", "The performance goal is set in impression conversion rate (conversions per impression) percentage.", "The performance goal is set in VCPM (cost per thousand viewable impressions).", @@ -20627,7 +20633,7 @@ true, true, true, - false, + true, false, false, false @@ -20707,7 +20713,7 @@ true, true, true, - false, + true, false, false, false diff --git a/displayvideo/v3/displayvideo-gen.go b/displayvideo/v3/displayvideo-gen.go index 9926dfd0f6b..5064e051d02 100644 --- a/displayvideo/v3/displayvideo-gen.go +++ b/displayvideo/v3/displayvideo-gen.go @@ -6674,6 +6674,7 @@ type DeviceTypeAssignedTargetingOptionDetails struct { // "DEVICE_TYPE_CONNECTED_TV" - Connected TV. // "DEVICE_TYPE_SMART_PHONE" - Smart phone. // "DEVICE_TYPE_TABLET" - Tablet. + // "DEVICE_TYPE_CONNECTED_DEVICE" - Connected device. DeviceType string `json:"deviceType,omitempty"` // YoutubeAndPartnersBidMultiplier: Output only. Bid multiplier allows you to // show your ads more or less frequently based on the device type. It will @@ -6729,6 +6730,7 @@ type DeviceTypeTargetingOptionDetails struct { // "DEVICE_TYPE_CONNECTED_TV" - Connected TV. // "DEVICE_TYPE_SMART_PHONE" - Smart phone. // "DEVICE_TYPE_TABLET" - Tablet. + // "DEVICE_TYPE_CONNECTED_DEVICE" - Connected device. DeviceType string `json:"deviceType,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceType") to // unconditionally include in API requests. By default, fields with empty or @@ -13258,6 +13260,8 @@ type PerformanceGoal struct { // (cost per impression audible and visible at completion). // "PERFORMANCE_GOAL_TYPE_CPE" - The performance goal is set in CPE (cost per // engagement). + // "PERFORMANCE_GOAL_TYPE_CPV" - The performance goal is set in CPV (cost per + // view). // "PERFORMANCE_GOAL_TYPE_CLICK_CVR" - The performance goal is set in click // conversion rate (conversions per click) percentage. // "PERFORMANCE_GOAL_TYPE_IMPRESSION_CVR" - The performance goal is set in diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index 234f6a90dbd..f4811b1347e 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -758,7 +758,7 @@ } } }, - "revision": "20240905", + "revision": "20240911", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1334,9 +1334,13 @@ "REDIS_INSTANCE_CONNECTING_FROM_PUPI_ADDRESS", "REDIS_INSTANCE_NO_ROUTE_TO_DESTINATION_NETWORK", "REDIS_INSTANCE_NO_EXTERNAL_IP", + "REDIS_INSTANCE_UNSUPPORTED_PROTOCOL", "DROPPED_INSIDE_REDIS_CLUSTER_SERVICE", "REDIS_CLUSTER_UNSUPPORTED_PORT", - "REDIS_CLUSTER_NO_EXTERNAL_IP" + "REDIS_CLUSTER_NO_EXTERNAL_IP", + "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL", + "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION", + "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION" ], "enumDescriptions": [ "Cause is unspecified.", @@ -1414,9 +1418,13 @@ "Packet is dropped due to connecting from PUPI address to a PSA based Redis Instance.", "Packet is dropped due to no route to the destination network.", "Redis Instance does not have an external IP address.", + "Packet is dropped due to an unsupported protocol being used to connect to a Redis Instance. Only TCP connections are accepted by a Redis Instance.", "Generic drop cause for a packet being dropped inside a Redis Cluster service project.", "Packet is dropped due to an unsupported port being used to connect to a Redis Cluster. Ports 6379 and 11000 to 13047 should be used to connect to a Redis Cluster.", - "Redis Cluster does not have an external IP address." + "Redis Cluster does not have an external IP address.", + "Packet is dropped due to an unsupported protocol being used to connect to a Redis Cluster. Only TCP connections are accepted by a Redis Cluster.", + "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix advertised via BGP by the Cloud Router.", + "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix included to the local traffic selector of the VPN tunnel." ], "type": "string" }, @@ -2331,7 +2339,7 @@ "type": "object" }, "NetworkInfo": { - "description": "For display only. Metadata associated with a Compute Engine network.", + "description": "For display only. Metadata associated with a Compute Engine network. Next ID: 7", "id": "NetworkInfo", "properties": { "displayName": { @@ -2339,7 +2347,15 @@ "type": "string" }, "matchedIpRange": { - "description": "The IP range that matches the test.", + "description": "The IP range of the subnet matching the source IP address of the test.", + "type": "string" + }, + "matchedSubnetUri": { + "description": "URI of the subnet matching the source IP address of the test.", + "type": "string" + }, + "region": { + "description": "The region of the subnet matching the source IP address of the test.", "type": "string" }, "uri": { @@ -2690,6 +2706,14 @@ "description": "For display only. Metadata associated with a Compute Engine route.", "id": "RouteInfo", "properties": { + "advertisedRouteNextHopUri": { + "description": "For advertised routes, the URI of their next hop, i.e. the URI of the hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) the advertised prefix is advertised through, or URI of the source peered network.", + "type": "string" + }, + "advertisedRouteSourceRouterUri": { + "description": "For advertised dynamic routes, the URI of the Cloud Router that advertised the corresponding IP prefix.", + "type": "string" + }, "destIpRange": { "description": "Destination IP range of the route.", "type": "string" @@ -2774,6 +2798,10 @@ }, "type": "array" }, + "region": { + "description": "Region of the route (if applicable).", + "type": "string" + }, "routeScope": { "description": "Indicates where route is applicable.", "enum": [ @@ -2824,7 +2852,7 @@ "type": "array" }, "uri": { - "description": "URI of a route. Dynamic, peering static and peering dynamic routes do not have an URI. Advertised route from Google Cloud VPC to on-premises network also does not have an URI.", + "description": "URI of a route (if applicable).", "type": "string" } }, diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 4e8872a22bc..69c388d4b54 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -1043,6 +1043,9 @@ type DropInfo struct { // to no route to the destination network. // "REDIS_INSTANCE_NO_EXTERNAL_IP" - Redis Instance does not have an external // IP address. + // "REDIS_INSTANCE_UNSUPPORTED_PROTOCOL" - Packet is dropped due to an + // unsupported protocol being used to connect to a Redis Instance. Only TCP + // connections are accepted by a Redis Instance. // "DROPPED_INSIDE_REDIS_CLUSTER_SERVICE" - Generic drop cause for a packet // being dropped inside a Redis Cluster service project. // "REDIS_CLUSTER_UNSUPPORTED_PORT" - Packet is dropped due to an unsupported @@ -1050,6 +1053,17 @@ type DropInfo struct { // should be used to connect to a Redis Cluster. // "REDIS_CLUSTER_NO_EXTERNAL_IP" - Redis Cluster does not have an external // IP address. + // "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL" - Packet is dropped due to an + // unsupported protocol being used to connect to a Redis Cluster. Only TCP + // connections are accepted by a Redis Cluster. + // "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION" - Packet from the non-GCP + // (on-prem) or unknown GCP network is dropped due to the destination IP + // address not belonging to any IP prefix advertised via BGP by the Cloud + // Router. + // "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION" - Packet from the non-GCP + // (on-prem) or unknown GCP network is dropped due to the destination IP + // address not belonging to any IP prefix included to the local traffic + // selector of the VPN tunnel. Cause string `json:"cause,omitempty"` // DestinationIp: Destination IP address of the dropped packet (if relevant). DestinationIp string `json:"destinationIp,omitempty"` @@ -2026,12 +2040,18 @@ func (s NatInfo) MarshalJSON() ([]byte, error) { } // NetworkInfo: For display only. Metadata associated with a Compute Engine -// network. +// network. Next ID: 7 type NetworkInfo struct { // DisplayName: Name of a Compute Engine network. DisplayName string `json:"displayName,omitempty"` - // MatchedIpRange: The IP range that matches the test. + // MatchedIpRange: The IP range of the subnet matching the source IP address of + // the test. MatchedIpRange string `json:"matchedIpRange,omitempty"` + // MatchedSubnetUri: URI of the subnet matching the source IP address of the + // test. + MatchedSubnetUri string `json:"matchedSubnetUri,omitempty"` + // Region: The region of the subnet matching the source IP address of the test. + Region string `json:"region,omitempty"` // Uri: URI of a Compute Engine network. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to @@ -2468,6 +2488,14 @@ type RerunConnectivityTestRequest struct { // RouteInfo: For display only. Metadata associated with a Compute Engine // route. type RouteInfo struct { + // AdvertisedRouteNextHopUri: For advertised routes, the URI of their next hop, + // i.e. the URI of the hybrid endpoint (VPN tunnel, Interconnect attachment, + // NCC router appliance) the advertised prefix is advertised through, or URI of + // the source peered network. + AdvertisedRouteNextHopUri string `json:"advertisedRouteNextHopUri,omitempty"` + // AdvertisedRouteSourceRouterUri: For advertised dynamic routes, the URI of + // the Cloud Router that advertised the corresponding IP prefix. + AdvertisedRouteSourceRouterUri string `json:"advertisedRouteSourceRouterUri,omitempty"` // DestIpRange: Destination IP range of the route. DestIpRange string `json:"destIpRange,omitempty"` // DestPortRanges: Destination port ranges of the route. Policy based routes @@ -2514,6 +2542,8 @@ type RouteInfo struct { Priority int64 `json:"priority,omitempty"` // Protocols: Protocols of the route. Policy based routes only. Protocols []string `json:"protocols,omitempty"` + // Region: Region of the route (if applicable). + Region string `json:"region,omitempty"` // RouteScope: Indicates where route is applicable. // // Possible values: @@ -2538,19 +2568,17 @@ type RouteInfo struct { SrcIpRange string `json:"srcIpRange,omitempty"` // SrcPortRanges: Source port ranges of the route. Policy based routes only. SrcPortRanges []string `json:"srcPortRanges,omitempty"` - // Uri: URI of a route. Dynamic, peering static and peering dynamic routes do - // not have an URI. Advertised route from Google Cloud VPC to on-premises - // network also does not have an URI. + // Uri: URI of a route (if applicable). Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "DestIpRange") to - // unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AdvertisedRouteNextHopUri") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DestIpRange") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "AdvertisedRouteNextHopUri") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/networkservices/v1/networkservices-api.json b/networkservices/v1/networkservices-api.json index e43177cd4e1..bb60c2645cc 100644 --- a/networkservices/v1/networkservices-api.json +++ b/networkservices/v1/networkservices-api.json @@ -2408,7 +2408,7 @@ } } }, - "revision": "20240818", + "revision": "20240913", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -3777,7 +3777,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.", + "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. Only one of the resource level metadata and extension level metadata can be set.", "type": "object" }, "name": { @@ -3847,7 +3847,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.", + "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. Only one of the resource level metadata and extension level metadata can be set.", "type": "object" }, "name": { @@ -4152,6 +4152,41 @@ }, "type": "object" }, + "LoggingConfig": { + "description": "The configuration for Platform Telemetry logging for Eventarc Avdvanced resources.", + "id": "LoggingConfig", + "properties": { + "logSeverity": { + "description": "Optional. The minimum severity of logs that will be sent to Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be sent, unless it is NONE.", + "enum": [ + "LOG_SEVERITY_UNSPECIFIED", + "NONE", + "DEBUG", + "INFO", + "NOTICE", + "WARNING", + "ERROR", + "CRITICAL", + "ALERT", + "EMERGENCY" + ], + "enumDescriptions": [ + "Log severity is not specified. This value is treated the same as NONE, but is used to distinguish between no update and update to NONE in update_masks.", + "Default value at resource creation, presence of this value must be treated as no logging/disable logging.", + "Debug or trace level logging.", + "Routine information, such as ongoing status or performance.", + "Normal but significant events, such as start up, shut down, or a configuration change.", + "Warning events might cause problems.", + "Error events are likely to cause problems.", + "Critical events cause more severe problems or outages.", + "A person must take action immediately.", + "One or more systems are unusable." + ], + "type": "string" + } + }, + "type": "object" + }, "Mesh": { "description": "Mesh represents a logical configuration grouping for workload to workload communication within a service mesh. Routes that point to mesh dictate how requests are routed within this logical mesh boundary.", "id": "Mesh", @@ -4320,6 +4355,16 @@ }, "type": "object" }, + "RetryFilterPerRouteConfig": { + "id": "RetryFilterPerRouteConfig", + "properties": { + "cryptoKeyName": { + "description": "The name of the crypto key to use for encrypting event data.", + "type": "string" + } + }, + "type": "object" + }, "ServiceBinding": { "description": "ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.", "id": "ServiceBinding", diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index dc86537ce0c..f07e006d79e 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -2254,7 +2254,8 @@ type LbRouteExtension struct { // available under the namespace `com.google.lb_route_extension.`. The // following variables are supported in the metadata Struct: // `{forwarding_rule_id}` - substituted with the forwarding rule's fully - // qualified resource name. + // qualified resource name. Only one of the resource level metadata and + // extension level metadata can be set. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbRouteExtension` resource in the // following format: @@ -2327,7 +2328,8 @@ type LbTrafficExtension struct { // `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata // is available under the key `com.google.lb_traffic_extension.`. The following // variables are supported in the metadata: `{forwarding_rule_id}` - - // substituted with the forwarding rule's fully qualified resource name. + // substituted with the forwarding rule's fully qualified resource name. Only + // one of the resource level metadata and extension level metadata can be set. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbTrafficExtension` resource in the // following format: @@ -2788,6 +2790,47 @@ func (s Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LoggingConfig: The configuration for Platform Telemetry logging for Eventarc +// Avdvanced resources. +type LoggingConfig struct { + // LogSeverity: Optional. The minimum severity of logs that will be sent to + // Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be + // sent, unless it is NONE. + // + // Possible values: + // "LOG_SEVERITY_UNSPECIFIED" - Log severity is not specified. This value is + // treated the same as NONE, but is used to distinguish between no update and + // update to NONE in update_masks. + // "NONE" - Default value at resource creation, presence of this value must + // be treated as no logging/disable logging. + // "DEBUG" - Debug or trace level logging. + // "INFO" - Routine information, such as ongoing status or performance. + // "NOTICE" - Normal but significant events, such as start up, shut down, or + // a configuration change. + // "WARNING" - Warning events might cause problems. + // "ERROR" - Error events are likely to cause problems. + // "CRITICAL" - Critical events cause more severe problems or outages. + // "ALERT" - A person must take action immediately. + // "EMERGENCY" - One or more systems are unusable. + LogSeverity string `json:"logSeverity,omitempty"` + // ForceSendFields is a list of field names (e.g. "LogSeverity") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "LogSeverity") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LoggingConfig) MarshalJSON() ([]byte, error) { + type NoMethod LoggingConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Mesh: Mesh represents a logical configuration grouping for workload to // workload communication within a service mesh. Routes that point to mesh // dictate how requests are routed within this logical mesh boundary. @@ -3023,6 +3066,27 @@ func (s Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type RetryFilterPerRouteConfig struct { + // CryptoKeyName: The name of the crypto key to use for encrypting event data. + CryptoKeyName string `json:"cryptoKeyName,omitempty"` + // ForceSendFields is a list of field names (e.g. "CryptoKeyName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CryptoKeyName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s RetryFilterPerRouteConfig) MarshalJSON() ([]byte, error) { + type NoMethod RetryFilterPerRouteConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ServiceBinding: ServiceBinding is the resource that defines a Service // Directory Service to be used in a BackendService resource. type ServiceBinding struct { diff --git a/places/v1/places-api.json b/places/v1/places-api.json index decc339a580..1a70c0ca00e 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -276,7 +276,7 @@ } } }, - "revision": "20240825", + "revision": "20240918", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -1494,6 +1494,17 @@ }, "type": "object" }, + "GoogleMapsPlacesV1Polyline": { + "description": "A route polyline. Only supports an [encoded polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm), which can be passed as a string and includes compression with minimal lossiness. This is the Routes API default output.", + "id": "GoogleMapsPlacesV1Polyline", + "properties": { + "encodedPolyline": { + "description": "An [encoded polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm), as returned by the [Routes API by default](https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#polylineencoding). See the [encoder](https://developers.google.com/maps/documentation/utilities/polylineutility) and [decoder](https://developers.google.com/maps/documentation/routes/polylinedecoder) tools.", + "type": "string" + } + }, + "type": "object" + }, "GoogleMapsPlacesV1References": { "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Reference that the generative content is related to.", "id": "GoogleMapsPlacesV1References", @@ -1552,6 +1563,109 @@ }, "type": "object" }, + "GoogleMapsPlacesV1RouteModifiers": { + "description": "Encapsulates a set of optional conditions to satisfy when calculating the routes.", + "id": "GoogleMapsPlacesV1RouteModifiers", + "properties": { + "avoidFerries": { + "description": "Optional. When set to true, avoids ferries where reasonable, giving preference to routes not containing ferries. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.", + "type": "boolean" + }, + "avoidHighways": { + "description": "Optional. When set to true, avoids highways where reasonable, giving preference to routes not containing highways. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.", + "type": "boolean" + }, + "avoidIndoor": { + "description": "Optional. When set to true, avoids navigating indoors where reasonable, giving preference to routes not containing indoor navigation. Applies only to the `WALK` `TravelMode`.", + "type": "boolean" + }, + "avoidTolls": { + "description": "Optional. When set to true, avoids toll roads where reasonable, giving preference to routes not containing toll roads. Applies only to the `DRIVE` and `TWO_WHEELER` `TravelMode`.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1RoutingParameters": { + "description": "Parameters to configure the routing calculations to the places in the response, both along a route (where result ranking will be influenced) and for calculating travel times on results.", + "id": "GoogleMapsPlacesV1RoutingParameters", + "properties": { + "origin": { + "$ref": "GoogleTypeLatLng", + "description": "Optional. An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used." + }, + "routeModifiers": { + "$ref": "GoogleMapsPlacesV1RouteModifiers", + "description": "Optional. The route modifiers." + }, + "routingPreference": { + "description": "Optional. Specifies how to compute the routing summaries. The server attempts to use the selected routing preference to compute the route. The traffic aware routing preference is only available for the `DRIVE` or `TWO_WHEELER` `travelMode`.", + "enum": [ + "ROUTING_PREFERENCE_UNSPECIFIED", + "TRAFFIC_UNAWARE", + "TRAFFIC_AWARE", + "TRAFFIC_AWARE_OPTIMAL" + ], + "enumDescriptions": [ + "No routing preference specified. Default to `TRAFFIC_UNAWARE`.", + "Computes routes without taking live traffic conditions into consideration. Suitable when traffic conditions don't matter or are not applicable. Using this value produces the lowest latency. Note: For `TravelMode` `DRIVE` and `TWO_WHEELER`, the route and duration chosen are based on road network and average time-independent traffic conditions, not current road conditions. Consequently, routes may include roads that are temporarily closed. Results for a given request may vary over time due to changes in the road network, updated average traffic conditions, and the distributed nature of the service. Results may also vary between nearly-equivalent routes at any time or frequency.", + "Calculates routes taking live traffic conditions into consideration. In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to significantly reduce latency.", + "Calculates the routes taking live traffic conditions into consideration, without applying most performance optimizations. Using this value produces the highest latency." + ], + "type": "string" + }, + "travelMode": { + "description": "Optional. The travel mode.", + "enum": [ + "TRAVEL_MODE_UNSPECIFIED", + "DRIVE", + "BICYCLE", + "WALK", + "TWO_WHEELER" + ], + "enumDescriptions": [ + "No travel mode specified. Defaults to `DRIVE`.", + "Travel by passenger car.", + "Travel by bicycle. Not supported with `search_along_route_parameters`.", + "Travel by walking. Not supported with `search_along_route_parameters`.", + "Motorized two wheeled vehicles of all kinds such as scooters and motorcycles. Note that this is distinct from the `BICYCLE` travel mode which covers human-powered transport. Not supported with `search_along_route_parameters`. Only supported in those countries listed at [Countries and regions supported for two-wheeled vehicles](https://developers.google.com/maps/documentation/routes/coverage-two-wheeled)." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1RoutingSummary": { + "description": "The duration and distance from the routing origin to a place in the response, and a second leg from that place to the destination, if requested. **Note:** Adding `routingSummaries` in the field mask without also including either the `routingParameters.origin` parameter or the `searchAlongRouteParameters.polyline.encodedPolyline` parameter in the request causes an error.", + "id": "GoogleMapsPlacesV1RoutingSummary", + "properties": { + "legs": { + "description": "The legs of the trip. When you calculate travel duration and distance from a set origin, `legs` contains a single leg containing the duration and distance from the origin to the destination. When you do a search along route, `legs` contains two legs: one from the origin to place, and one from the place to the destination.", + "items": { + "$ref": "GoogleMapsPlacesV1RoutingSummaryLeg" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1RoutingSummaryLeg": { + "description": "A leg is a single portion of a journey from one location to another.", + "id": "GoogleMapsPlacesV1RoutingSummaryLeg", + "properties": { + "distanceMeters": { + "description": "The distance of this leg of the trip.", + "format": "int32", + "type": "integer" + }, + "duration": { + "description": "The time it takes to complete this leg of the trip.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "GoogleMapsPlacesV1SearchNearbyRequest": { "description": "Request proto for Search Nearby. ", "id": "GoogleMapsPlacesV1SearchNearbyRequest", @@ -1614,6 +1728,10 @@ "regionCode": { "description": "The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.", "type": "string" + }, + "routingParameters": { + "$ref": "GoogleMapsPlacesV1RoutingParameters", + "description": "Optional. Parameters that affect the routing to the search results." } }, "type": "object" @@ -1639,6 +1757,13 @@ "$ref": "GoogleMapsPlacesV1Place" }, "type": "array" + }, + "routingSummaries": { + "description": "A list of routing summaries where each entry associates to the corresponding place in the same index in the `places` field. If the routing summary is not available for one of the places, it will contain an empty entry. This list should have as many entries as the list of places if requested.", + "items": { + "$ref": "GoogleMapsPlacesV1RoutingSummary" + }, + "type": "array" } }, "type": "object" @@ -1732,6 +1857,14 @@ "description": "The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.", "type": "string" }, + "routingParameters": { + "$ref": "GoogleMapsPlacesV1RoutingParameters", + "description": "Optional. Additional parameters for routing to results." + }, + "searchAlongRouteParameters": { + "$ref": "GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters", + "description": "Optional. Additional parameters proto for searching along a route." + }, "strictTypeFiltering": { "description": "Used to set strict type filtering for included_type. If set to true, only results of the same type will be returned. Default to false.", "type": "boolean" @@ -1812,6 +1945,17 @@ }, "type": "object" }, + "GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters": { + "description": "Specifies a precalculated polyline from the [Routes API](https://developers.google.com/maps/documentation/routes) defining the route to search. Searching along a route is similar to using the `locationBias` or `locationRestriction` request option to bias the search results. However, while the `locationBias` and `locationRestriction` options let you specify a region to bias the search results, this option lets you bias the results along a trip route. Results are not guaranteed to be along the route provided, but rather are ranked within the search area defined by the polyline and, optionally, by the `locationBias` or `locationRestriction` based on minimal detour times from origin to destination. The results might be along an alternate route, especially if the provided polyline does not define an optimal route from origin to destination.", + "id": "GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters", + "properties": { + "polyline": { + "$ref": "GoogleMapsPlacesV1Polyline", + "description": "Required. The route polyline." + } + }, + "type": "object" + }, "GoogleMapsPlacesV1SearchTextResponse": { "description": "Response proto for SearchText. ", "id": "GoogleMapsPlacesV1SearchTextResponse", @@ -1833,6 +1977,13 @@ "$ref": "GoogleMapsPlacesV1Place" }, "type": "array" + }, + "routingSummaries": { + "description": "A list of routing summaries where each entry associates to the corresponding place in the same index in the `places` field. If the routing summary is not available for one of the places, it will contain an empty entry. This list will have as many entries as the list of places if requested.", + "items": { + "$ref": "GoogleMapsPlacesV1RoutingSummary" + }, + "type": "array" } }, "type": "object" diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index afe219233e1..9e9e1c6b7db 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -1777,6 +1777,40 @@ func (s GoogleMapsPlacesV1PlaceSubDestination) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleMapsPlacesV1Polyline: A route polyline. Only supports an encoded +// polyline +// (https://developers.google.com/maps/documentation/utilities/polylinealgorithm), +// which can be passed as a string and includes compression with minimal +// lossiness. This is the Routes API default output. +type GoogleMapsPlacesV1Polyline struct { + // EncodedPolyline: An encoded polyline + // (https://developers.google.com/maps/documentation/utilities/polylinealgorithm), + // as returned by the Routes API by default + // (https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#polylineencoding). + // See the encoder + // (https://developers.google.com/maps/documentation/utilities/polylineutility) + // and decoder + // (https://developers.google.com/maps/documentation/routes/polylinedecoder) + // tools. + EncodedPolyline string `json:"encodedPolyline,omitempty"` + // ForceSendFields is a list of field names (e.g. "EncodedPolyline") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EncodedPolyline") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1Polyline) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1Polyline + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1References: Experimental: See // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative // for more details. Reference that the generative content is related to. @@ -1856,6 +1890,168 @@ func (s *GoogleMapsPlacesV1Review) UnmarshalJSON(data []byte) error { return nil } +// GoogleMapsPlacesV1RouteModifiers: Encapsulates a set of optional conditions +// to satisfy when calculating the routes. +type GoogleMapsPlacesV1RouteModifiers struct { + // AvoidFerries: Optional. When set to true, avoids ferries where reasonable, + // giving preference to routes not containing ferries. Applies only to the + // `DRIVE` and `TWO_WHEELER` `TravelMode`. + AvoidFerries bool `json:"avoidFerries,omitempty"` + // AvoidHighways: Optional. When set to true, avoids highways where reasonable, + // giving preference to routes not containing highways. Applies only to the + // `DRIVE` and `TWO_WHEELER` `TravelMode`. + AvoidHighways bool `json:"avoidHighways,omitempty"` + // AvoidIndoor: Optional. When set to true, avoids navigating indoors where + // reasonable, giving preference to routes not containing indoor navigation. + // Applies only to the `WALK` `TravelMode`. + AvoidIndoor bool `json:"avoidIndoor,omitempty"` + // AvoidTolls: Optional. When set to true, avoids toll roads where reasonable, + // giving preference to routes not containing toll roads. Applies only to the + // `DRIVE` and `TWO_WHEELER` `TravelMode`. + AvoidTolls bool `json:"avoidTolls,omitempty"` + // ForceSendFields is a list of field names (e.g. "AvoidFerries") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AvoidFerries") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RouteModifiers) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RouteModifiers + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1RoutingParameters: Parameters to configure the routing +// calculations to the places in the response, both along a route (where result +// ranking will be influenced) and for calculating travel times on results. +type GoogleMapsPlacesV1RoutingParameters struct { + // Origin: Optional. An explicit routing origin that overrides the origin + // defined in the polyline. By default, the polyline origin is used. + Origin *GoogleTypeLatLng `json:"origin,omitempty"` + // RouteModifiers: Optional. The route modifiers. + RouteModifiers *GoogleMapsPlacesV1RouteModifiers `json:"routeModifiers,omitempty"` + // RoutingPreference: Optional. Specifies how to compute the routing summaries. + // The server attempts to use the selected routing preference to compute the + // route. The traffic aware routing preference is only available for the + // `DRIVE` or `TWO_WHEELER` `travelMode`. + // + // Possible values: + // "ROUTING_PREFERENCE_UNSPECIFIED" - No routing preference specified. + // Default to `TRAFFIC_UNAWARE`. + // "TRAFFIC_UNAWARE" - Computes routes without taking live traffic conditions + // into consideration. Suitable when traffic conditions don't matter or are not + // applicable. Using this value produces the lowest latency. Note: For + // `TravelMode` `DRIVE` and `TWO_WHEELER`, the route and duration chosen are + // based on road network and average time-independent traffic conditions, not + // current road conditions. Consequently, routes may include roads that are + // temporarily closed. Results for a given request may vary over time due to + // changes in the road network, updated average traffic conditions, and the + // distributed nature of the service. Results may also vary between + // nearly-equivalent routes at any time or frequency. + // "TRAFFIC_AWARE" - Calculates routes taking live traffic conditions into + // consideration. In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations + // are applied to significantly reduce latency. + // "TRAFFIC_AWARE_OPTIMAL" - Calculates the routes taking live traffic + // conditions into consideration, without applying most performance + // optimizations. Using this value produces the highest latency. + RoutingPreference string `json:"routingPreference,omitempty"` + // TravelMode: Optional. The travel mode. + // + // Possible values: + // "TRAVEL_MODE_UNSPECIFIED" - No travel mode specified. Defaults to `DRIVE`. + // "DRIVE" - Travel by passenger car. + // "BICYCLE" - Travel by bicycle. Not supported with + // `search_along_route_parameters`. + // "WALK" - Travel by walking. Not supported with + // `search_along_route_parameters`. + // "TWO_WHEELER" - Motorized two wheeled vehicles of all kinds such as + // scooters and motorcycles. Note that this is distinct from the `BICYCLE` + // travel mode which covers human-powered transport. Not supported with + // `search_along_route_parameters`. Only supported in those countries listed at + // [Countries and regions supported for two-wheeled + // vehicles](https://developers.google.com/maps/documentation/routes/coverage-tw + // o-wheeled). + TravelMode string `json:"travelMode,omitempty"` + // ForceSendFields is a list of field names (e.g. "Origin") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Origin") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RoutingParameters) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RoutingParameters + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1RoutingSummary: The duration and distance from the routing +// origin to a place in the response, and a second leg from that place to the +// destination, if requested. **Note:** Adding `routingSummaries` in the field +// mask without also including either the `routingParameters.origin` parameter +// or the `searchAlongRouteParameters.polyline.encodedPolyline` parameter in +// the request causes an error. +type GoogleMapsPlacesV1RoutingSummary struct { + // Legs: The legs of the trip. When you calculate travel duration and distance + // from a set origin, `legs` contains a single leg containing the duration and + // distance from the origin to the destination. When you do a search along + // route, `legs` contains two legs: one from the origin to place, and one from + // the place to the destination. + Legs []*GoogleMapsPlacesV1RoutingSummaryLeg `json:"legs,omitempty"` + // ForceSendFields is a list of field names (e.g. "Legs") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Legs") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RoutingSummary) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RoutingSummary + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1RoutingSummaryLeg: A leg is a single portion of a journey +// from one location to another. +type GoogleMapsPlacesV1RoutingSummaryLeg struct { + // DistanceMeters: The distance of this leg of the trip. + DistanceMeters int64 `json:"distanceMeters,omitempty"` + // Duration: The time it takes to complete this leg of the trip. + Duration string `json:"duration,omitempty"` + // ForceSendFields is a list of field names (e.g. "DistanceMeters") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DistanceMeters") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1RoutingSummaryLeg) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1RoutingSummaryLeg + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1SearchNearbyRequest: Request proto for Search Nearby. type GoogleMapsPlacesV1SearchNearbyRequest struct { // ExcludedPrimaryTypes: Excluded primary Place type (e.g. "restaurant" or @@ -1941,6 +2137,9 @@ type GoogleMapsPlacesV1SearchNearbyRequest struct { // https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. // Note that 3-digit region codes are not currently supported. RegionCode string `json:"regionCode,omitempty"` + // RoutingParameters: Optional. Parameters that affect the routing to the + // search results. + RoutingParameters *GoogleMapsPlacesV1RoutingParameters `json:"routingParameters,omitempty"` // ForceSendFields is a list of field names (e.g. "ExcludedPrimaryTypes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1987,6 +2186,12 @@ type GoogleMapsPlacesV1SearchNearbyResponse struct { // Places: A list of places that meets user's requirements like places types, // number of places and specific location restriction. Places []*GoogleMapsPlacesV1Place `json:"places,omitempty"` + // RoutingSummaries: A list of routing summaries where each entry associates to + // the corresponding place in the same index in the `places` field. If the + // routing summary is not available for one of the places, it will contain an + // empty entry. This list should have as many entries as the list of places if + // requested. + RoutingSummaries []*GoogleMapsPlacesV1RoutingSummary `json:"routingSummaries,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -2094,6 +2299,11 @@ type GoogleMapsPlacesV1SearchTextRequest struct { // https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. // Note that 3-digit region codes are not currently supported. RegionCode string `json:"regionCode,omitempty"` + // RoutingParameters: Optional. Additional parameters for routing to results. + RoutingParameters *GoogleMapsPlacesV1RoutingParameters `json:"routingParameters,omitempty"` + // SearchAlongRouteParameters: Optional. Additional parameters proto for + // searching along a route. + SearchAlongRouteParameters *GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters `json:"searchAlongRouteParameters,omitempty"` // StrictTypeFiltering: Used to set strict type filtering for included_type. If // set to true, only results of the same type will be returned. Default to // false. @@ -2254,6 +2464,40 @@ func (s GoogleMapsPlacesV1SearchTextRequestLocationRestriction) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters: Specifies a +// precalculated polyline from the Routes API +// (https://developers.google.com/maps/documentation/routes) defining the route +// to search. Searching along a route is similar to using the `locationBias` or +// `locationRestriction` request option to bias the search results. However, +// while the `locationBias` and `locationRestriction` options let you specify a +// region to bias the search results, this option lets you bias the results +// along a trip route. Results are not guaranteed to be along the route +// provided, but rather are ranked within the search area defined by the +// polyline and, optionally, by the `locationBias` or `locationRestriction` +// based on minimal detour times from origin to destination. The results might +// be along an alternate route, especially if the provided polyline does not +// define an optimal route from origin to destination. +type GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters struct { + // Polyline: Required. The route polyline. + Polyline *GoogleMapsPlacesV1Polyline `json:"polyline,omitempty"` + // ForceSendFields is a list of field names (e.g. "Polyline") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Polyline") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1SearchTextResponse: Response proto for SearchText. type GoogleMapsPlacesV1SearchTextResponse struct { // ContextualContents: Experimental: See @@ -2271,6 +2515,12 @@ type GoogleMapsPlacesV1SearchTextResponse struct { NextPageToken string `json:"nextPageToken,omitempty"` // Places: A list of places that meet the user's text search criteria. Places []*GoogleMapsPlacesV1Place `json:"places,omitempty"` + // RoutingSummaries: A list of routing summaries where each entry associates to + // the corresponding place in the same index in the `places` field. If the + // routing summary is not available for one of the places, it will contain an + // empty entry. This list will have as many entries as the list of places if + // requested. + RoutingSummaries []*GoogleMapsPlacesV1RoutingSummary `json:"routingSummaries,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` diff --git a/run/v2/run-api.json b/run/v2/run-api.json index fa2fdb3c20f..15af1d61dc2 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1526,7 +1526,7 @@ } } }, - "revision": "20240831", + "revision": "20240916", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -3398,6 +3398,20 @@ "description": "Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving. (BETA)", "format": "int32", "type": "integer" + }, + "scalingMode": { + "description": "Optional. The scaling mode for the service.", + "enum": [ + "SCALING_MODE_UNSPECIFIED", + "AUTOMATIC", + "MANUAL" + ], + "enumDescriptions": [ + "Unspecified.", + "Scale based on traffic between min and max instances.", + "Scale to exactly min instances and ignore max instances." + ], + "type": "string" } }, "type": "object" diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 3ecf0c3a4ab..d586da62475 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -2394,6 +2394,13 @@ type GoogleCloudRunV2ServiceScaling struct { // of instances is divided among all revisions with specified traffic based on // the percent of traffic they are receiving. (BETA) MinInstanceCount int64 `json:"minInstanceCount,omitempty"` + // ScalingMode: Optional. The scaling mode for the service. + // + // Possible values: + // "SCALING_MODE_UNSPECIFIED" - Unspecified. + // "AUTOMATIC" - Scale based on traffic between min and max instances. + // "MANUAL" - Scale to exactly min instances and ignore max instances. + ScalingMode string `json:"scalingMode,omitempty"` // ForceSendFields is a list of field names (e.g. "MinInstanceCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index f93ffccf6ab..a84d61bbefa 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -2366,7 +2366,7 @@ } } }, - "revision": "20240831", + "revision": "20240912", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -5049,8 +5049,8 @@ false, false, false, - false, - false, + true, + true, false, false ], diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 06a4d32eb1b..638c57fa1ad 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -2366,7 +2366,7 @@ } } }, - "revision": "20240831", + "revision": "20240912", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -5050,8 +5050,8 @@ false, false, false, - false, - false, + true, + true, false, false ], diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index 597daf0a724..6cd48d59733 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -32,6 +32,11 @@ "endpointUrl": "https://storage.europe-west3.rep.googleapis.com/", "location": "europe-west3" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.europe-west8.rep.googleapis.com/", + "location": "europe-west8" + }, { "description": "Regional Endpoint", "endpointUrl": "https://storage.europe-west9.rep.googleapis.com/", @@ -41,9 +46,54 @@ "description": "Regional Endpoint", "endpointUrl": "https://storage.me-central2.rep.googleapis.com/", "location": "me-central2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-central1.rep.googleapis.com/", + "location": "us-central1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-east1.rep.googleapis.com/", + "location": "us-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-east4.rep.googleapis.com/", + "location": "us-east4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-east5.rep.googleapis.com/", + "location": "us-east5" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-south1.rep.googleapis.com/", + "location": "us-south1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-west1.rep.googleapis.com/", + "location": "us-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-west2.rep.googleapis.com/", + "location": "us-west2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-west3.rep.googleapis.com/", + "location": "us-west3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://storage.us-west4.rep.googleapis.com/", + "location": "us-west4" } ], - "etag": "\"38363036373236373330353534313035333932\"", + "etag": "\"38303531353337323634333935393838333734\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -2829,6 +2879,11 @@ "location": "query", "type": "string" }, + "restoreToken": { + "description": "Restore token used to differentiate soft-deleted objects with the same name and generation. Only applicable for hierarchical namespace buckets and if softDeleted is set to true. This parameter is optional, and is only required in the rare case when there are multiple soft-deleted objects with the same name and generation.", + "location": "query", + "type": "string" + }, "softDeleted": { "description": "If true, only soft-deleted object versions will be listed. The default is false. For more information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).", "location": "query", @@ -3304,6 +3359,11 @@ "location": "query", "type": "string" }, + "restoreToken": { + "description": "Restore token used to differentiate sof-deleted objects with the same name and generation. Only applicable for hierarchical namespace buckets. This parameter is optional, and is only required in the rare case when there are multiple soft-deleted objects with the same name and generation.", + "location": "query", + "type": "string" + }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", @@ -4136,7 +4196,7 @@ } } }, - "revision": "20240819", + "revision": "20240916", "rootUrl": "https://storage.googleapis.com/", "schemas": { "AnywhereCache": { @@ -5597,6 +5657,10 @@ }, "type": "object" }, + "restoreToken": { + "description": "Restore token used to differentiate deleted objects with the same name and generation. This field is only returned for deleted objects in hierarchical namespace buckets.", + "type": "string" + }, "retention": { "description": "A collection of object level retention parameters.", "properties": { diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index b16e3f227b2..c7c9321765e 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -2236,6 +2236,10 @@ type Object struct { // Owner: The owner of the object. This will always be the uploader of the // object. Owner *ObjectOwner `json:"owner,omitempty"` + // RestoreToken: Restore token used to differentiate deleted objects with the + // same name and generation. This field is only returned for deleted objects in + // hierarchical namespace buckets. + RestoreToken string `json:"restoreToken,omitempty"` // Retention: A collection of object level retention parameters. Retention *ObjectRetention `json:"retention,omitempty"` // RetentionExpirationTime: A server-determined value that specifies the @@ -9961,6 +9965,17 @@ func (c *ObjectsGetCall) Projection(projection string) *ObjectsGetCall { return c } +// RestoreToken sets the optional parameter "restoreToken": Restore token used +// to differentiate soft-deleted objects with the same name and generation. +// Only applicable for hierarchical namespace buckets and if softDeleted is set +// to true. This parameter is optional, and is only required in the rare case +// when there are multiple soft-deleted objects with the same name and +// generation. +func (c *ObjectsGetCall) RestoreToken(restoreToken string) *ObjectsGetCall { + c.urlParams_.Set("restoreToken", restoreToken) + return c +} + // SoftDeleted sets the optional parameter "softDeleted": If true, only // soft-deleted object versions will be listed. The default is false. For more // information, see Soft Delete @@ -11056,6 +11071,16 @@ func (c *ObjectsRestoreCall) Projection(projection string) *ObjectsRestoreCall { return c } +// RestoreToken sets the optional parameter "restoreToken": Restore token used +// to differentiate sof-deleted objects with the same name and generation. Only +// applicable for hierarchical namespace buckets. This parameter is optional, +// and is only required in the rare case when there are multiple soft-deleted +// objects with the same name and generation. +func (c *ObjectsRestoreCall) RestoreToken(restoreToken string) *ObjectsRestoreCall { + c.urlParams_.Set("restoreToken", restoreToken) + return c +} + // UserProject sets the optional parameter "userProject": The project to be // billed for this request. Required for Requester Pays buckets. func (c *ObjectsRestoreCall) UserProject(userProject string) *ObjectsRestoreCall { diff --git a/testing/v1/testing-api.json b/testing/v1/testing-api.json index c3e20962f65..5bb5e7d6db4 100644 --- a/testing/v1/testing-api.json +++ b/testing/v1/testing-api.json @@ -449,7 +449,7 @@ } } }, - "revision": "20240315", + "revision": "20240917", "rootUrl": "https://testing.googleapis.com/", "schemas": { "Account": { @@ -664,6 +664,11 @@ "description": "The unique opaque id for this model. Use this for invoking the TestExecutionService.", "type": "string" }, + "labInfo": { + "$ref": "LabInfo", + "description": "Output only. Lab info of this device.", + "readOnly": true + }, "lowFpsVideoRecording": { "description": "True if and only if tests with this model are recorded by stitching together screenshots. See use_low_spec_video_recording in device config.", "type": "boolean" @@ -1705,6 +1710,17 @@ }, "type": "object" }, + "LabInfo": { + "description": "Lab specific information for a device.", + "id": "LabInfo", + "properties": { + "name": { + "description": "Lab name where the device is hosted. If empty, the device is hosted in a Google owned lab.", + "type": "string" + } + }, + "type": "object" + }, "LauncherActivityIntent": { "description": "Specifies an intent that starts the main launcher activity.", "id": "LauncherActivityIntent", diff --git a/testing/v1/testing-gen.go b/testing/v1/testing-gen.go index 2a9a9759863..7bb8ad09cc1 100644 --- a/testing/v1/testing-gen.go +++ b/testing/v1/testing-gen.go @@ -455,6 +455,8 @@ type AndroidModel struct { // Id: The unique opaque id for this model. Use this for invoking the // TestExecutionService. Id string `json:"id,omitempty"` + // LabInfo: Output only. Lab info of this device. + LabInfo *LabInfo `json:"labInfo,omitempty"` // LowFpsVideoRecording: True if and only if tests with this model are recorded // by stitching together screenshots. See use_low_spec_video_recording in // device config. @@ -1718,6 +1720,29 @@ func (s IosXcTest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LabInfo: Lab specific information for a device. +type LabInfo struct { + // Name: Lab name where the device is hosted. If empty, the device is hosted in + // a Google owned lab. + Name string `json:"name,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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LabInfo) MarshalJSON() ([]byte, error) { + type NoMethod LabInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LauncherActivityIntent: Specifies an intent that starts the main launcher // activity. type LauncherActivityIntent struct { diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index 8adff1538ac..69767595b5d 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -965,7 +965,7 @@ } } }, - "revision": "20240530", + "revision": "20240916", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -1628,6 +1628,13 @@ "$ref": "NetworkConfig", "description": "Network configurations for the TPU node." }, + "networkConfigs": { + "description": "Optional. Repeated network configurations for the TPU node.", + "items": { + "$ref": "NetworkConfig" + }, + "type": "array" + }, "networkEndpoints": { "description": "Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.", "items": { diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index 40d6d2092e2..075bc86b08f 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -1073,6 +1073,8 @@ type Node struct { Name string `json:"name,omitempty"` // NetworkConfig: Network configurations for the TPU node. NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"` + // NetworkConfigs: Optional. Repeated network configurations for the TPU node. + NetworkConfigs []*NetworkConfig `json:"networkConfigs,omitempty"` // NetworkEndpoints: Output only. The network endpoints where TPU workers can // be accessed and sent work. It is recommended that runtime clients of the // node reach out to the 0th entry in this map first. diff --git a/walletobjects/v1/walletobjects-api.json b/walletobjects/v1/walletobjects-api.json index 5f4bc0ea1a8..59e441f270b 100644 --- a/walletobjects/v1/walletobjects-api.json +++ b/walletobjects/v1/walletobjects-api.json @@ -2681,7 +2681,7 @@ } } }, - "revision": "20240913", + "revision": "20240919", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -3906,6 +3906,7 @@ "description": "Translated strings for the issuer_name. Recommended maximum length is 20 characters to ensure full string is displayed on smaller screens." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint" @@ -4226,6 +4227,7 @@ "description": "Links module data. If links module data is also defined on the class, both will be displayed." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint" @@ -4975,6 +4977,7 @@ "description": "Links module data. If links module data is also defined on the class, both will be displayed." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint" @@ -5837,6 +5840,7 @@ "description": "Links module data. If links module data is also defined on the class, both will be displayed." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint" @@ -6673,6 +6677,7 @@ "description": "Links module data. If links module data is also defined on the class, both will be displayed." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint" @@ -9036,6 +9041,7 @@ "description": "Links module data. If links module data is also defined on the class, both will be displayed." }, "locations": { + "deprecated": true, "description": "Note: This field is currently not supported to trigger geo notifications.", "items": { "$ref": "LatLongPoint"