google-apis-accesscontextmanager_v1beta 0.1.0

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.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module AccesscontextmanagerV1beta
18
+ # Version of the google-apis-accesscontextmanager_v1beta gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20200825"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,286 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module AccesscontextmanagerV1beta
24
+
25
+ class AccessLevel
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AccessPolicy
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class BasicLevel
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Condition
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CustomLevel
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class DevicePolicy
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Expr
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ListAccessLevelsResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListAccessPoliciesResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ListServicePerimetersResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Operation
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class OsConstraint
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ServicePerimeter
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ServicePerimeterConfig
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Status
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class VpcAccessibleServices
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class AccessLevel
122
+ # @private
123
+ class Representation < Google::Apis::Core::JsonRepresentation
124
+ property :basic, as: 'basic', class: Google::Apis::AccesscontextmanagerV1beta::BasicLevel, decorator: Google::Apis::AccesscontextmanagerV1beta::BasicLevel::Representation
125
+
126
+ property :custom, as: 'custom', class: Google::Apis::AccesscontextmanagerV1beta::CustomLevel, decorator: Google::Apis::AccesscontextmanagerV1beta::CustomLevel::Representation
127
+
128
+ property :description, as: 'description'
129
+ property :name, as: 'name'
130
+ property :title, as: 'title'
131
+ end
132
+ end
133
+
134
+ class AccessPolicy
135
+ # @private
136
+ class Representation < Google::Apis::Core::JsonRepresentation
137
+ property :name, as: 'name'
138
+ property :parent, as: 'parent'
139
+ property :title, as: 'title'
140
+ end
141
+ end
142
+
143
+ class BasicLevel
144
+ # @private
145
+ class Representation < Google::Apis::Core::JsonRepresentation
146
+ property :combining_function, as: 'combiningFunction'
147
+ collection :conditions, as: 'conditions', class: Google::Apis::AccesscontextmanagerV1beta::Condition, decorator: Google::Apis::AccesscontextmanagerV1beta::Condition::Representation
148
+
149
+ end
150
+ end
151
+
152
+ class Condition
153
+ # @private
154
+ class Representation < Google::Apis::Core::JsonRepresentation
155
+ property :device_policy, as: 'devicePolicy', class: Google::Apis::AccesscontextmanagerV1beta::DevicePolicy, decorator: Google::Apis::AccesscontextmanagerV1beta::DevicePolicy::Representation
156
+
157
+ collection :ip_subnetworks, as: 'ipSubnetworks'
158
+ collection :members, as: 'members'
159
+ property :negate, as: 'negate'
160
+ collection :regions, as: 'regions'
161
+ collection :required_access_levels, as: 'requiredAccessLevels'
162
+ end
163
+ end
164
+
165
+ class CustomLevel
166
+ # @private
167
+ class Representation < Google::Apis::Core::JsonRepresentation
168
+ property :expr, as: 'expr', class: Google::Apis::AccesscontextmanagerV1beta::Expr, decorator: Google::Apis::AccesscontextmanagerV1beta::Expr::Representation
169
+
170
+ end
171
+ end
172
+
173
+ class DevicePolicy
174
+ # @private
175
+ class Representation < Google::Apis::Core::JsonRepresentation
176
+ collection :allowed_device_management_levels, as: 'allowedDeviceManagementLevels'
177
+ collection :allowed_encryption_statuses, as: 'allowedEncryptionStatuses'
178
+ collection :os_constraints, as: 'osConstraints', class: Google::Apis::AccesscontextmanagerV1beta::OsConstraint, decorator: Google::Apis::AccesscontextmanagerV1beta::OsConstraint::Representation
179
+
180
+ property :require_admin_approval, as: 'requireAdminApproval'
181
+ property :require_corp_owned, as: 'requireCorpOwned'
182
+ property :require_screenlock, as: 'requireScreenlock'
183
+ end
184
+ end
185
+
186
+ class Expr
187
+ # @private
188
+ class Representation < Google::Apis::Core::JsonRepresentation
189
+ property :description, as: 'description'
190
+ property :expression, as: 'expression'
191
+ property :location, as: 'location'
192
+ property :title, as: 'title'
193
+ end
194
+ end
195
+
196
+ class ListAccessLevelsResponse
197
+ # @private
198
+ class Representation < Google::Apis::Core::JsonRepresentation
199
+ collection :access_levels, as: 'accessLevels', class: Google::Apis::AccesscontextmanagerV1beta::AccessLevel, decorator: Google::Apis::AccesscontextmanagerV1beta::AccessLevel::Representation
200
+
201
+ property :next_page_token, as: 'nextPageToken'
202
+ end
203
+ end
204
+
205
+ class ListAccessPoliciesResponse
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ collection :access_policies, as: 'accessPolicies', class: Google::Apis::AccesscontextmanagerV1beta::AccessPolicy, decorator: Google::Apis::AccesscontextmanagerV1beta::AccessPolicy::Representation
209
+
210
+ property :next_page_token, as: 'nextPageToken'
211
+ end
212
+ end
213
+
214
+ class ListServicePerimetersResponse
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :next_page_token, as: 'nextPageToken'
218
+ collection :service_perimeters, as: 'servicePerimeters', class: Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter, decorator: Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter::Representation
219
+
220
+ end
221
+ end
222
+
223
+ class Operation
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :done, as: 'done'
227
+ property :error, as: 'error', class: Google::Apis::AccesscontextmanagerV1beta::Status, decorator: Google::Apis::AccesscontextmanagerV1beta::Status::Representation
228
+
229
+ hash :metadata, as: 'metadata'
230
+ property :name, as: 'name'
231
+ hash :response, as: 'response'
232
+ end
233
+ end
234
+
235
+ class OsConstraint
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ property :minimum_version, as: 'minimumVersion'
239
+ property :os_type, as: 'osType'
240
+ property :require_verified_chrome_os, as: 'requireVerifiedChromeOs'
241
+ end
242
+ end
243
+
244
+ class ServicePerimeter
245
+ # @private
246
+ class Representation < Google::Apis::Core::JsonRepresentation
247
+ property :description, as: 'description'
248
+ property :name, as: 'name'
249
+ property :perimeter_type, as: 'perimeterType'
250
+ property :status, as: 'status', class: Google::Apis::AccesscontextmanagerV1beta::ServicePerimeterConfig, decorator: Google::Apis::AccesscontextmanagerV1beta::ServicePerimeterConfig::Representation
251
+
252
+ property :title, as: 'title'
253
+ end
254
+ end
255
+
256
+ class ServicePerimeterConfig
257
+ # @private
258
+ class Representation < Google::Apis::Core::JsonRepresentation
259
+ collection :access_levels, as: 'accessLevels'
260
+ collection :resources, as: 'resources'
261
+ collection :restricted_services, as: 'restrictedServices'
262
+ collection :unrestricted_services, as: 'unrestrictedServices'
263
+ property :vpc_accessible_services, as: 'vpcAccessibleServices', class: Google::Apis::AccesscontextmanagerV1beta::VpcAccessibleServices, decorator: Google::Apis::AccesscontextmanagerV1beta::VpcAccessibleServices::Representation
264
+
265
+ end
266
+ end
267
+
268
+ class Status
269
+ # @private
270
+ class Representation < Google::Apis::Core::JsonRepresentation
271
+ property :code, as: 'code'
272
+ collection :details, as: 'details'
273
+ property :message, as: 'message'
274
+ end
275
+ end
276
+
277
+ class VpcAccessibleServices
278
+ # @private
279
+ class Representation < Google::Apis::Core::JsonRepresentation
280
+ collection :allowed_services, as: 'allowedServices'
281
+ property :enable_restriction, as: 'enableRestriction'
282
+ end
283
+ end
284
+ end
285
+ end
286
+ end
@@ -0,0 +1,640 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module AccesscontextmanagerV1beta
23
+ # Access Context Manager API
24
+ #
25
+ # An API for setting attribute based access control to requests to GCP services.
26
+ #
27
+ # @example
28
+ # require 'google/apis/accesscontextmanager_v1beta'
29
+ #
30
+ # Accesscontextmanager = Google::Apis::AccesscontextmanagerV1beta # Alias the module
31
+ # service = Accesscontextmanager::AccessContextManagerService.new
32
+ #
33
+ # @see https://cloud.google.com/access-context-manager/docs/reference/rest/
34
+ class AccessContextManagerService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://accesscontextmanager.googleapis.com/', '',
47
+ client_name: 'google-apis-accesscontextmanager_v1beta',
48
+ client_version: Google::Apis::AccesscontextmanagerV1beta::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Create an `AccessPolicy`. Fails if this organization already has a `
53
+ # AccessPolicy`. The longrunning Operation will have a successful status once
54
+ # the `AccessPolicy` has propagated to long-lasting storage. Syntactic and basic
55
+ # semantic errors will be returned in `metadata` as a BadRequest proto.
56
+ # @param [Google::Apis::AccesscontextmanagerV1beta::AccessPolicy] access_policy_object
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::Operation] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Operation]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def create_access_policy(access_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:post, 'v1beta/accessPolicies', options)
76
+ command.request_representation = Google::Apis::AccesscontextmanagerV1beta::AccessPolicy::Representation
77
+ command.request_object = access_policy_object
78
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::Operation::Representation
79
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::Operation
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Delete an AccessPolicy by resource name. The longrunning Operation will have a
86
+ # successful status once the AccessPolicy has been removed from long-lasting
87
+ # storage.
88
+ # @param [String] name
89
+ # Required. Resource name for the access policy to delete. Format `
90
+ # accessPolicies/`policy_id``
91
+ # @param [String] fields
92
+ # Selector specifying which fields to include in a partial response.
93
+ # @param [String] quota_user
94
+ # Available to use for quota purposes for server-side applications. Can be any
95
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
96
+ # @param [Google::Apis::RequestOptions] options
97
+ # Request-specific options
98
+ #
99
+ # @yield [result, err] Result & error if block supplied
100
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::Operation] parsed result object
101
+ # @yieldparam err [StandardError] error object if request failed
102
+ #
103
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Operation]
104
+ #
105
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
108
+ def delete_access_policy(name, fields: nil, quota_user: nil, options: nil, &block)
109
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
110
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::Operation::Representation
111
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::Operation
112
+ command.params['name'] = name unless name.nil?
113
+ command.query['fields'] = fields unless fields.nil?
114
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
115
+ execute_or_queue_command(command, &block)
116
+ end
117
+
118
+ # Get an AccessPolicy by name.
119
+ # @param [String] name
120
+ # Required. Resource name for the access policy to get. Format `accessPolicies/`
121
+ # policy_id``
122
+ # @param [String] fields
123
+ # Selector specifying which fields to include in a partial response.
124
+ # @param [String] quota_user
125
+ # Available to use for quota purposes for server-side applications. Can be any
126
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
127
+ # @param [Google::Apis::RequestOptions] options
128
+ # Request-specific options
129
+ #
130
+ # @yield [result, err] Result & error if block supplied
131
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::AccessPolicy] parsed result object
132
+ # @yieldparam err [StandardError] error object if request failed
133
+ #
134
+ # @return [Google::Apis::AccesscontextmanagerV1beta::AccessPolicy]
135
+ #
136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
139
+ def get_access_policy(name, fields: nil, quota_user: nil, options: nil, &block)
140
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
141
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::AccessPolicy::Representation
142
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::AccessPolicy
143
+ command.params['name'] = name unless name.nil?
144
+ command.query['fields'] = fields unless fields.nil?
145
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
146
+ execute_or_queue_command(command, &block)
147
+ end
148
+
149
+ # List all AccessPolicies under a container.
150
+ # @param [Fixnum] page_size
151
+ # Number of AccessPolicy instances to include in the list. Default 100.
152
+ # @param [String] page_token
153
+ # Next page token for the next batch of AccessPolicy instances. Defaults to the
154
+ # first page of results.
155
+ # @param [String] parent
156
+ # Required. Resource name for the container to list AccessPolicy instances from.
157
+ # Format: `organizations/`org_id``
158
+ # @param [String] fields
159
+ # Selector specifying which fields to include in a partial response.
160
+ # @param [String] quota_user
161
+ # Available to use for quota purposes for server-side applications. Can be any
162
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
163
+ # @param [Google::Apis::RequestOptions] options
164
+ # Request-specific options
165
+ #
166
+ # @yield [result, err] Result & error if block supplied
167
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::ListAccessPoliciesResponse] parsed result object
168
+ # @yieldparam err [StandardError] error object if request failed
169
+ #
170
+ # @return [Google::Apis::AccesscontextmanagerV1beta::ListAccessPoliciesResponse]
171
+ #
172
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
173
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
174
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
175
+ def list_access_policies(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
176
+ command = make_simple_command(:get, 'v1beta/accessPolicies', options)
177
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::ListAccessPoliciesResponse::Representation
178
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::ListAccessPoliciesResponse
179
+ command.query['pageSize'] = page_size unless page_size.nil?
180
+ command.query['pageToken'] = page_token unless page_token.nil?
181
+ command.query['parent'] = parent unless parent.nil?
182
+ command.query['fields'] = fields unless fields.nil?
183
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
184
+ execute_or_queue_command(command, &block)
185
+ end
186
+
187
+ # Update an AccessPolicy. The longrunning Operation from this RPC will have a
188
+ # successful status once the changes to the AccessPolicy have propagated to long-
189
+ # lasting storage. Syntactic and basic semantic errors will be returned in `
190
+ # metadata` as a BadRequest proto.
191
+ # @param [String] name
192
+ # Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/`
193
+ # policy_id``
194
+ # @param [Google::Apis::AccesscontextmanagerV1beta::AccessPolicy] access_policy_object
195
+ # @param [String] update_mask
196
+ # Required. Mask to control which fields get updated. Must be non-empty.
197
+ # @param [String] fields
198
+ # Selector specifying which fields to include in a partial response.
199
+ # @param [String] quota_user
200
+ # Available to use for quota purposes for server-side applications. Can be any
201
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
202
+ # @param [Google::Apis::RequestOptions] options
203
+ # Request-specific options
204
+ #
205
+ # @yield [result, err] Result & error if block supplied
206
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::Operation] parsed result object
207
+ # @yieldparam err [StandardError] error object if request failed
208
+ #
209
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Operation]
210
+ #
211
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
212
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
213
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
214
+ def patch_access_policy(name, access_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
215
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
216
+ command.request_representation = Google::Apis::AccesscontextmanagerV1beta::AccessPolicy::Representation
217
+ command.request_object = access_policy_object
218
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::Operation::Representation
219
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::Operation
220
+ command.params['name'] = name unless name.nil?
221
+ command.query['updateMask'] = update_mask unless update_mask.nil?
222
+ command.query['fields'] = fields unless fields.nil?
223
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
224
+ execute_or_queue_command(command, &block)
225
+ end
226
+
227
+ # Create an Access Level. The longrunning operation from this RPC will have a
228
+ # successful status once the Access Level has propagated to long-lasting storage.
229
+ # Access Levels containing errors will result in an error response for the
230
+ # first error encountered.
231
+ # @param [String] parent
232
+ # Required. Resource name for the access policy which owns this Access Level.
233
+ # Format: `accessPolicies/`policy_id``
234
+ # @param [Google::Apis::AccesscontextmanagerV1beta::AccessLevel] access_level_object
235
+ # @param [String] fields
236
+ # Selector specifying which fields to include in a partial response.
237
+ # @param [String] quota_user
238
+ # Available to use for quota purposes for server-side applications. Can be any
239
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
240
+ # @param [Google::Apis::RequestOptions] options
241
+ # Request-specific options
242
+ #
243
+ # @yield [result, err] Result & error if block supplied
244
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::Operation] parsed result object
245
+ # @yieldparam err [StandardError] error object if request failed
246
+ #
247
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Operation]
248
+ #
249
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
250
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
251
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
252
+ def create_access_policy_access_level(parent, access_level_object = nil, fields: nil, quota_user: nil, options: nil, &block)
253
+ command = make_simple_command(:post, 'v1beta/{+parent}/accessLevels', options)
254
+ command.request_representation = Google::Apis::AccesscontextmanagerV1beta::AccessLevel::Representation
255
+ command.request_object = access_level_object
256
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::Operation::Representation
257
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::Operation
258
+ command.params['parent'] = parent unless parent.nil?
259
+ command.query['fields'] = fields unless fields.nil?
260
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
261
+ execute_or_queue_command(command, &block)
262
+ end
263
+
264
+ # Delete an Access Level by resource name. The longrunning operation from this
265
+ # RPC will have a successful status once the Access Level has been removed from
266
+ # long-lasting storage.
267
+ # @param [String] name
268
+ # Required. Resource name for the Access Level. Format: `accessPolicies/`
269
+ # policy_id`/accessLevels/`access_level_id``
270
+ # @param [String] fields
271
+ # Selector specifying which fields to include in a partial response.
272
+ # @param [String] quota_user
273
+ # Available to use for quota purposes for server-side applications. Can be any
274
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
275
+ # @param [Google::Apis::RequestOptions] options
276
+ # Request-specific options
277
+ #
278
+ # @yield [result, err] Result & error if block supplied
279
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::Operation] parsed result object
280
+ # @yieldparam err [StandardError] error object if request failed
281
+ #
282
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Operation]
283
+ #
284
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
285
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
286
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
287
+ def delete_access_policy_access_level(name, fields: nil, quota_user: nil, options: nil, &block)
288
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
289
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::Operation::Representation
290
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::Operation
291
+ command.params['name'] = name unless name.nil?
292
+ command.query['fields'] = fields unless fields.nil?
293
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
294
+ execute_or_queue_command(command, &block)
295
+ end
296
+
297
+ # Get an Access Level by resource name.
298
+ # @param [String] name
299
+ # Required. Resource name for the Access Level. Format: `accessPolicies/`
300
+ # policy_id`/accessLevels/`access_level_id``
301
+ # @param [String] access_level_format
302
+ # Whether to return `BasicLevels` in the Cloud Common Expression Language rather
303
+ # than as `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are
304
+ # returned as `BasicLevels` or `CustomLevels` based on how they were created. If
305
+ # set to CEL, all Access Levels are returned as `CustomLevels`. In the CEL case,
306
+ # `BasicLevels` are translated to equivalent `CustomLevels`.
307
+ # @param [String] fields
308
+ # Selector specifying which fields to include in a partial response.
309
+ # @param [String] quota_user
310
+ # Available to use for quota purposes for server-side applications. Can be any
311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
312
+ # @param [Google::Apis::RequestOptions] options
313
+ # Request-specific options
314
+ #
315
+ # @yield [result, err] Result & error if block supplied
316
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::AccessLevel] parsed result object
317
+ # @yieldparam err [StandardError] error object if request failed
318
+ #
319
+ # @return [Google::Apis::AccesscontextmanagerV1beta::AccessLevel]
320
+ #
321
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
322
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
323
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
324
+ def get_access_policy_access_level(name, access_level_format: nil, fields: nil, quota_user: nil, options: nil, &block)
325
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
326
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::AccessLevel::Representation
327
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::AccessLevel
328
+ command.params['name'] = name unless name.nil?
329
+ command.query['accessLevelFormat'] = access_level_format unless access_level_format.nil?
330
+ command.query['fields'] = fields unless fields.nil?
331
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
332
+ execute_or_queue_command(command, &block)
333
+ end
334
+
335
+ # List all Access Levels for an access policy.
336
+ # @param [String] parent
337
+ # Required. Resource name for the access policy to list Access Levels from.
338
+ # Format: `accessPolicies/`policy_id``
339
+ # @param [String] access_level_format
340
+ # Whether to return `BasicLevels` in the Cloud Common Expression language, as `
341
+ # CustomLevels`, rather than as `BasicLevels`. Defaults to returning `
342
+ # AccessLevels` in the format they were defined.
343
+ # @param [Fixnum] page_size
344
+ # Number of Access Levels to include in the list. Default 100.
345
+ # @param [String] page_token
346
+ # Next page token for the next batch of Access Level instances. Defaults to the
347
+ # first page of results.
348
+ # @param [String] fields
349
+ # Selector specifying which fields to include in a partial response.
350
+ # @param [String] quota_user
351
+ # Available to use for quota purposes for server-side applications. Can be any
352
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
353
+ # @param [Google::Apis::RequestOptions] options
354
+ # Request-specific options
355
+ #
356
+ # @yield [result, err] Result & error if block supplied
357
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::ListAccessLevelsResponse] parsed result object
358
+ # @yieldparam err [StandardError] error object if request failed
359
+ #
360
+ # @return [Google::Apis::AccesscontextmanagerV1beta::ListAccessLevelsResponse]
361
+ #
362
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
363
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
364
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
365
+ def list_access_policy_access_levels(parent, access_level_format: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
366
+ command = make_simple_command(:get, 'v1beta/{+parent}/accessLevels', options)
367
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::ListAccessLevelsResponse::Representation
368
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::ListAccessLevelsResponse
369
+ command.params['parent'] = parent unless parent.nil?
370
+ command.query['accessLevelFormat'] = access_level_format unless access_level_format.nil?
371
+ command.query['pageSize'] = page_size unless page_size.nil?
372
+ command.query['pageToken'] = page_token unless page_token.nil?
373
+ command.query['fields'] = fields unless fields.nil?
374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
375
+ execute_or_queue_command(command, &block)
376
+ end
377
+
378
+ # Update an Access Level. The longrunning operation from this RPC will have a
379
+ # successful status once the changes to the Access Level have propagated to long-
380
+ # lasting storage. Access Levels containing errors will result in an error
381
+ # response for the first error encountered.
382
+ # @param [String] name
383
+ # Required. Resource name for the Access Level. The `short_name` component must
384
+ # begin with a letter and only include alphanumeric and '_'. Format: `
385
+ # accessPolicies/`policy_id`/accessLevels/`short_name``. The maximum length //
386
+ # of the `short_name` component is 50 characters.
387
+ # @param [Google::Apis::AccesscontextmanagerV1beta::AccessLevel] access_level_object
388
+ # @param [String] update_mask
389
+ # Required. Mask to control which fields get updated. Must be non-empty.
390
+ # @param [String] fields
391
+ # Selector specifying which fields to include in a partial response.
392
+ # @param [String] quota_user
393
+ # Available to use for quota purposes for server-side applications. Can be any
394
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
395
+ # @param [Google::Apis::RequestOptions] options
396
+ # Request-specific options
397
+ #
398
+ # @yield [result, err] Result & error if block supplied
399
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::Operation] parsed result object
400
+ # @yieldparam err [StandardError] error object if request failed
401
+ #
402
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Operation]
403
+ #
404
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
405
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
406
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
407
+ def patch_access_policy_access_level(name, access_level_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
408
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
409
+ command.request_representation = Google::Apis::AccesscontextmanagerV1beta::AccessLevel::Representation
410
+ command.request_object = access_level_object
411
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::Operation::Representation
412
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::Operation
413
+ command.params['name'] = name unless name.nil?
414
+ command.query['updateMask'] = update_mask unless update_mask.nil?
415
+ command.query['fields'] = fields unless fields.nil?
416
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
417
+ execute_or_queue_command(command, &block)
418
+ end
419
+
420
+ # Create a Service Perimeter. The longrunning operation from this RPC will have
421
+ # a successful status once the Service Perimeter has propagated to long-lasting
422
+ # storage. Service Perimeters containing errors will result in an error response
423
+ # for the first error encountered.
424
+ # @param [String] parent
425
+ # Required. Resource name for the access policy which owns this Service
426
+ # Perimeter. Format: `accessPolicies/`policy_id``
427
+ # @param [Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter] service_perimeter_object
428
+ # @param [String] fields
429
+ # Selector specifying which fields to include in a partial response.
430
+ # @param [String] quota_user
431
+ # Available to use for quota purposes for server-side applications. Can be any
432
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
433
+ # @param [Google::Apis::RequestOptions] options
434
+ # Request-specific options
435
+ #
436
+ # @yield [result, err] Result & error if block supplied
437
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::Operation] parsed result object
438
+ # @yieldparam err [StandardError] error object if request failed
439
+ #
440
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Operation]
441
+ #
442
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
443
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
444
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
445
+ def create_access_policy_service_perimeter(parent, service_perimeter_object = nil, fields: nil, quota_user: nil, options: nil, &block)
446
+ command = make_simple_command(:post, 'v1beta/{+parent}/servicePerimeters', options)
447
+ command.request_representation = Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter::Representation
448
+ command.request_object = service_perimeter_object
449
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::Operation::Representation
450
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::Operation
451
+ command.params['parent'] = parent unless parent.nil?
452
+ command.query['fields'] = fields unless fields.nil?
453
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
454
+ execute_or_queue_command(command, &block)
455
+ end
456
+
457
+ # Delete a Service Perimeter by resource name. The longrunning operation from
458
+ # this RPC will have a successful status once the Service Perimeter has been
459
+ # removed from long-lasting storage.
460
+ # @param [String] name
461
+ # Required. Resource name for the Service Perimeter. Format: `accessPolicies/`
462
+ # policy_id`/servicePerimeters/`service_perimeter_id``
463
+ # @param [String] fields
464
+ # Selector specifying which fields to include in a partial response.
465
+ # @param [String] quota_user
466
+ # Available to use for quota purposes for server-side applications. Can be any
467
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
468
+ # @param [Google::Apis::RequestOptions] options
469
+ # Request-specific options
470
+ #
471
+ # @yield [result, err] Result & error if block supplied
472
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::Operation] parsed result object
473
+ # @yieldparam err [StandardError] error object if request failed
474
+ #
475
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Operation]
476
+ #
477
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
478
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
479
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
480
+ def delete_access_policy_service_perimeter(name, fields: nil, quota_user: nil, options: nil, &block)
481
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
482
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::Operation::Representation
483
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::Operation
484
+ command.params['name'] = name unless name.nil?
485
+ command.query['fields'] = fields unless fields.nil?
486
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
487
+ execute_or_queue_command(command, &block)
488
+ end
489
+
490
+ # Get a Service Perimeter by resource name.
491
+ # @param [String] name
492
+ # Required. Resource name for the Service Perimeter. Format: `accessPolicies/`
493
+ # policy_id`/servicePerimeters/`service_perimeters_id``
494
+ # @param [String] fields
495
+ # Selector specifying which fields to include in a partial response.
496
+ # @param [String] quota_user
497
+ # Available to use for quota purposes for server-side applications. Can be any
498
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
499
+ # @param [Google::Apis::RequestOptions] options
500
+ # Request-specific options
501
+ #
502
+ # @yield [result, err] Result & error if block supplied
503
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter] parsed result object
504
+ # @yieldparam err [StandardError] error object if request failed
505
+ #
506
+ # @return [Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter]
507
+ #
508
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
509
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
510
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
511
+ def get_access_policy_service_perimeter(name, fields: nil, quota_user: nil, options: nil, &block)
512
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
513
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter::Representation
514
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter
515
+ command.params['name'] = name unless name.nil?
516
+ command.query['fields'] = fields unless fields.nil?
517
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
518
+ execute_or_queue_command(command, &block)
519
+ end
520
+
521
+ # List all Service Perimeters for an access policy.
522
+ # @param [String] parent
523
+ # Required. Resource name for the access policy to list Service Perimeters from.
524
+ # Format: `accessPolicies/`policy_id``
525
+ # @param [Fixnum] page_size
526
+ # Number of Service Perimeters to include in the list. Default 100.
527
+ # @param [String] page_token
528
+ # Next page token for the next batch of Service Perimeter instances. Defaults to
529
+ # the first page of results.
530
+ # @param [String] fields
531
+ # Selector specifying which fields to include in a partial response.
532
+ # @param [String] quota_user
533
+ # Available to use for quota purposes for server-side applications. Can be any
534
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
535
+ # @param [Google::Apis::RequestOptions] options
536
+ # Request-specific options
537
+ #
538
+ # @yield [result, err] Result & error if block supplied
539
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::ListServicePerimetersResponse] parsed result object
540
+ # @yieldparam err [StandardError] error object if request failed
541
+ #
542
+ # @return [Google::Apis::AccesscontextmanagerV1beta::ListServicePerimetersResponse]
543
+ #
544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
547
+ def list_access_policy_service_perimeters(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
548
+ command = make_simple_command(:get, 'v1beta/{+parent}/servicePerimeters', options)
549
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::ListServicePerimetersResponse::Representation
550
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::ListServicePerimetersResponse
551
+ command.params['parent'] = parent unless parent.nil?
552
+ command.query['pageSize'] = page_size unless page_size.nil?
553
+ command.query['pageToken'] = page_token unless page_token.nil?
554
+ command.query['fields'] = fields unless fields.nil?
555
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
556
+ execute_or_queue_command(command, &block)
557
+ end
558
+
559
+ # Update a Service Perimeter. The longrunning operation from this RPC will have
560
+ # a successful status once the changes to the Service Perimeter have propagated
561
+ # to long-lasting storage. Service Perimeter containing errors will result in an
562
+ # error response for the first error encountered.
563
+ # @param [String] name
564
+ # Required. Resource name for the ServicePerimeter. The `short_name` component
565
+ # must begin with a letter and only include alphanumeric and '_'. Format: `
566
+ # accessPolicies/`policy_id`/servicePerimeters/`short_name``
567
+ # @param [Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter] service_perimeter_object
568
+ # @param [String] update_mask
569
+ # Required. Mask to control which fields get updated. Must be non-empty.
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::Operation] parsed result object
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Operation]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def patch_access_policy_service_perimeter(name, service_perimeter_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
588
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
589
+ command.request_representation = Google::Apis::AccesscontextmanagerV1beta::ServicePerimeter::Representation
590
+ command.request_object = service_perimeter_object
591
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::Operation::Representation
592
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::Operation
593
+ command.params['name'] = name unless name.nil?
594
+ command.query['updateMask'] = update_mask unless update_mask.nil?
595
+ command.query['fields'] = fields unless fields.nil?
596
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
597
+ execute_or_queue_command(command, &block)
598
+ end
599
+
600
+ # Gets the latest state of a long-running operation. Clients can use this method
601
+ # to poll the operation result at intervals as recommended by the API service.
602
+ # @param [String] name
603
+ # The name of the operation resource.
604
+ # @param [String] fields
605
+ # Selector specifying which fields to include in a partial response.
606
+ # @param [String] quota_user
607
+ # Available to use for quota purposes for server-side applications. Can be any
608
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
609
+ # @param [Google::Apis::RequestOptions] options
610
+ # Request-specific options
611
+ #
612
+ # @yield [result, err] Result & error if block supplied
613
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1beta::Operation] parsed result object
614
+ # @yieldparam err [StandardError] error object if request failed
615
+ #
616
+ # @return [Google::Apis::AccesscontextmanagerV1beta::Operation]
617
+ #
618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
621
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
622
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
623
+ command.response_representation = Google::Apis::AccesscontextmanagerV1beta::Operation::Representation
624
+ command.response_class = Google::Apis::AccesscontextmanagerV1beta::Operation
625
+ command.params['name'] = name unless name.nil?
626
+ command.query['fields'] = fields unless fields.nil?
627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
628
+ execute_or_queue_command(command, &block)
629
+ end
630
+
631
+ protected
632
+
633
+ def apply_command_defaults(command)
634
+ command.query['key'] = key unless key.nil?
635
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
636
+ end
637
+ end
638
+ end
639
+ end
640
+ end