google-cloud-secret_manager-v1 0.9.0 → 0.11.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: 2eb6c991083ef7f67c7f9ab36f4e5a7dab838278f369d8a0975656980fc0f426
4
- data.tar.gz: 7d4ffe06d12bf5c389061a25b8c5e051a79e8ab8995b88dc5947dfc50f2ee773
3
+ metadata.gz: 7cc37901944980f42ce63e3d5ec23733bebda882b2071d3c6a7cbba22cb6eb54
4
+ data.tar.gz: 6511e7203665386159c751e7cbb8b96bdf7fbf8950701e1c18093882bdaf62e4
5
5
  SHA512:
6
- metadata.gz: 489b0d3cb99db2a8d44ac778f7f7bf5727c159f624a2ebfe1e6fc5a0f193a00709eaa794cba5f2981f36e5f1bc4bed67da4c803471a003fda6294c4a0b57eb75
7
- data.tar.gz: 2a611bba6b9434a542e596b7dd8b8f97f69e1fff0fe3e94fcf9668e0a46e6ab1f40d09014482c8c45165c78ac5a401b94185648a2da4d3ba2be591e38a958479
6
+ metadata.gz: 5c691a576dbcb9bb2369993d80997acf9ac196eeb8918926560f3bed1682f0493f7397aaf0ea637b4676cf4d27e5968ef82df60e0bf2fa342cba904c482f670a
7
+ data.tar.gz: 1824c2a153e007fb5183b02c98fcc3206fc432732820148782730f44456eafca99315fa7973d1fd34692072782a4cf77f3e421d3845f7167d4bb3b581126e471
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
 
@@ -89,10 +89,7 @@ module Google
89
89
 
90
90
  default_config.rpcs.access_secret_version.timeout = 60.0
91
91
  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]
92
+ initial_delay: 2.0, max_delay: 60.0, multiplier: 2.0, retry_codes: [14, 8]
96
93
  }
97
94
 
98
95
  default_config.rpcs.disable_secret_version.timeout = 60.0
@@ -175,7 +172,7 @@ module Google
175
172
  !@config.endpoint.split(".").first.include?("-")
176
173
  credentials ||= Credentials.default scope: @config.scope,
177
174
  enable_self_signed_jwt: enable_self_signed_jwt
178
- if credentials.is_a?(String) || credentials.is_a?(Hash)
175
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
179
176
  credentials = Credentials.new credentials, scope: @config.scope
180
177
  end
181
178
  @quota_project_id = @config.quota_project
@@ -205,7 +202,7 @@ module Google
205
202
  # @param options [::Gapic::CallOptions, ::Hash]
206
203
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
207
204
  #
208
- # @overload list_secrets(parent: nil, page_size: nil, page_token: nil)
205
+ # @overload list_secrets(parent: nil, page_size: nil, page_token: nil, filter: nil)
209
206
  # Pass arguments to `list_secrets` via keyword arguments. Note that at
210
207
  # least one keyword argument is required. To specify no parameters, or to keep all
211
208
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -220,6 +217,12 @@ module Google
220
217
  # @param page_token [::String]
221
218
  # Optional. Pagination token, returned earlier via
222
219
  # {::Google::Cloud::SecretManager::V1::ListSecretsResponse#next_page_token ListSecretsResponse.next_page_token}.
220
+ # @param filter [::String]
221
+ # Optional. Filter string, adhering to the rules in
222
+ # [List-operation
223
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
224
+ # only secrets matching the filter. If filter is empty, all secrets are
225
+ # listed.
223
226
  #
224
227
  # @yield [response, operation] Access the result along with the RPC operation
225
228
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecretManager::V1::Secret>]
@@ -559,7 +562,7 @@ module Google
559
562
  # @param options [::Gapic::CallOptions, ::Hash]
560
563
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
561
564
  #
562
- # @overload delete_secret(name: nil)
565
+ # @overload delete_secret(name: nil, etag: nil)
563
566
  # Pass arguments to `delete_secret` via keyword arguments. Note that at
564
567
  # least one keyword argument is required. To specify no parameters, or to keep all
565
568
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -567,6 +570,10 @@ module Google
567
570
  # @param name [::String]
568
571
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} to delete in the format
569
572
  # `projects/*/secrets/*`.
573
+ # @param etag [::String]
574
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::Secret Secret}. The request succeeds if it matches
575
+ # the etag of the currently stored secret object. If the etag is omitted,
576
+ # the request succeeds.
570
577
  #
571
578
  # @yield [response, operation] Access the result along with the RPC operation
572
579
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -627,7 +634,7 @@ module Google
627
634
  # @param options [::Gapic::CallOptions, ::Hash]
628
635
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
629
636
  #
630
- # @overload list_secret_versions(parent: nil, page_size: nil, page_token: nil)
637
+ # @overload list_secret_versions(parent: nil, page_size: nil, page_token: nil, filter: nil)
631
638
  # Pass arguments to `list_secret_versions` via keyword arguments. Note that at
632
639
  # least one keyword argument is required. To specify no parameters, or to keep all
633
640
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -643,6 +650,12 @@ module Google
643
650
  # @param page_token [::String]
644
651
  # Optional. Pagination token, returned earlier via
645
652
  # ListSecretVersionsResponse.next_page_token][].
653
+ # @param filter [::String]
654
+ # Optional. Filter string, adhering to the rules in
655
+ # [List-operation
656
+ # filtering](https://cloud.google.com/secret-manager/docs/filtering). List
657
+ # only secret versions matching the filter. If filter is empty, all secret
658
+ # versions are listed.
646
659
  #
647
660
  # @yield [response, operation] Access the result along with the RPC operation
648
661
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecretManager::V1::SecretVersion>]
@@ -693,8 +706,8 @@ module Google
693
706
  ##
694
707
  # Gets metadata for a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
695
708
  #
696
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
697
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
709
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
710
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
698
711
  #
699
712
  # @overload get_secret_version(request, options = nil)
700
713
  # Pass arguments to `get_secret_version` via a request object, either of type
@@ -714,8 +727,9 @@ module Google
714
727
  # @param name [::String]
715
728
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
716
729
  # `projects/*/secrets/*/versions/*`.
717
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
718
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
730
+ #
731
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
732
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
719
733
  #
720
734
  # @yield [response, operation] Access the result along with the RPC operation
721
735
  # @yieldparam response [::Google::Cloud::SecretManager::V1::SecretVersion]
@@ -765,8 +779,8 @@ module Google
765
779
  ##
766
780
  # Accesses a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. This call returns the secret data.
767
781
  #
768
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
769
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
782
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
783
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
770
784
  #
771
785
  # @overload access_secret_version(request, options = nil)
772
786
  # Pass arguments to `access_secret_version` via a request object, either of type
@@ -787,6 +801,9 @@ module Google
787
801
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
788
802
  # `projects/*/secrets/*/versions/*`.
789
803
  #
804
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
805
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
806
+ #
790
807
  # @yield [response, operation] Access the result along with the RPC operation
791
808
  # @yieldparam response [::Google::Cloud::SecretManager::V1::AccessSecretVersionResponse]
792
809
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -848,7 +865,7 @@ module Google
848
865
  # @param options [::Gapic::CallOptions, ::Hash]
849
866
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
850
867
  #
851
- # @overload disable_secret_version(name: nil)
868
+ # @overload disable_secret_version(name: nil, etag: nil)
852
869
  # Pass arguments to `disable_secret_version` via keyword arguments. Note that at
853
870
  # least one keyword argument is required. To specify no parameters, or to keep all
854
871
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -856,6 +873,10 @@ module Google
856
873
  # @param name [::String]
857
874
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to disable in the format
858
875
  # `projects/*/secrets/*/versions/*`.
876
+ # @param etag [::String]
877
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
878
+ # the etag of the currently stored secret version object. If the etag is
879
+ # omitted, the request succeeds.
859
880
  #
860
881
  # @yield [response, operation] Access the result along with the RPC operation
861
882
  # @yieldparam response [::Google::Cloud::SecretManager::V1::SecretVersion]
@@ -918,7 +939,7 @@ module Google
918
939
  # @param options [::Gapic::CallOptions, ::Hash]
919
940
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
920
941
  #
921
- # @overload enable_secret_version(name: nil)
942
+ # @overload enable_secret_version(name: nil, etag: nil)
922
943
  # Pass arguments to `enable_secret_version` via keyword arguments. Note that at
923
944
  # least one keyword argument is required. To specify no parameters, or to keep all
924
945
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -926,6 +947,10 @@ module Google
926
947
  # @param name [::String]
927
948
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to enable in the format
928
949
  # `projects/*/secrets/*/versions/*`.
950
+ # @param etag [::String]
951
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
952
+ # the etag of the currently stored secret version object. If the etag is
953
+ # omitted, the request succeeds.
929
954
  #
930
955
  # @yield [response, operation] Access the result along with the RPC operation
931
956
  # @yieldparam response [::Google::Cloud::SecretManager::V1::SecretVersion]
@@ -989,7 +1014,7 @@ module Google
989
1014
  # @param options [::Gapic::CallOptions, ::Hash]
990
1015
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
991
1016
  #
992
- # @overload destroy_secret_version(name: nil)
1017
+ # @overload destroy_secret_version(name: nil, etag: nil)
993
1018
  # Pass arguments to `destroy_secret_version` via keyword arguments. Note that at
994
1019
  # least one keyword argument is required. To specify no parameters, or to keep all
995
1020
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -997,6 +1022,10 @@ module Google
997
1022
  # @param name [::String]
998
1023
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to destroy in the format
999
1024
  # `projects/*/secrets/*/versions/*`.
1025
+ # @param etag [::String]
1026
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
1027
+ # the etag of the currently stored secret version object. If the etag is
1028
+ # omitted, the request succeeds.
1000
1029
  #
1001
1030
  # @yield [response, operation] Access the result along with the RPC operation
1002
1031
  # @yieldparam response [::Google::Cloud::SecretManager::V1::SecretVersion]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- VERSION = "0.9.0"
24
+ VERSION = "0.11.0"
25
25
  end
26
26
  end
27
27
  end
@@ -16,6 +16,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  optional :create_time, :message, 3, "google.protobuf.Timestamp"
17
17
  map :labels, :string, :string, 4
18
18
  repeated :topics, :message, 5, "google.cloud.secretmanager.v1.Topic"
19
+ optional :etag, :string, 8
19
20
  optional :rotation, :message, 9, "google.cloud.secretmanager.v1.Rotation"
20
21
  oneof :expiration do
21
22
  optional :expire_time, :message, 6, "google.protobuf.Timestamp"
@@ -28,6 +29,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
28
29
  optional :destroy_time, :message, 3, "google.protobuf.Timestamp"
29
30
  optional :state, :enum, 4, "google.cloud.secretmanager.v1.SecretVersion.State"
30
31
  optional :replication_status, :message, 5, "google.cloud.secretmanager.v1.ReplicationStatus"
32
+ optional :etag, :string, 6
31
33
  end
32
34
  add_enum "google.cloud.secretmanager.v1.SecretVersion.State" do
33
35
  value :STATE_UNSPECIFIED, 0
@@ -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"
@@ -62,15 +64,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
62
64
  end
63
65
  add_message "google.cloud.secretmanager.v1.DeleteSecretRequest" do
64
66
  optional :name, :string, 1
67
+ optional :etag, :string, 2
65
68
  end
66
69
  add_message "google.cloud.secretmanager.v1.DisableSecretVersionRequest" do
67
70
  optional :name, :string, 1
71
+ optional :etag, :string, 2
68
72
  end
69
73
  add_message "google.cloud.secretmanager.v1.EnableSecretVersionRequest" do
70
74
  optional :name, :string, 1
75
+ optional :etag, :string, 2
71
76
  end
72
77
  add_message "google.cloud.secretmanager.v1.DestroySecretVersionRequest" do
73
78
  optional :name, :string, 1
79
+ optional :etag, :string, 2
74
80
  end
75
81
  end
76
82
  end
@@ -57,13 +57,13 @@ module Google
57
57
  rpc :ListSecretVersions, ::Google::Cloud::SecretManager::V1::ListSecretVersionsRequest, ::Google::Cloud::SecretManager::V1::ListSecretVersionsResponse
58
58
  # Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
59
59
  #
60
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
61
- # [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
60
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
61
+ # created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
62
62
  rpc :GetSecretVersion, ::Google::Cloud::SecretManager::V1::GetSecretVersionRequest, ::Google::Cloud::SecretManager::V1::SecretVersion
63
63
  # Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data.
64
64
  #
65
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
66
- # [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
65
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
66
+ # created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
67
67
  rpc :AccessSecretVersion, ::Google::Cloud::SecretManager::V1::AccessSecretVersionRequest, ::Google::Cloud::SecretManager::V1::AccessSecretVersionResponse
68
68
  # Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
69
69
  #
@@ -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
@@ -61,6 +61,9 @@ module Google
61
61
  # @!attribute [rw] ttl
62
62
  # @return [::Google::Protobuf::Duration]
63
63
  # Input only. The TTL for the {::Google::Cloud::SecretManager::V1::Secret Secret}.
64
+ # @!attribute [rw] etag
65
+ # @return [::String]
66
+ # Optional. Etag of the currently stored {::Google::Cloud::SecretManager::V1::Secret Secret}.
64
67
  # @!attribute [rw] rotation
65
68
  # @return [::Google::Cloud::SecretManager::V1::Rotation]
66
69
  # Optional. Rotation policy attached to the {::Google::Cloud::SecretManager::V1::Secret Secret}. May be excluded if there is no
@@ -101,6 +104,9 @@ module Google
101
104
  # @!attribute [rw] replication_status
102
105
  # @return [::Google::Cloud::SecretManager::V1::ReplicationStatus]
103
106
  # The replication status of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
107
+ # @!attribute [r] etag
108
+ # @return [::String]
109
+ # Output only. Etag of the currently stored {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
104
110
  class SecretVersion
105
111
  include ::Google::Protobuf::MessageExts
106
112
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -290,7 +296,9 @@ module Google
290
296
  # Secret. {::Google::Cloud::SecretManager::V1::Secret#topics Secret.topics} must be set to configure rotation.
291
297
  # @!attribute [rw] next_rotation_time
292
298
  # @return [::Google::Protobuf::Timestamp]
293
- # Optional. Timestamp in UTC at which the {::Google::Cloud::SecretManager::V1::Secret Secret} is scheduled to rotate.
299
+ # Optional. Timestamp in UTC at which the {::Google::Cloud::SecretManager::V1::Secret Secret} is scheduled to rotate. Cannot be
300
+ # set to less than 300s (5 min) in the future and at most 3153600000s (100
301
+ # years).
294
302
  #
295
303
  # {::Google::Cloud::SecretManager::V1::Rotation#next_rotation_time next_rotation_time} MUST be set if {::Google::Cloud::SecretManager::V1::Rotation#rotation_period rotation_period} is set.
296
304
  # @!attribute [rw] rotation_period
@@ -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
@@ -141,8 +155,9 @@ module Google
141
155
  # @return [::String]
142
156
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
143
157
  # `projects/*/secrets/*/versions/*`.
144
- # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
145
- # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
158
+ #
159
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
160
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
146
161
  class GetSecretVersionRequest
147
162
  include ::Google::Protobuf::MessageExts
148
163
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -165,6 +180,9 @@ module Google
165
180
  # @return [::String]
166
181
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
167
182
  # `projects/*/secrets/*/versions/*`.
183
+ #
184
+ # `projects/*/secrets/*/versions/latest` is an alias to the most recently
185
+ # created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
168
186
  class AccessSecretVersionRequest
169
187
  include ::Google::Protobuf::MessageExts
170
188
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -188,6 +206,11 @@ module Google
188
206
  # @return [::String]
189
207
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} to delete in the format
190
208
  # `projects/*/secrets/*`.
209
+ # @!attribute [rw] etag
210
+ # @return [::String]
211
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::Secret Secret}. The request succeeds if it matches
212
+ # the etag of the currently stored secret object. If the etag is omitted,
213
+ # the request succeeds.
191
214
  class DeleteSecretRequest
192
215
  include ::Google::Protobuf::MessageExts
193
216
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -198,6 +221,11 @@ module Google
198
221
  # @return [::String]
199
222
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to disable in the format
200
223
  # `projects/*/secrets/*/versions/*`.
224
+ # @!attribute [rw] etag
225
+ # @return [::String]
226
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
227
+ # the etag of the currently stored secret version object. If the etag is
228
+ # omitted, the request succeeds.
201
229
  class DisableSecretVersionRequest
202
230
  include ::Google::Protobuf::MessageExts
203
231
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -208,6 +236,11 @@ module Google
208
236
  # @return [::String]
209
237
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to enable in the format
210
238
  # `projects/*/secrets/*/versions/*`.
239
+ # @!attribute [rw] etag
240
+ # @return [::String]
241
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
242
+ # the etag of the currently stored secret version object. If the etag is
243
+ # omitted, the request succeeds.
211
244
  class EnableSecretVersionRequest
212
245
  include ::Google::Protobuf::MessageExts
213
246
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -218,6 +251,11 @@ module Google
218
251
  # @return [::String]
219
252
  # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to destroy in the format
220
253
  # `projects/*/secrets/*/versions/*`.
254
+ # @!attribute [rw] etag
255
+ # @return [::String]
256
+ # Optional. Etag of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request succeeds if it matches
257
+ # the etag of the currently stored secret version object. If the etag is
258
+ # omitted, the request succeeds.
221
259
  class DestroySecretVersionRequest
222
260
  include ::Google::Protobuf::MessageExts
223
261
  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.9.0
4
+ version: 0.11.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-04-05 00:00:00.000000000 Z
11
+ date: 2021-07-29 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.5'
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.5'
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
@@ -227,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
233
  - !ruby/object:Gem::Version
228
234
  version: '0'
229
235
  requirements: []
230
- rubygems_version: 3.2.13
236
+ rubygems_version: 3.2.17
231
237
  signing_key:
232
238
  specification_version: 4
233
239
  summary: API Client library for the Secret Manager V1 API