google-cloud-secret_manager-v1beta1 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +30 -27
- data/lib/google/cloud/secret_manager/v1beta1/secret_manager_service/client.rb +152 -99
- data/lib/google/cloud/secret_manager/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +72 -72
- data/proto_docs/google/cloud/secrets/v1beta1/resources.rb +26 -26
- data/proto_docs/google/cloud/secrets/v1beta1/service.rb +40 -40
- data/proto_docs/google/iam/v1/iam_policy.rb +3 -3
- data/proto_docs/google/iam/v1/policy.rb +10 -10
- data/proto_docs/google/protobuf/empty.rb +3 -3
- data/proto_docs/google/protobuf/field_mask.rb +40 -40
- data/proto_docs/google/protobuf/timestamp.rb +3 -3
- metadata +6 -6
@@ -27,110 +27,110 @@ module Google
|
|
27
27
|
#
|
28
28
|
# Example:
|
29
29
|
#
|
30
|
-
# message Topic
|
30
|
+
# message Topic {
|
31
31
|
# // Indicates this message defines a resource schema.
|
32
|
-
# // Declares the resource type in the format of
|
33
|
-
# // For Kubernetes resources, the format is
|
34
|
-
# option (google.api.resource) =
|
32
|
+
# // Declares the resource type in the format of {service}/{kind}.
|
33
|
+
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
|
+
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
# name_descriptor:
|
37
|
-
# pattern: "projects
|
36
|
+
# name_descriptor: {
|
37
|
+
# pattern: "projects/{project}/topics/{topic}"
|
38
38
|
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
39
|
+
# parent_name_extractor: "projects/{project}"
|
40
|
+
# }
|
41
|
+
# };
|
42
|
+
# }
|
43
43
|
#
|
44
44
|
# The ResourceDescriptor Yaml config will look like:
|
45
45
|
#
|
46
46
|
# resources:
|
47
47
|
# - type: "pubsub.googleapis.com/Topic"
|
48
48
|
# name_descriptor:
|
49
|
-
# - pattern: "projects
|
49
|
+
# - pattern: "projects/\\{project}/topics/\\{topic}"
|
50
50
|
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects
|
51
|
+
# parent_name_extractor: "projects/\\{project}"
|
52
52
|
#
|
53
53
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
54
|
# live under multiple parents.
|
55
55
|
#
|
56
56
|
# Example:
|
57
57
|
#
|
58
|
-
# message LogEntry
|
59
|
-
# option (google.api.resource) =
|
58
|
+
# message LogEntry {
|
59
|
+
# option (google.api.resource) = {
|
60
60
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
# name_descriptor:
|
62
|
-
# pattern: "projects
|
61
|
+
# name_descriptor: {
|
62
|
+
# pattern: "projects/{project}/logs/{log}"
|
63
63
|
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
64
|
-
# parent_name_extractor: "projects
|
65
|
-
#
|
66
|
-
# name_descriptor:
|
67
|
-
# pattern: "folders
|
64
|
+
# parent_name_extractor: "projects/{project}"
|
65
|
+
# }
|
66
|
+
# name_descriptor: {
|
67
|
+
# pattern: "folders/{folder}/logs/{log}"
|
68
68
|
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders
|
70
|
-
#
|
71
|
-
# name_descriptor:
|
72
|
-
# pattern: "organizations
|
69
|
+
# parent_name_extractor: "folders/{folder}"
|
70
|
+
# }
|
71
|
+
# name_descriptor: {
|
72
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
73
73
|
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations
|
75
|
-
#
|
76
|
-
# name_descriptor:
|
77
|
-
# pattern: "billingAccounts
|
74
|
+
# parent_name_extractor: "organizations/{organization}"
|
75
|
+
# }
|
76
|
+
# name_descriptor: {
|
77
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
78
|
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
79
|
+
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
+
# }
|
81
|
+
# };
|
82
|
+
# }
|
83
83
|
#
|
84
84
|
# The ResourceDescriptor Yaml config will look like:
|
85
85
|
#
|
86
86
|
# resources:
|
87
87
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
88
|
# name_descriptor:
|
89
|
-
# - pattern: "projects
|
89
|
+
# - pattern: "projects/{project}/logs/{log}"
|
90
90
|
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
91
|
-
# parent_name_extractor: "projects
|
92
|
-
# - pattern: "folders
|
91
|
+
# parent_name_extractor: "projects/{project}"
|
92
|
+
# - pattern: "folders/{folder}/logs/{log}"
|
93
93
|
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders
|
95
|
-
# - pattern: "organizations
|
94
|
+
# parent_name_extractor: "folders/{folder}"
|
95
|
+
# - pattern: "organizations/{organization}/logs/{log}"
|
96
96
|
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations
|
98
|
-
# - pattern: "billingAccounts
|
97
|
+
# parent_name_extractor: "organizations/{organization}"
|
98
|
+
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
99
|
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts
|
100
|
+
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
101
|
#
|
102
102
|
# For flexible resources, the resource name doesn't contain parent names, but
|
103
103
|
# the resource itself has parents for policy evaluation.
|
104
104
|
#
|
105
105
|
# Example:
|
106
106
|
#
|
107
|
-
# message Shelf
|
108
|
-
# option (google.api.resource) =
|
107
|
+
# message Shelf {
|
108
|
+
# option (google.api.resource) = {
|
109
109
|
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor:
|
111
|
-
# pattern: "shelves
|
110
|
+
# name_descriptor: {
|
111
|
+
# pattern: "shelves/{shelf}"
|
112
112
|
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
#
|
114
|
-
# name_descriptor:
|
115
|
-
# pattern: "shelves
|
113
|
+
# }
|
114
|
+
# name_descriptor: {
|
115
|
+
# pattern: "shelves/{shelf}"
|
116
116
|
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
#
|
118
|
-
#
|
119
|
-
#
|
117
|
+
# }
|
118
|
+
# };
|
119
|
+
# }
|
120
120
|
#
|
121
121
|
# The ResourceDescriptor Yaml config will look like:
|
122
122
|
#
|
123
123
|
# resources:
|
124
124
|
# - type: 'library.googleapis.com/Shelf'
|
125
125
|
# name_descriptor:
|
126
|
-
# - pattern: "shelves
|
126
|
+
# - pattern: "shelves/{shelf}"
|
127
127
|
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves
|
128
|
+
# - pattern: "shelves/{shelf}"
|
129
129
|
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
130
130
|
# @!attribute [rw] type
|
131
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.
|
135
135
|
#
|
136
136
|
# Example: `storage.googleapis.com/Bucket`
|
@@ -147,14 +147,14 @@ module Google
|
|
147
147
|
# The path pattern must follow the syntax, which aligns with HTTP binding
|
148
148
|
# syntax:
|
149
149
|
#
|
150
|
-
# Template = Segment
|
150
|
+
# Template = Segment { "/" Segment } ;
|
151
151
|
# Segment = LITERAL | Variable ;
|
152
|
-
# Variable = "
|
152
|
+
# Variable = "{" LITERAL "}" ;
|
153
153
|
#
|
154
154
|
# Examples:
|
155
155
|
#
|
156
|
-
# - "projects
|
157
|
-
# - "projects
|
156
|
+
# - "projects/\\{project}/topics/\\{topic}"
|
157
|
+
# - "projects/\\{project}/knowledgeBases/\\{knowledge_base}"
|
158
158
|
#
|
159
159
|
# The components in braces correspond to the IDs for each resource in the
|
160
160
|
# hierarchy. It is expected that, if multiple patterns are provided,
|
@@ -172,19 +172,19 @@ module Google
|
|
172
172
|
#
|
173
173
|
# // The InspectTemplate message originally only supported resource
|
174
174
|
# // names with organization, and project was added later.
|
175
|
-
# message InspectTemplate
|
176
|
-
# option (google.api.resource) =
|
175
|
+
# message InspectTemplate {
|
176
|
+
# option (google.api.resource) = {
|
177
177
|
# type: "dlp.googleapis.com/InspectTemplate"
|
178
178
|
# pattern:
|
179
|
-
# "organizations
|
180
|
-
# pattern: "projects
|
179
|
+
# "organizations/{organization}/inspectTemplates/{inspect_template}"
|
180
|
+
# pattern: "projects/{project}/inspectTemplates/{inspect_template}"
|
181
181
|
# history: ORIGINALLY_SINGLE_PATTERN
|
182
|
-
#
|
183
|
-
#
|
182
|
+
# };
|
183
|
+
# }
|
184
184
|
# @!attribute [rw] plural
|
185
185
|
# @return [String]
|
186
186
|
# The plural name used in the resource name, such as 'projects' for
|
187
|
-
# the name of 'projects
|
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
|
@@ -221,11 +221,11 @@ module Google
|
|
221
221
|
#
|
222
222
|
# Example:
|
223
223
|
#
|
224
|
-
# message Subscription
|
225
|
-
# string topic = 2 [(google.api.resource_reference) =
|
224
|
+
# message Subscription {
|
225
|
+
# string topic = 2 [(google.api.resource_reference) = {
|
226
226
|
# type: "pubsub.googleapis.com/Topic"
|
227
|
-
#
|
228
|
-
#
|
227
|
+
# }];
|
228
|
+
# }
|
229
229
|
# @!attribute [rw] child_type
|
230
230
|
# @return [String]
|
231
231
|
# The resource type of a child collection that the annotated field
|
@@ -234,11 +234,11 @@ module Google
|
|
234
234
|
#
|
235
235
|
# Example:
|
236
236
|
#
|
237
|
-
# message ListLogEntriesRequest
|
238
|
-
# string parent = 1 [(google.api.resource_reference) =
|
237
|
+
# message ListLogEntriesRequest {
|
238
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
239
239
|
# child_type: "logging.googleapis.com/LogEntry"
|
240
|
-
#
|
241
|
-
#
|
240
|
+
# };
|
241
|
+
# }
|
242
242
|
class ResourceReference
|
243
243
|
include Google::Protobuf::MessageExts
|
244
244
|
extend Google::Protobuf::MessageExts::ClassMethods
|
@@ -21,33 +21,33 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module SecretManager
|
23
23
|
module V1beta1
|
24
|
-
# A
|
24
|
+
# A {Google::Cloud::SecretManager::V1beta1::Secret Secret} is a logical secret whose value and versions can
|
25
25
|
# be accessed.
|
26
26
|
#
|
27
|
-
# A
|
27
|
+
# A {Google::Cloud::SecretManager::V1beta1::Secret Secret} is made up of zero or more {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions} that
|
28
28
|
# represent the secret data.
|
29
29
|
# @!attribute [r] name
|
30
30
|
# @return [String]
|
31
|
-
# Output only. The resource name of the
|
31
|
+
# Output only. The resource name of the {Google::Cloud::SecretManager::V1beta1::Secret Secret} in the format `projects/*/secrets/*`.
|
32
32
|
# @!attribute [rw] replication
|
33
33
|
# @return [Google::Cloud::SecretManager::V1beta1::Replication]
|
34
|
-
# Required. Immutable. The replication policy of the secret data attached to the
|
34
|
+
# Required. Immutable. The replication policy of the secret data attached to the {Google::Cloud::SecretManager::V1beta1::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
38
|
# @return [Google::Protobuf::Timestamp]
|
39
|
-
# Output only. The time at which the
|
39
|
+
# Output only. The time at which the {Google::Cloud::SecretManager::V1beta1::Secret Secret} was created.
|
40
40
|
# @!attribute [rw] labels
|
41
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
|
45
45
|
# of maximum 128 bytes, and must conform to the following PCRE regular
|
46
|
-
# expression: `[\p
|
46
|
+
# expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`
|
47
47
|
#
|
48
48
|
# Label values must be between 0 and 63 characters long, have a UTF-8
|
49
49
|
# encoding of maximum 128 bytes, and must conform to the following PCRE
|
50
|
-
# regular expression: `[\p
|
50
|
+
# regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`
|
51
51
|
#
|
52
52
|
# No more than 64 labels can be assigned to a given resource.
|
53
53
|
class Secret
|
@@ -67,40 +67,40 @@ module Google
|
|
67
67
|
# A secret version resource in the Secret Manager API.
|
68
68
|
# @!attribute [r] name
|
69
69
|
# @return [String]
|
70
|
-
# Output only. The resource name of the
|
70
|
+
# Output only. The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} in the
|
71
71
|
# format `projects/*/secrets/*/versions/*`.
|
72
72
|
#
|
73
|
-
#
|
73
|
+
# {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} IDs in a {Google::Cloud::SecretManager::V1beta1::Secret Secret} start at 1 and
|
74
74
|
# are incremented for each subsequent version of the secret.
|
75
75
|
# @!attribute [r] create_time
|
76
76
|
# @return [Google::Protobuf::Timestamp]
|
77
|
-
# Output only. The time at which the
|
77
|
+
# Output only. The time at which the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} was created.
|
78
78
|
# @!attribute [r] destroy_time
|
79
79
|
# @return [Google::Protobuf::Timestamp]
|
80
|
-
# Output only. The time this
|
81
|
-
# Only present if
|
82
|
-
#
|
80
|
+
# Output only. The time this {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} was destroyed.
|
81
|
+
# Only present if {Google::Cloud::SecretManager::V1beta1::SecretVersion#state state} is
|
82
|
+
# {Google::Cloud::SecretManager::V1beta1::SecretVersion::State::DESTROYED DESTROYED}.
|
83
83
|
# @!attribute [r] state
|
84
84
|
# @return [Google::Cloud::SecretManager::V1beta1::SecretVersion::State]
|
85
|
-
# Output only. The current state of the
|
85
|
+
# Output only. The current state of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
|
86
86
|
class SecretVersion
|
87
87
|
include Google::Protobuf::MessageExts
|
88
88
|
extend Google::Protobuf::MessageExts::ClassMethods
|
89
89
|
|
90
|
-
# The state of a
|
90
|
+
# The state of a {Google::Cloud::SecretManager::V1beta1::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
|
95
|
+
# The {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} may be accessed.
|
96
96
|
ENABLED = 1
|
97
97
|
|
98
|
-
# The
|
99
|
-
# is still available and can be placed back into the
|
98
|
+
# The {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} may not be accessed, but the secret data
|
99
|
+
# is still available and can be placed back into the {Google::Cloud::SecretManager::V1beta1::SecretVersion::State::ENABLED ENABLED}
|
100
100
|
# state.
|
101
101
|
DISABLED = 2
|
102
102
|
|
103
|
-
# The
|
103
|
+
# The {Google::Cloud::SecretManager::V1beta1::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
|
@@ -109,33 +109,33 @@ module Google
|
|
109
109
|
# A policy that defines the replication configuration of data.
|
110
110
|
# @!attribute [rw] automatic
|
111
111
|
# @return [Google::Cloud::SecretManager::V1beta1::Replication::Automatic]
|
112
|
-
# The
|
112
|
+
# The {Google::Cloud::SecretManager::V1beta1::Secret Secret} will automatically be replicated without any restrictions.
|
113
113
|
# @!attribute [rw] user_managed
|
114
114
|
# @return [Google::Cloud::SecretManager::V1beta1::Replication::UserManaged]
|
115
|
-
# The
|
115
|
+
# The {Google::Cloud::SecretManager::V1beta1::Secret Secret} will only be replicated into the locations specified.
|
116
116
|
class Replication
|
117
117
|
include Google::Protobuf::MessageExts
|
118
118
|
extend Google::Protobuf::MessageExts::ClassMethods
|
119
119
|
|
120
|
-
# A replication policy that replicates the
|
120
|
+
# A replication policy that replicates the {Google::Cloud::SecretManager::V1beta1::Secret Secret} payload without any
|
121
121
|
# restrictions.
|
122
122
|
class Automatic
|
123
123
|
include Google::Protobuf::MessageExts
|
124
124
|
extend Google::Protobuf::MessageExts::ClassMethods
|
125
125
|
end
|
126
126
|
|
127
|
-
# A replication policy that replicates the
|
127
|
+
# A replication policy that replicates the {Google::Cloud::SecretManager::V1beta1::Secret Secret} payload into the
|
128
128
|
# locations specified in [Secret.replication.user_managed.replicas][]
|
129
129
|
# @!attribute [rw] replicas
|
130
130
|
# @return [Array<Google::Cloud::SecretManager::V1beta1::Replication::UserManaged::Replica>]
|
131
|
-
# Required. The list of Replicas for this
|
131
|
+
# Required. The list of Replicas for this {Google::Cloud::SecretManager::V1beta1::Secret Secret}.
|
132
132
|
#
|
133
133
|
# Cannot be empty.
|
134
134
|
class UserManaged
|
135
135
|
include Google::Protobuf::MessageExts
|
136
136
|
extend Google::Protobuf::MessageExts::ClassMethods
|
137
137
|
|
138
|
-
# Represents a Replica for this
|
138
|
+
# Represents a Replica for this {Google::Cloud::SecretManager::V1beta1::Secret Secret}.
|
139
139
|
# @!attribute [rw] location
|
140
140
|
# @return [String]
|
141
141
|
# The canonical IDs of the location to replicate data.
|
@@ -148,7 +148,7 @@ module Google
|
|
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
|
151
|
+
# sensitive secret data that is associated with a {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
|
152
152
|
# @!attribute [rw] data
|
153
153
|
# @return [String]
|
154
154
|
# The secret data. Must be no larger than 64KiB.
|
@@ -21,11 +21,11 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module SecretManager
|
23
23
|
module V1beta1
|
24
|
-
# Request message for
|
24
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
|
25
25
|
# @!attribute [rw] parent
|
26
26
|
# @return [String]
|
27
27
|
# Required. The resource name of the project associated with the
|
28
|
-
#
|
28
|
+
# {Google::Cloud::SecretManager::V1beta1::Secret Secrets}, in the format `projects/*`.
|
29
29
|
# @!attribute [rw] page_size
|
30
30
|
# @return [Integer]
|
31
31
|
# Optional. The maximum number of results to be returned in a single page. If
|
@@ -34,72 +34,72 @@ module Google
|
|
34
34
|
# @!attribute [rw] page_token
|
35
35
|
# @return [String]
|
36
36
|
# Optional. Pagination token, returned earlier via
|
37
|
-
#
|
37
|
+
# {Google::Cloud::SecretManager::V1beta1::ListSecretsResponse#next_page_token ListSecretsResponse.next_page_token}.
|
38
38
|
class ListSecretsRequest
|
39
39
|
include Google::Protobuf::MessageExts
|
40
40
|
extend Google::Protobuf::MessageExts::ClassMethods
|
41
41
|
end
|
42
42
|
|
43
|
-
# Response message for
|
43
|
+
# Response message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#list_secrets SecretManagerService.ListSecrets}.
|
44
44
|
# @!attribute [rw] secrets
|
45
45
|
# @return [Array<Google::Cloud::SecretManager::V1beta1::Secret>]
|
46
|
-
# The list of
|
46
|
+
# The list of {Google::Cloud::SecretManager::V1beta1::Secret Secrets} sorted in reverse by create_time (newest
|
47
47
|
# first).
|
48
48
|
# @!attribute [rw] next_page_token
|
49
49
|
# @return [String]
|
50
50
|
# A token to retrieve the next page of results. Pass this value in
|
51
|
-
#
|
51
|
+
# {Google::Cloud::SecretManager::V1beta1::ListSecretsRequest#page_token ListSecretsRequest.page_token} to retrieve the next page.
|
52
52
|
# @!attribute [rw] total_size
|
53
53
|
# @return [Integer]
|
54
|
-
# The total number of
|
54
|
+
# The total number of {Google::Cloud::SecretManager::V1beta1::Secret Secrets}.
|
55
55
|
class ListSecretsResponse
|
56
56
|
include Google::Protobuf::MessageExts
|
57
57
|
extend Google::Protobuf::MessageExts::ClassMethods
|
58
58
|
end
|
59
59
|
|
60
|
-
# Request message for
|
60
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#create_secret SecretManagerService.CreateSecret}.
|
61
61
|
# @!attribute [rw] parent
|
62
62
|
# @return [String]
|
63
63
|
# Required. The resource name of the project to associate with the
|
64
|
-
#
|
64
|
+
# {Google::Cloud::SecretManager::V1beta1::Secret Secret}, in the format `projects/*`.
|
65
65
|
# @!attribute [rw] secret_id
|
66
66
|
# @return [String]
|
67
67
|
# Required. This must be unique within the project.
|
68
68
|
# @!attribute [rw] secret
|
69
69
|
# @return [Google::Cloud::SecretManager::V1beta1::Secret]
|
70
|
-
# A
|
70
|
+
# A {Google::Cloud::SecretManager::V1beta1::Secret Secret} with initial field values.
|
71
71
|
class CreateSecretRequest
|
72
72
|
include Google::Protobuf::MessageExts
|
73
73
|
extend Google::Protobuf::MessageExts::ClassMethods
|
74
74
|
end
|
75
75
|
|
76
|
-
# Request message for
|
76
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#add_secret_version SecretManagerService.AddSecretVersion}.
|
77
77
|
# @!attribute [rw] parent
|
78
78
|
# @return [String]
|
79
|
-
# Required. The resource name of the
|
80
|
-
#
|
79
|
+
# Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::Secret Secret} to associate with the
|
80
|
+
# {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} in the format `projects/*/secrets/*`.
|
81
81
|
# @!attribute [rw] payload
|
82
82
|
# @return [Google::Cloud::SecretManager::V1beta1::SecretPayload]
|
83
|
-
# Required. The secret payload of the
|
83
|
+
# Required. The secret payload of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
|
84
84
|
class AddSecretVersionRequest
|
85
85
|
include Google::Protobuf::MessageExts
|
86
86
|
extend Google::Protobuf::MessageExts::ClassMethods
|
87
87
|
end
|
88
88
|
|
89
|
-
# Request message for
|
89
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#get_secret SecretManagerService.GetSecret}.
|
90
90
|
# @!attribute [rw] name
|
91
91
|
# @return [String]
|
92
|
-
# Required. The resource name of the
|
92
|
+
# Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::Secret Secret}, in the format `projects/*/secrets/*`.
|
93
93
|
class GetSecretRequest
|
94
94
|
include Google::Protobuf::MessageExts
|
95
95
|
extend Google::Protobuf::MessageExts::ClassMethods
|
96
96
|
end
|
97
97
|
|
98
|
-
# Request message for
|
98
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
|
99
99
|
# @!attribute [rw] parent
|
100
100
|
# @return [String]
|
101
|
-
# Required. The resource name of the
|
102
|
-
#
|
101
|
+
# Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::Secret Secret} associated with the
|
102
|
+
# {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions} to list, in the format
|
103
103
|
# `projects/*/secrets/*`.
|
104
104
|
# @!attribute [rw] page_size
|
105
105
|
# @return [Integer]
|
@@ -115,39 +115,39 @@ module Google
|
|
115
115
|
extend Google::Protobuf::MessageExts::ClassMethods
|
116
116
|
end
|
117
117
|
|
118
|
-
# Response message for
|
118
|
+
# Response message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#list_secret_versions SecretManagerService.ListSecretVersions}.
|
119
119
|
# @!attribute [rw] versions
|
120
120
|
# @return [Array<Google::Cloud::SecretManager::V1beta1::SecretVersion>]
|
121
|
-
# The list of
|
121
|
+
# The list of {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions} sorted in reverse by
|
122
122
|
# create_time (newest first).
|
123
123
|
# @!attribute [rw] next_page_token
|
124
124
|
# @return [String]
|
125
125
|
# A token to retrieve the next page of results. Pass this value in
|
126
|
-
#
|
126
|
+
# {Google::Cloud::SecretManager::V1beta1::ListSecretVersionsRequest#page_token ListSecretVersionsRequest.page_token} to retrieve the next page.
|
127
127
|
# @!attribute [rw] total_size
|
128
128
|
# @return [Integer]
|
129
|
-
# The total number of
|
129
|
+
# The total number of {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions}.
|
130
130
|
class ListSecretVersionsResponse
|
131
131
|
include Google::Protobuf::MessageExts
|
132
132
|
extend Google::Protobuf::MessageExts::ClassMethods
|
133
133
|
end
|
134
134
|
|
135
|
-
# Request message for
|
135
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#get_secret_version SecretManagerService.GetSecretVersion}.
|
136
136
|
# @!attribute [rw] name
|
137
137
|
# @return [String]
|
138
|
-
# Required. The resource name of the
|
138
|
+
# Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} in the format
|
139
139
|
# `projects/*/secrets/*/versions/*`.
|
140
140
|
# `projects/*/secrets/*/versions/latest` is an alias to the `latest`
|
141
|
-
#
|
141
|
+
# {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
|
142
142
|
class GetSecretVersionRequest
|
143
143
|
include Google::Protobuf::MessageExts
|
144
144
|
extend Google::Protobuf::MessageExts::ClassMethods
|
145
145
|
end
|
146
146
|
|
147
|
-
# Request message for
|
147
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#update_secret SecretManagerService.UpdateSecret}.
|
148
148
|
# @!attribute [rw] secret
|
149
149
|
# @return [Google::Cloud::SecretManager::V1beta1::Secret]
|
150
|
-
# Required.
|
150
|
+
# Required. {Google::Cloud::SecretManager::V1beta1::Secret Secret} with updated field values.
|
151
151
|
# @!attribute [rw] update_mask
|
152
152
|
# @return [Google::Protobuf::FieldMask]
|
153
153
|
# Required. Specifies the fields to be updated.
|
@@ -156,20 +156,20 @@ module Google
|
|
156
156
|
extend Google::Protobuf::MessageExts::ClassMethods
|
157
157
|
end
|
158
158
|
|
159
|
-
# Request message for
|
159
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
|
160
160
|
# @!attribute [rw] name
|
161
161
|
# @return [String]
|
162
|
-
# Required. The resource name of the
|
162
|
+
# Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} in the format
|
163
163
|
# `projects/*/secrets/*/versions/*`.
|
164
164
|
class AccessSecretVersionRequest
|
165
165
|
include Google::Protobuf::MessageExts
|
166
166
|
extend Google::Protobuf::MessageExts::ClassMethods
|
167
167
|
end
|
168
168
|
|
169
|
-
# Response message for
|
169
|
+
# Response message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#access_secret_version SecretManagerService.AccessSecretVersion}.
|
170
170
|
# @!attribute [rw] name
|
171
171
|
# @return [String]
|
172
|
-
# The resource name of the
|
172
|
+
# The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} in the format
|
173
173
|
# `projects/*/secrets/*/versions/*`.
|
174
174
|
# @!attribute [rw] payload
|
175
175
|
# @return [Google::Cloud::SecretManager::V1beta1::SecretPayload]
|
@@ -179,40 +179,40 @@ module Google
|
|
179
179
|
extend Google::Protobuf::MessageExts::ClassMethods
|
180
180
|
end
|
181
181
|
|
182
|
-
# Request message for
|
182
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#delete_secret SecretManagerService.DeleteSecret}.
|
183
183
|
# @!attribute [rw] name
|
184
184
|
# @return [String]
|
185
|
-
# Required. The resource name of the
|
185
|
+
# Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::Secret Secret} to delete in the format
|
186
186
|
# `projects/*/secrets/*`.
|
187
187
|
class DeleteSecretRequest
|
188
188
|
include Google::Protobuf::MessageExts
|
189
189
|
extend Google::Protobuf::MessageExts::ClassMethods
|
190
190
|
end
|
191
191
|
|
192
|
-
# Request message for
|
192
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#disable_secret_version SecretManagerService.DisableSecretVersion}.
|
193
193
|
# @!attribute [rw] name
|
194
194
|
# @return [String]
|
195
|
-
# Required. The resource name of the
|
195
|
+
# Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to disable in the format
|
196
196
|
# `projects/*/secrets/*/versions/*`.
|
197
197
|
class DisableSecretVersionRequest
|
198
198
|
include Google::Protobuf::MessageExts
|
199
199
|
extend Google::Protobuf::MessageExts::ClassMethods
|
200
200
|
end
|
201
201
|
|
202
|
-
# Request message for
|
202
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#enable_secret_version SecretManagerService.EnableSecretVersion}.
|
203
203
|
# @!attribute [rw] name
|
204
204
|
# @return [String]
|
205
|
-
# Required. The resource name of the
|
205
|
+
# Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to enable in the format
|
206
206
|
# `projects/*/secrets/*/versions/*`.
|
207
207
|
class EnableSecretVersionRequest
|
208
208
|
include Google::Protobuf::MessageExts
|
209
209
|
extend Google::Protobuf::MessageExts::ClassMethods
|
210
210
|
end
|
211
211
|
|
212
|
-
# Request message for
|
212
|
+
# Request message for {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#destroy_secret_version SecretManagerService.DestroySecretVersion}.
|
213
213
|
# @!attribute [rw] name
|
214
214
|
# @return [String]
|
215
|
-
# Required. The resource name of the
|
215
|
+
# Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to destroy in the format
|
216
216
|
# `projects/*/secrets/*/versions/*`.
|
217
217
|
class DestroySecretVersionRequest
|
218
218
|
include Google::Protobuf::MessageExts
|