Current section

54 Versions

Jump to

Compare versions

5 files changed
+68 additions
-5 deletions
  @@ -25,6 +25,7 @@
25 25 <<"lib/google_api/storage/v1/model/bucket_encryption.ex">>,
26 26 <<"lib/google_api/storage/v1/model/bucket_iam_configuration.ex">>,
27 27 <<"lib/google_api/storage/v1/model/bucket_iam_configuration_bucket_policy_only.ex">>,
28 + <<"lib/google_api/storage/v1/model/bucket_iam_configuration_uniform_bucket_level_access.ex">>,
28 29 <<"lib/google_api/storage/v1/model/bucket_lifecycle.ex">>,
29 30 <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule.ex">>,
30 31 <<"lib/google_api/storage/v1/model/bucket_lifecycle_rule_action.ex">>,
  @@ -70,4 +71,4 @@
70 71 {<<"optional">>,false},
71 72 {<<"repository">>,<<"hexpm">>},
72 73 {<<"requirement">>,<<"~> 0.1.0">>}]]}.
73 - {<<"version">>,<<"0.8.0">>}.
74 + {<<"version">>,<<"0.9.0">>}.
  @@ -22,16 +22,24 @@ defmodule GoogleApi.Storage.V1.Model.BucketIamConfiguration do
22 22 ## Attributes
23 23
24 24 * `bucketPolicyOnly` (*type:* `GoogleApi.Storage.V1.Model.BucketIamConfigurationBucketPolicyOnly.t`, *default:* `nil`) - The bucket's Bucket Policy Only configuration.
25 + * `uniformBucketLevelAccess` (*type:* `GoogleApi.Storage.V1.Model.BucketIamConfigurationUniformBucketLevelAccess.t`, *default:* `nil`) - The bucket's uniform bucket-level access configuration.
25 26 """
26 27
27 28 use GoogleApi.Gax.ModelBase
28 29
29 30 @type t :: %__MODULE__{
30 31 :bucketPolicyOnly =>
31 - GoogleApi.Storage.V1.Model.BucketIamConfigurationBucketPolicyOnly.t()
32 + GoogleApi.Storage.V1.Model.BucketIamConfigurationBucketPolicyOnly.t(),
33 + :uniformBucketLevelAccess =>
34 + GoogleApi.Storage.V1.Model.BucketIamConfigurationUniformBucketLevelAccess.t()
32 35 }
33 36
34 37 field(:bucketPolicyOnly, as: GoogleApi.Storage.V1.Model.BucketIamConfigurationBucketPolicyOnly)
38 +
39 + field(
40 + :uniformBucketLevelAccess,
41 + as: GoogleApi.Storage.V1.Model.BucketIamConfigurationUniformBucketLevelAccess
42 + )
35 43 end
36 44
37 45 defimpl Poison.Decoder, for: GoogleApi.Storage.V1.Model.BucketIamConfiguration do
  @@ -21,8 +21,8 @@ defmodule GoogleApi.Storage.V1.Model.BucketIamConfigurationBucketPolicyOnly do
21 21
22 22 ## Attributes
23 23
24 - * `enabled` (*type:* `boolean()`, *default:* `nil`) - If set, access checks only use bucket-level IAM policies or above.
25 - * `lockedTime` (*type:* `DateTime.t`, *default:* `nil`) - The deadline time for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
24 + * `enabled` (*type:* `boolean()`, *default:* `nil`) - If set, access is controlled only by bucket-level or above IAM policies.
25 + * `lockedTime` (*type:* `DateTime.t`, *default:* `nil`) - The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.
26 26 """
27 27
28 28 use GoogleApi.Gax.ModelBase
  @@ -0,0 +1,54 @@
1 + # Copyright 2019 Google LLC
2 + #
3 + # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
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 &quot;AS IS&quot; 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 class is auto generated by the elixir code generator program.
16 + # Do not edit the class manually.
17 +
18 + defmodule GoogleApi.Storage.V1.Model.BucketIamConfigurationUniformBucketLevelAccess do
19 + @moduledoc """
20 + The bucket's uniform bucket-level access configuration.
21 +
22 + ## Attributes
23 +
24 + * `enabled` (*type:* `boolean()`, *default:* `nil`) - If set, access is controlled only by bucket-level or above IAM policies.
25 + * `lockedTime` (*type:* `DateTime.t`, *default:* `nil`) - The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
26 + """
27 +
28 + use GoogleApi.Gax.ModelBase
29 +
30 + @type t :: %__MODULE__{
31 + :enabled => boolean(),
32 + :lockedTime => DateTime.t()
33 + }
34 +
35 + field(:enabled)
36 + field(:lockedTime, as: DateTime)
37 + end
38 +
39 + defimpl Poison.Decoder,
40 + for: GoogleApi.Storage.V1.Model.BucketIamConfigurationUniformBucketLevelAccess do
41 + def decode(value, options) do
42 + GoogleApi.Storage.V1.Model.BucketIamConfigurationUniformBucketLevelAccess.decode(
43 + value,
44 + options
45 + )
46 + end
47 + end
48 +
49 + defimpl Poison.Encoder,
50 + for: GoogleApi.Storage.V1.Model.BucketIamConfigurationUniformBucketLevelAccess do
51 + def encode(value, options) do
52 + GoogleApi.Gax.ModelBase.encode(value, options)
53 + end
54 + end
  @@ -1,7 +1,7 @@
1 1 defmodule GoogleApi.Storage.V1.Mixfile do
2 2 use Mix.Project
3 3
4 - @version "0.8.0"
4 + @version "0.9.0"
5 5
6 6 def project() do
7 7 [