Skip to content

Commit

Permalink
feat: Automated regeneration of File client (#12070)
Browse files Browse the repository at this point in the history
Auto-created at 2024-09-02 13:16:13 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Sep 2, 2024
1 parent 7ea5a32 commit f1ff044
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion clients/file/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
4 changes: 2 additions & 2 deletions clients/file/lib/google_api/file/v1/api/projects.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -848,7 +848,7 @@ defmodule GoogleApi.File.V1.Api.Projects do
end

@doc """
Promote an standby instance (replica).
Promote the standby instance (replica).
## Parameters
Expand Down
2 changes: 1 addition & 1 deletion clients/file/lib/google_api/file/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion clients/file/lib/google_api/file/v1/model/backup.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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}`.
Expand All @@ -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
Expand All @@ -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,
Expand All @@ -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)
Expand Down
13 changes: 11 additions & 2 deletions clients/file/lib/google_api/file/v1/model/instance.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,40 @@ 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.
* `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - 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 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.
"""

use GoogleApi.Gax.ModelBase

@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,
:kmsKeyName => String.t() | nil,
: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,
Expand All @@ -61,13 +67,16 @@ 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)
field(:kmsKeyName)
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)
Expand Down
2 changes: 1 addition & 1 deletion clients/file/lib/google_api/file/v1/model/replication.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

Expand Down
2 changes: 1 addition & 1 deletion clients/file/lib/google_api/file/v1/model/snapshot.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion clients/file/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.File.Mixfile do
use Mix.Project

@version "0.32.0"
@version "0.33.0"

def project() do
[
Expand Down

0 comments on commit f1ff044

Please sign in to comment.