google-cloud-access_approval-v1 0.4.5 → 0.5.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: 7a962123aff5296be4f054c61335936ff0e8b7b0929c57ba5a50d0657785aa5a
4
- data.tar.gz: 0b7b45a09fbd4f06d6554344ecf1641344ca686a06d2ef84f62ba7626133a9a9
3
+ metadata.gz: 37f4b44fbdd48df2ba584f2d5c20c954fa9ac6099885cb43e93bec9492472032
4
+ data.tar.gz: e29907811985a29327b0ea4e6ec591cf142d15dc98dd53d26dec29b9e119ba24
5
5
  SHA512:
6
- metadata.gz: 863a751bf59753032fa4dceedaa38611bed925ea4f51b84b4fff7b097564b05b5c23e3602a9d9c908d0f5274e8a699314a1aa4afdd8931ccd403642ccc5eda66
7
- data.tar.gz: 91869d676c37297e41f5660fcae15c494a03a3dd66d430c628822531287b565e43a4dc25be13902e1e08672cab892886cb6cfd5826dd64ba57afbdc73c6b9021
6
+ metadata.gz: c22da0fa4848ae4f8316ec62545e351719d6ddcf0897b4263fcb9c872c969ae60bf60d3e9ddbb66dc43fcbefeec5463741682ce8809acb2503502fd92010dc8f
7
+ data.tar.gz: 561c6ea7129538c61b6794f645d2e7bcc7f05697612d0955c8b5d2fde91d78e38c07569abc71db3549fe94c5ae84e237e39d5530dba1fd1310962cd26f2d6ea0
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::AccessApproval::V1::ListApprovalRequestsMessage.new #
37
37
  response = client.list_approval_requests request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-access_approval-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-access_approval-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/access-approval/)
@@ -32,17 +32,17 @@ module Google
32
32
  #
33
33
  # - The API has a collection of
34
34
  # {::Google::Cloud::AccessApproval::V1::ApprovalRequest ApprovalRequest}
35
- # resources, named `approvalRequests/{approval_request_id}`
35
+ # resources, named `approvalRequests/{approval_request}`
36
36
  # - The API has top-level settings per Project/Folder/Organization, named
37
37
  # `accessApprovalSettings`
38
38
  #
39
39
  # The service also periodically emails a list of recipients, defined at the
40
40
  # Project/Folder/Organization level in the accessApprovalSettings, when there
41
41
  # is a pending ApprovalRequest for them to act on. The ApprovalRequests can
42
- # also optionally be published to a Cloud Pub/Sub topic owned by the customer
43
- # (for Beta, the Pub/Sub setup is managed manually).
42
+ # also optionally be published to a Pub/Sub topic owned by the customer
43
+ # (contact support if you would like to enable Pub/Sub notifications).
44
44
  #
45
- # ApprovalRequests can be approved or dismissed. Google personel can only
45
+ # ApprovalRequests can be approved or dismissed. Google personnel can only
46
46
  # access the indicated resource or resources if the request is approved
47
47
  # (subject to some exclusions:
48
48
  # https://cloud.google.com/access-approval/docs/overview#exclusions).
@@ -62,6 +62,8 @@ module Google
62
62
  # If a request is not approved or dismissed, we call it pending.
63
63
  #
64
64
  class Client
65
+ include Paths
66
+
65
67
  # @private
66
68
  attr_reader :access_approval_stub
67
69
 
@@ -218,17 +220,21 @@ module Google
218
220
  # the default parameter values, pass an empty Hash as a request object (see above).
219
221
  #
220
222
  # @param parent [::String]
221
- # The parent resource. This may be "projects/\\{project_id}",
222
- # "folders/\\{folder_id}", or "organizations/\\{organization_id}".
223
+ # The parent resource. This may be "projects/\\{project}",
224
+ # "folders/\\{folder}", or "organizations/\\{organization}".
223
225
  # @param filter [::String]
224
226
  # A filter on the type of approval requests to retrieve. Must be one of the
225
227
  # following values:
226
228
  #
227
- # - [not set]: Requests that are pending or have active approvals.
228
- # - ALL: All requests.
229
- # - PENDING: Only pending requests.
230
- # - ACTIVE: Only active (i.e. currently approved) requests.
231
- # - DISMISSED: Only dismissed (including expired) requests.
229
+ # * [not set]: Requests that are pending or have active approvals.
230
+ # * ALL: All requests.
231
+ # * PENDING: Only pending requests.
232
+ # * ACTIVE: Only active (i.e. currently approved) requests.
233
+ # * DISMISSED: Only requests that have been dismissed, or requests that
234
+ # are not approved and past expiration.
235
+ # * EXPIRED: Only requests that have been approved, and the approval has
236
+ # expired.
237
+ # * HISTORY: Active, dismissed and expired requests.
232
238
  # @param page_size [::Integer]
233
239
  # Requested page size.
234
240
  # @param page_token [::String]
@@ -324,7 +330,9 @@ module Google
324
330
  # the default parameter values, pass an empty Hash as a request object (see above).
325
331
  #
326
332
  # @param name [::String]
327
- # Name of the approval request to retrieve.
333
+ # The name of the approval request to retrieve.
334
+ # Format:
335
+ # "\\{projects|folders|organizations}/\\{id}/approvalRequests/\\{approval_request}"
328
336
  #
329
337
  # @yield [response, operation] Access the result along with the RPC operation
330
338
  # @yieldparam response [::Google::Cloud::AccessApproval::V1::ApprovalRequest]
@@ -593,7 +601,8 @@ module Google
593
601
  # the default parameter values, pass an empty Hash as a request object (see above).
594
602
  #
595
603
  # @param name [::String]
596
- # Name of the AccessApprovalSettings to retrieve.
604
+ # The name of the AccessApprovalSettings to retrieve.
605
+ # Format: "\\{projects|folders|organizations}/\\{id}/accessApprovalSettings"
597
606
  #
598
607
  # @yield [response, operation] Access the result along with the RPC operation
599
608
  # @yieldparam response [::Google::Cloud::AccessApproval::V1::AccessApprovalSettings]
@@ -0,0 +1,170 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module AccessApproval
23
+ module V1
24
+ module AccessApproval
25
+ # Path helper methods for the AccessApproval API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified AccessApprovalSettings resource string.
29
+ #
30
+ # @overload access_approval_settings_path(project:)
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/accessApprovalSettings`
34
+ #
35
+ # @param project [String]
36
+ #
37
+ # @overload access_approval_settings_path(folder:)
38
+ # The resource will be in the following format:
39
+ #
40
+ # `folders/{folder}/accessApprovalSettings`
41
+ #
42
+ # @param folder [String]
43
+ #
44
+ # @overload access_approval_settings_path(organization:)
45
+ # The resource will be in the following format:
46
+ #
47
+ # `organizations/{organization}/accessApprovalSettings`
48
+ #
49
+ # @param organization [String]
50
+ #
51
+ # @return [::String]
52
+ def access_approval_settings_path **args
53
+ resources = {
54
+ "project" => (proc do |project:|
55
+ "projects/#{project}/accessApprovalSettings"
56
+ end),
57
+ "folder" => (proc do |folder:|
58
+ "folders/#{folder}/accessApprovalSettings"
59
+ end),
60
+ "organization" => (proc do |organization:|
61
+ "organizations/#{organization}/accessApprovalSettings"
62
+ end)
63
+ }
64
+
65
+ resource = resources[args.keys.sort.join(":")]
66
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
67
+ resource.call(**args)
68
+ end
69
+
70
+ ##
71
+ # Create a fully-qualified ApprovalRequest resource string.
72
+ #
73
+ # @overload approval_request_path(project:, approval_request:)
74
+ # The resource will be in the following format:
75
+ #
76
+ # `projects/{project}/approvalRequests/{approval_request}`
77
+ #
78
+ # @param project [String]
79
+ # @param approval_request [String]
80
+ #
81
+ # @overload approval_request_path(folder:, approval_request:)
82
+ # The resource will be in the following format:
83
+ #
84
+ # `folders/{folder}/approvalRequests/{approval_request}`
85
+ #
86
+ # @param folder [String]
87
+ # @param approval_request [String]
88
+ #
89
+ # @overload approval_request_path(organization:, approval_request:)
90
+ # The resource will be in the following format:
91
+ #
92
+ # `organizations/{organization}/approvalRequests/{approval_request}`
93
+ #
94
+ # @param organization [String]
95
+ # @param approval_request [String]
96
+ #
97
+ # @return [::String]
98
+ def approval_request_path **args
99
+ resources = {
100
+ "approval_request:project" => (proc do |project:, approval_request:|
101
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
102
+
103
+ "projects/#{project}/approvalRequests/#{approval_request}"
104
+ end),
105
+ "approval_request:folder" => (proc do |folder:, approval_request:|
106
+ raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
107
+
108
+ "folders/#{folder}/approvalRequests/#{approval_request}"
109
+ end),
110
+ "approval_request:organization" => (proc do |organization:, approval_request:|
111
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
112
+
113
+ "organizations/#{organization}/approvalRequests/#{approval_request}"
114
+ end)
115
+ }
116
+
117
+ resource = resources[args.keys.sort.join(":")]
118
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
119
+ resource.call(**args)
120
+ end
121
+
122
+ ##
123
+ # Create a fully-qualified Folder resource string.
124
+ #
125
+ # The resource will be in the following format:
126
+ #
127
+ # `folders/{folder}`
128
+ #
129
+ # @param folder [String]
130
+ #
131
+ # @return [::String]
132
+ def folder_path folder:
133
+ "folders/#{folder}"
134
+ end
135
+
136
+ ##
137
+ # Create a fully-qualified Organization resource string.
138
+ #
139
+ # The resource will be in the following format:
140
+ #
141
+ # `organizations/{organization}`
142
+ #
143
+ # @param organization [String]
144
+ #
145
+ # @return [::String]
146
+ def organization_path organization:
147
+ "organizations/#{organization}"
148
+ end
149
+
150
+ ##
151
+ # Create a fully-qualified Project resource string.
152
+ #
153
+ # The resource will be in the following format:
154
+ #
155
+ # `projects/{project}`
156
+ #
157
+ # @param project [String]
158
+ #
159
+ # @return [::String]
160
+ def project_path project:
161
+ "projects/#{project}"
162
+ end
163
+
164
+ extend self
165
+ end
166
+ end
167
+ end
168
+ end
169
+ end
170
+ end
@@ -23,6 +23,7 @@ require "gapic/config/method"
23
23
  require "google/cloud/access_approval/v1/version"
24
24
 
25
25
  require "google/cloud/access_approval/v1/access_approval/credentials"
26
+ require "google/cloud/access_approval/v1/access_approval/paths"
26
27
  require "google/cloud/access_approval/v1/access_approval/client"
27
28
 
28
29
  module Google
@@ -35,17 +36,17 @@ module Google
35
36
  #
36
37
  # - The API has a collection of
37
38
  # {::Google::Cloud::AccessApproval::V1::ApprovalRequest ApprovalRequest}
38
- # resources, named `approvalRequests/{approval_request_id}`
39
+ # resources, named `approvalRequests/{approval_request}`
39
40
  # - The API has top-level settings per Project/Folder/Organization, named
40
41
  # `accessApprovalSettings`
41
42
  #
42
43
  # The service also periodically emails a list of recipients, defined at the
43
44
  # Project/Folder/Organization level in the accessApprovalSettings, when there
44
45
  # is a pending ApprovalRequest for them to act on. The ApprovalRequests can
45
- # also optionally be published to a Cloud Pub/Sub topic owned by the customer
46
- # (for Beta, the Pub/Sub setup is managed manually).
46
+ # also optionally be published to a Pub/Sub topic owned by the customer
47
+ # (contact support if you would like to enable Pub/Sub notifications).
47
48
  #
48
- # ApprovalRequests can be approved or dismissed. Google personel can only
49
+ # ApprovalRequests can be approved or dismissed. Google personnel can only
49
50
  # access the indicated resource or resources if the request is approved
50
51
  # (subject to some exclusions:
51
52
  # https://cloud.google.com/access-approval/docs/overview#exclusions).
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AccessApproval
23
23
  module V1
24
- VERSION = "0.4.5"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -4,6 +4,7 @@
4
4
  require 'google/api/annotations_pb'
5
5
  require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
7
8
  require 'google/protobuf/empty_pb'
8
9
  require 'google/protobuf/field_mask_pb'
9
10
  require 'google/protobuf/timestamp_pb'
@@ -31,6 +32,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
32
  end
32
33
  add_message "google.cloud.accessapproval.v1.DismissDecision" do
33
34
  optional :dismiss_time, :message, 1, "google.protobuf.Timestamp"
35
+ optional :implicit, :bool, 2
34
36
  end
35
37
  add_message "google.cloud.accessapproval.v1.ResourceProperties" do
36
38
  optional :excludes_descendants, :bool, 1
@@ -29,17 +29,17 @@ module Google
29
29
  #
30
30
  # - The API has a collection of
31
31
  # [ApprovalRequest][google.cloud.accessapproval.v1.ApprovalRequest]
32
- # resources, named `approvalRequests/{approval_request_id}`
32
+ # resources, named `approvalRequests/{approval_request}`
33
33
  # - The API has top-level settings per Project/Folder/Organization, named
34
34
  # `accessApprovalSettings`
35
35
  #
36
36
  # The service also periodically emails a list of recipients, defined at the
37
37
  # Project/Folder/Organization level in the accessApprovalSettings, when there
38
38
  # is a pending ApprovalRequest for them to act on. The ApprovalRequests can
39
- # also optionally be published to a Cloud Pub/Sub topic owned by the customer
40
- # (for Beta, the Pub/Sub setup is managed manually).
39
+ # also optionally be published to a Pub/Sub topic owned by the customer
40
+ # (contact support if you would like to enable Pub/Sub notifications).
41
41
  #
42
- # ApprovalRequests can be approved or dismissed. Google personel can only
42
+ # ApprovalRequests can be approved or dismissed. Google personnel can only
43
43
  # access the indicated resource or resources if the request is approved
44
44
  # (subject to some exclusions:
45
45
  # https://cloud.google.com/access-approval/docs/overview#exclusions).
@@ -30,14 +30,14 @@ module Google
30
30
  # of a country code.
31
31
  # Possible Region Codes:
32
32
  #
33
- # - ASI: Asia
34
- # - EUR: Europe
35
- # - OCE: Oceania
36
- # - AFR: Africa
37
- # - NAM: North America
38
- # - SAM: South America
39
- # - ANT: Antarctica
40
- # - ANY: Any location
33
+ # * ASI: Asia
34
+ # * EUR: Europe
35
+ # * OCE: Oceania
36
+ # * AFR: Africa
37
+ # * NAM: North America
38
+ # * SAM: South America
39
+ # * ANT: Antarctica
40
+ # * ANY: Any location
41
41
  # @!attribute [rw] principal_physical_location_country
42
42
  # @return [::String]
43
43
  # Physical location of the principal at the time of the access. A
@@ -46,14 +46,14 @@ module Google
46
46
  # a region code instead of a country code.
47
47
  # Possible Region Codes:
48
48
  #
49
- # - ASI: Asia
50
- # - EUR: Europe
51
- # - OCE: Oceania
52
- # - AFR: Africa
53
- # - NAM: North America
54
- # - SAM: South America
55
- # - ANT: Antarctica
56
- # - ANY: Any location
49
+ # * ASI: Asia
50
+ # * EUR: Europe
51
+ # * OCE: Oceania
52
+ # * AFR: Africa
53
+ # * NAM: North America
54
+ # * SAM: South America
55
+ # * ANT: Antarctica
56
+ # * ANY: Any location
57
57
  class AccessLocations
58
58
  include ::Google::Protobuf::MessageExts
59
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -77,12 +77,12 @@ module Google
77
77
  # Customer made a request or raised an issue that required the principal to
78
78
  # access customer data. `detail` is of the form ("#####" is the issue ID):
79
79
  #
80
- # - "Feedback Report: #####"
81
- # - "Case Number: #####"
82
- # - "Case ID: #####"
83
- # - "E-PIN Reference: #####"
84
- # - "Google-#####"
85
- # - "T-#####"
80
+ # * "Feedback Report: #####"
81
+ # * "Case Number: #####"
82
+ # * "Case ID: #####"
83
+ # * "E-PIN Reference: #####"
84
+ # * "Google-#####"
85
+ # * "T-#####"
86
86
  CUSTOMER_INITIATED_SUPPORT = 1
87
87
 
88
88
  # The principal accessed customer data in order to diagnose or resolve a
@@ -113,6 +113,11 @@ module Google
113
113
  # @!attribute [rw] dismiss_time
114
114
  # @return [::Google::Protobuf::Timestamp]
115
115
  # The time at which the approval request was dismissed.
116
+ # @!attribute [rw] implicit
117
+ # @return [::Boolean]
118
+ # This field will be true if the ApprovalRequest was implcitly dismissed
119
+ # due to inaction by the access approval approvers (the request is not acted
120
+ # on by the approvers before the exiration time).
116
121
  class DismissDecision
117
122
  include ::Google::Protobuf::MessageExts
118
123
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -132,7 +137,7 @@ module Google
132
137
  # @!attribute [rw] name
133
138
  # @return [::String]
134
139
  # The resource name of the request. Format is
135
- # "\\{projects|folders|organizations}/\\{id}/approvalRequests/\\{approval_request_id}".
140
+ # "\\{projects|folders|organizations}/\\{id}/approvalRequests/\\{approval_request}".
136
141
  # @!attribute [rw] requested_resource_name
137
142
  # @return [::String]
138
143
  # The resource for which approval is being requested. The format of the
@@ -175,16 +180,61 @@ module Google
175
180
  # The product for which Access Approval will be enrolled. Allowed values are
176
181
  # listed below (case-sensitive):
177
182
  #
178
- # - all
179
- # - appengine.googleapis.com
180
- # - bigquery.googleapis.com
181
- # - bigtable.googleapis.com
182
- # - cloudkms.googleapis.com
183
- # - compute.googleapis.com
184
- # - dataflow.googleapis.com
185
- # - iam.googleapis.com
186
- # - pubsub.googleapis.com
187
- # - storage.googleapis.com
183
+ # * all
184
+ # * GA
185
+ # * App Engine
186
+ # * BigQuery
187
+ # * Cloud Bigtable
188
+ # * Cloud Key Management Service
189
+ # * Compute Engine
190
+ # * Cloud Dataflow
191
+ # * Cloud DLP
192
+ # * Cloud EKM
193
+ # * Cloud HSM
194
+ # * Cloud Identity and Access Management
195
+ # * Cloud Logging
196
+ # * Cloud Pub/Sub
197
+ # * Cloud Spanner
198
+ # * Cloud SQL
199
+ # * Cloud Storage
200
+ # * Google Kubernetes Engine
201
+ # * Organization Policy Serivice
202
+ # * Persistent Disk
203
+ # * Resource Manager
204
+ # * Speaker ID
205
+ #
206
+ # Note: These values are supported as input for legacy purposes, but will not
207
+ # be returned from the API.
208
+ #
209
+ # * all
210
+ # * ga-only
211
+ # * appengine.googleapis.com
212
+ # * bigquery.googleapis.com
213
+ # * bigtable.googleapis.com
214
+ # * container.googleapis.com
215
+ # * cloudkms.googleapis.com
216
+ # * cloudresourcemanager.googleapis.com
217
+ # * cloudsql.googleapis.com
218
+ # * compute.googleapis.com
219
+ # * dataflow.googleapis.com
220
+ # * dlp.googleapis.com
221
+ # * iam.googleapis.com
222
+ # * logging.googleapis.com
223
+ # * orgpolicy.googleapis.com
224
+ # * pubsub.googleapis.com
225
+ # * spanner.googleapis.com
226
+ # * speakerid.googleapis.com
227
+ # * storage.googleapis.com
228
+ #
229
+ # Calls to UpdateAccessApprovalSettings using 'all' or any of the
230
+ # XXX.googleapis.com will be translated to the associated product name
231
+ # ('all', 'App Engine', etc.).
232
+ #
233
+ # Note: 'all' will enroll the resource in all products supported at both 'GA'
234
+ # and 'Preview' levels.
235
+ #
236
+ # More information about levels of support is available at
237
+ # https://cloud.google.com/access-approval/docs/supported-services
188
238
  # @!attribute [rw] enrollment_level
189
239
  # @return [::Google::Cloud::AccessApproval::V1::EnrollmentLevel]
190
240
  # The enrollment level of the service.
@@ -198,9 +248,9 @@ module Google
198
248
  # @return [::String]
199
249
  # The resource name of the settings. Format is one of:
200
250
  #
201
- # - "projects/\\{project_id}/accessApprovalSettings"
202
- # - "folders/\\{folder_id}/accessApprovalSettings"
203
- # - "organizations/\\{organization_id}/accessApprovalSettings"
251
+ # * "projects/\\{project}/accessApprovalSettings"
252
+ # * "folders/\\{folder}/accessApprovalSettings"
253
+ # * "organizations/\\{organization}/accessApprovalSettings"
204
254
  # @!attribute [rw] notification_emails
205
255
  # @return [::Array<::String>]
206
256
  # A list of email addresses to which notifications relating to approval
@@ -223,7 +273,7 @@ module Google
223
273
  # @!attribute [r] enrolled_ancestor
224
274
  # @return [::Boolean]
225
275
  # Output only. This field is read only (not settable via
226
- # UpdateAccessAccessApprovalSettings method). If the field is true, that
276
+ # UpdateAccessApprovalSettings method). If the field is true, that
227
277
  # indicates that at least one service is enrolled for Access Approval in one
228
278
  # or more ancestors of the Project or Folder (this field will always be
229
279
  # unset for the organization since organizations do not have ancestors).
@@ -235,18 +285,22 @@ module Google
235
285
  # Request to list approval requests.
236
286
  # @!attribute [rw] parent
237
287
  # @return [::String]
238
- # The parent resource. This may be "projects/\\{project_id}",
239
- # "folders/\\{folder_id}", or "organizations/\\{organization_id}".
288
+ # The parent resource. This may be "projects/\\{project}",
289
+ # "folders/\\{folder}", or "organizations/\\{organization}".
240
290
  # @!attribute [rw] filter
241
291
  # @return [::String]
242
292
  # A filter on the type of approval requests to retrieve. Must be one of the
243
293
  # following values:
244
294
  #
245
- # - [not set]: Requests that are pending or have active approvals.
246
- # - ALL: All requests.
247
- # - PENDING: Only pending requests.
248
- # - ACTIVE: Only active (i.e. currently approved) requests.
249
- # - DISMISSED: Only dismissed (including expired) requests.
295
+ # * [not set]: Requests that are pending or have active approvals.
296
+ # * ALL: All requests.
297
+ # * PENDING: Only pending requests.
298
+ # * ACTIVE: Only active (i.e. currently approved) requests.
299
+ # * DISMISSED: Only requests that have been dismissed, or requests that
300
+ # are not approved and past expiration.
301
+ # * EXPIRED: Only requests that have been approved, and the approval has
302
+ # expired.
303
+ # * HISTORY: Active, dismissed and expired requests.
250
304
  # @!attribute [rw] page_size
251
305
  # @return [::Integer]
252
306
  # Requested page size.
@@ -273,7 +327,9 @@ module Google
273
327
  # Request to get an approval request.
274
328
  # @!attribute [rw] name
275
329
  # @return [::String]
276
- # Name of the approval request to retrieve.
330
+ # The name of the approval request to retrieve.
331
+ # Format:
332
+ # "\\{projects|folders|organizations}/\\{id}/approvalRequests/\\{approval_request}"
277
333
  class GetApprovalRequestMessage
278
334
  include ::Google::Protobuf::MessageExts
279
335
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -303,7 +359,8 @@ module Google
303
359
  # Request to get access approval settings.
304
360
  # @!attribute [rw] name
305
361
  # @return [::String]
306
- # Name of the AccessApprovalSettings to retrieve.
362
+ # The name of the AccessApprovalSettings to retrieve.
363
+ # Format: "\\{projects|folders|organizations}/\\{id}/accessApprovalSettings"
307
364
  class GetAccessApprovalSettingsMessage
308
365
  include ::Google::Protobuf::MessageExts
309
366
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-access_approval-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.5.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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -174,6 +174,7 @@ files:
174
174
  - lib/google/cloud/access_approval/v1/access_approval.rb
175
175
  - lib/google/cloud/access_approval/v1/access_approval/client.rb
176
176
  - lib/google/cloud/access_approval/v1/access_approval/credentials.rb
177
+ - lib/google/cloud/access_approval/v1/access_approval/paths.rb
177
178
  - lib/google/cloud/access_approval/v1/version.rb
178
179
  - lib/google/cloud/accessapproval/v1/accessapproval_pb.rb
179
180
  - lib/google/cloud/accessapproval/v1/accessapproval_services_pb.rb
@@ -203,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
204
  - !ruby/object:Gem::Version
204
205
  version: '0'
205
206
  requirements: []
206
- rubygems_version: 3.3.4
207
+ rubygems_version: 3.3.5
207
208
  signing_key:
208
209
  specification_version: 4
209
210
  summary: API Client library for the Access Approval V1 API