From 00da46b85ae39f230eae42e20e527fa2fa593d8c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 3 Sep 2024 00:24:18 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2768) --- airquality/v1/airquality-api.json | 8 ++-- airquality/v1/airquality-gen.go | 8 ++-- file/v1/file-api.json | 57 +++++++++++++++++++++++----- file/v1/file-gen.go | 62 ++++++++++++++++++++++--------- 4 files changed, 99 insertions(+), 36 deletions(-) diff --git a/airquality/v1/airquality-api.json b/airquality/v1/airquality-api.json index 44e54f59e21..f7942f8533c 100644 --- a/airquality/v1/airquality-api.json +++ b/airquality/v1/airquality-api.json @@ -250,7 +250,7 @@ } } }, - "revision": "20240611", + "revision": "20240901", "rootUrl": "https://airquality.googleapis.com/", "schemas": { "AdditionalInfo": { @@ -350,7 +350,7 @@ "type": "string" }, "value": { - "description": "Value of pollutant concentration.", + "description": "Value of the pollutant concentration.", "format": "float", "type": "number" } @@ -849,7 +849,7 @@ "description": "Additional information about the pollutant." }, "code": { - "description": "The pollutant's code name. For example: \"so2\". A list of all available codes could be found [here](/maps/documentation/air-quality/pollutants#reported_pollutants).", + "description": "The pollutant's code name (for example, \"so2\"). For a list of supported pollutant codes, see [Reported pollutants](/maps/documentation/air-quality/pollutants#reported_pollutants).", "type": "string" }, "concentration": { @@ -861,7 +861,7 @@ "type": "string" }, "fullName": { - "description": "The pollutant's full name. For chemical compounds, this is the IUPAC name. Example: \"Sulfur Dioxide\". For more information about the IUPAC names table, see https://iupac.org/what-we-do/periodic-table-of-elements/", + "description": "The pollutant's full name. For chemical compounds, this is the IUPAC name. Example: \"Sulfur Dioxide\". For more information about the IUPAC names table, see https://iupac.org/what-we-do/periodic-table-of-elements/.", "type": "string" } }, diff --git a/airquality/v1/airquality-gen.go b/airquality/v1/airquality-gen.go index 88a2b1138c8..dfbbf06f406 100644 --- a/airquality/v1/airquality-gen.go +++ b/airquality/v1/airquality-gen.go @@ -399,7 +399,7 @@ type Concentration struct { // "MICROGRAMS_PER_CUBIC_METER" - The "µg/m^3" (micrograms per cubic meter) // concentration unit. Units string `json:"units,omitempty"` - // Value: Value of pollutant concentration. + // Value: Value of the pollutant concentration. Value float64 `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Units") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -1111,8 +1111,8 @@ func (s LookupHistoryResponse) MarshalJSON() ([]byte, error) { type Pollutant struct { // AdditionalInfo: Additional information about the pollutant. AdditionalInfo *AdditionalInfo `json:"additionalInfo,omitempty"` - // Code: The pollutant's code name. For example: "so2". A list of all available - // codes could be found here + // Code: The pollutant's code name (for example, "so2"). For a list of + // supported pollutant codes, see Reported pollutants // (/maps/documentation/air-quality/pollutants#reported_pollutants). Code string `json:"code,omitempty"` // Concentration: The pollutant's concentration level measured by one of the @@ -1122,7 +1122,7 @@ type Pollutant struct { DisplayName string `json:"displayName,omitempty"` // FullName: The pollutant's full name. For chemical compounds, this is the // IUPAC name. Example: "Sulfur Dioxide". For more information about the IUPAC - // names table, see https://iupac.org/what-we-do/periodic-table-of-elements/ + // names table, see https://iupac.org/what-we-do/periodic-table-of-elements/. FullName string `json:"fullName,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalInfo") to // unconditionally include in API requests. By default, fields with empty or diff --git a/file/v1/file-api.json b/file/v1/file-api.json index 020f642b7e6..6718a32f9c5 100644 --- a/file/v1/file-api.json +++ b/file/v1/file-api.json @@ -502,7 +502,7 @@ "type": "string" }, "updateMask": { - "description": "Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: * \"description\" * \"file_shares\" * \"labels\"", + "description": "Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields: * \"description\" * \"file_shares\" * \"labels\" * \"performance_config\" * \"deletion_protection_enabled\" * \"deletion_protection_reason\"", "format": "google-fieldmask", "location": "query", "type": "string" @@ -520,7 +520,7 @@ ] }, "promoteReplica": { - "description": "Promote an standby instance (replica).", + "description": "Promote the standby instance (replica).", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:promoteReplica", "httpMethod": "POST", "id": "file.projects.locations.instances.promoteReplica", @@ -902,7 +902,7 @@ } } }, - "revision": "20240716", + "revision": "20240821", "rootUrl": "https://file.googleapis.com/", "schemas": { "Backup": { @@ -931,6 +931,21 @@ "readOnly": true, "type": "string" }, + "fileSystemProtocol": { + "description": "Output only. The file system protocol of the source Filestore instance that this backup is created from.", + "enum": [ + "FILE_PROTOCOL_UNSPECIFIED", + "NFS_V3", + "NFS_V4_1" + ], + "enumDescriptions": [ + "FILE_PROTOCOL_UNSPECIFIED serves a \"not set\" default value when a FileProtocol is a separate field in a message.", + "NFS 3.0.", + "NFS 4.1." + ], + "readOnly": true, + "type": "string" + }, "kmsKey": { "description": "Immutable. KMS key name used for data encryption.", "type": "string" @@ -1023,7 +1038,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"", + "description": "Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"", "type": "object" } }, @@ -1410,6 +1425,14 @@ "readOnly": true, "type": "string" }, + "deletionProtectionEnabled": { + "description": "Optional. Indicates whether the instance is protected against deletion.", + "type": "boolean" + }, + "deletionProtectionReason": { + "description": "Optional. The reason for enabling deletion protection.", + "type": "string" + }, "description": { "description": "The description of the instance (2048 characters or less).", "type": "string" @@ -1448,9 +1471,23 @@ }, "type": "array" }, + "protocol": { + "description": "Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`.", + "enum": [ + "FILE_PROTOCOL_UNSPECIFIED", + "NFS_V3", + "NFS_V4_1" + ], + "enumDescriptions": [ + "FILE_PROTOCOL_UNSPECIFIED serves a \"not set\" default value when a FileProtocol is a separate field in a message.", + "NFS 3.0.", + "NFS 4.1." + ], + "type": "string" + }, "replication": { "$ref": "Replication", - "description": "Optional. Replicaition configuration." + "description": "Optional. Replication configuration." }, "satisfiesPzi": { "description": "Output only. Reserved for future use.", @@ -1520,7 +1557,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"", + "description": "Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"", "type": "object" }, "tier": { @@ -2001,7 +2038,7 @@ "id": "Replication", "properties": { "replicas": { - "description": "Optional. Replicas configuration on the instance. For now, only a single replica config is supported.", + "description": "Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.", "items": { "$ref": "ReplicaConfig" }, @@ -2016,8 +2053,8 @@ ], "enumDescriptions": [ "Role not set.", - "The instance is a Active replication member, functions as the replication source instance.", - "The instance is a Standby replication member, functions as the replication destination instance." + "The instance is the `ACTIVE` replication member, functions as the replication source instance.", + "The instance is the `STANDBY` replication member, functions as the replication destination instance." ], "type": "string" } @@ -2143,7 +2180,7 @@ "additionalProperties": { "type": "string" }, - "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"", + "description": "Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"", "type": "object" } }, diff --git a/file/v1/file-gen.go b/file/v1/file-gen.go index c512c6665a3..c7d8cd0cb20 100644 --- a/file/v1/file-gen.go +++ b/file/v1/file-gen.go @@ -237,6 +237,15 @@ type Backup struct { // backup is restored. This may be different than storage bytes, since // sequential backups of the same disk will share storage. DownloadBytes int64 `json:"downloadBytes,omitempty,string"` + // FileSystemProtocol: Output only. The file system protocol of the source + // Filestore instance that this backup is created from. + // + // Possible values: + // "FILE_PROTOCOL_UNSPECIFIED" - FILE_PROTOCOL_UNSPECIFIED serves a "not set" + // default value when a FileProtocol is a separate field in a message. + // "NFS_V3" - NFS 3.0. + // "NFS_V4_1" - NFS 4.1. + FileSystemProtocol string `json:"fileSystemProtocol,omitempty"` // KmsKey: Immutable. KMS key name used for data encryption. KmsKey string `json:"kmsKey,omitempty"` // Labels: Resource labels to represent user provided metadata. @@ -295,9 +304,9 @@ type Backup struct { // backups share storage, this number is expected to change with backup // creation/deletion. StorageBytes int64 `json:"storageBytes,omitempty,string"` - // Tags: Optional. Input only. Immutable. Tag keys/values directly bound to - // this resource. For example: "123/environment": "production", - // "123/costCenter": "marketing" + // Tags: Optional. Input only. Immutable. Tag key-value pairs are bound to this + // resource. For example: "123/environment": "production", "123/costCenter": + // "marketing" Tags map[string]string `json:"tags,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. @@ -847,6 +856,12 @@ func (s GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata) MarshalJSON( type Instance struct { // CreateTime: Output only. The time when the instance was created. CreateTime string `json:"createTime,omitempty"` + // DeletionProtectionEnabled: Optional. Indicates whether the instance is + // protected against deletion. + DeletionProtectionEnabled bool `json:"deletionProtectionEnabled,omitempty"` + // DeletionProtectionReason: Optional. The reason for enabling deletion + // protection. + DeletionProtectionReason string `json:"deletionProtectionReason,omitempty"` // Description: The description of the instance (2048 characters or less). Description string `json:"description,omitempty"` // Etag: Server-specified ETag for the instance resource to prevent @@ -865,7 +880,17 @@ type Instance struct { // Networks: VPC networks to which the instance is connected. For this version, // only a single network is supported. Networks []*NetworkConfig `json:"networks,omitempty"` - // Replication: Optional. Replicaition configuration. + // Protocol: Immutable. The protocol indicates the access protocol for all + // shares in the instance. This field is immutable and it cannot be changed + // after the instance has been created. Default value: `NFS_V3`. + // + // Possible values: + // "FILE_PROTOCOL_UNSPECIFIED" - FILE_PROTOCOL_UNSPECIFIED serves a "not set" + // default value when a FileProtocol is a separate field in a message. + // "NFS_V3" - NFS 3.0. + // "NFS_V4_1" - NFS 4.1. + Protocol string `json:"protocol,omitempty"` + // Replication: Optional. Replication configuration. Replication *Replication `json:"replication,omitempty"` // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` @@ -903,9 +928,9 @@ type Instance struct { // "KMS_KEY_ISSUE" - The KMS key used by the instance is either revoked or // denied access to. SuspensionReasons []string `json:"suspensionReasons,omitempty"` - // Tags: Optional. Input only. Immutable. Tag keys/values directly bound to - // this resource. For example: "123/environment": "production", - // "123/costCenter": "marketing" + // Tags: Optional. Input only. Immutable. Tag key-value pairs are bound to this + // resource. For example: "123/environment": "production", "123/costCenter": + // "marketing" Tags map[string]string `json:"tags,omitempty"` // Tier: The service tier of the instance. // @@ -1464,17 +1489,17 @@ func (s ReplicaConfig) MarshalJSON() ([]byte, error) { // Replication: Replication specifications. type Replication struct { - // Replicas: Optional. Replicas configuration on the instance. For now, only a - // single replica config is supported. + // Replicas: Optional. Replication configuration for the replica instance + // associated with this instance. Only a single replica is supported. Replicas []*ReplicaConfig `json:"replicas,omitempty"` // Role: Optional. The replication role. // // Possible values: // "ROLE_UNSPECIFIED" - Role not set. - // "ACTIVE" - The instance is a Active replication member, functions as the - // replication source instance. - // "STANDBY" - The instance is a Standby replication member, functions as the - // replication destination instance. + // "ACTIVE" - The instance is the `ACTIVE` replication member, functions as + // the replication source instance. + // "STANDBY" - The instance is the `STANDBY` replication member, functions as + // the replication destination instance. Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Replicas") to // unconditionally include in API requests. By default, fields with empty or @@ -1608,9 +1633,9 @@ type Snapshot struct { // "READY" - Snapshot is available for use. // "DELETING" - Snapshot is being deleted. State string `json:"state,omitempty"` - // Tags: Optional. Input only. Immutable. Tag keys/values directly bound to - // this resource. For example: "123/environment": "production", - // "123/costCenter": "marketing" + // Tags: Optional. Input only. Immutable. Tag key-value pairs are bound to this + // resource. For example: "123/environment": "production", "123/costCenter": + // "marketing" Tags map[string]string `json:"tags,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. @@ -3134,7 +3159,8 @@ func (r *ProjectsLocationsInstancesService) Patch(name string, instance *Instanc // UpdateMask sets the optional parameter "updateMask": Mask of fields to // update. At least one path must be supplied in this field. The elements of // the repeated paths field may only include these fields: * "description" * -// "file_shares" * "labels" +// "file_shares" * "labels" * "performance_config" * +// "deletion_protection_enabled" * "deletion_protection_reason" func (c *ProjectsLocationsInstancesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsInstancesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -3231,7 +3257,7 @@ type ProjectsLocationsInstancesPromoteReplicaCall struct { header_ http.Header } -// PromoteReplica: Promote an standby instance (replica). +// PromoteReplica: Promote the standby instance (replica). // // - name: The resource name of the instance, in the format // `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.