google-cloud-secret_manager-v1 0.2.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,7 @@ module Google
24
24
  module V1
25
25
  module SecretManagerService
26
26
  # Credentials for the SecretManagerService API.
27
- class Credentials < Google::Auth::Credentials
27
+ class Credentials < ::Google::Auth::Credentials
28
28
  self.scope = [
29
29
  "https://www.googleapis.com/auth/cloud-platform"
30
30
  ]
@@ -33,7 +33,7 @@ module Google
33
33
  #
34
34
  # @param project [String]
35
35
  #
36
- # @return [String]
36
+ # @return [::String]
37
37
  def project_path project:
38
38
  "projects/#{project}"
39
39
  end
@@ -48,9 +48,9 @@ module Google
48
48
  # @param project [String]
49
49
  # @param secret [String]
50
50
  #
51
- # @return [String]
51
+ # @return [::String]
52
52
  def secret_path project:, secret:
53
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
53
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
54
54
 
55
55
  "projects/#{project}/secrets/#{secret}"
56
56
  end
@@ -66,10 +66,10 @@ module Google
66
66
  # @param secret [String]
67
67
  # @param secret_version [String]
68
68
  #
69
- # @return [String]
69
+ # @return [::String]
70
70
  def secret_version_path project:, secret:, secret_version:
71
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
72
- raise ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
71
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
72
+ raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
73
73
 
74
74
  "projects/#{project}/secrets/#{secret}/versions/#{secret_version}"
75
75
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.4.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/secretmanager/v1/service.proto for package 'Google.Cloud.SecretManager.V1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2020 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
  require 'grpc'
21
20
  require 'google/cloud/secretmanager/v1/service_pb'
@@ -128,7 +128,7 @@ module Google
128
128
  # - pattern: "shelves/{shelf}"
129
129
  # parent_type: "cloudresourcemanager.googleapis.com/Folder"
130
130
  # @!attribute [rw] type
131
- # @return [String]
131
+ # @return [::String]
132
132
  # The resource type. It must be in the format of
133
133
  # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
134
134
  # singular and must not include version numbers.
@@ -140,7 +140,7 @@ module Google
140
140
  # should use PascalCase (UpperCamelCase). The maximum number of
141
141
  # characters allowed for the `resource_type_kind` is 100.
142
142
  # @!attribute [rw] pattern
143
- # @return [Array<String>]
143
+ # @return [::Array<::String>]
144
144
  # Optional. The relative resource name pattern associated with this resource
145
145
  # type. The DNS prefix of the full resource name shouldn't be specified here.
146
146
  #
@@ -161,11 +161,11 @@ module Google
161
161
  # the same component name (e.g. "project") refers to IDs of the same
162
162
  # type of resource.
163
163
  # @!attribute [rw] name_field
164
- # @return [String]
164
+ # @return [::String]
165
165
  # Optional. The field on the resource that designates the resource name
166
166
  # field. If omitted, this is assumed to be "name".
167
167
  # @!attribute [rw] history
168
- # @return [Google::Api::ResourceDescriptor::History]
168
+ # @return [::Google::Api::ResourceDescriptor::History]
169
169
  # Optional. The historical or future-looking state of the resource pattern.
170
170
  #
171
171
  # Example:
@@ -182,19 +182,19 @@ module Google
182
182
  # };
183
183
  # }
184
184
  # @!attribute [rw] plural
185
- # @return [String]
185
+ # @return [::String]
186
186
  # The plural name used in the resource name, such as 'projects' for
187
187
  # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
188
  # field in k8s CRD spec
189
189
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
190
190
  # @!attribute [rw] singular
191
- # @return [String]
191
+ # @return [::String]
192
192
  # The same concept of the `singular` field in k8s CRD spec
193
193
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
194
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
195
195
  class ResourceDescriptor
196
- include Google::Protobuf::MessageExts
197
- extend Google::Protobuf::MessageExts::ClassMethods
196
+ include ::Google::Protobuf::MessageExts
197
+ extend ::Google::Protobuf::MessageExts::ClassMethods
198
198
 
199
199
  # A description of the historical or future-looking state of the
200
200
  # resource pattern.
@@ -216,7 +216,7 @@ module Google
216
216
  # Defines a proto annotation that describes a string field that refers to
217
217
  # an API resource.
218
218
  # @!attribute [rw] type
219
- # @return [String]
219
+ # @return [::String]
220
220
  # The resource type that the annotated field references.
221
221
  #
222
222
  # Example:
@@ -227,7 +227,7 @@ module Google
227
227
  # }];
228
228
  # }
229
229
  # @!attribute [rw] child_type
230
- # @return [String]
230
+ # @return [::String]
231
231
  # The resource type of a child collection that the annotated field
232
232
  # references. This is useful for annotating the `parent` field that
233
233
  # doesn't have a fixed resource type.
@@ -240,8 +240,8 @@ module Google
240
240
  # };
241
241
  # }
242
242
  class ResourceReference
243
- include Google::Protobuf::MessageExts
244
- extend Google::Protobuf::MessageExts::ClassMethods
243
+ include ::Google::Protobuf::MessageExts
244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
245
245
  end
246
246
  end
247
247
  end
@@ -21,24 +21,24 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- # A {Google::Cloud::SecretManager::V1::Secret Secret} is a logical secret whose value and versions can
24
+ # A {::Google::Cloud::SecretManager::V1::Secret Secret} is a logical secret whose value and versions can
25
25
  # be accessed.
26
26
  #
27
- # A {Google::Cloud::SecretManager::V1::Secret Secret} is made up of zero or more {Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} that
27
+ # A {::Google::Cloud::SecretManager::V1::Secret Secret} is made up of zero or more {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} that
28
28
  # represent the secret data.
29
29
  # @!attribute [r] name
30
- # @return [String]
31
- # Output only. The resource name of the {Google::Cloud::SecretManager::V1::Secret Secret} in the format `projects/*/secrets/*`.
30
+ # @return [::String]
31
+ # Output only. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} in the format `projects/*/secrets/*`.
32
32
  # @!attribute [rw] replication
33
- # @return [Google::Cloud::SecretManager::V1::Replication]
34
- # Required. Immutable. The replication policy of the secret data attached to the {Google::Cloud::SecretManager::V1::Secret Secret}.
33
+ # @return [::Google::Cloud::SecretManager::V1::Replication]
34
+ # Required. Immutable. The replication policy of the secret data attached to the {::Google::Cloud::SecretManager::V1::Secret Secret}.
35
35
  #
36
36
  # The replication policy cannot be changed after the Secret has been created.
37
37
  # @!attribute [r] create_time
38
- # @return [Google::Protobuf::Timestamp]
39
- # Output only. The time at which the {Google::Cloud::SecretManager::V1::Secret Secret} was created.
38
+ # @return [::Google::Protobuf::Timestamp]
39
+ # Output only. The time at which the {::Google::Cloud::SecretManager::V1::Secret Secret} was created.
40
40
  # @!attribute [rw] labels
41
- # @return [Google::Protobuf::Map{String => String}]
41
+ # @return [::Google::Protobuf::Map{::String => ::String}]
42
42
  # The labels assigned to this Secret.
43
43
  #
44
44
  # Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
@@ -51,56 +51,56 @@ module Google
51
51
  #
52
52
  # No more than 64 labels can be assigned to a given resource.
53
53
  class Secret
54
- include Google::Protobuf::MessageExts
55
- extend Google::Protobuf::MessageExts::ClassMethods
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
56
 
57
57
  # @!attribute [rw] key
58
- # @return [String]
58
+ # @return [::String]
59
59
  # @!attribute [rw] value
60
- # @return [String]
60
+ # @return [::String]
61
61
  class LabelsEntry
62
- include Google::Protobuf::MessageExts
63
- extend Google::Protobuf::MessageExts::ClassMethods
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
64
  end
65
65
  end
66
66
 
67
67
  # A secret version resource in the Secret Manager API.
68
68
  # @!attribute [r] name
69
- # @return [String]
70
- # Output only. The resource name of the {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the
69
+ # @return [::String]
70
+ # Output only. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the
71
71
  # format `projects/*/secrets/*/versions/*`.
72
72
  #
73
- # {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} IDs in a {Google::Cloud::SecretManager::V1::Secret Secret} start at 1 and
73
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} IDs in a {::Google::Cloud::SecretManager::V1::Secret Secret} start at 1 and
74
74
  # are incremented for each subsequent version of the secret.
75
75
  # @!attribute [r] create_time
76
- # @return [Google::Protobuf::Timestamp]
77
- # Output only. The time at which the {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} was created.
76
+ # @return [::Google::Protobuf::Timestamp]
77
+ # Output only. The time at which the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} was created.
78
78
  # @!attribute [r] destroy_time
79
- # @return [Google::Protobuf::Timestamp]
80
- # Output only. The time this {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} was destroyed.
81
- # Only present if {Google::Cloud::SecretManager::V1::SecretVersion#state state} is
82
- # {Google::Cloud::SecretManager::V1::SecretVersion::State::DESTROYED DESTROYED}.
79
+ # @return [::Google::Protobuf::Timestamp]
80
+ # Output only. The time this {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} was destroyed.
81
+ # Only present if {::Google::Cloud::SecretManager::V1::SecretVersion#state state} is
82
+ # {::Google::Cloud::SecretManager::V1::SecretVersion::State::DESTROYED DESTROYED}.
83
83
  # @!attribute [r] state
84
- # @return [Google::Cloud::SecretManager::V1::SecretVersion::State]
85
- # Output only. The current state of the {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
84
+ # @return [::Google::Cloud::SecretManager::V1::SecretVersion::State]
85
+ # Output only. The current state of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
86
86
  class SecretVersion
87
- include Google::Protobuf::MessageExts
88
- extend Google::Protobuf::MessageExts::ClassMethods
87
+ include ::Google::Protobuf::MessageExts
88
+ extend ::Google::Protobuf::MessageExts::ClassMethods
89
89
 
90
- # The state of a {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}, indicating if it can be accessed.
90
+ # The state of a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}, indicating if it can be accessed.
91
91
  module State
92
92
  # Not specified. This value is unused and invalid.
93
93
  STATE_UNSPECIFIED = 0
94
94
 
95
- # The {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} may be accessed.
95
+ # The {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} may be accessed.
96
96
  ENABLED = 1
97
97
 
98
- # The {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} may not be accessed, but the secret data
99
- # is still available and can be placed back into the {Google::Cloud::SecretManager::V1::SecretVersion::State::ENABLED ENABLED}
98
+ # The {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} may not be accessed, but the secret data
99
+ # is still available and can be placed back into the {::Google::Cloud::SecretManager::V1::SecretVersion::State::ENABLED ENABLED}
100
100
  # state.
101
101
  DISABLED = 2
102
102
 
103
- # The {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} is destroyed and the secret data is no longer
103
+ # The {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} is destroyed and the secret data is no longer
104
104
  # stored. A version may not leave this state once entered.
105
105
  DESTROYED = 3
106
106
  end
@@ -108,53 +108,53 @@ module Google
108
108
 
109
109
  # A policy that defines the replication configuration of data.
110
110
  # @!attribute [rw] automatic
111
- # @return [Google::Cloud::SecretManager::V1::Replication::Automatic]
112
- # The {Google::Cloud::SecretManager::V1::Secret Secret} will automatically be replicated without any restrictions.
111
+ # @return [::Google::Cloud::SecretManager::V1::Replication::Automatic]
112
+ # The {::Google::Cloud::SecretManager::V1::Secret Secret} will automatically be replicated without any restrictions.
113
113
  # @!attribute [rw] user_managed
114
- # @return [Google::Cloud::SecretManager::V1::Replication::UserManaged]
115
- # The {Google::Cloud::SecretManager::V1::Secret Secret} will only be replicated into the locations specified.
114
+ # @return [::Google::Cloud::SecretManager::V1::Replication::UserManaged]
115
+ # The {::Google::Cloud::SecretManager::V1::Secret Secret} will only be replicated into the locations specified.
116
116
  class Replication
117
- include Google::Protobuf::MessageExts
118
- extend Google::Protobuf::MessageExts::ClassMethods
117
+ include ::Google::Protobuf::MessageExts
118
+ extend ::Google::Protobuf::MessageExts::ClassMethods
119
119
 
120
- # A replication policy that replicates the {Google::Cloud::SecretManager::V1::Secret Secret} payload without any
120
+ # A replication policy that replicates the {::Google::Cloud::SecretManager::V1::Secret Secret} payload without any
121
121
  # restrictions.
122
122
  class Automatic
123
- include Google::Protobuf::MessageExts
124
- extend Google::Protobuf::MessageExts::ClassMethods
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
125
  end
126
126
 
127
- # A replication policy that replicates the {Google::Cloud::SecretManager::V1::Secret Secret} payload into the
127
+ # A replication policy that replicates the {::Google::Cloud::SecretManager::V1::Secret Secret} payload into the
128
128
  # locations specified in [Secret.replication.user_managed.replicas][]
129
129
  # @!attribute [rw] replicas
130
- # @return [Array<Google::Cloud::SecretManager::V1::Replication::UserManaged::Replica>]
131
- # Required. The list of Replicas for this {Google::Cloud::SecretManager::V1::Secret Secret}.
130
+ # @return [::Array<::Google::Cloud::SecretManager::V1::Replication::UserManaged::Replica>]
131
+ # Required. The list of Replicas for this {::Google::Cloud::SecretManager::V1::Secret Secret}.
132
132
  #
133
133
  # Cannot be empty.
134
134
  class UserManaged
135
- include Google::Protobuf::MessageExts
136
- extend Google::Protobuf::MessageExts::ClassMethods
135
+ include ::Google::Protobuf::MessageExts
136
+ extend ::Google::Protobuf::MessageExts::ClassMethods
137
137
 
138
- # Represents a Replica for this {Google::Cloud::SecretManager::V1::Secret Secret}.
138
+ # Represents a Replica for this {::Google::Cloud::SecretManager::V1::Secret Secret}.
139
139
  # @!attribute [rw] location
140
- # @return [String]
140
+ # @return [::String]
141
141
  # The canonical IDs of the location to replicate data.
142
142
  # For example: `"us-east1"`.
143
143
  class Replica
144
- include Google::Protobuf::MessageExts
145
- extend Google::Protobuf::MessageExts::ClassMethods
144
+ include ::Google::Protobuf::MessageExts
145
+ extend ::Google::Protobuf::MessageExts::ClassMethods
146
146
  end
147
147
  end
148
148
  end
149
149
 
150
150
  # A secret payload resource in the Secret Manager API. This contains the
151
- # sensitive secret data that is associated with a {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
151
+ # sensitive secret payload that is associated with a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
152
152
  # @!attribute [rw] data
153
- # @return [String]
153
+ # @return [::String]
154
154
  # The secret data. Must be no larger than 64KiB.
155
155
  class SecretPayload
156
- include Google::Protobuf::MessageExts
157
- extend Google::Protobuf::MessageExts::ClassMethods
156
+ include ::Google::Protobuf::MessageExts
157
+ extend ::Google::Protobuf::MessageExts::ClassMethods
158
158
  end
159
159
  end
160
160
  end
@@ -21,202 +21,206 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
24
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
25
25
  # @!attribute [rw] parent
26
- # @return [String]
26
+ # @return [::String]
27
27
  # Required. The resource name of the project associated with the
28
- # {Google::Cloud::SecretManager::V1::Secret Secrets}, in the format `projects/*`.
28
+ # {::Google::Cloud::SecretManager::V1::Secret Secrets}, in the format `projects/*`.
29
29
  # @!attribute [rw] page_size
30
- # @return [Integer]
30
+ # @return [::Integer]
31
31
  # Optional. The maximum number of results to be returned in a single page. If
32
32
  # set to 0, the server decides the number of results to return. If the
33
33
  # number is greater than 25000, it is capped at 25000.
34
34
  # @!attribute [rw] page_token
35
- # @return [String]
35
+ # @return [::String]
36
36
  # Optional. Pagination token, returned earlier via
37
- # {Google::Cloud::SecretManager::V1::ListSecretsResponse#next_page_token ListSecretsResponse.next_page_token}.
37
+ # {::Google::Cloud::SecretManager::V1::ListSecretsResponse#next_page_token ListSecretsResponse.next_page_token}.
38
38
  class ListSecretsRequest
39
- include Google::Protobuf::MessageExts
40
- extend Google::Protobuf::MessageExts::ClassMethods
39
+ include ::Google::Protobuf::MessageExts
40
+ extend ::Google::Protobuf::MessageExts::ClassMethods
41
41
  end
42
42
 
43
- # Response message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
43
+ # Response message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
44
44
  # @!attribute [rw] secrets
45
- # @return [Array<Google::Cloud::SecretManager::V1::Secret>]
46
- # The list of {Google::Cloud::SecretManager::V1::Secret Secrets} sorted in reverse by create_time (newest
45
+ # @return [::Array<::Google::Cloud::SecretManager::V1::Secret>]
46
+ # The list of {::Google::Cloud::SecretManager::V1::Secret Secrets} sorted in reverse by create_time (newest
47
47
  # first).
48
48
  # @!attribute [rw] next_page_token
49
- # @return [String]
49
+ # @return [::String]
50
50
  # A token to retrieve the next page of results. Pass this value in
51
- # {Google::Cloud::SecretManager::V1::ListSecretsRequest#page_token ListSecretsRequest.page_token} to retrieve the next page.
51
+ # {::Google::Cloud::SecretManager::V1::ListSecretsRequest#page_token ListSecretsRequest.page_token} to retrieve the next page.
52
52
  # @!attribute [rw] total_size
53
- # @return [Integer]
54
- # The total number of {Google::Cloud::SecretManager::V1::Secret Secrets}.
53
+ # @return [::Integer]
54
+ # The total number of {::Google::Cloud::SecretManager::V1::Secret Secrets}.
55
55
  class ListSecretsResponse
56
- include Google::Protobuf::MessageExts
57
- extend Google::Protobuf::MessageExts::ClassMethods
56
+ include ::Google::Protobuf::MessageExts
57
+ extend ::Google::Protobuf::MessageExts::ClassMethods
58
58
  end
59
59
 
60
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#create_secret SecretManagerService.CreateSecret}.
60
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#create_secret SecretManagerService.CreateSecret}.
61
61
  # @!attribute [rw] parent
62
- # @return [String]
62
+ # @return [::String]
63
63
  # Required. The resource name of the project to associate with the
64
- # {Google::Cloud::SecretManager::V1::Secret Secret}, in the format `projects/*`.
64
+ # {::Google::Cloud::SecretManager::V1::Secret Secret}, in the format `projects/*`.
65
65
  # @!attribute [rw] secret_id
66
- # @return [String]
66
+ # @return [::String]
67
67
  # Required. This must be unique within the project.
68
+ #
69
+ # A secret ID is a string with a maximum length of 255 characters and can
70
+ # contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and
71
+ # underscore (`_`) characters.
68
72
  # @!attribute [rw] secret
69
- # @return [Google::Cloud::SecretManager::V1::Secret]
70
- # Required. A {Google::Cloud::SecretManager::V1::Secret Secret} with initial field values.
73
+ # @return [::Google::Cloud::SecretManager::V1::Secret]
74
+ # Required. A {::Google::Cloud::SecretManager::V1::Secret Secret} with initial field values.
71
75
  class CreateSecretRequest
72
- include Google::Protobuf::MessageExts
73
- extend Google::Protobuf::MessageExts::ClassMethods
76
+ include ::Google::Protobuf::MessageExts
77
+ extend ::Google::Protobuf::MessageExts::ClassMethods
74
78
  end
75
79
 
76
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version SecretManagerService.AddSecretVersion}.
80
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version SecretManagerService.AddSecretVersion}.
77
81
  # @!attribute [rw] parent
78
- # @return [String]
79
- # Required. The resource name of the {Google::Cloud::SecretManager::V1::Secret Secret} to associate with the
80
- # {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format `projects/*/secrets/*`.
82
+ # @return [::String]
83
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} to associate with the
84
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format `projects/*/secrets/*`.
81
85
  # @!attribute [rw] payload
82
- # @return [Google::Cloud::SecretManager::V1::SecretPayload]
83
- # Required. The secret payload of the {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
86
+ # @return [::Google::Cloud::SecretManager::V1::SecretPayload]
87
+ # Required. The secret payload of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
84
88
  class AddSecretVersionRequest
85
- include Google::Protobuf::MessageExts
86
- extend Google::Protobuf::MessageExts::ClassMethods
89
+ include ::Google::Protobuf::MessageExts
90
+ extend ::Google::Protobuf::MessageExts::ClassMethods
87
91
  end
88
92
 
89
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#get_secret SecretManagerService.GetSecret}.
93
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#get_secret SecretManagerService.GetSecret}.
90
94
  # @!attribute [rw] name
91
- # @return [String]
92
- # Required. The resource name of the {Google::Cloud::SecretManager::V1::Secret Secret}, in the format `projects/*/secrets/*`.
95
+ # @return [::String]
96
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret}, in the format `projects/*/secrets/*`.
93
97
  class GetSecretRequest
94
- include Google::Protobuf::MessageExts
95
- extend Google::Protobuf::MessageExts::ClassMethods
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
100
  end
97
101
 
98
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
102
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
99
103
  # @!attribute [rw] parent
100
- # @return [String]
101
- # Required. The resource name of the {Google::Cloud::SecretManager::V1::Secret Secret} associated with the
102
- # {Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} to list, in the format
104
+ # @return [::String]
105
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} associated with the
106
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} to list, in the format
103
107
  # `projects/*/secrets/*`.
104
108
  # @!attribute [rw] page_size
105
- # @return [Integer]
109
+ # @return [::Integer]
106
110
  # Optional. The maximum number of results to be returned in a single page. If
107
111
  # set to 0, the server decides the number of results to return. If the
108
112
  # number is greater than 25000, it is capped at 25000.
109
113
  # @!attribute [rw] page_token
110
- # @return [String]
114
+ # @return [::String]
111
115
  # Optional. Pagination token, returned earlier via
112
116
  # ListSecretVersionsResponse.next_page_token][].
113
117
  class ListSecretVersionsRequest
114
- include Google::Protobuf::MessageExts
115
- extend Google::Protobuf::MessageExts::ClassMethods
118
+ include ::Google::Protobuf::MessageExts
119
+ extend ::Google::Protobuf::MessageExts::ClassMethods
116
120
  end
117
121
 
118
- # Response message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
122
+ # Response message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
119
123
  # @!attribute [rw] versions
120
- # @return [Array<Google::Cloud::SecretManager::V1::SecretVersion>]
121
- # The list of {Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} sorted in reverse by
124
+ # @return [::Array<::Google::Cloud::SecretManager::V1::SecretVersion>]
125
+ # The list of {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} sorted in reverse by
122
126
  # create_time (newest first).
123
127
  # @!attribute [rw] next_page_token
124
- # @return [String]
128
+ # @return [::String]
125
129
  # A token to retrieve the next page of results. Pass this value in
126
- # {Google::Cloud::SecretManager::V1::ListSecretVersionsRequest#page_token ListSecretVersionsRequest.page_token} to retrieve the next page.
130
+ # {::Google::Cloud::SecretManager::V1::ListSecretVersionsRequest#page_token ListSecretVersionsRequest.page_token} to retrieve the next page.
127
131
  # @!attribute [rw] total_size
128
- # @return [Integer]
129
- # The total number of {Google::Cloud::SecretManager::V1::SecretVersion SecretVersions}.
132
+ # @return [::Integer]
133
+ # The total number of {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions}.
130
134
  class ListSecretVersionsResponse
131
- include Google::Protobuf::MessageExts
132
- extend Google::Protobuf::MessageExts::ClassMethods
135
+ include ::Google::Protobuf::MessageExts
136
+ extend ::Google::Protobuf::MessageExts::ClassMethods
133
137
  end
134
138
 
135
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#get_secret_version SecretManagerService.GetSecretVersion}.
139
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#get_secret_version SecretManagerService.GetSecretVersion}.
136
140
  # @!attribute [rw] name
137
- # @return [String]
138
- # Required. The resource name of the {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
141
+ # @return [::String]
142
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
139
143
  # `projects/*/secrets/*/versions/*`.
140
144
  # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
141
- # {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
145
+ # {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
142
146
  class GetSecretVersionRequest
143
- include Google::Protobuf::MessageExts
144
- extend Google::Protobuf::MessageExts::ClassMethods
147
+ include ::Google::Protobuf::MessageExts
148
+ extend ::Google::Protobuf::MessageExts::ClassMethods
145
149
  end
146
150
 
147
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#update_secret SecretManagerService.UpdateSecret}.
151
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#update_secret SecretManagerService.UpdateSecret}.
148
152
  # @!attribute [rw] secret
149
- # @return [Google::Cloud::SecretManager::V1::Secret]
150
- # Required. {Google::Cloud::SecretManager::V1::Secret Secret} with updated field values.
153
+ # @return [::Google::Cloud::SecretManager::V1::Secret]
154
+ # Required. {::Google::Cloud::SecretManager::V1::Secret Secret} with updated field values.
151
155
  # @!attribute [rw] update_mask
152
- # @return [Google::Protobuf::FieldMask]
156
+ # @return [::Google::Protobuf::FieldMask]
153
157
  # Required. Specifies the fields to be updated.
154
158
  class UpdateSecretRequest
155
- include Google::Protobuf::MessageExts
156
- extend Google::Protobuf::MessageExts::ClassMethods
159
+ include ::Google::Protobuf::MessageExts
160
+ extend ::Google::Protobuf::MessageExts::ClassMethods
157
161
  end
158
162
 
159
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
163
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
160
164
  # @!attribute [rw] name
161
- # @return [String]
162
- # Required. The resource name of the {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
165
+ # @return [::String]
166
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
163
167
  # `projects/*/secrets/*/versions/*`.
164
168
  class AccessSecretVersionRequest
165
- include Google::Protobuf::MessageExts
166
- extend Google::Protobuf::MessageExts::ClassMethods
169
+ include ::Google::Protobuf::MessageExts
170
+ extend ::Google::Protobuf::MessageExts::ClassMethods
167
171
  end
168
172
 
169
- # Response message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
173
+ # Response message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
170
174
  # @!attribute [rw] name
171
- # @return [String]
172
- # The resource name of the {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
175
+ # @return [::String]
176
+ # The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
173
177
  # `projects/*/secrets/*/versions/*`.
174
178
  # @!attribute [rw] payload
175
- # @return [Google::Cloud::SecretManager::V1::SecretPayload]
179
+ # @return [::Google::Cloud::SecretManager::V1::SecretPayload]
176
180
  # Secret payload
177
181
  class AccessSecretVersionResponse
178
- include Google::Protobuf::MessageExts
179
- extend Google::Protobuf::MessageExts::ClassMethods
182
+ include ::Google::Protobuf::MessageExts
183
+ extend ::Google::Protobuf::MessageExts::ClassMethods
180
184
  end
181
185
 
182
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#delete_secret SecretManagerService.DeleteSecret}.
186
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#delete_secret SecretManagerService.DeleteSecret}.
183
187
  # @!attribute [rw] name
184
- # @return [String]
185
- # Required. The resource name of the {Google::Cloud::SecretManager::V1::Secret Secret} to delete in the format
188
+ # @return [::String]
189
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1::Secret Secret} to delete in the format
186
190
  # `projects/*/secrets/*`.
187
191
  class DeleteSecretRequest
188
- include Google::Protobuf::MessageExts
189
- extend Google::Protobuf::MessageExts::ClassMethods
192
+ include ::Google::Protobuf::MessageExts
193
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
194
  end
191
195
 
192
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#disable_secret_version SecretManagerService.DisableSecretVersion}.
196
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#disable_secret_version SecretManagerService.DisableSecretVersion}.
193
197
  # @!attribute [rw] name
194
- # @return [String]
195
- # Required. The resource name of the {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to disable in the format
198
+ # @return [::String]
199
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to disable in the format
196
200
  # `projects/*/secrets/*/versions/*`.
197
201
  class DisableSecretVersionRequest
198
- include Google::Protobuf::MessageExts
199
- extend Google::Protobuf::MessageExts::ClassMethods
202
+ include ::Google::Protobuf::MessageExts
203
+ extend ::Google::Protobuf::MessageExts::ClassMethods
200
204
  end
201
205
 
202
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#enable_secret_version SecretManagerService.EnableSecretVersion}.
206
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#enable_secret_version SecretManagerService.EnableSecretVersion}.
203
207
  # @!attribute [rw] name
204
- # @return [String]
205
- # Required. The resource name of the {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to enable in the format
208
+ # @return [::String]
209
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to enable in the format
206
210
  # `projects/*/secrets/*/versions/*`.
207
211
  class EnableSecretVersionRequest
208
- include Google::Protobuf::MessageExts
209
- extend Google::Protobuf::MessageExts::ClassMethods
212
+ include ::Google::Protobuf::MessageExts
213
+ extend ::Google::Protobuf::MessageExts::ClassMethods
210
214
  end
211
215
 
212
- # Request message for {Google::Cloud::SecretManager::V1::SecretManagerService::Client#destroy_secret_version SecretManagerService.DestroySecretVersion}.
216
+ # Request message for {::Google::Cloud::SecretManager::V1::SecretManagerService::Client#destroy_secret_version SecretManagerService.DestroySecretVersion}.
213
217
  # @!attribute [rw] name
214
- # @return [String]
215
- # Required. The resource name of the {Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to destroy in the format
218
+ # @return [::String]
219
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to destroy in the format
216
220
  # `projects/*/secrets/*/versions/*`.
217
221
  class DestroySecretVersionRequest
218
- include Google::Protobuf::MessageExts
219
- extend Google::Protobuf::MessageExts::ClassMethods
222
+ include ::Google::Protobuf::MessageExts
223
+ extend ::Google::Protobuf::MessageExts::ClassMethods
220
224
  end
221
225
  end
222
226
  end