Current section

54 Versions

Jump to

Compare versions

6 files changed
+106 additions
-58 deletions
  @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
11 11
12 12 ```elixir
13 13 def deps do
14 - [{:google_api_storage, "~> 0.30"}]
14 + [{:google_api_storage, "~> 0.31"}]
15 15 end
16 16 ```
  @@ -5,61 +5,62 @@
5 5 {<<"elixir">>,<<"~> 1.6">>}.
6 6 {<<"files">>,
7 7 [<<"lib">>,<<"lib/google_api">>,<<"lib/google_api/storage">>,
8 - <<"lib/google_api/storage/v1">>,<<"lib/google_api/storage/v1/model">>,
9 - <<"lib/google_api/storage/v1/model/hmac_keys_metadata.ex">>,
10 - <<"lib/google_api/storage/v1/model/bucket_access_control.ex">>,
11 - <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_condition.ex">>,
12 - <<"lib/google_api/storage/v1/model/bucket_iam_configuration_bucket_policy_only.ex">>,
13 - <<"lib/google_api/storage/v1/model/rewrite_response.ex">>,
14 - <<"lib/google_api/storage/v1/model/bucket_cors.ex">>,
15 - <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_action.ex">>,
16 - <<"lib/google_api/storage/v1/model/objects.ex">>,
17 - <<"lib/google_api/storage/v1/model/bucket_billing.ex">>,
18 - <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule.ex">>,
19 - <<"lib/google_api/storage/v1/model/object_owner.ex">>,
20 - <<"lib/google_api/storage/v1/model/compose_request_source_objects_object_preconditions.ex">>,
21 - <<"lib/google_api/storage/v1/model/test_iam_permissions_response.ex">>,
22 - <<"lib/google_api/storage/v1/model/bucket_iam_configuration_uniform_bucket_level_access.ex">>,
23 - <<"lib/google_api/storage/v1/model/bucket_access_controls.ex">>,
24 - <<"lib/google_api/storage/v1/model/compose_request.ex">>,
25 - <<"lib/google_api/storage/v1/model/object_access_control_project_team.ex">>,
26 - <<"lib/google_api/storage/v1/model/hmac_key.ex">>,
27 - <<"lib/google_api/storage/v1/model/notification.ex">>,
28 - <<"lib/google_api/storage/v1/model/bucket_iam_configuration.ex">>,
29 - <<"lib/google_api/storage/v1/model/notifications.ex">>,
30 - <<"lib/google_api/storage/v1/model/bucket_encryption.ex">>,
31 - <<"lib/google_api/storage/v1/model/bucket_owner.ex">>,
32 - <<"lib/google_api/storage/v1/model/channel.ex">>,
33 - <<"lib/google_api/storage/v1/model/bucket_logging.ex">>,
34 - <<"lib/google_api/storage/v1/model/expr.ex">>,
35 - <<"lib/google_api/storage/v1/model/bucket_lifecycle.ex">>,
36 - <<"lib/google_api/storage/v1/model/object_customer_encryption.ex">>,
37 - <<"lib/google_api/storage/v1/model/bucket_retention_policy.ex">>,
38 - <<"lib/google_api/storage/v1/model/service_account.ex">>,
39 - <<"lib/google_api/storage/v1/model/bucket.ex">>,
40 - <<"lib/google_api/storage/v1/model/object_access_controls.ex">>,
41 - <<"lib/google_api/storage/v1/model/hmac_key_metadata.ex">>,
42 - <<"lib/google_api/storage/v1/model/bucket_website.ex">>,
43 - <<"lib/google_api/storage/v1/model/bucket_versioning.ex">>,
44 - <<"lib/google_api/storage/v1/model/compose_request_source_objects.ex">>,
45 - <<"lib/google_api/storage/v1/model/object_access_control.ex">>,
46 - <<"lib/google_api/storage/v1/model/policy_bindings.ex">>,
47 - <<"lib/google_api/storage/v1/model/policy.ex">>,
48 - <<"lib/google_api/storage/v1/model/bucket_access_control_project_team.ex">>,
49 - <<"lib/google_api/storage/v1/model/object.ex">>,
50 - <<"lib/google_api/storage/v1/model/buckets.ex">>,
8 + <<"lib/google_api/storage/v1">>,<<"lib/google_api/storage/v1/metadata.ex">>,
51 9 <<"lib/google_api/storage/v1/connection.ex">>,
52 10 <<"lib/google_api/storage/v1/api">>,
53 - <<"lib/google_api/storage/v1/api/channels.ex">>,
54 - <<"lib/google_api/storage/v1/api/projects.ex">>,
55 - <<"lib/google_api/storage/v1/api/objects.ex">>,
56 11 <<"lib/google_api/storage/v1/api/bucket_access_controls.ex">>,
57 - <<"lib/google_api/storage/v1/api/notifications.ex">>,
58 12 <<"lib/google_api/storage/v1/api/default_object_access_controls.ex">>,
59 - <<"lib/google_api/storage/v1/api/object_access_controls.ex">>,
13 + <<"lib/google_api/storage/v1/api/projects.ex">>,
60 14 <<"lib/google_api/storage/v1/api/buckets.ex">>,
61 - <<"lib/google_api/storage/v1/metadata.ex">>,<<"mix.exs">>,<<"README.md">>,
62 - <<"LICENSE">>]}.
15 + <<"lib/google_api/storage/v1/api/object_access_controls.ex">>,
16 + <<"lib/google_api/storage/v1/api/objects.ex">>,
17 + <<"lib/google_api/storage/v1/api/notifications.ex">>,
18 + <<"lib/google_api/storage/v1/api/channels.ex">>,
19 + <<"lib/google_api/storage/v1/model">>,
20 + <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_condition.ex">>,
21 + <<"lib/google_api/storage/v1/model/expr.ex">>,
22 + <<"lib/google_api/storage/v1/model/bucket_access_controls.ex">>,
23 + <<"lib/google_api/storage/v1/model/bucket_lifecycle.ex">>,
24 + <<"lib/google_api/storage/v1/model/object_owner.ex">>,
25 + <<"lib/google_api/storage/v1/model/hmac_keys_metadata.ex">>,
26 + <<"lib/google_api/storage/v1/model/compose_request.ex">>,
27 + <<"lib/google_api/storage/v1/model/bucket_encryption.ex">>,
28 + <<"lib/google_api/storage/v1/model/object.ex">>,
29 + <<"lib/google_api/storage/v1/model/bucket_cors.ex">>,
30 + <<"lib/google_api/storage/v1/model/object_access_control.ex">>,
31 + <<"lib/google_api/storage/v1/model/buckets.ex">>,
32 + <<"lib/google_api/storage/v1/model/bucket_website.ex">>,
33 + <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule.ex">>,
34 + <<"lib/google_api/storage/v1/model/policy_bindings.ex">>,
35 + <<"lib/google_api/storage/v1/model/compose_request_source_objects.ex">>,
36 + <<"lib/google_api/storage/v1/model/bucket_iam_configuration_bucket_policy_only.ex">>,
37 + <<"lib/google_api/storage/v1/model/object_access_control_project_team.ex">>,
38 + <<"lib/google_api/storage/v1/model/hmac_key.ex">>,
39 + <<"lib/google_api/storage/v1/model/bucket_owner.ex">>,
40 + <<"lib/google_api/storage/v1/model/bucket.ex">>,
41 + <<"lib/google_api/storage/v1/model/compose_request_source_objects_object_preconditions.ex">>,
42 + <<"lib/google_api/storage/v1/model/object_access_controls.ex">>,
43 + <<"lib/google_api/storage/v1/model/rewrite_response.ex">>,
44 + <<"lib/google_api/storage/v1/model/bucket_iam_configuration.ex">>,
45 + <<"lib/google_api/storage/v1/model/bucket_access_control.ex">>,
46 + <<"lib/google_api/storage/v1/model/service_account.ex">>,
47 + <<"lib/google_api/storage/v1/model/bucket_billing.ex">>,
48 + <<"lib/google_api/storage/v1/model/bucket_logging.ex">>,
49 + <<"lib/google_api/storage/v1/model/objects.ex">>,
50 + <<"lib/google_api/storage/v1/model/hmac_key_metadata.ex">>,
51 + <<"lib/google_api/storage/v1/model/bucket_custom_placement_config.ex">>,
52 + <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_action.ex">>,
53 + <<"lib/google_api/storage/v1/model/bucket_retention_policy.ex">>,
54 + <<"lib/google_api/storage/v1/model/channel.ex">>,
55 + <<"lib/google_api/storage/v1/model/notifications.ex">>,
56 + <<"lib/google_api/storage/v1/model/test_iam_permissions_response.ex">>,
57 + <<"lib/google_api/storage/v1/model/policy.ex">>,
58 + <<"lib/google_api/storage/v1/model/bucket_versioning.ex">>,
59 + <<"lib/google_api/storage/v1/model/bucket_iam_configuration_uniform_bucket_level_access.ex">>,
60 + <<"lib/google_api/storage/v1/model/bucket_access_control_project_team.ex">>,
61 + <<"lib/google_api/storage/v1/model/notification.ex">>,
62 + <<"lib/google_api/storage/v1/model/object_customer_encryption.ex">>,
63 + <<"mix.exs">>,<<"README.md">>,<<"LICENSE">>]}.
63 64 {<<"licenses">>,[<<"Apache 2.0">>]}.
64 65 {<<"links">>,
65 66 [{<<"GitHub">>,
  @@ -73,4 +74,4 @@
73 74 {<<"optional">>,false},
74 75 {<<"repository">>,<<"hexpm">>},
75 76 {<<"requirement">>,<<"~> 0.4">>}]]}.
76 - {<<"version">>,<<"0.30.0">>}.
77 + {<<"version">>,<<"0.31.0">>}.
  @@ -20,7 +20,7 @@ defmodule GoogleApi.Storage.V1 do
20 20 API client metadata for GoogleApi.Storage.V1.
21 21 """
22 22
23 - @discovery_revision "20210914"
23 + @discovery_revision "20210918"
24 24
25 25 def discovery_revision(), do: @discovery_revision
26 26 end
  @@ -24,6 +24,7 @@ defmodule GoogleApi.Storage.V1.Model.Bucket do
24 24 * `acl` (*type:* `list(GoogleApi.Storage.V1.Model.BucketAccessControl.t)`, *default:* `nil`) - Access controls on the bucket.
25 25 * `billing` (*type:* `GoogleApi.Storage.V1.Model.BucketBilling.t`, *default:* `nil`) - The bucket's billing configuration.
26 26 * `cors` (*type:* `list(GoogleApi.Storage.V1.Model.BucketCors.t)`, *default:* `nil`) - The bucket's Cross-Origin Resource Sharing (CORS) configuration.
27 + * `customPlacementConfig` (*type:* `GoogleApi.Storage.V1.Model.BucketCustomPlacementConfig.t`, *default:* `nil`) - The bucket's custom placement configuration for Custom Dual Regions.
27 28 * `defaultEventBasedHold` (*type:* `boolean()`, *default:* `nil`) - The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold's release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
28 29 * `defaultObjectAcl` (*type:* `list(GoogleApi.Storage.V1.Model.ObjectAccessControl.t)`, *default:* `nil`) - Default access controls to apply to new objects when no ACL is provided.
29 30 * `encryption` (*type:* `GoogleApi.Storage.V1.Model.BucketEncryption.t`, *default:* `nil`) - Encryption configuration for a bucket.
  @@ -49,7 +50,6 @@ defmodule GoogleApi.Storage.V1.Model.Bucket do
49 50 * `updated` (*type:* `DateTime.t`, *default:* `nil`) - The modification time of the bucket in RFC 3339 format.
50 51 * `versioning` (*type:* `GoogleApi.Storage.V1.Model.BucketVersioning.t`, *default:* `nil`) - The bucket's versioning configuration.
51 52 * `website` (*type:* `GoogleApi.Storage.V1.Model.BucketWebsite.t`, *default:* `nil`) - The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.
52 - * `zoneAffinity` (*type:* `list(String.t)`, *default:* `nil`) - The zone or zones from which the bucket is intended to use zonal quota. Requests for data from outside the specified affinities are still allowed but won't be able to use zonal quota. The zone or zones need to be within the bucket location otherwise the requests will fail with a 400 Bad Request response.
53 53 """
54 54
55 55 use GoogleApi.Gax.ModelBase
  @@ -58,6 +58,8 @@ defmodule GoogleApi.Storage.V1.Model.Bucket do
58 58 :acl => list(GoogleApi.Storage.V1.Model.BucketAccessControl.t()) | nil,
59 59 :billing => GoogleApi.Storage.V1.Model.BucketBilling.t() | nil,
60 60 :cors => list(GoogleApi.Storage.V1.Model.BucketCors.t()) | nil,
61 + :customPlacementConfig =>
62 + GoogleApi.Storage.V1.Model.BucketCustomPlacementConfig.t() | nil,
61 63 :defaultEventBasedHold => boolean() | nil,
62 64 :defaultObjectAcl => list(GoogleApi.Storage.V1.Model.ObjectAccessControl.t()) | nil,
63 65 :encryption => GoogleApi.Storage.V1.Model.BucketEncryption.t() | nil,
  @@ -82,13 +84,13 @@ defmodule GoogleApi.Storage.V1.Model.Bucket do
82 84 :timeCreated => DateTime.t() | nil,
83 85 :updated => DateTime.t() | nil,
84 86 :versioning => GoogleApi.Storage.V1.Model.BucketVersioning.t() | nil,
85 - :website => GoogleApi.Storage.V1.Model.BucketWebsite.t() | nil,
86 - :zoneAffinity => list(String.t()) | nil
87 + :website => GoogleApi.Storage.V1.Model.BucketWebsite.t() | nil
87 88 }
88 89
89 90 field(:acl, as: GoogleApi.Storage.V1.Model.BucketAccessControl, type: :list)
90 91 field(:billing, as: GoogleApi.Storage.V1.Model.BucketBilling)
91 92 field(:cors, as: GoogleApi.Storage.V1.Model.BucketCors, type: :list)
93 + field(:customPlacementConfig, as: GoogleApi.Storage.V1.Model.BucketCustomPlacementConfig)
92 94 field(:defaultEventBasedHold)
93 95 field(:defaultObjectAcl, as: GoogleApi.Storage.V1.Model.ObjectAccessControl, type: :list)
94 96 field(:encryption, as: GoogleApi.Storage.V1.Model.BucketEncryption)
  @@ -114,7 +116,6 @@ defmodule GoogleApi.Storage.V1.Model.Bucket do
114 116 field(:updated, as: DateTime)
115 117 field(:versioning, as: GoogleApi.Storage.V1.Model.BucketVersioning)
116 118 field(:website, as: GoogleApi.Storage.V1.Model.BucketWebsite)
117 - field(:zoneAffinity, type: :list)
118 119 end
119 120
120 121 defimpl Poison.Decoder, for: GoogleApi.Storage.V1.Model.Bucket do
  @@ -0,0 +1,46 @@
1 + # Copyright 2019 Google LLC
2 + #
3 + # Licensed under the Apache License, Version 2.0 (the "License");
4 + # you may not use this file except in compliance with the License.
5 + # You may obtain a copy of the License at
6 + #
7 + # http://www.apache.org/licenses/LICENSE-2.0
8 + #
9 + # Unless required by applicable law or agreed to in writing, software
10 + # distributed under the License is distributed on an "AS IS" BASIS,
11 + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 + # See the License for the specific language governing permissions and
13 + # limitations under the License.
14 +
15 + # NOTE: This file is auto generated by the elixir code generator program.
16 + # Do not edit this file manually.
17 +
18 + defmodule GoogleApi.Storage.V1.Model.BucketCustomPlacementConfig do
19 + @moduledoc """
20 + The bucket's custom placement configuration for Custom Dual Regions.
21 +
22 + ## Attributes
23 +
24 + * `dataLocations` (*type:* `list(String.t)`, *default:* `nil`) - The list of regional locations in which data is placed.
25 + """
26 +
27 + use GoogleApi.Gax.ModelBase
28 +
29 + @type t :: %__MODULE__{
30 + :dataLocations => list(String.t()) | nil
31 + }
32 +
33 + field(:dataLocations, type: :list)
34 + end
35 +
36 + defimpl Poison.Decoder, for: GoogleApi.Storage.V1.Model.BucketCustomPlacementConfig do
37 + def decode(value, options) do
38 + GoogleApi.Storage.V1.Model.BucketCustomPlacementConfig.decode(value, options)
39 + end
40 + end
41 +
42 + defimpl Poison.Encoder, for: GoogleApi.Storage.V1.Model.BucketCustomPlacementConfig do
43 + def encode(value, options) do
44 + GoogleApi.Gax.ModelBase.encode(value, options)
45 + end
46 + end
Loading more files…