google-cloud-secret_manager-v1 0.10.0 → 0.11.1

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: 31b50012a4e87ec9242bb4859299764f0fcaab0ebe0632e038e6f5494308e4e6
4
- data.tar.gz: f632a4a2c2dd7c3b9cccf9c22e1b46a7b0a46e2e85515130c5516e4c79269786
3
+ metadata.gz: 65ef5dc2c962faeea9eb0ac377b65a01df19a17c2b83d4774da90aedd61421eb
4
+ data.tar.gz: 887d171eb7f4f35245332df81c5ea60a84d20c339b8e9726b791d14ed331f778
5
5
  SHA512:
6
- metadata.gz: 6e6d89c3debdf55e52a7904700a91efcc44cb62c32efa9710376f927288e04d119d049d6ccb11f1b02384d5fb520e33192ee4c2d543a7fa45bd0e5c4cd70723b
7
- data.tar.gz: a89d4dbfef88d55b94999f20e099b674fbf74b3b11d7c851743850c5b6f4a7a6a95887684f810c9457726e3c7fd5e3b232db401efb6643fc7c03b92ba3319197
6
+ metadata.gz: 00fbb7e81f11f579e0f0c405146bc9050cd8f3a5bb573538bc163953cd3fdeb80ad7bce9b64b670c0b260a12c34e133e008c2c4499eb53b9056395388f7fdd1a
7
+ data.tar.gz: 1a8a1bb780e5fba6502d0896857d449cd0ebd342b8f2855188820e7ff27f6ade73604050fbb8c9548804846e64e486df2e35056d896ec6f304848ea7f222654d
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-secret_manager-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::SecretManager::V1::SecretManagerService::Credentials}):
68
68
 
69
- 1. `SECRET_MANAGER_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `SECRET_MANAGER_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `SECRET_MANAGER_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `SECRET_MANAGER_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/secret_manager/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/secret_manager/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new do
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/secret_manager/v1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/secret_manager/v1"
34
34
 
35
35
  client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::SecretManager::V1::ListSecretsRequest.new # (request fields as keyword arguments...)
37
37
  response = client.list_secrets request
38
38
  ```
39
39
 
@@ -47,13 +47,12 @@ module Google
47
47
  # See {::Google::Cloud::SecretManager::V1::SecretManagerService::Client::Configuration}
48
48
  # for a description of the configuration fields.
49
49
  #
50
- # ## Example
50
+ # @example
51
51
  #
52
- # To modify the configuration for all SecretManagerService clients:
53
- #
54
- # ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.configure do |config|
55
- # config.timeout = 10.0
56
- # end
52
+ # # Modify the configuration for all SecretManagerService clients
53
+ # ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.configure do |config|
54
+ # config.timeout = 10.0
55
+ # end
57
56
  #
58
57
  # @yield [config] Configure the Client client.
59
58
  # @yieldparam config [Client::Configuration]
@@ -89,10 +88,7 @@ module Google
89
88
 
90
89
  default_config.rpcs.access_secret_version.timeout = 60.0
91
90
  default_config.rpcs.access_secret_version.retry_policy = {
92
- initial_delay: 1.0,
93
- max_delay: 60.0,
94
- multiplier: 1.3,
95
- retry_codes: [14, 2]
91
+ initial_delay: 2.0, max_delay: 60.0, multiplier: 2.0, retry_codes: [14, 8]
96
92
  }
97
93
 
98
94
  default_config.rpcs.disable_secret_version.timeout = 60.0
@@ -136,19 +132,15 @@ module Google
136
132
  ##
137
133
  # Create a new SecretManagerService client object.
138
134
  #
139
- # ## Examples
140
- #
141
- # To create a new SecretManagerService client with the default
142
- # configuration:
143
- #
144
- # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
135
+ # @example
145
136
  #
146
- # To create a new SecretManagerService client with a custom
147
- # configuration:
137
+ # # Create a client using the default configuration
138
+ # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new
148
139
  #
149
- # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new do |config|
150
- # config.timeout = 10.0
151
- # end
140
+ # # Create a client using a custom configuration
141
+ # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new do |config|
142
+ # config.timeout = 10.0
143
+ # end
152
144
  #
153
145
  # @yield [config] Configure the SecretManagerService client.
154
146
  # @yieldparam config [Client::Configuration]
@@ -168,14 +160,13 @@ module Google
168
160
 
169
161
  # Create credentials
170
162
  credentials = @config.credentials
171
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
163
+ # Use self-signed JWT if the endpoint is unchanged from default,
172
164
  # but only if the default endpoint does not have a region prefix.
173
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
174
- @config.endpoint == Client.configure.endpoint &&
165
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
175
166
  !@config.endpoint.split(".").first.include?("-")
176
167
  credentials ||= Credentials.default scope: @config.scope,
177
168
  enable_self_signed_jwt: enable_self_signed_jwt
178
- if credentials.is_a?(String) || credentials.is_a?(Hash)
169
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
179
170
  credentials = Credentials.new credentials, scope: @config.scope
180
171
  end
181
172
  @quota_project_id = @config.quota_project
@@ -205,7 +196,7 @@ module Google
205
196
  # @param options [::Gapic::CallOptions, ::Hash]
206
197
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
207
198
  #
208
- # @overload list_secrets(parent: nil, page_size: nil, page_token: nil)
199
+ # @overload list_secrets(parent: nil, page_size: nil, page_token: nil, filter: nil)
209
200
  # Pass arguments to `list_secrets` via keyword arguments. Note that at
210
201
  # least one keyword argument is required. To specify no parameters, or to keep all
211
202
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -220,6 +211,12 @@ module Google
220
211
  # @param page_token [::String]
221
212
  # Optional. Pagination token, returned earlier via
222
213
  # {::Google::Cloud::SecretManager::V1::ListSecretsResponse#next_page_token ListSecretsResponse.next_page_token}.
214
+ # @param filter [::String]
215
+ # Optional. Filter string, adhering to the rules in
216
+ # [List-operation
217
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
218
+ # only secrets matching the filter. If filter is empty, all secrets are
219
+ # listed.
223
220
  #
224
221
  # @yield [response, operation] Access the result along with the RPC operation
225
222
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecretManager::V1::Secret>]
@@ -255,7 +252,9 @@ module Google
255
252
  options.apply_defaults timeout: @config.rpcs.list_secrets.timeout,
256
253
  metadata: metadata,
257
254
  retry_policy: @config.rpcs.list_secrets.retry_policy
258
- options.apply_defaults metadata: @config.metadata,
255
+
256
+ options.apply_defaults timeout: @config.timeout,
257
+ metadata: @config.metadata,
259
258
  retry_policy: @config.retry_policy
260
259
 
261
260
  @secret_manager_service_stub.call_rpc :list_secrets, request, options: options do |response, operation|
@@ -331,7 +330,9 @@ module Google
331
330
  options.apply_defaults timeout: @config.rpcs.create_secret.timeout,
332
331
  metadata: metadata,
333
332
  retry_policy: @config.rpcs.create_secret.retry_policy
334
- options.apply_defaults metadata: @config.metadata,
333
+
334
+ options.apply_defaults timeout: @config.timeout,
335
+ metadata: @config.metadata,
335
336
  retry_policy: @config.retry_policy
336
337
 
337
338
  @secret_manager_service_stub.call_rpc :create_secret, request, options: options do |response, operation|
@@ -401,7 +402,9 @@ module Google
401
402
  options.apply_defaults timeout: @config.rpcs.add_secret_version.timeout,
402
403
  metadata: metadata,
403
404
  retry_policy: @config.rpcs.add_secret_version.retry_policy
404
- options.apply_defaults metadata: @config.metadata,
405
+
406
+ options.apply_defaults timeout: @config.timeout,
407
+ metadata: @config.metadata,
405
408
  retry_policy: @config.retry_policy
406
409
 
407
410
  @secret_manager_service_stub.call_rpc :add_secret_version, request, options: options do |response, operation|
@@ -467,7 +470,9 @@ module Google
467
470
  options.apply_defaults timeout: @config.rpcs.get_secret.timeout,
468
471
  metadata: metadata,
469
472
  retry_policy: @config.rpcs.get_secret.retry_policy
470
- options.apply_defaults metadata: @config.metadata,
473
+
474
+ options.apply_defaults timeout: @config.timeout,
475
+ metadata: @config.metadata,
471
476
  retry_policy: @config.retry_policy
472
477
 
473
478
  @secret_manager_service_stub.call_rpc :get_secret, request, options: options do |response, operation|
@@ -535,7 +540,9 @@ module Google
535
540
  options.apply_defaults timeout: @config.rpcs.update_secret.timeout,
536
541
  metadata: metadata,
537
542
  retry_policy: @config.rpcs.update_secret.retry_policy
538
- options.apply_defaults metadata: @config.metadata,
543
+
544
+ options.apply_defaults timeout: @config.timeout,
545
+ metadata: @config.metadata,
539
546
  retry_policy: @config.retry_policy
540
547
 
541
548
  @secret_manager_service_stub.call_rpc :update_secret, request, options: options do |response, operation|
@@ -606,7 +613,9 @@ module Google
606
613
  options.apply_defaults timeout: @config.rpcs.delete_secret.timeout,
607
614
  metadata: metadata,
608
615
  retry_policy: @config.rpcs.delete_secret.retry_policy
609
- options.apply_defaults metadata: @config.metadata,
616
+
617
+ options.apply_defaults timeout: @config.timeout,
618
+ metadata: @config.metadata,
610
619
  retry_policy: @config.retry_policy
611
620
 
612
621
  @secret_manager_service_stub.call_rpc :delete_secret, request, options: options do |response, operation|
@@ -631,7 +640,7 @@ module Google
631
640
  # @param options [::Gapic::CallOptions, ::Hash]
632
641
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
633
642
  #
634
- # @overload list_secret_versions(parent: nil, page_size: nil, page_token: nil)
643
+ # @overload list_secret_versions(parent: nil, page_size: nil, page_token: nil, filter: nil)
635
644
  # Pass arguments to `list_secret_versions` via keyword arguments. Note that at
636
645
  # least one keyword argument is required. To specify no parameters, or to keep all
637
646
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -647,6 +656,12 @@ module Google
647
656
  # @param page_token [::String]
648
657
  # Optional. Pagination token, returned earlier via
649
658
  # ListSecretVersionsResponse.next_page_token][].
659
+ # @param filter [::String]
660
+ # Optional. Filter string, adhering to the rules in
661
+ # [List-operation
662
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
663
+ # only secret versions matching the filter. If filter is empty, all secret
664
+ # versions are listed.
650
665
  #
651
666
  # @yield [response, operation] Access the result along with the RPC operation
652
667
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecretManager::V1::SecretVersion>]
@@ -682,7 +697,9 @@ module Google
682
697
  options.apply_defaults timeout: @config.rpcs.list_secret_versions.timeout,
683
698
  metadata: metadata,
684
699
  retry_policy: @config.rpcs.list_secret_versions.retry_policy
685
- options.apply_defaults metadata: @config.metadata,
700
+
701
+ options.apply_defaults timeout: @config.timeout,
702
+ metadata: @config.metadata,
686
703
  retry_policy: @config.retry_policy
687
704
 
688
705
  @secret_manager_service_stub.call_rpc :list_secret_versions, request, options: options do |response, operation|
@@ -756,7 +773,9 @@ module Google
756
773
  options.apply_defaults timeout: @config.rpcs.get_secret_version.timeout,
757
774
  metadata: metadata,
758
775
  retry_policy: @config.rpcs.get_secret_version.retry_policy
759
- options.apply_defaults metadata: @config.metadata,
776
+
777
+ options.apply_defaults timeout: @config.timeout,
778
+ metadata: @config.metadata,
760
779
  retry_policy: @config.retry_policy
761
780
 
762
781
  @secret_manager_service_stub.call_rpc :get_secret_version, request, options: options do |response, operation|
@@ -829,7 +848,9 @@ module Google
829
848
  options.apply_defaults timeout: @config.rpcs.access_secret_version.timeout,
830
849
  metadata: metadata,
831
850
  retry_policy: @config.rpcs.access_secret_version.retry_policy
832
- options.apply_defaults metadata: @config.metadata,
851
+
852
+ options.apply_defaults timeout: @config.timeout,
853
+ metadata: @config.metadata,
833
854
  retry_policy: @config.retry_policy
834
855
 
835
856
  @secret_manager_service_stub.call_rpc :access_secret_version, request, options: options do |response, operation|
@@ -903,7 +924,9 @@ module Google
903
924
  options.apply_defaults timeout: @config.rpcs.disable_secret_version.timeout,
904
925
  metadata: metadata,
905
926
  retry_policy: @config.rpcs.disable_secret_version.retry_policy
906
- options.apply_defaults metadata: @config.metadata,
927
+
928
+ options.apply_defaults timeout: @config.timeout,
929
+ metadata: @config.metadata,
907
930
  retry_policy: @config.retry_policy
908
931
 
909
932
  @secret_manager_service_stub.call_rpc :disable_secret_version, request, options: options do |response, operation|
@@ -977,7 +1000,9 @@ module Google
977
1000
  options.apply_defaults timeout: @config.rpcs.enable_secret_version.timeout,
978
1001
  metadata: metadata,
979
1002
  retry_policy: @config.rpcs.enable_secret_version.retry_policy
980
- options.apply_defaults metadata: @config.metadata,
1003
+
1004
+ options.apply_defaults timeout: @config.timeout,
1005
+ metadata: @config.metadata,
981
1006
  retry_policy: @config.retry_policy
982
1007
 
983
1008
  @secret_manager_service_stub.call_rpc :enable_secret_version, request, options: options do |response, operation|
@@ -1052,7 +1077,9 @@ module Google
1052
1077
  options.apply_defaults timeout: @config.rpcs.destroy_secret_version.timeout,
1053
1078
  metadata: metadata,
1054
1079
  retry_policy: @config.rpcs.destroy_secret_version.retry_policy
1055
- options.apply_defaults metadata: @config.metadata,
1080
+
1081
+ options.apply_defaults timeout: @config.timeout,
1082
+ metadata: @config.metadata,
1056
1083
  retry_policy: @config.retry_policy
1057
1084
 
1058
1085
  @secret_manager_service_stub.call_rpc :destroy_secret_version, request, options: options do |response, operation|
@@ -1128,7 +1155,9 @@ module Google
1128
1155
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
1129
1156
  metadata: metadata,
1130
1157
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
1131
- options.apply_defaults metadata: @config.metadata,
1158
+
1159
+ options.apply_defaults timeout: @config.timeout,
1160
+ metadata: @config.metadata,
1132
1161
  retry_policy: @config.retry_policy
1133
1162
 
1134
1163
  @secret_manager_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -1199,7 +1228,9 @@ module Google
1199
1228
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
1200
1229
  metadata: metadata,
1201
1230
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
1202
- options.apply_defaults metadata: @config.metadata,
1231
+
1232
+ options.apply_defaults timeout: @config.timeout,
1233
+ metadata: @config.metadata,
1203
1234
  retry_policy: @config.retry_policy
1204
1235
 
1205
1236
  @secret_manager_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -1277,7 +1308,9 @@ module Google
1277
1308
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1278
1309
  metadata: metadata,
1279
1310
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
1280
- options.apply_defaults metadata: @config.metadata,
1311
+
1312
+ options.apply_defaults timeout: @config.timeout,
1313
+ metadata: @config.metadata,
1281
1314
  retry_policy: @config.retry_policy
1282
1315
 
1283
1316
  @secret_manager_service_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -1301,22 +1334,21 @@ module Google
1301
1334
  # Configuration can be applied globally to all clients, or to a single client
1302
1335
  # on construction.
1303
1336
  #
1304
- # # Examples
1305
- #
1306
- # To modify the global config, setting the timeout for list_secrets
1307
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1308
- #
1309
- # ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.configure do |config|
1310
- # config.timeout = 10.0
1311
- # config.rpcs.list_secrets.timeout = 20.0
1312
- # end
1313
- #
1314
- # To apply the above configuration only to a new client:
1315
- #
1316
- # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new do |config|
1317
- # config.timeout = 10.0
1318
- # config.rpcs.list_secrets.timeout = 20.0
1319
- # end
1337
+ # @example
1338
+ #
1339
+ # # Modify the global config, setting the timeout for
1340
+ # # list_secrets to 20 seconds,
1341
+ # # and all remaining timeouts to 10 seconds.
1342
+ # ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.configure do |config|
1343
+ # config.timeout = 10.0
1344
+ # config.rpcs.list_secrets.timeout = 20.0
1345
+ # end
1346
+ #
1347
+ # # Apply the above configuration only to a new client.
1348
+ # client = ::Google::Cloud::SecretManager::V1::SecretManagerService::Client.new do |config|
1349
+ # config.timeout = 10.0
1350
+ # config.rpcs.list_secrets.timeout = 20.0
1351
+ # end
1320
1352
  #
1321
1353
  # @!attribute [rw] endpoint
1322
1354
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.11.1"
25
25
  end
26
26
  end
27
27
  end
@@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  optional :parent, :string, 1
19
19
  optional :page_size, :int32, 2
20
20
  optional :page_token, :string, 3
21
+ optional :filter, :string, 4
21
22
  end
22
23
  add_message "google.cloud.secretmanager.v1.ListSecretsResponse" do
23
24
  repeated :secrets, :message, 1, "google.cloud.secretmanager.v1.Secret"
@@ -40,6 +41,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
40
41
  optional :parent, :string, 1
41
42
  optional :page_size, :int32, 2
42
43
  optional :page_token, :string, 3
44
+ optional :filter, :string, 4
43
45
  end
44
46
  add_message "google.cloud.secretmanager.v1.ListSecretVersionsResponse" do
45
47
  repeated :versions, :message, 1, "google.cloud.secretmanager.v1.SecretVersion"
@@ -33,7 +33,7 @@ module Google
33
33
  # * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
34
34
  class Service
35
35
 
36
- include ::GRPC::GenericService
36
+ include GRPC::GenericService
37
37
 
38
38
  self.marshal_class_method = :encode
39
39
  self.unmarshal_class_method = :decode
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
@@ -35,6 +35,13 @@ module Google
35
35
  # @return [::String]
36
36
  # Optional. Pagination token, returned earlier via
37
37
  # {::Google::Cloud::SecretManager::V1::ListSecretsResponse#next_page_token ListSecretsResponse.next_page_token}.
38
+ # @!attribute [rw] filter
39
+ # @return [::String]
40
+ # Optional. Filter string, adhering to the rules in
41
+ # [List-operation
42
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
43
+ # only secrets matching the filter. If filter is empty, all secrets are
44
+ # listed.
38
45
  class ListSecretsRequest
39
46
  include ::Google::Protobuf::MessageExts
40
47
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -114,6 +121,13 @@ module Google
114
121
  # @return [::String]
115
122
  # Optional. Pagination token, returned earlier via
116
123
  # ListSecretVersionsResponse.next_page_token][].
124
+ # @!attribute [rw] filter
125
+ # @return [::String]
126
+ # Optional. Filter string, adhering to the rules in
127
+ # [List-operation
128
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
129
+ # only secret versions matching the filter. If filter is empty, all secret
130
+ # versions are listed.
117
131
  class ListSecretVersionsRequest
118
132
  include ::Google::Protobuf::MessageExts
119
133
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -19,30 +19,53 @@
19
19
 
20
20
  module Google
21
21
  module Type
22
- # Represents an expression text. Example:
22
+ # Represents a textual expression in the Common Expression Language (CEL)
23
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
24
+ # are documented at https://github.com/google/cel-spec.
23
25
  #
24
- # title: "User account presence"
25
- # description: "Determines whether the request has a user account"
26
- # expression: "size(request.user) > 0"
26
+ # Example (Comparison):
27
+ #
28
+ # title: "Summary size limit"
29
+ # description: "Determines if a summary is less than 100 chars"
30
+ # expression: "document.summary.size() < 100"
31
+ #
32
+ # Example (Equality):
33
+ #
34
+ # title: "Requestor is owner"
35
+ # description: "Determines if requestor is the document owner"
36
+ # expression: "document.owner == request.auth.claims.email"
37
+ #
38
+ # Example (Logic):
39
+ #
40
+ # title: "Public documents"
41
+ # description: "Determine whether the document should be publicly visible"
42
+ # expression: "document.type != 'private' && document.type != 'internal'"
43
+ #
44
+ # Example (Data Manipulation):
45
+ #
46
+ # title: "Notification string"
47
+ # description: "Create a notification string with a timestamp."
48
+ # expression: "'New message received at ' + string(document.create_time)"
49
+ #
50
+ # The exact variables and functions that may be referenced within an expression
51
+ # are determined by the service that evaluates it. See the service
52
+ # documentation for additional information.
27
53
  # @!attribute [rw] expression
28
54
  # @return [::String]
29
- # Textual representation of an expression in
30
- # Common Expression Language syntax.
31
- #
32
- # The application context of the containing message determines which
33
- # well-known feature set of CEL is supported.
55
+ # Textual representation of an expression in Common Expression Language
56
+ # syntax.
34
57
  # @!attribute [rw] title
35
58
  # @return [::String]
36
- # An optional title for the expression, i.e. a short string describing
59
+ # Optional. Title for the expression, i.e. a short string describing
37
60
  # its purpose. This can be used e.g. in UIs which allow to enter the
38
61
  # expression.
39
62
  # @!attribute [rw] description
40
63
  # @return [::String]
41
- # An optional description of the expression. This is a longer text which
64
+ # Optional. Description of the expression. This is a longer text which
42
65
  # describes the expression, e.g. when hovered over it in a UI.
43
66
  # @!attribute [rw] location
44
67
  # @return [::String]
45
- # An optional string indicating the location of the expression for error
68
+ # Optional. String indicating the location of the expression for error
46
69
  # reporting, e.g. a file name and a position in the file.
47
70
  class Expr
48
71
  include ::Google::Protobuf::MessageExts
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-secret_manager-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.1
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-05-21 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.4'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.7'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.4'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,7 +53,7 @@ dependencies:
47
53
  version: 0.6.10
48
54
  - - "<"
49
55
  - !ruby/object:Gem::Version
50
- version: '2.0'
56
+ version: 2.a
51
57
  type: :runtime
52
58
  prerelease: false
53
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +63,7 @@ dependencies:
57
63
  version: 0.6.10
58
64
  - - "<"
59
65
  - !ruby/object:Gem::Version
60
- version: '2.0'
66
+ version: 2.a
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: google-style
63
69
  requirement: !ruby/object:Gem::Requirement