google-apis-secretmanager_v1 0.15.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52a0af4f63fc1cf14601f2d0297ab675fa199402d3180495718b13359c6f6007
4
- data.tar.gz: a1a194580391b1dfdc8467a414853544dd3d2b7e646c2acc3077f29771244830
3
+ metadata.gz: d4e1b1a89b73ddccb277656188c3c2805c9ca1ff51374cf3122c0310b158d58f
4
+ data.tar.gz: ce6905a9705d4f9a351491444a8f828b007ad194f5ad12bb18b2e7463ea3d062
5
5
  SHA512:
6
- metadata.gz: a5bd50d634ed9cc09e8f64a4c0ed08efb3d23dcb244cc5fa098b1f0ccd0857ff3d7055501fb0f189d7a9a2e463ee809c51d667f1b9b4c301d14a5354fde59df3
7
- data.tar.gz: '0290f445581b40563b8ff8c57ff1b31cd21c6b0ed7e1a63141999a507b1987b515f72beee064d74e43a8075ba1900422e98b58b7de2683694ae617cf2cb818cd'
6
+ metadata.gz: 810959d56e02ac177bcd61e06ac292220b3b615169c98ad65e56b6491de2aebf3f81a39559d13638e201a3c2a522c3bfac0682608a217f6ce6b3d1a910f3c25a
7
+ data.tar.gz: 861b3124a16970ee71faaadb7bbd22df9070c46c5773e6cea74331bb2813d4c46540d858943814f3f788c75d4d603bbc70103b14641d7480e7a9eb0a9d8ac090
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-secretmanager_v1
2
2
 
3
+ ### v0.19.0 (2022-01-21)
4
+
5
+ * Regenerated from discovery document revision 20220115
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.18.0 (2021-12-16)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.17.0 (2021-11-12)
13
+
14
+ * Regenerated from discovery document revision 20211105
15
+
16
+ ### v0.16.0 (2021-10-22)
17
+
18
+ * Regenerated from discovery document revision 20211015
19
+ * Unspecified changes
20
+
3
21
  ### v0.15.0 (2021-10-08)
4
22
 
5
23
  * Regenerated from discovery document revision 20211001
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/secretmanager_v1"
51
51
  client = Google::Apis::SecretmanagerV1::SecretManagerService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Secretmanager service in particular.)
67
67
 
@@ -181,7 +181,7 @@ module Google
181
181
  end
182
182
  end
183
183
 
184
- # Associates `members` with a `role`.
184
+ # Associates `members`, or principals, with a `role`.
185
185
  class Binding
186
186
  include Google::Apis::Core::Hashable
187
187
 
@@ -204,7 +204,7 @@ module Google
204
204
  # @return [Google::Apis::SecretmanagerV1::Expr]
205
205
  attr_accessor :condition
206
206
 
207
- # Specifies the identities requesting access for a Cloud Platform resource. `
207
+ # Specifies the principals requesting access for a Cloud Platform resource. `
208
208
  # members` can have the following values: * `allUsers`: A special identifier
209
209
  # that represents anyone who is on the internet; with or without a Google
210
210
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -234,8 +234,8 @@ module Google
234
234
  # @return [Array<String>]
235
235
  attr_accessor :members
236
236
 
237
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
238
- # , or `roles/owner`.
237
+ # Role that is assigned to the list of `members`, or principals. For example, `
238
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
239
239
  # Corresponds to the JSON property `role`
240
240
  # @return [String]
241
241
  attr_accessor :role
@@ -570,31 +570,31 @@ module Google
570
570
 
571
571
  # An Identity and Access Management (IAM) policy, which specifies access
572
572
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
573
- # A `binding` binds one or more `members` to a single `role`. Members can be
574
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
575
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
576
- # role or a user-created custom role. For some types of Google Cloud resources,
577
- # a `binding` can also specify a `condition`, which is a logical expression that
578
- # allows access to a resource only if the expression evaluates to `true`. A
579
- # condition can add constraints based on attributes of the request, the resource,
580
- # or both. To learn which resources support conditions in their IAM policies,
581
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
582
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
583
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
584
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
585
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
586
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
587
- # title": "expirable access", "description": "Does not grant access after Sep
588
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
589
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
590
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
591
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
592
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
593
- # roles/resourcemanager.organizationViewer condition: title: expirable access
594
- # description: Does not grant access after Sep 2020 expression: request.time <
595
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
596
- # description of IAM and its features, see the [IAM documentation](https://cloud.
597
- # google.com/iam/docs/).
573
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
574
+ # Principals can be user accounts, service accounts, Google groups, and domains (
575
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
576
+ # an IAM predefined role or a user-created custom role. For some types of Google
577
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
578
+ # logical expression that allows access to a resource only if the expression
579
+ # evaluates to `true`. A condition can add constraints based on attributes of
580
+ # the request, the resource, or both. To learn which resources support
581
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
582
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
583
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
584
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
585
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
586
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
587
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
588
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
589
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
590
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
591
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
592
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
593
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
594
+ # access description: Does not grant access after Sep 2020 expression: request.
595
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
596
+ # a description of IAM and its features, see the [IAM documentation](https://
597
+ # cloud.google.com/iam/docs/).
598
598
  class Policy
599
599
  include Google::Apis::Core::Hashable
600
600
 
@@ -603,14 +603,14 @@ module Google
603
603
  # @return [Array<Google::Apis::SecretmanagerV1::AuditConfig>]
604
604
  attr_accessor :audit_configs
605
605
 
606
- # Associates a list of `members` to a `role`. Optionally, may specify a `
607
- # condition` that determines how and when the `bindings` are applied. Each of
608
- # the `bindings` must contain at least one member. The `bindings` in a `Policy`
609
- # can refer to up to 1,500 members; up to 250 of these members can be Google
610
- # groups. Each occurrence of a member counts towards these limits. For example,
611
- # if the `bindings` grant 50 different roles to `user:alice@example.com`, and
612
- # not to any other member, then you can add another 1,450 members to the `
613
- # bindings` in the `Policy`.
606
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
607
+ # specify a `condition` that determines how and when the `bindings` are applied.
608
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
609
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
610
+ # can be Google groups. Each occurrence of a principal counts towards these
611
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
612
+ # example.com`, and not to any other principal, then you can add another 1,450
613
+ # principals to the `bindings` in the `Policy`.
614
614
  # Corresponds to the JSON property `bindings`
615
615
  # @return [Array<Google::Apis::SecretmanagerV1::Binding>]
616
616
  attr_accessor :bindings
@@ -892,6 +892,19 @@ module Google
892
892
  # @return [String]
893
893
  attr_accessor :data
894
894
 
895
+ # Optional. If specified, SecretManagerService will verify the integrity of the
896
+ # received data on SecretManagerService.AddSecretVersion calls using the crc32c
897
+ # checksum and store it to include in future SecretManagerService.
898
+ # AccessSecretVersion responses. If a checksum is not provided in the
899
+ # SecretManagerService.AddSecretVersion request, the SecretManagerService will
900
+ # generate and store one for you. The CRC32C value is encoded as a Int64 for
901
+ # compatibility, and can be safely downconverted to uint32 in languages that
902
+ # support this type. https://cloud.google.com/apis/design/design_patterns#
903
+ # integer_types
904
+ # Corresponds to the JSON property `dataCrc32c`
905
+ # @return [Fixnum]
906
+ attr_accessor :data_crc32c
907
+
895
908
  def initialize(**args)
896
909
  update!(**args)
897
910
  end
@@ -899,6 +912,7 @@ module Google
899
912
  # Update properties of this object
900
913
  def update!(**args)
901
914
  @data = args[:data] if args.key?(:data)
915
+ @data_crc32c = args[:data_crc32c] if args.key?(:data_crc32c)
902
916
  end
903
917
  end
904
918
 
@@ -906,6 +920,13 @@ module Google
906
920
  class SecretVersion
907
921
  include Google::Apis::Core::Hashable
908
922
 
923
+ # Output only. True if payload checksum specified in SecretPayload object has
924
+ # been received by SecretManagerService on SecretManagerService.AddSecretVersion.
925
+ # Corresponds to the JSON property `clientSpecifiedPayloadChecksum`
926
+ # @return [Boolean]
927
+ attr_accessor :client_specified_payload_checksum
928
+ alias_method :client_specified_payload_checksum?, :client_specified_payload_checksum
929
+
909
930
  # Output only. The time at which the SecretVersion was created.
910
931
  # Corresponds to the JSON property `createTime`
911
932
  # @return [String]
@@ -945,6 +966,7 @@ module Google
945
966
 
946
967
  # Update properties of this object
947
968
  def update!(**args)
969
+ @client_specified_payload_checksum = args[:client_specified_payload_checksum] if args.key?(:client_specified_payload_checksum)
948
970
  @create_time = args[:create_time] if args.key?(:create_time)
949
971
  @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
950
972
  @etag = args[:etag] if args.key?(:etag)
@@ -960,31 +982,31 @@ module Google
960
982
 
961
983
  # An Identity and Access Management (IAM) policy, which specifies access
962
984
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
963
- # A `binding` binds one or more `members` to a single `role`. Members can be
964
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
965
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
966
- # role or a user-created custom role. For some types of Google Cloud resources,
967
- # a `binding` can also specify a `condition`, which is a logical expression that
968
- # allows access to a resource only if the expression evaluates to `true`. A
969
- # condition can add constraints based on attributes of the request, the resource,
970
- # or both. To learn which resources support conditions in their IAM policies,
971
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
972
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
973
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
974
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
975
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
976
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
977
- # title": "expirable access", "description": "Does not grant access after Sep
978
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
979
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
980
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
981
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
982
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
983
- # roles/resourcemanager.organizationViewer condition: title: expirable access
984
- # description: Does not grant access after Sep 2020 expression: request.time <
985
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
986
- # description of IAM and its features, see the [IAM documentation](https://cloud.
987
- # google.com/iam/docs/).
985
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
986
+ # Principals can be user accounts, service accounts, Google groups, and domains (
987
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
988
+ # an IAM predefined role or a user-created custom role. For some types of Google
989
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
990
+ # logical expression that allows access to a resource only if the expression
991
+ # evaluates to `true`. A condition can add constraints based on attributes of
992
+ # the request, the resource, or both. To learn which resources support
993
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
994
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
995
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
996
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
997
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
998
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
999
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1000
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1001
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1002
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1003
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1004
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1005
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1006
+ # access description: Does not grant access after Sep 2020 expression: request.
1007
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1008
+ # a description of IAM and its features, see the [IAM documentation](https://
1009
+ # cloud.google.com/iam/docs/).
988
1010
  # Corresponds to the JSON property `policy`
989
1011
  # @return [Google::Apis::SecretmanagerV1::Policy]
990
1012
  attr_accessor :policy
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SecretmanagerV1
18
18
  # Version of the google-apis-secretmanager_v1 gem
19
- GEM_VERSION = "0.15.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211001"
25
+ REVISION = "20220115"
26
26
  end
27
27
  end
28
28
  end
@@ -451,12 +451,14 @@ module Google
451
451
  # @private
452
452
  class Representation < Google::Apis::Core::JsonRepresentation
453
453
  property :data, :base64 => true, as: 'data'
454
+ property :data_crc32c, :numeric_string => true, as: 'dataCrc32c'
454
455
  end
455
456
  end
456
457
 
457
458
  class SecretVersion
458
459
  # @private
459
460
  class Representation < Google::Apis::Core::JsonRepresentation
461
+ property :client_specified_payload_checksum, as: 'clientSpecifiedPayloadChecksum'
460
462
  property :create_time, as: 'createTime'
461
463
  property :destroy_time, as: 'destroyTime'
462
464
  property :etag, as: 'etag'
@@ -270,13 +270,16 @@ module Google
270
270
  # REQUIRED: The resource for which the policy is being requested. See the
271
271
  # operation documentation for the appropriate value for this field.
272
272
  # @param [Fixnum] options_requested_policy_version
273
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
274
- # 3. Requests specifying an invalid value will be rejected. Requests for
275
- # policies with any conditional bindings must specify version 3. Policies
276
- # without any conditional bindings may specify any valid value or leave the
277
- # field unset. To learn which resources support conditions in their IAM policies,
278
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
279
- # resource-policies).
273
+ # Optional. The maximum policy version that will be used to format the policy.
274
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
275
+ # rejected. Requests for policies with any conditional role bindings must
276
+ # specify version 3. Policies with no conditional role bindings may specify any
277
+ # valid value or leave the field unset. The policy in the response might use the
278
+ # policy version that you specified, or it might use a lower policy version. For
279
+ # example, if you specify version 3, but the policy has no conditional role
280
+ # bindings, the response uses version 1. To learn which resources support
281
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
282
+ # google.com/iam/help/conditions/resource-policies).
280
283
  # @param [String] fields
281
284
  # Selector specifying which fields to include in a partial response.
282
285
  # @param [String] quota_user
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-secretmanager_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-11 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-secretmanager_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-secretmanager_v1/v0.15.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-secretmanager_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-secretmanager_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-secretmanager_v1/v0.19.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-secretmanager_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Secret Manager API V1