Skip to content

Commit 9f3f6cb

Browse files
feat: Automated regeneration of Storage client (googleapis#12554)
Auto-created at 2024-11-17 13:12:52 +0000 using the toys pull request generator.
1 parent f82342f commit 9f3f6cb

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

clients/storage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_storage, "~> 0.44"}]
14+
[{:google_api_storage, "~> 0.45"}]
1515
end
1616
```
1717

clients/storage/lib/google_api/storage/v1/api/buckets.ex

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,16 +603,20 @@ defmodule GoogleApi.Storage.V1.Api.Buckets do
603603
* `:quotaUser` (*type:* `String.t`) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
604604
* `:uploadType` (*type:* `String.t`) - Upload protocol for media (e.g. "media", "multipart", "resumable").
605605
* `:userIp` (*type:* `String.t`) - Deprecated. Please use quotaUser instead.
606+
* `:projection` (*type:* `String.t`) - Set of properties to return. Defaults to full.
606607
* `:userProject` (*type:* `String.t`) - The project to be billed for this request. Required for Requester Pays buckets.
607608
* `opts` (*type:* `keyword()`) - Call options
608609
609610
## Returns
610611
611-
* `{:ok, %{}}` on success
612+
* `{:ok, %GoogleApi.Storage.V1.Model.Bucket{}}` on success
612613
* `{:error, info}` on failure
613614
"""
614615
@spec storage_buckets_restore(Tesla.Env.client(), String.t(), String.t(), keyword(), keyword()) ::
615-
{:ok, nil} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
616+
{:ok, GoogleApi.Storage.V1.Model.Bucket.t()}
617+
| {:ok, Tesla.Env.t()}
618+
| {:ok, list()}
619+
| {:error, any()}
616620
def storage_buckets_restore(connection, bucket, generation, optional_params \\ [], opts \\ []) do
617621
optional_params_config = %{
618622
:alt => :query,
@@ -623,6 +627,7 @@ defmodule GoogleApi.Storage.V1.Api.Buckets do
623627
:quotaUser => :query,
624628
:uploadType => :query,
625629
:userIp => :query,
630+
:projection => :query,
626631
:userProject => :query
627632
}
628633

@@ -638,7 +643,7 @@ defmodule GoogleApi.Storage.V1.Api.Buckets do
638643

639644
connection
640645
|> Connection.execute(request)
641-
|> Response.decode(opts ++ [decode: false])
646+
|> Response.decode(opts ++ [struct: %GoogleApi.Storage.V1.Model.Bucket{}])
642647
end
643648

644649
@doc """

clients/storage/lib/google_api/storage/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Storage.V1 do
2020
API client metadata for GoogleApi.Storage.V1.
2121
"""
2222

23-
@discovery_revision "20241008"
23+
@discovery_revision "20241113"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/storage/lib/google_api/storage/v1/model/object.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.Storage.V1.Model.Object do
2525
* `customTime` (*type:* `DateTime.t`, *default:* `nil`) - A timestamp in RFC 3339 format specified by the user for an object.
2626
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the object. Required if not specified by URL parameter.
2727
* `timeStorageClassUpdated` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated.
28+
* `timeFinalized` (*type:* `DateTime.t`, *default:* `nil`) - The time when the object was finalized.
2829
* `temporaryHold` (*type:* `boolean()`, *default:* `nil`) - Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. A common use case of this flag is regulatory investigations where objects need to be retained while the investigation is ongoing. Note that unlike event-based hold, temporary hold does not impact retention expiration time of an object.
2930
* `timeDeleted` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the object became noncurrent in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
3031
* `retention` (*type:* `GoogleApi.Storage.V1.Model.ObjectRetention.t`, *default:* `nil`) - A collection of object level retention parameters.
@@ -66,6 +67,7 @@ defmodule GoogleApi.Storage.V1.Model.Object do
6667
:customTime => DateTime.t() | nil,
6768
:name => String.t() | nil,
6869
:timeStorageClassUpdated => DateTime.t() | nil,
70+
:timeFinalized => DateTime.t() | nil,
6971
:temporaryHold => boolean() | nil,
7072
:timeDeleted => DateTime.t() | nil,
7173
:retention => GoogleApi.Storage.V1.Model.ObjectRetention.t() | nil,
@@ -104,6 +106,7 @@ defmodule GoogleApi.Storage.V1.Model.Object do
104106
field(:customTime, as: DateTime)
105107
field(:name)
106108
field(:timeStorageClassUpdated, as: DateTime)
109+
field(:timeFinalized, as: DateTime)
107110
field(:temporaryHold)
108111
field(:timeDeleted, as: DateTime)
109112
field(:retention, as: GoogleApi.Storage.V1.Model.ObjectRetention)

clients/storage/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Storage.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.44.0"
21+
@version "0.45.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)