Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of Storage client #12176

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/storage/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_storage, "~> 0.41"}]
[{:google_api_storage, "~> 0.42"}]
end
```

Expand Down
4 changes: 4 additions & 0 deletions clients/storage/lib/google_api/storage/v1/api/objects.ex
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ defmodule GoogleApi.Storage.V1.Api.Objects do
* `:ifMetagenerationMatch` (*type:* `String.t`) - Makes the operation conditional on whether the object's current metageneration matches the given value.
* `:ifMetagenerationNotMatch` (*type:* `String.t`) - Makes the operation conditional on whether the object's current metageneration does not match the given value.
* `:projection` (*type:* `String.t`) - Set of properties to return. Defaults to noAcl.
* `:restoreToken` (*type:* `String.t`) - 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.
* `:softDeleted` (*type:* `boolean()`) - 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).
* `:userProject` (*type:* `String.t`) - The project to be billed for this request. Required for Requester Pays buckets.
* `opts` (*type:* `keyword()`) - Call options
Expand Down Expand Up @@ -385,6 +386,7 @@ defmodule GoogleApi.Storage.V1.Api.Objects do
:ifMetagenerationMatch => :query,
:ifMetagenerationNotMatch => :query,
:projection => :query,
:restoreToken => :query,
:softDeleted => :query,
:userProject => :query
}
Expand Down Expand Up @@ -1010,6 +1012,7 @@ defmodule GoogleApi.Storage.V1.Api.Objects do
* `:ifMetagenerationMatch` (*type:* `String.t`) - Makes the operation conditional on whether the object's one live metageneration matches the given value.
* `:ifMetagenerationNotMatch` (*type:* `String.t`) - Makes the operation conditional on whether none of the object's live metagenerations match the given value.
* `:projection` (*type:* `String.t`) - Set of properties to return. Defaults to full.
* `:restoreToken` (*type:* `String.t`) - 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.
* `:userProject` (*type:* `String.t`) - The project to be billed for this request. Required for Requester Pays buckets.
* `opts` (*type:* `keyword()`) - Call options

Expand Down Expand Up @@ -1053,6 +1056,7 @@ defmodule GoogleApi.Storage.V1.Api.Objects do
:ifMetagenerationMatch => :query,
:ifMetagenerationNotMatch => :query,
:projection => :query,
:restoreToken => :query,
:userProject => :query
}

Expand Down
2 changes: 1 addition & 1 deletion clients/storage/lib/google_api/storage/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Storage.V1 do
API client metadata for GoogleApi.Storage.V1.
"""

@discovery_revision "20240819"
@discovery_revision "20240916"

def discovery_revision(), do: @discovery_revision
end
3 changes: 3 additions & 0 deletions clients/storage/lib/google_api/storage/v1/model/object.ex
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ defmodule GoogleApi.Storage.V1.Model.Object do
* `componentCount` (*type:* `integer()`, *default:* `nil`) - Number of underlying components that make up this object. Components are accumulated by compose operations.
* `storageClass` (*type:* `String.t`, *default:* `nil`) - Storage class of the object.
* `bucket` (*type:* `String.t`, *default:* `nil`) - The name of the bucket containing this object.
* `restoreToken` (*type:* `String.t`, *default:* `nil`) - 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.
* `cacheControl` (*type:* `String.t`, *default:* `nil`) - Cache-Control directive for the object data. If omitted, and the object is accessible to all anonymous users, the default will be public, max-age=3600.
* `hardDeleteTime` (*type:* `DateTime.t`, *default:* `nil`) - This is the time (in the future) when the soft-deleted object will no longer be restorable. It is equal to the soft delete time plus the current soft delete retention duration of the bucket.
* `crc32c` (*type:* `String.t`, *default:* `nil`) - CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see [Data Validation and Change Detection](https://cloud.google.com/storage/docs/data-validation).
Expand Down Expand Up @@ -88,6 +89,7 @@ defmodule GoogleApi.Storage.V1.Model.Object do
:componentCount => integer() | nil,
:storageClass => String.t() | nil,
:bucket => String.t() | nil,
:restoreToken => String.t() | nil,
:cacheControl => String.t() | nil,
:hardDeleteTime => DateTime.t() | nil,
:crc32c => String.t() | nil,
Expand Down Expand Up @@ -125,6 +127,7 @@ defmodule GoogleApi.Storage.V1.Model.Object do
field(:componentCount)
field(:storageClass)
field(:bucket)
field(:restoreToken)
field(:cacheControl)
field(:hardDeleteTime, as: DateTime)
field(:crc32c)
Expand Down
2 changes: 1 addition & 1 deletion clients/storage/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Storage.Mixfile do
use Mix.Project

@version "0.41.0"
@version "0.42.0"

def project() do
[
Expand Down
Loading