From f1ff044c5619970bee18d44cf8a7da2f69e555dc Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 2 Sep 2024 06:18:19 -0700 Subject: [PATCH] feat: Automated regeneration of File client (#12070) Auto-created at 2024-09-02 13:16:13 +0000 using the toys pull request generator. --- clients/file/README.md | 2 +- clients/file/lib/google_api/file/v1/api/projects.ex | 4 ++-- clients/file/lib/google_api/file/v1/metadata.ex | 2 +- clients/file/lib/google_api/file/v1/model/backup.ex | 5 ++++- .../file/lib/google_api/file/v1/model/instance.ex | 13 +++++++++++-- .../lib/google_api/file/v1/model/replication.ex | 2 +- .../file/lib/google_api/file/v1/model/snapshot.ex | 2 +- clients/file/mix.exs | 2 +- 8 files changed, 22 insertions(+), 10 deletions(-) diff --git a/clients/file/README.md b/clients/file/README.md index 07c6f85806..7200baba09 100644 --- a/clients/file/README.md +++ b/clients/file/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_file, "~> 0.32"}] + [{:google_api_file, "~> 0.33"}] end ``` diff --git a/clients/file/lib/google_api/file/v1/api/projects.ex b/clients/file/lib/google_api/file/v1/api/projects.ex index 1aa88ec9c4..0ea32d8fe9 100644 --- a/clients/file/lib/google_api/file/v1/api/projects.ex +++ b/clients/file/lib/google_api/file/v1/api/projects.ex @@ -797,7 +797,7 @@ defmodule GoogleApi.File.V1.Api.Projects do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:updateMask` (*type:* `String.t`) - 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" + * `:updateMask` (*type:* `String.t`) - 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" * `:body` (*type:* `GoogleApi.File.V1.Model.Instance.t`) - * `opts` (*type:* `keyword()`) - Call options @@ -848,7 +848,7 @@ defmodule GoogleApi.File.V1.Api.Projects do end @doc """ - Promote an standby instance (replica). + Promote the standby instance (replica). ## Parameters diff --git a/clients/file/lib/google_api/file/v1/metadata.ex b/clients/file/lib/google_api/file/v1/metadata.ex index 3ffa578829..eb05d79013 100644 --- a/clients/file/lib/google_api/file/v1/metadata.ex +++ b/clients/file/lib/google_api/file/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.File.V1 do API client metadata for GoogleApi.File.V1. """ - @discovery_revision "20240716" + @discovery_revision "20240821" def discovery_revision(), do: @discovery_revision end diff --git a/clients/file/lib/google_api/file/v1/model/backup.ex b/clients/file/lib/google_api/file/v1/model/backup.ex index c318f70719..1e0292c932 100644 --- a/clients/file/lib/google_api/file/v1/model/backup.ex +++ b/clients/file/lib/google_api/file/v1/model/backup.ex @@ -25,6 +25,7 @@ defmodule GoogleApi.File.V1.Model.Backup do * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the backup was created. * `description` (*type:* `String.t`, *default:* `nil`) - A description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected. * `downloadBytes` (*type:* `String.t`, *default:* `nil`) - Output only. Amount of bytes that will be downloaded if the backup is restored. This may be different than storage bytes, since sequential backups of the same disk will share storage. + * `fileSystemProtocol` (*type:* `String.t`, *default:* `nil`) - Output only. The file system protocol of the source Filestore instance that this backup is created from. * `kmsKey` (*type:* `String.t`, *default:* `nil`) - Immutable. KMS key name used for data encryption. * `labels` (*type:* `map()`, *default:* `nil`) - Resource labels to represent user provided metadata. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the backup, in the format `projects/{project_number}/locations/{location_id}/backups/{backup_id}`. @@ -35,7 +36,7 @@ defmodule GoogleApi.File.V1.Model.Backup do * `sourceInstanceTier` (*type:* `String.t`, *default:* `nil`) - Output only. The service tier of the source Filestore instance that this backup is created from. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The backup state. * `storageBytes` (*type:* `String.t`, *default:* `nil`) - Output only. The size of the storage used by the backup. As backups share storage, this number is expected to change with backup creation/deletion. - * `tags` (*type:* `map()`, *default:* `nil`) - Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" + * `tags` (*type:* `map()`, *default:* `nil`) - Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" """ use GoogleApi.Gax.ModelBase @@ -45,6 +46,7 @@ defmodule GoogleApi.File.V1.Model.Backup do :createTime => DateTime.t() | nil, :description => String.t() | nil, :downloadBytes => String.t() | nil, + :fileSystemProtocol => String.t() | nil, :kmsKey => String.t() | nil, :labels => map() | nil, :name => String.t() | nil, @@ -62,6 +64,7 @@ defmodule GoogleApi.File.V1.Model.Backup do field(:createTime, as: DateTime) field(:description) field(:downloadBytes) + field(:fileSystemProtocol) field(:kmsKey) field(:labels, type: :map) field(:name) diff --git a/clients/file/lib/google_api/file/v1/model/instance.ex b/clients/file/lib/google_api/file/v1/model/instance.ex index 27cbc8da05..9149792939 100644 --- a/clients/file/lib/google_api/file/v1/model/instance.ex +++ b/clients/file/lib/google_api/file/v1/model/instance.ex @@ -22,6 +22,8 @@ defmodule GoogleApi.File.V1.Model.Instance do ## Attributes * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the instance was created. + * `deletionProtectionEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates whether the instance is protected against deletion. + * `deletionProtectionReason` (*type:* `String.t`, *default:* `nil`) - Optional. The reason for enabling deletion protection. * `description` (*type:* `String.t`, *default:* `nil`) - The description of the instance (2048 characters or less). * `etag` (*type:* `String.t`, *default:* `nil`) - Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other. * `fileShares` (*type:* `list(GoogleApi.File.V1.Model.FileShareConfig.t)`, *default:* `nil`) - File system shares on the instance. For this version, only a single file share is supported. @@ -29,13 +31,14 @@ defmodule GoogleApi.File.V1.Model.Instance do * `labels` (*type:* `map()`, *default:* `nil`) - Resource labels to represent user provided metadata. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance}`. * `networks` (*type:* `list(GoogleApi.File.V1.Model.NetworkConfig.t)`, *default:* `nil`) - VPC networks to which the instance is connected. For this version, only a single network is supported. - * `replication` (*type:* `GoogleApi.File.V1.Model.Replication.t`, *default:* `nil`) - Optional. Replicaition configuration. + * `protocol` (*type:* `String.t`, *default:* `nil`) - 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`. + * `replication` (*type:* `GoogleApi.File.V1.Model.Replication.t`, *default:* `nil`) - Optional. Replication configuration. * `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use. * `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The instance state. * `statusMessage` (*type:* `String.t`, *default:* `nil`) - Output only. Additional information about the instance state, if available. * `suspensionReasons` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Field indicates all the reasons the instance is in "SUSPENDED" state. - * `tags` (*type:* `map()`, *default:* `nil`) - Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" + * `tags` (*type:* `map()`, *default:* `nil`) - Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" * `tier` (*type:* `String.t`, *default:* `nil`) - The service tier of the instance. """ @@ -43,6 +46,8 @@ defmodule GoogleApi.File.V1.Model.Instance do @type t :: %__MODULE__{ :createTime => DateTime.t() | nil, + :deletionProtectionEnabled => boolean() | nil, + :deletionProtectionReason => String.t() | nil, :description => String.t() | nil, :etag => String.t() | nil, :fileShares => list(GoogleApi.File.V1.Model.FileShareConfig.t()) | nil, @@ -50,6 +55,7 @@ defmodule GoogleApi.File.V1.Model.Instance do :labels => map() | nil, :name => String.t() | nil, :networks => list(GoogleApi.File.V1.Model.NetworkConfig.t()) | nil, + :protocol => String.t() | nil, :replication => GoogleApi.File.V1.Model.Replication.t() | nil, :satisfiesPzi => boolean() | nil, :satisfiesPzs => boolean() | nil, @@ -61,6 +67,8 @@ defmodule GoogleApi.File.V1.Model.Instance do } field(:createTime, as: DateTime) + field(:deletionProtectionEnabled) + field(:deletionProtectionReason) field(:description) field(:etag) field(:fileShares, as: GoogleApi.File.V1.Model.FileShareConfig, type: :list) @@ -68,6 +76,7 @@ defmodule GoogleApi.File.V1.Model.Instance do field(:labels, type: :map) field(:name) field(:networks, as: GoogleApi.File.V1.Model.NetworkConfig, type: :list) + field(:protocol) field(:replication, as: GoogleApi.File.V1.Model.Replication) field(:satisfiesPzi) field(:satisfiesPzs) diff --git a/clients/file/lib/google_api/file/v1/model/replication.ex b/clients/file/lib/google_api/file/v1/model/replication.ex index c4b5a54594..98b56f72f2 100644 --- a/clients/file/lib/google_api/file/v1/model/replication.ex +++ b/clients/file/lib/google_api/file/v1/model/replication.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.File.V1.Model.Replication do ## Attributes - * `replicas` (*type:* `list(GoogleApi.File.V1.Model.ReplicaConfig.t)`, *default:* `nil`) - Optional. Replicas configuration on the instance. For now, only a single replica config is supported. + * `replicas` (*type:* `list(GoogleApi.File.V1.Model.ReplicaConfig.t)`, *default:* `nil`) - Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported. * `role` (*type:* `String.t`, *default:* `nil`) - Optional. The replication role. """ diff --git a/clients/file/lib/google_api/file/v1/model/snapshot.ex b/clients/file/lib/google_api/file/v1/model/snapshot.ex index 29ed6e9acf..9ef469fb3e 100644 --- a/clients/file/lib/google_api/file/v1/model/snapshot.ex +++ b/clients/file/lib/google_api/file/v1/model/snapshot.ex @@ -27,7 +27,7 @@ defmodule GoogleApi.File.V1.Model.Snapshot do * `labels` (*type:* `map()`, *default:* `nil`) - Resource labels to represent user provided metadata. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The snapshot state. - * `tags` (*type:* `map()`, *default:* `nil`) - Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" + * `tags` (*type:* `map()`, *default:* `nil`) - Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing" """ use GoogleApi.Gax.ModelBase diff --git a/clients/file/mix.exs b/clients/file/mix.exs index e106670803..846db71c3c 100644 --- a/clients/file/mix.exs +++ b/clients/file/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.File.Mixfile do use Mix.Project - @version "0.32.0" + @version "0.33.0" def project() do [