google-apis-beyondcorp_v1alpha 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/beyondcorp_v1alpha/classes.rb +2939 -0
- data/lib/google/apis/beyondcorp_v1alpha/gem_version.rb +28 -0
- data/lib/google/apis/beyondcorp_v1alpha/representations.rb +1249 -0
- data/lib/google/apis/beyondcorp_v1alpha/service.rb +2906 -0
- data/lib/google/apis/beyondcorp_v1alpha.rb +39 -0
- data/lib/google-apis-beyondcorp_v1alpha.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,2906 @@
|
|
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 BeyondcorpV1alpha
|
23
|
+
# BeyondCorp API
|
24
|
+
#
|
25
|
+
# Beyondcorp Enterprise provides identity and context aware access controls for
|
26
|
+
# enterprise resources and enables zero-trust access. Using the Beyondcorp
|
27
|
+
# Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity
|
28
|
+
# using the App Connector hybrid connectivity solution.
|
29
|
+
#
|
30
|
+
# @example
|
31
|
+
# require 'google/apis/beyondcorp_v1alpha'
|
32
|
+
#
|
33
|
+
# Beyondcorp = Google::Apis::BeyondcorpV1alpha # Alias the module
|
34
|
+
# service = Beyondcorp::BeyondCorpService.new
|
35
|
+
#
|
36
|
+
# @see https://cloud.google.com/
|
37
|
+
class BeyondCorpService < Google::Apis::Core::BaseService
|
38
|
+
# @return [String]
|
39
|
+
# API key. Your API key identifies your project and provides you with API access,
|
40
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
41
|
+
attr_accessor :key
|
42
|
+
|
43
|
+
# @return [String]
|
44
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
45
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
46
|
+
attr_accessor :quota_user
|
47
|
+
|
48
|
+
def initialize
|
49
|
+
super('https://beyondcorp.googleapis.com/', '',
|
50
|
+
client_name: 'google-apis-beyondcorp_v1alpha',
|
51
|
+
client_version: Google::Apis::BeyondcorpV1alpha::GEM_VERSION)
|
52
|
+
@batch_path = 'batch'
|
53
|
+
end
|
54
|
+
|
55
|
+
# Gets information about a location.
|
56
|
+
# @param [String] name
|
57
|
+
# Resource name for the location.
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [String] quota_user
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
64
|
+
# Request-specific options
|
65
|
+
#
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
67
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudLocationLocation] parsed result object
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
69
|
+
#
|
70
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudLocationLocation]
|
71
|
+
#
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
77
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudLocationLocation::Representation
|
78
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudLocationLocation
|
79
|
+
command.params['name'] = name unless name.nil?
|
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
|
+
# Lists information about the supported locations for this service.
|
86
|
+
# @param [String] name
|
87
|
+
# The resource that owns the locations collection, if applicable.
|
88
|
+
# @param [String] filter
|
89
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
90
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
91
|
+
# in [AIP-160](https://google.aip.dev/160).
|
92
|
+
# @param [Fixnum] page_size
|
93
|
+
# The maximum number of results to return. If not set, the service selects a
|
94
|
+
# default.
|
95
|
+
# @param [String] page_token
|
96
|
+
# A page token received from the `next_page_token` field in the response. Send
|
97
|
+
# that page token to receive the subsequent page.
|
98
|
+
# @param [String] fields
|
99
|
+
# Selector specifying which fields to include in a partial response.
|
100
|
+
# @param [String] quota_user
|
101
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
102
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
103
|
+
# @param [Google::Apis::RequestOptions] options
|
104
|
+
# Request-specific options
|
105
|
+
#
|
106
|
+
# @yield [result, err] Result & error if block supplied
|
107
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudLocationListLocationsResponse] parsed result object
|
108
|
+
# @yieldparam err [StandardError] error object if request failed
|
109
|
+
#
|
110
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudLocationListLocationsResponse]
|
111
|
+
#
|
112
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
113
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
114
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
115
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
116
|
+
command = make_simple_command(:get, 'v1alpha/{+name}/locations', options)
|
117
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudLocationListLocationsResponse::Representation
|
118
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudLocationListLocationsResponse
|
119
|
+
command.params['name'] = name unless name.nil?
|
120
|
+
command.query['filter'] = filter unless filter.nil?
|
121
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
122
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
123
|
+
command.query['fields'] = fields unless fields.nil?
|
124
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
125
|
+
execute_or_queue_command(command, &block)
|
126
|
+
end
|
127
|
+
|
128
|
+
# Creates a new AppConnection in a given project and location.
|
129
|
+
# @param [String] parent
|
130
|
+
# Required. The resource project name of the AppConnection location using the
|
131
|
+
# form: `projects/`project_id`/locations/`location_id``
|
132
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection] google_cloud_beyondcorp_appconnections_v1alpha_app_connection_object
|
133
|
+
# @param [String] app_connection_id
|
134
|
+
# Optional. User-settable AppConnection resource ID. * Must start with a letter.
|
135
|
+
# * Must contain between 4-63 characters from (/a-z-/). * Must end with a number
|
136
|
+
# or a letter.
|
137
|
+
# @param [String] request_id
|
138
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
139
|
+
# request ID so that if you must retry your request, the server will know to
|
140
|
+
# ignore the request if it has already been completed. The server will guarantee
|
141
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
142
|
+
# situation where you make an initial request and t he request times out. If you
|
143
|
+
# make the request again with the same request ID, the server can check if
|
144
|
+
# original operation with the same request ID was received, and if so, will
|
145
|
+
# ignore the second request. This prevents clients from accidentally creating
|
146
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
147
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
148
|
+
# @param [Boolean] validate_only
|
149
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
150
|
+
# alter the resource in any way.
|
151
|
+
# @param [String] fields
|
152
|
+
# Selector specifying which fields to include in a partial response.
|
153
|
+
# @param [String] quota_user
|
154
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
155
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
156
|
+
# @param [Google::Apis::RequestOptions] options
|
157
|
+
# Request-specific options
|
158
|
+
#
|
159
|
+
# @yield [result, err] Result & error if block supplied
|
160
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
161
|
+
# @yieldparam err [StandardError] error object if request failed
|
162
|
+
#
|
163
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
164
|
+
#
|
165
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
166
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
167
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
168
|
+
def create_project_location_app_connection(parent, google_cloud_beyondcorp_appconnections_v1alpha_app_connection_object = nil, app_connection_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
169
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/appConnections', options)
|
170
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection::Representation
|
171
|
+
command.request_object = google_cloud_beyondcorp_appconnections_v1alpha_app_connection_object
|
172
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
173
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
174
|
+
command.params['parent'] = parent unless parent.nil?
|
175
|
+
command.query['appConnectionId'] = app_connection_id unless app_connection_id.nil?
|
176
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
177
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
178
|
+
command.query['fields'] = fields unless fields.nil?
|
179
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
180
|
+
execute_or_queue_command(command, &block)
|
181
|
+
end
|
182
|
+
|
183
|
+
# Deletes a single AppConnection.
|
184
|
+
# @param [String] name
|
185
|
+
# Required. BeyondCorp Connector name using the form: `projects/`project_id`/
|
186
|
+
# locations/`location_id`/appConnections/`app_connection_id``
|
187
|
+
# @param [String] request_id
|
188
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
189
|
+
# request ID so that if you must retry your request, the server will know to
|
190
|
+
# ignore the request if it has already been completed. The server will guarantee
|
191
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
192
|
+
# situation where you make an initial request and t he request times out. If you
|
193
|
+
# make the request again with the same request ID, the server can check if
|
194
|
+
# original operation with the same request ID was received, and if so, will
|
195
|
+
# ignore the second request. This prevents clients from accidentally creating
|
196
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
197
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
198
|
+
# @param [Boolean] validate_only
|
199
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
200
|
+
# alter the resource in any way.
|
201
|
+
# @param [String] fields
|
202
|
+
# Selector specifying which fields to include in a partial response.
|
203
|
+
# @param [String] quota_user
|
204
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
205
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
206
|
+
# @param [Google::Apis::RequestOptions] options
|
207
|
+
# Request-specific options
|
208
|
+
#
|
209
|
+
# @yield [result, err] Result & error if block supplied
|
210
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
211
|
+
# @yieldparam err [StandardError] error object if request failed
|
212
|
+
#
|
213
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
214
|
+
#
|
215
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
216
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
217
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
218
|
+
def delete_project_location_app_connection(name, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
219
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
220
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
221
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
222
|
+
command.params['name'] = name unless name.nil?
|
223
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
224
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
225
|
+
command.query['fields'] = fields unless fields.nil?
|
226
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
227
|
+
execute_or_queue_command(command, &block)
|
228
|
+
end
|
229
|
+
|
230
|
+
# Gets details of a single AppConnection.
|
231
|
+
# @param [String] name
|
232
|
+
# Required. BeyondCorp AppConnection name using the form: `projects/`project_id`/
|
233
|
+
# locations/`location_id`/appConnections/`app_connection_id``
|
234
|
+
# @param [String] fields
|
235
|
+
# Selector specifying which fields to include in a partial response.
|
236
|
+
# @param [String] quota_user
|
237
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
238
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
239
|
+
# @param [Google::Apis::RequestOptions] options
|
240
|
+
# Request-specific options
|
241
|
+
#
|
242
|
+
# @yield [result, err] Result & error if block supplied
|
243
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection] parsed result object
|
244
|
+
# @yieldparam err [StandardError] error object if request failed
|
245
|
+
#
|
246
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection]
|
247
|
+
#
|
248
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
249
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
250
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
251
|
+
def get_project_location_app_connection(name, fields: nil, quota_user: nil, options: nil, &block)
|
252
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
253
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection::Representation
|
254
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection
|
255
|
+
command.params['name'] = name unless name.nil?
|
256
|
+
command.query['fields'] = fields unless fields.nil?
|
257
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
258
|
+
execute_or_queue_command(command, &block)
|
259
|
+
end
|
260
|
+
|
261
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
262
|
+
# resource exists and does not have a policy set.
|
263
|
+
# @param [String] resource
|
264
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
265
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
266
|
+
# appropriate value for this field.
|
267
|
+
# @param [Fixnum] options_requested_policy_version
|
268
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
269
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
270
|
+
# rejected. Requests for policies with any conditional role bindings must
|
271
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
272
|
+
# valid value or leave the field unset. The policy in the response might use the
|
273
|
+
# policy version that you specified, or it might use a lower policy version. For
|
274
|
+
# example, if you specify version 3, but the policy has no conditional role
|
275
|
+
# bindings, the response uses version 1. To learn which resources support
|
276
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
277
|
+
# google.com/iam/help/conditions/resource-policies).
|
278
|
+
# @param [String] fields
|
279
|
+
# Selector specifying which fields to include in a partial response.
|
280
|
+
# @param [String] quota_user
|
281
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
282
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
283
|
+
# @param [Google::Apis::RequestOptions] options
|
284
|
+
# Request-specific options
|
285
|
+
#
|
286
|
+
# @yield [result, err] Result & error if block supplied
|
287
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
288
|
+
# @yieldparam err [StandardError] error object if request failed
|
289
|
+
#
|
290
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
291
|
+
#
|
292
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
293
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
294
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
295
|
+
def get_project_location_app_connection_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
296
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
297
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
298
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
299
|
+
command.params['resource'] = resource unless resource.nil?
|
300
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
301
|
+
command.query['fields'] = fields unless fields.nil?
|
302
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
303
|
+
execute_or_queue_command(command, &block)
|
304
|
+
end
|
305
|
+
|
306
|
+
# Lists AppConnections in a given project and location.
|
307
|
+
# @param [String] parent
|
308
|
+
# Required. The resource name of the AppConnection location using the form: `
|
309
|
+
# projects/`project_id`/locations/`location_id``
|
310
|
+
# @param [String] filter
|
311
|
+
# Optional. A filter specifying constraints of a list operation.
|
312
|
+
# @param [String] order_by
|
313
|
+
# Optional. Specifies the ordering of results. See [Sorting order](https://cloud.
|
314
|
+
# google.com/apis/design/design_patterns#sorting_order) for more information.
|
315
|
+
# @param [Fixnum] page_size
|
316
|
+
# Optional. The maximum number of items to return. If not specified, a default
|
317
|
+
# value of 50 will be used by the service. Regardless of the page_size value,
|
318
|
+
# the response may include a partial list and a caller should only rely on
|
319
|
+
# response's next_page_token to determine if there are more instances left to be
|
320
|
+
# queried.
|
321
|
+
# @param [String] page_token
|
322
|
+
# Optional. The next_page_token value returned from a previous
|
323
|
+
# ListAppConnectionsRequest, if any.
|
324
|
+
# @param [String] fields
|
325
|
+
# Selector specifying which fields to include in a partial response.
|
326
|
+
# @param [String] quota_user
|
327
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
328
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
329
|
+
# @param [Google::Apis::RequestOptions] options
|
330
|
+
# Request-specific options
|
331
|
+
#
|
332
|
+
# @yield [result, err] Result & error if block supplied
|
333
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse] parsed result object
|
334
|
+
# @yieldparam err [StandardError] error object if request failed
|
335
|
+
#
|
336
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse]
|
337
|
+
#
|
338
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
339
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
340
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
341
|
+
def list_project_location_app_connections(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
342
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/appConnections', options)
|
343
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse::Representation
|
344
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaListAppConnectionsResponse
|
345
|
+
command.params['parent'] = parent unless parent.nil?
|
346
|
+
command.query['filter'] = filter unless filter.nil?
|
347
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
348
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
349
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
350
|
+
command.query['fields'] = fields unless fields.nil?
|
351
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
352
|
+
execute_or_queue_command(command, &block)
|
353
|
+
end
|
354
|
+
|
355
|
+
# Updates the parameters of a single AppConnection.
|
356
|
+
# @param [String] name
|
357
|
+
# Required. Unique resource name of the AppConnection. The name is ignored when
|
358
|
+
# creating a AppConnection.
|
359
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection] google_cloud_beyondcorp_appconnections_v1alpha_app_connection_object
|
360
|
+
# @param [Boolean] allow_missing
|
361
|
+
# Optional. If set as true, will create the resource if it is not found.
|
362
|
+
# @param [String] request_id
|
363
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
364
|
+
# request ID so that if you must retry your request, the server will know to
|
365
|
+
# ignore the request if it has already been completed. The server will guarantee
|
366
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
367
|
+
# situation where you make an initial request and t he request times out. If you
|
368
|
+
# make the request again with the same request ID, the server can check if
|
369
|
+
# original operation with the same request ID was received, and if so, will
|
370
|
+
# ignore the second request. This prevents clients from accidentally creating
|
371
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
372
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
373
|
+
# @param [String] update_mask
|
374
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
375
|
+
# field. The elements of the repeated paths field may only include these fields
|
376
|
+
# from [BeyondCorp.AppConnection]: * `labels` * `display_name` * `
|
377
|
+
# application_endpoint` * `connectors`
|
378
|
+
# @param [Boolean] validate_only
|
379
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
380
|
+
# alter the resource in any way.
|
381
|
+
# @param [String] fields
|
382
|
+
# Selector specifying which fields to include in a partial response.
|
383
|
+
# @param [String] quota_user
|
384
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
385
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
386
|
+
# @param [Google::Apis::RequestOptions] options
|
387
|
+
# Request-specific options
|
388
|
+
#
|
389
|
+
# @yield [result, err] Result & error if block supplied
|
390
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
391
|
+
# @yieldparam err [StandardError] error object if request failed
|
392
|
+
#
|
393
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
394
|
+
#
|
395
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
396
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
397
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
398
|
+
def patch_project_location_app_connection(name, google_cloud_beyondcorp_appconnections_v1alpha_app_connection_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
399
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
400
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection::Representation
|
401
|
+
command.request_object = google_cloud_beyondcorp_appconnections_v1alpha_app_connection_object
|
402
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
403
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
404
|
+
command.params['name'] = name unless name.nil?
|
405
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
406
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
407
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
408
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
409
|
+
command.query['fields'] = fields unless fields.nil?
|
410
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
411
|
+
execute_or_queue_command(command, &block)
|
412
|
+
end
|
413
|
+
|
414
|
+
# Resolves AppConnections details for a given AppConnector. An internal method
|
415
|
+
# called by a connector to find AppConnections to connect to.
|
416
|
+
# @param [String] parent
|
417
|
+
# Required. The resource name of the AppConnection location using the form: `
|
418
|
+
# projects/`project_id`/locations/`location_id``
|
419
|
+
# @param [String] app_connector_id
|
420
|
+
# Required. BeyondCorp Connector name of the connector associated with those
|
421
|
+
# AppConnections using the form: `projects/`project_id`/locations/`location_id`/
|
422
|
+
# appConnectors/`app_connector_id``
|
423
|
+
# @param [Fixnum] page_size
|
424
|
+
# Optional. The maximum number of items to return. If not specified, a default
|
425
|
+
# value of 50 will be used by the service. Regardless of the page_size value,
|
426
|
+
# the response may include a partial list and a caller should only rely on
|
427
|
+
# response's next_page_token to determine if there are more instances left to be
|
428
|
+
# queried.
|
429
|
+
# @param [String] page_token
|
430
|
+
# Optional. The next_page_token value returned from a previous
|
431
|
+
# ResolveAppConnectionsResponse, if any.
|
432
|
+
# @param [String] fields
|
433
|
+
# Selector specifying which fields to include in a partial response.
|
434
|
+
# @param [String] quota_user
|
435
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
436
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
437
|
+
# @param [Google::Apis::RequestOptions] options
|
438
|
+
# Request-specific options
|
439
|
+
#
|
440
|
+
# @yield [result, err] Result & error if block supplied
|
441
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse] parsed result object
|
442
|
+
# @yieldparam err [StandardError] error object if request failed
|
443
|
+
#
|
444
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse]
|
445
|
+
#
|
446
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
447
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
448
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
449
|
+
def resolve_project_location_app_connection(parent, app_connector_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
450
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/appConnections:resolve', options)
|
451
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse::Representation
|
452
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectionsV1alphaResolveAppConnectionsResponse
|
453
|
+
command.params['parent'] = parent unless parent.nil?
|
454
|
+
command.query['appConnectorId'] = app_connector_id unless app_connector_id.nil?
|
455
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
456
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
457
|
+
command.query['fields'] = fields unless fields.nil?
|
458
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
459
|
+
execute_or_queue_command(command, &block)
|
460
|
+
end
|
461
|
+
|
462
|
+
# Sets the access control policy on the specified resource. Replaces any
|
463
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
464
|
+
# PERMISSION_DENIED` errors.
|
465
|
+
# @param [String] resource
|
466
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
467
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
468
|
+
# appropriate value for this field.
|
469
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
470
|
+
# @param [String] fields
|
471
|
+
# Selector specifying which fields to include in a partial response.
|
472
|
+
# @param [String] quota_user
|
473
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
474
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
475
|
+
# @param [Google::Apis::RequestOptions] options
|
476
|
+
# Request-specific options
|
477
|
+
#
|
478
|
+
# @yield [result, err] Result & error if block supplied
|
479
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
480
|
+
# @yieldparam err [StandardError] error object if request failed
|
481
|
+
#
|
482
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
483
|
+
#
|
484
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
485
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
486
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
487
|
+
def set_project_location_app_connection_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
488
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
489
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
|
490
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
491
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
492
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
493
|
+
command.params['resource'] = resource unless resource.nil?
|
494
|
+
command.query['fields'] = fields unless fields.nil?
|
495
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
496
|
+
execute_or_queue_command(command, &block)
|
497
|
+
end
|
498
|
+
|
499
|
+
# Returns permissions that a caller has on the specified resource. If the
|
500
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
501
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
502
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
503
|
+
# This operation may "fail open" without warning.
|
504
|
+
# @param [String] resource
|
505
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
506
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
507
|
+
# appropriate value for this field.
|
508
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
509
|
+
# @param [String] fields
|
510
|
+
# Selector specifying which fields to include in a partial response.
|
511
|
+
# @param [String] quota_user
|
512
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
513
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
514
|
+
# @param [Google::Apis::RequestOptions] options
|
515
|
+
# Request-specific options
|
516
|
+
#
|
517
|
+
# @yield [result, err] Result & error if block supplied
|
518
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
519
|
+
# @yieldparam err [StandardError] error object if request failed
|
520
|
+
#
|
521
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
|
522
|
+
#
|
523
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
524
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
525
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
526
|
+
def test_project_location_app_connection_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
527
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
528
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
|
529
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
530
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
|
531
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
|
532
|
+
command.params['resource'] = resource unless resource.nil?
|
533
|
+
command.query['fields'] = fields unless fields.nil?
|
534
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
535
|
+
execute_or_queue_command(command, &block)
|
536
|
+
end
|
537
|
+
|
538
|
+
# Creates a new AppConnector in a given project and location.
|
539
|
+
# @param [String] parent
|
540
|
+
# Required. The resource project name of the AppConnector location using the
|
541
|
+
# form: `projects/`project_id`/locations/`location_id``
|
542
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector] google_cloud_beyondcorp_appconnectors_v1alpha_app_connector_object
|
543
|
+
# @param [String] app_connector_id
|
544
|
+
# Optional. User-settable AppConnector resource ID. * Must start with a letter. *
|
545
|
+
# Must contain between 4-63 characters from (/a-z-/). * Must end with a number
|
546
|
+
# or a letter.
|
547
|
+
# @param [String] request_id
|
548
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
549
|
+
# request ID so that if you must retry your request, the server will know to
|
550
|
+
# ignore the request if it has already been completed. The server will guarantee
|
551
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
552
|
+
# situation where you make an initial request and t he request times out. If you
|
553
|
+
# make the request again with the same request ID, the server can check if
|
554
|
+
# original operation with the same request ID was received, and if so, will
|
555
|
+
# ignore the second request. This prevents clients from accidentally creating
|
556
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
557
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
558
|
+
# @param [Boolean] validate_only
|
559
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
560
|
+
# alter the resource in any way.
|
561
|
+
# @param [String] fields
|
562
|
+
# Selector specifying which fields to include in a partial response.
|
563
|
+
# @param [String] quota_user
|
564
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
565
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
566
|
+
# @param [Google::Apis::RequestOptions] options
|
567
|
+
# Request-specific options
|
568
|
+
#
|
569
|
+
# @yield [result, err] Result & error if block supplied
|
570
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
571
|
+
# @yieldparam err [StandardError] error object if request failed
|
572
|
+
#
|
573
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
574
|
+
#
|
575
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
576
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
577
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
578
|
+
def create_project_location_app_connector(parent, google_cloud_beyondcorp_appconnectors_v1alpha_app_connector_object = nil, app_connector_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
579
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/appConnectors', options)
|
580
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector::Representation
|
581
|
+
command.request_object = google_cloud_beyondcorp_appconnectors_v1alpha_app_connector_object
|
582
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
583
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
584
|
+
command.params['parent'] = parent unless parent.nil?
|
585
|
+
command.query['appConnectorId'] = app_connector_id unless app_connector_id.nil?
|
586
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
587
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
588
|
+
command.query['fields'] = fields unless fields.nil?
|
589
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
590
|
+
execute_or_queue_command(command, &block)
|
591
|
+
end
|
592
|
+
|
593
|
+
# Deletes a single AppConnector.
|
594
|
+
# @param [String] name
|
595
|
+
# Required. BeyondCorp AppConnector name using the form: `projects/`project_id`/
|
596
|
+
# locations/`location_id`/appConnectors/`app_connector_id``
|
597
|
+
# @param [String] request_id
|
598
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
599
|
+
# request ID so that if you must retry your request, the server will know to
|
600
|
+
# ignore the request if it has already been completed. The server will guarantee
|
601
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
602
|
+
# situation where you make an initial request and t he request times out. If you
|
603
|
+
# make the request again with the same request ID, the server can check if
|
604
|
+
# original operation with the same request ID was received, and if so, will
|
605
|
+
# ignore the second request. This prevents clients from accidentally creating
|
606
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
607
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
608
|
+
# @param [Boolean] validate_only
|
609
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
610
|
+
# alter the resource in any way.
|
611
|
+
# @param [String] fields
|
612
|
+
# Selector specifying which fields to include in a partial response.
|
613
|
+
# @param [String] quota_user
|
614
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
615
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
616
|
+
# @param [Google::Apis::RequestOptions] options
|
617
|
+
# Request-specific options
|
618
|
+
#
|
619
|
+
# @yield [result, err] Result & error if block supplied
|
620
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
621
|
+
# @yieldparam err [StandardError] error object if request failed
|
622
|
+
#
|
623
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
624
|
+
#
|
625
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
626
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
627
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
628
|
+
def delete_project_location_app_connector(name, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
629
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
630
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
631
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
632
|
+
command.params['name'] = name unless name.nil?
|
633
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
634
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
635
|
+
command.query['fields'] = fields unless fields.nil?
|
636
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
637
|
+
execute_or_queue_command(command, &block)
|
638
|
+
end
|
639
|
+
|
640
|
+
# Gets details of a single AppConnector.
|
641
|
+
# @param [String] name
|
642
|
+
# Required. BeyondCorp AppConnector name using the form: `projects/`project_id`/
|
643
|
+
# locations/`location_id`/appConnectors/`app_connector_id``
|
644
|
+
# @param [String] fields
|
645
|
+
# Selector specifying which fields to include in a partial response.
|
646
|
+
# @param [String] quota_user
|
647
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
648
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
649
|
+
# @param [Google::Apis::RequestOptions] options
|
650
|
+
# Request-specific options
|
651
|
+
#
|
652
|
+
# @yield [result, err] Result & error if block supplied
|
653
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector] parsed result object
|
654
|
+
# @yieldparam err [StandardError] error object if request failed
|
655
|
+
#
|
656
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector]
|
657
|
+
#
|
658
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
659
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
660
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
661
|
+
def get_project_location_app_connector(name, fields: nil, quota_user: nil, options: nil, &block)
|
662
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
663
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector::Representation
|
664
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector
|
665
|
+
command.params['name'] = name unless name.nil?
|
666
|
+
command.query['fields'] = fields unless fields.nil?
|
667
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
668
|
+
execute_or_queue_command(command, &block)
|
669
|
+
end
|
670
|
+
|
671
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
672
|
+
# resource exists and does not have a policy set.
|
673
|
+
# @param [String] resource
|
674
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
675
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
676
|
+
# appropriate value for this field.
|
677
|
+
# @param [Fixnum] options_requested_policy_version
|
678
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
679
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
680
|
+
# rejected. Requests for policies with any conditional role bindings must
|
681
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
682
|
+
# valid value or leave the field unset. The policy in the response might use the
|
683
|
+
# policy version that you specified, or it might use a lower policy version. For
|
684
|
+
# example, if you specify version 3, but the policy has no conditional role
|
685
|
+
# bindings, the response uses version 1. To learn which resources support
|
686
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
687
|
+
# google.com/iam/help/conditions/resource-policies).
|
688
|
+
# @param [String] fields
|
689
|
+
# Selector specifying which fields to include in a partial response.
|
690
|
+
# @param [String] quota_user
|
691
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
692
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
693
|
+
# @param [Google::Apis::RequestOptions] options
|
694
|
+
# Request-specific options
|
695
|
+
#
|
696
|
+
# @yield [result, err] Result & error if block supplied
|
697
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
698
|
+
# @yieldparam err [StandardError] error object if request failed
|
699
|
+
#
|
700
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
701
|
+
#
|
702
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
703
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
704
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
705
|
+
def get_project_location_app_connector_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
706
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
707
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
708
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
709
|
+
command.params['resource'] = resource unless resource.nil?
|
710
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
711
|
+
command.query['fields'] = fields unless fields.nil?
|
712
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
713
|
+
execute_or_queue_command(command, &block)
|
714
|
+
end
|
715
|
+
|
716
|
+
# Lists AppConnectors in a given project and location.
|
717
|
+
# @param [String] parent
|
718
|
+
# Required. The resource name of the AppConnector location using the form: `
|
719
|
+
# projects/`project_id`/locations/`location_id``
|
720
|
+
# @param [String] filter
|
721
|
+
# Optional. A filter specifying constraints of a list operation.
|
722
|
+
# @param [String] order_by
|
723
|
+
# Optional. Specifies the ordering of results. See [Sorting order](https://cloud.
|
724
|
+
# google.com/apis/design/design_patterns#sorting_order) for more information.
|
725
|
+
# @param [Fixnum] page_size
|
726
|
+
# Optional. The maximum number of items to return. If not specified, a default
|
727
|
+
# value of 50 will be used by the service. Regardless of the page_size value,
|
728
|
+
# the response may include a partial list and a caller should only rely on
|
729
|
+
# response's next_page_token to determine if there are more instances left to be
|
730
|
+
# queried.
|
731
|
+
# @param [String] page_token
|
732
|
+
# Optional. The next_page_token value returned from a previous
|
733
|
+
# ListAppConnectorsRequest, if any.
|
734
|
+
# @param [String] fields
|
735
|
+
# Selector specifying which fields to include in a partial response.
|
736
|
+
# @param [String] quota_user
|
737
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
738
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
739
|
+
# @param [Google::Apis::RequestOptions] options
|
740
|
+
# Request-specific options
|
741
|
+
#
|
742
|
+
# @yield [result, err] Result & error if block supplied
|
743
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse] parsed result object
|
744
|
+
# @yieldparam err [StandardError] error object if request failed
|
745
|
+
#
|
746
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse]
|
747
|
+
#
|
748
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
749
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
750
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
751
|
+
def list_project_location_app_connectors(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
752
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/appConnectors', options)
|
753
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse::Representation
|
754
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaListAppConnectorsResponse
|
755
|
+
command.params['parent'] = parent unless parent.nil?
|
756
|
+
command.query['filter'] = filter unless filter.nil?
|
757
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
758
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
759
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
760
|
+
command.query['fields'] = fields unless fields.nil?
|
761
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
762
|
+
execute_or_queue_command(command, &block)
|
763
|
+
end
|
764
|
+
|
765
|
+
# Updates the parameters of a single AppConnector.
|
766
|
+
# @param [String] name
|
767
|
+
# Required. Unique resource name of the AppConnector. The name is ignored when
|
768
|
+
# creating a AppConnector.
|
769
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector] google_cloud_beyondcorp_appconnectors_v1alpha_app_connector_object
|
770
|
+
# @param [String] request_id
|
771
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
772
|
+
# request ID so that if you must retry your request, the server will know to
|
773
|
+
# ignore the request if it has already been completed. The server will guarantee
|
774
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
775
|
+
# situation where you make an initial request and t he request times out. If you
|
776
|
+
# make the request again with the same request ID, the server can check if
|
777
|
+
# original operation with the same request ID was received, and if so, will
|
778
|
+
# ignore the second request. This prevents clients from accidentally creating
|
779
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
780
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
781
|
+
# @param [String] update_mask
|
782
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
783
|
+
# field. The elements of the repeated paths field may only include these fields
|
784
|
+
# from [BeyondCorp.AppConnector]: * `labels` * `display_name`
|
785
|
+
# @param [Boolean] validate_only
|
786
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
787
|
+
# alter the resource in any way.
|
788
|
+
# @param [String] fields
|
789
|
+
# Selector specifying which fields to include in a partial response.
|
790
|
+
# @param [String] quota_user
|
791
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
792
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
793
|
+
# @param [Google::Apis::RequestOptions] options
|
794
|
+
# Request-specific options
|
795
|
+
#
|
796
|
+
# @yield [result, err] Result & error if block supplied
|
797
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
798
|
+
# @yieldparam err [StandardError] error object if request failed
|
799
|
+
#
|
800
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
801
|
+
#
|
802
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
803
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
804
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
805
|
+
def patch_project_location_app_connector(name, google_cloud_beyondcorp_appconnectors_v1alpha_app_connector_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
806
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
807
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaAppConnector::Representation
|
808
|
+
command.request_object = google_cloud_beyondcorp_appconnectors_v1alpha_app_connector_object
|
809
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
810
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
811
|
+
command.params['name'] = name unless name.nil?
|
812
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
813
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
814
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
815
|
+
command.query['fields'] = fields unless fields.nil?
|
816
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
817
|
+
execute_or_queue_command(command, &block)
|
818
|
+
end
|
819
|
+
|
820
|
+
# Report status for a given connector.
|
821
|
+
# @param [String] app_connector
|
822
|
+
# Required. BeyondCorp Connector name using the form: `projects/`project_id`/
|
823
|
+
# locations/`location_id`/connectors/`connector``
|
824
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest] google_cloud_beyondcorp_appconnectors_v1alpha_report_status_request_object
|
825
|
+
# @param [String] fields
|
826
|
+
# Selector specifying which fields to include in a partial response.
|
827
|
+
# @param [String] quota_user
|
828
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
829
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
830
|
+
# @param [Google::Apis::RequestOptions] options
|
831
|
+
# Request-specific options
|
832
|
+
#
|
833
|
+
# @yield [result, err] Result & error if block supplied
|
834
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
835
|
+
# @yieldparam err [StandardError] error object if request failed
|
836
|
+
#
|
837
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
838
|
+
#
|
839
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
840
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
841
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
842
|
+
def report_project_location_app_connector_status(app_connector, google_cloud_beyondcorp_appconnectors_v1alpha_report_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
843
|
+
command = make_simple_command(:post, 'v1alpha/{+appConnector}:reportStatus', options)
|
844
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaReportStatusRequest::Representation
|
845
|
+
command.request_object = google_cloud_beyondcorp_appconnectors_v1alpha_report_status_request_object
|
846
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
847
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
848
|
+
command.params['appConnector'] = app_connector unless app_connector.nil?
|
849
|
+
command.query['fields'] = fields unless fields.nil?
|
850
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
851
|
+
execute_or_queue_command(command, &block)
|
852
|
+
end
|
853
|
+
|
854
|
+
# Get instance config for a given AppConnector. An internal method called by a
|
855
|
+
# AppConnector to get its container config.
|
856
|
+
# @param [String] app_connector
|
857
|
+
# Required. BeyondCorp AppConnector name using the form: `projects/`project_id`/
|
858
|
+
# locations/`location_id`/appConnectors/`app_connector``
|
859
|
+
# @param [String] fields
|
860
|
+
# Selector specifying which fields to include in a partial response.
|
861
|
+
# @param [String] quota_user
|
862
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
863
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
864
|
+
# @param [Google::Apis::RequestOptions] options
|
865
|
+
# Request-specific options
|
866
|
+
#
|
867
|
+
# @yield [result, err] Result & error if block supplied
|
868
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse] parsed result object
|
869
|
+
# @yieldparam err [StandardError] error object if request failed
|
870
|
+
#
|
871
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse]
|
872
|
+
#
|
873
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
874
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
875
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
876
|
+
def resolve_project_location_app_connector_instance_config(app_connector, fields: nil, quota_user: nil, options: nil, &block)
|
877
|
+
command = make_simple_command(:get, 'v1alpha/{+appConnector}:resolveInstanceConfig', options)
|
878
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse::Representation
|
879
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpAppconnectorsV1alphaResolveInstanceConfigResponse
|
880
|
+
command.params['appConnector'] = app_connector unless app_connector.nil?
|
881
|
+
command.query['fields'] = fields unless fields.nil?
|
882
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
883
|
+
execute_or_queue_command(command, &block)
|
884
|
+
end
|
885
|
+
|
886
|
+
# Sets the access control policy on the specified resource. Replaces any
|
887
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
888
|
+
# PERMISSION_DENIED` errors.
|
889
|
+
# @param [String] resource
|
890
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
891
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
892
|
+
# appropriate value for this field.
|
893
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
894
|
+
# @param [String] fields
|
895
|
+
# Selector specifying which fields to include in a partial response.
|
896
|
+
# @param [String] quota_user
|
897
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
898
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
899
|
+
# @param [Google::Apis::RequestOptions] options
|
900
|
+
# Request-specific options
|
901
|
+
#
|
902
|
+
# @yield [result, err] Result & error if block supplied
|
903
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
904
|
+
# @yieldparam err [StandardError] error object if request failed
|
905
|
+
#
|
906
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
907
|
+
#
|
908
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
909
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
910
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
911
|
+
def set_project_location_app_connector_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
912
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
913
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
|
914
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
915
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
916
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
917
|
+
command.params['resource'] = resource unless resource.nil?
|
918
|
+
command.query['fields'] = fields unless fields.nil?
|
919
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
920
|
+
execute_or_queue_command(command, &block)
|
921
|
+
end
|
922
|
+
|
923
|
+
# Returns permissions that a caller has on the specified resource. If the
|
924
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
925
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
926
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
927
|
+
# This operation may "fail open" without warning.
|
928
|
+
# @param [String] resource
|
929
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
930
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
931
|
+
# appropriate value for this field.
|
932
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
933
|
+
# @param [String] fields
|
934
|
+
# Selector specifying which fields to include in a partial response.
|
935
|
+
# @param [String] quota_user
|
936
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
937
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
938
|
+
# @param [Google::Apis::RequestOptions] options
|
939
|
+
# Request-specific options
|
940
|
+
#
|
941
|
+
# @yield [result, err] Result & error if block supplied
|
942
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
943
|
+
# @yieldparam err [StandardError] error object if request failed
|
944
|
+
#
|
945
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
|
946
|
+
#
|
947
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
948
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
949
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
950
|
+
def test_project_location_app_connector_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
951
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
952
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
|
953
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
954
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
|
955
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
|
956
|
+
command.params['resource'] = resource unless resource.nil?
|
957
|
+
command.query['fields'] = fields unless fields.nil?
|
958
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
959
|
+
execute_or_queue_command(command, &block)
|
960
|
+
end
|
961
|
+
|
962
|
+
# Creates a new AppGateway in a given project and location.
|
963
|
+
# @param [String] parent
|
964
|
+
# Required. The resource project name of the AppGateway location using the form:
|
965
|
+
# `projects/`project_id`/locations/`location_id``
|
966
|
+
# @param [Google::Apis::BeyondcorpV1alpha::AppGateway] app_gateway_object
|
967
|
+
# @param [String] app_gateway_id
|
968
|
+
# Optional. User-settable AppGateway resource ID. * Must start with a letter. *
|
969
|
+
# Must contain between 4-63 characters from (/a-z-/). * Must end with a number
|
970
|
+
# or a letter.
|
971
|
+
# @param [String] request_id
|
972
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
973
|
+
# request ID so that if you must retry your request, the server will know to
|
974
|
+
# ignore the request if it has already been completed. The server will guarantee
|
975
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
976
|
+
# situation where you make an initial request and t he request times out. If you
|
977
|
+
# make the request again with the same request ID, the server can check if
|
978
|
+
# original operation with the same request ID was received, and if so, will
|
979
|
+
# ignore the second request. This prevents clients from accidentally creating
|
980
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
981
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
982
|
+
# @param [Boolean] validate_only
|
983
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
984
|
+
# alter the resource in any way.
|
985
|
+
# @param [String] fields
|
986
|
+
# Selector specifying which fields to include in a partial response.
|
987
|
+
# @param [String] quota_user
|
988
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
989
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
990
|
+
# @param [Google::Apis::RequestOptions] options
|
991
|
+
# Request-specific options
|
992
|
+
#
|
993
|
+
# @yield [result, err] Result & error if block supplied
|
994
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
995
|
+
# @yieldparam err [StandardError] error object if request failed
|
996
|
+
#
|
997
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
998
|
+
#
|
999
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1000
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1001
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1002
|
+
def create_project_location_app_gateway(parent, app_gateway_object = nil, app_gateway_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1003
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/appGateways', options)
|
1004
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::AppGateway::Representation
|
1005
|
+
command.request_object = app_gateway_object
|
1006
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
1007
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
1008
|
+
command.params['parent'] = parent unless parent.nil?
|
1009
|
+
command.query['appGatewayId'] = app_gateway_id unless app_gateway_id.nil?
|
1010
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1011
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1012
|
+
command.query['fields'] = fields unless fields.nil?
|
1013
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1014
|
+
execute_or_queue_command(command, &block)
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# Deletes a single AppGateway.
|
1018
|
+
# @param [String] name
|
1019
|
+
# Required. BeyondCorp AppGateway name using the form: `projects/`project_id`/
|
1020
|
+
# locations/`location_id`/appGateways/`app_gateway_id``
|
1021
|
+
# @param [String] request_id
|
1022
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1023
|
+
# request ID so that if you must retry your request, the server will know to
|
1024
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1025
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
1026
|
+
# situation where you make an initial request and t he request times out. If you
|
1027
|
+
# make the request again with the same request ID, the server can check if
|
1028
|
+
# original operation with the same request ID was received, and if so, will
|
1029
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1030
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1031
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1032
|
+
# @param [Boolean] validate_only
|
1033
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
1034
|
+
# alter the resource in any way.
|
1035
|
+
# @param [String] fields
|
1036
|
+
# Selector specifying which fields to include in a partial response.
|
1037
|
+
# @param [String] quota_user
|
1038
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1039
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1040
|
+
# @param [Google::Apis::RequestOptions] options
|
1041
|
+
# Request-specific options
|
1042
|
+
#
|
1043
|
+
# @yield [result, err] Result & error if block supplied
|
1044
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
1045
|
+
# @yieldparam err [StandardError] error object if request failed
|
1046
|
+
#
|
1047
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
1048
|
+
#
|
1049
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1050
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1051
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1052
|
+
def delete_project_location_app_gateway(name, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1053
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
1054
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
1055
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
1056
|
+
command.params['name'] = name unless name.nil?
|
1057
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1058
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1059
|
+
command.query['fields'] = fields unless fields.nil?
|
1060
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1061
|
+
execute_or_queue_command(command, &block)
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# Gets details of a single AppGateway.
|
1065
|
+
# @param [String] name
|
1066
|
+
# Required. BeyondCorp AppGateway name using the form: `projects/`project_id`/
|
1067
|
+
# locations/`location_id`/appGateways/`app_gateway_id``
|
1068
|
+
# @param [String] fields
|
1069
|
+
# Selector specifying which fields to include in a partial response.
|
1070
|
+
# @param [String] quota_user
|
1071
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1072
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1073
|
+
# @param [Google::Apis::RequestOptions] options
|
1074
|
+
# Request-specific options
|
1075
|
+
#
|
1076
|
+
# @yield [result, err] Result & error if block supplied
|
1077
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::AppGateway] parsed result object
|
1078
|
+
# @yieldparam err [StandardError] error object if request failed
|
1079
|
+
#
|
1080
|
+
# @return [Google::Apis::BeyondcorpV1alpha::AppGateway]
|
1081
|
+
#
|
1082
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1083
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1084
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1085
|
+
def get_project_location_app_gateway(name, fields: nil, quota_user: nil, options: nil, &block)
|
1086
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
1087
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::AppGateway::Representation
|
1088
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::AppGateway
|
1089
|
+
command.params['name'] = name unless name.nil?
|
1090
|
+
command.query['fields'] = fields unless fields.nil?
|
1091
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1092
|
+
execute_or_queue_command(command, &block)
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1096
|
+
# resource exists and does not have a policy set.
|
1097
|
+
# @param [String] resource
|
1098
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1099
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1100
|
+
# appropriate value for this field.
|
1101
|
+
# @param [Fixnum] options_requested_policy_version
|
1102
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1103
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1104
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1105
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1106
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1107
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1108
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1109
|
+
# bindings, the response uses version 1. To learn which resources support
|
1110
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1111
|
+
# google.com/iam/help/conditions/resource-policies).
|
1112
|
+
# @param [String] fields
|
1113
|
+
# Selector specifying which fields to include in a partial response.
|
1114
|
+
# @param [String] quota_user
|
1115
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1116
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1117
|
+
# @param [Google::Apis::RequestOptions] options
|
1118
|
+
# Request-specific options
|
1119
|
+
#
|
1120
|
+
# @yield [result, err] Result & error if block supplied
|
1121
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
1122
|
+
# @yieldparam err [StandardError] error object if request failed
|
1123
|
+
#
|
1124
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
1125
|
+
#
|
1126
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1127
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1128
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1129
|
+
def get_project_location_app_gateway_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1130
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
1131
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
1132
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
1133
|
+
command.params['resource'] = resource unless resource.nil?
|
1134
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1135
|
+
command.query['fields'] = fields unless fields.nil?
|
1136
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1137
|
+
execute_or_queue_command(command, &block)
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
# Lists AppGateways in a given project and location.
|
1141
|
+
# @param [String] parent
|
1142
|
+
# Required. The resource name of the AppGateway location using the form: `
|
1143
|
+
# projects/`project_id`/locations/`location_id``
|
1144
|
+
# @param [String] filter
|
1145
|
+
# Optional. A filter specifying constraints of a list operation.
|
1146
|
+
# @param [String] order_by
|
1147
|
+
# Optional. Specifies the ordering of results. See [Sorting order](https://cloud.
|
1148
|
+
# google.com/apis/design/design_patterns#sorting_order) for more information.
|
1149
|
+
# @param [Fixnum] page_size
|
1150
|
+
# Optional. The maximum number of items to return. If not specified, a default
|
1151
|
+
# value of 50 will be used by the service. Regardless of the page_size value,
|
1152
|
+
# the response may include a partial list and a caller should only rely on
|
1153
|
+
# response's next_page_token to determine if there are more instances left to be
|
1154
|
+
# queried.
|
1155
|
+
# @param [String] page_token
|
1156
|
+
# Optional. The next_page_token value returned from a previous
|
1157
|
+
# ListAppGatewaysRequest, if any.
|
1158
|
+
# @param [String] fields
|
1159
|
+
# Selector specifying which fields to include in a partial response.
|
1160
|
+
# @param [String] quota_user
|
1161
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1162
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1163
|
+
# @param [Google::Apis::RequestOptions] options
|
1164
|
+
# Request-specific options
|
1165
|
+
#
|
1166
|
+
# @yield [result, err] Result & error if block supplied
|
1167
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::ListAppGatewaysResponse] parsed result object
|
1168
|
+
# @yieldparam err [StandardError] error object if request failed
|
1169
|
+
#
|
1170
|
+
# @return [Google::Apis::BeyondcorpV1alpha::ListAppGatewaysResponse]
|
1171
|
+
#
|
1172
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1173
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1174
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1175
|
+
def list_project_location_app_gateways(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1176
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/appGateways', options)
|
1177
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::ListAppGatewaysResponse::Representation
|
1178
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::ListAppGatewaysResponse
|
1179
|
+
command.params['parent'] = parent unless parent.nil?
|
1180
|
+
command.query['filter'] = filter unless filter.nil?
|
1181
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1182
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1183
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1184
|
+
command.query['fields'] = fields unless fields.nil?
|
1185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1186
|
+
execute_or_queue_command(command, &block)
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1190
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1191
|
+
# PERMISSION_DENIED` errors.
|
1192
|
+
# @param [String] resource
|
1193
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1194
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1195
|
+
# appropriate value for this field.
|
1196
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
1197
|
+
# @param [String] fields
|
1198
|
+
# Selector specifying which fields to include in a partial response.
|
1199
|
+
# @param [String] quota_user
|
1200
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1201
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1202
|
+
# @param [Google::Apis::RequestOptions] options
|
1203
|
+
# Request-specific options
|
1204
|
+
#
|
1205
|
+
# @yield [result, err] Result & error if block supplied
|
1206
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
1207
|
+
# @yieldparam err [StandardError] error object if request failed
|
1208
|
+
#
|
1209
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
1210
|
+
#
|
1211
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1212
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1213
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1214
|
+
def set_project_location_app_gateway_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1215
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
1216
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
|
1217
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
1218
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
1219
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
1220
|
+
command.params['resource'] = resource unless resource.nil?
|
1221
|
+
command.query['fields'] = fields unless fields.nil?
|
1222
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1223
|
+
execute_or_queue_command(command, &block)
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1227
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1228
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1229
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1230
|
+
# This operation may "fail open" without warning.
|
1231
|
+
# @param [String] resource
|
1232
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1233
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1234
|
+
# appropriate value for this field.
|
1235
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
1236
|
+
# @param [String] fields
|
1237
|
+
# Selector specifying which fields to include in a partial response.
|
1238
|
+
# @param [String] quota_user
|
1239
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1240
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1241
|
+
# @param [Google::Apis::RequestOptions] options
|
1242
|
+
# Request-specific options
|
1243
|
+
#
|
1244
|
+
# @yield [result, err] Result & error if block supplied
|
1245
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
1246
|
+
# @yieldparam err [StandardError] error object if request failed
|
1247
|
+
#
|
1248
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
|
1249
|
+
#
|
1250
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1251
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1252
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1253
|
+
def test_project_location_app_gateway_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1254
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
1255
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
|
1256
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
1257
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
|
1258
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
|
1259
|
+
command.params['resource'] = resource unless resource.nil?
|
1260
|
+
command.query['fields'] = fields unless fields.nil?
|
1261
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1262
|
+
execute_or_queue_command(command, &block)
|
1263
|
+
end
|
1264
|
+
|
1265
|
+
# Creates a new ClientConnectorService in a given project and location.
|
1266
|
+
# @param [String] parent
|
1267
|
+
# Required. Value for parent.
|
1268
|
+
# @param [Google::Apis::BeyondcorpV1alpha::ClientConnectorService] client_connector_service_object
|
1269
|
+
# @param [String] client_connector_service_id
|
1270
|
+
# Optional. User-settable client connector service resource ID. * Must start
|
1271
|
+
# with a letter. * Must contain between 4-63 characters from (/a-z-/). * Must
|
1272
|
+
# end with a number or a letter. A random system generated name will be assigned
|
1273
|
+
# if not specified by the user.
|
1274
|
+
# @param [String] request_id
|
1275
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1276
|
+
# request ID so that if you must retry your request, the server will know to
|
1277
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1278
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
1279
|
+
# situation where you make an initial request and t he request times out. If you
|
1280
|
+
# make the request again with the same request ID, the server can check if
|
1281
|
+
# original operation with the same request ID was received, and if so, will
|
1282
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1283
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1284
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1285
|
+
# @param [Boolean] validate_only
|
1286
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
1287
|
+
# alter the resource in any way.
|
1288
|
+
# @param [String] fields
|
1289
|
+
# Selector specifying which fields to include in a partial response.
|
1290
|
+
# @param [String] quota_user
|
1291
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1292
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1293
|
+
# @param [Google::Apis::RequestOptions] options
|
1294
|
+
# Request-specific options
|
1295
|
+
#
|
1296
|
+
# @yield [result, err] Result & error if block supplied
|
1297
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
1298
|
+
# @yieldparam err [StandardError] error object if request failed
|
1299
|
+
#
|
1300
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
1301
|
+
#
|
1302
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1303
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1304
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1305
|
+
def create_project_location_client_connector_service(parent, client_connector_service_object = nil, client_connector_service_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1306
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/clientConnectorServices', options)
|
1307
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::ClientConnectorService::Representation
|
1308
|
+
command.request_object = client_connector_service_object
|
1309
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
1310
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
1311
|
+
command.params['parent'] = parent unless parent.nil?
|
1312
|
+
command.query['clientConnectorServiceId'] = client_connector_service_id unless client_connector_service_id.nil?
|
1313
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1314
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1315
|
+
command.query['fields'] = fields unless fields.nil?
|
1316
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1317
|
+
execute_or_queue_command(command, &block)
|
1318
|
+
end
|
1319
|
+
|
1320
|
+
# Deletes a single ClientConnectorService.
|
1321
|
+
# @param [String] name
|
1322
|
+
# Required. Name of the resource.
|
1323
|
+
# @param [String] request_id
|
1324
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1325
|
+
# request ID so that if you must retry your request, the server will know to
|
1326
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1327
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
1328
|
+
# situation where you make an initial request and t he request times out. If you
|
1329
|
+
# make the request again with the same request ID, the server can check if
|
1330
|
+
# original operation with the same request ID was received, and if so, will
|
1331
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1332
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1333
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1334
|
+
# @param [Boolean] validate_only
|
1335
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
1336
|
+
# alter the resource in any way.
|
1337
|
+
# @param [String] fields
|
1338
|
+
# Selector specifying which fields to include in a partial response.
|
1339
|
+
# @param [String] quota_user
|
1340
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1341
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1342
|
+
# @param [Google::Apis::RequestOptions] options
|
1343
|
+
# Request-specific options
|
1344
|
+
#
|
1345
|
+
# @yield [result, err] Result & error if block supplied
|
1346
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
1347
|
+
# @yieldparam err [StandardError] error object if request failed
|
1348
|
+
#
|
1349
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
1350
|
+
#
|
1351
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1352
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1353
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1354
|
+
def delete_project_location_client_connector_service(name, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1355
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
1356
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
1357
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
1358
|
+
command.params['name'] = name unless name.nil?
|
1359
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1360
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1361
|
+
command.query['fields'] = fields unless fields.nil?
|
1362
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1363
|
+
execute_or_queue_command(command, &block)
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
# Gets details of a single ClientConnectorService.
|
1367
|
+
# @param [String] name
|
1368
|
+
# Required. Name of the resource.
|
1369
|
+
# @param [String] fields
|
1370
|
+
# Selector specifying which fields to include in a partial response.
|
1371
|
+
# @param [String] quota_user
|
1372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1374
|
+
# @param [Google::Apis::RequestOptions] options
|
1375
|
+
# Request-specific options
|
1376
|
+
#
|
1377
|
+
# @yield [result, err] Result & error if block supplied
|
1378
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::ClientConnectorService] parsed result object
|
1379
|
+
# @yieldparam err [StandardError] error object if request failed
|
1380
|
+
#
|
1381
|
+
# @return [Google::Apis::BeyondcorpV1alpha::ClientConnectorService]
|
1382
|
+
#
|
1383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1386
|
+
def get_project_location_client_connector_service(name, fields: nil, quota_user: nil, options: nil, &block)
|
1387
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
1388
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::ClientConnectorService::Representation
|
1389
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::ClientConnectorService
|
1390
|
+
command.params['name'] = name unless name.nil?
|
1391
|
+
command.query['fields'] = fields unless fields.nil?
|
1392
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1393
|
+
execute_or_queue_command(command, &block)
|
1394
|
+
end
|
1395
|
+
|
1396
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1397
|
+
# resource exists and does not have a policy set.
|
1398
|
+
# @param [String] resource
|
1399
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1400
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1401
|
+
# appropriate value for this field.
|
1402
|
+
# @param [Fixnum] options_requested_policy_version
|
1403
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1404
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1405
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1406
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1407
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1408
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1409
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1410
|
+
# bindings, the response uses version 1. To learn which resources support
|
1411
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1412
|
+
# google.com/iam/help/conditions/resource-policies).
|
1413
|
+
# @param [String] fields
|
1414
|
+
# Selector specifying which fields to include in a partial response.
|
1415
|
+
# @param [String] quota_user
|
1416
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1417
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1418
|
+
# @param [Google::Apis::RequestOptions] options
|
1419
|
+
# Request-specific options
|
1420
|
+
#
|
1421
|
+
# @yield [result, err] Result & error if block supplied
|
1422
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
1423
|
+
# @yieldparam err [StandardError] error object if request failed
|
1424
|
+
#
|
1425
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
1426
|
+
#
|
1427
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1428
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1429
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1430
|
+
def get_project_location_client_connector_service_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1431
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
1432
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
1433
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
1434
|
+
command.params['resource'] = resource unless resource.nil?
|
1435
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1436
|
+
command.query['fields'] = fields unless fields.nil?
|
1437
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1438
|
+
execute_or_queue_command(command, &block)
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
# Lists ClientConnectorServices in a given project and location.
|
1442
|
+
# @param [String] parent
|
1443
|
+
# Required. Parent value for ListClientConnectorServicesRequest.
|
1444
|
+
# @param [String] filter
|
1445
|
+
# Optional. Filtering results.
|
1446
|
+
# @param [String] order_by
|
1447
|
+
# Optional. Hint for how to order the results.
|
1448
|
+
# @param [Fixnum] page_size
|
1449
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
1450
|
+
# If unspecified, server will pick an appropriate default.
|
1451
|
+
# @param [String] page_token
|
1452
|
+
# Optional. A token identifying a page of results the server should return.
|
1453
|
+
# @param [String] fields
|
1454
|
+
# Selector specifying which fields to include in a partial response.
|
1455
|
+
# @param [String] quota_user
|
1456
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1457
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1458
|
+
# @param [Google::Apis::RequestOptions] options
|
1459
|
+
# Request-specific options
|
1460
|
+
#
|
1461
|
+
# @yield [result, err] Result & error if block supplied
|
1462
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::ListClientConnectorServicesResponse] parsed result object
|
1463
|
+
# @yieldparam err [StandardError] error object if request failed
|
1464
|
+
#
|
1465
|
+
# @return [Google::Apis::BeyondcorpV1alpha::ListClientConnectorServicesResponse]
|
1466
|
+
#
|
1467
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1468
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1469
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1470
|
+
def list_project_location_client_connector_services(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1471
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/clientConnectorServices', options)
|
1472
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::ListClientConnectorServicesResponse::Representation
|
1473
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::ListClientConnectorServicesResponse
|
1474
|
+
command.params['parent'] = parent unless parent.nil?
|
1475
|
+
command.query['filter'] = filter unless filter.nil?
|
1476
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1477
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1478
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1479
|
+
command.query['fields'] = fields unless fields.nil?
|
1480
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1481
|
+
execute_or_queue_command(command, &block)
|
1482
|
+
end
|
1483
|
+
|
1484
|
+
# Updates the parameters of a single ClientConnectorService.
|
1485
|
+
# @param [String] name
|
1486
|
+
# Required. Name of resource. The name is ignored during creation.
|
1487
|
+
# @param [Google::Apis::BeyondcorpV1alpha::ClientConnectorService] client_connector_service_object
|
1488
|
+
# @param [Boolean] allow_missing
|
1489
|
+
# Optional. If set as true, will create the resource if it is not found.
|
1490
|
+
# @param [String] request_id
|
1491
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1492
|
+
# request ID so that if you must retry your request, the server will know to
|
1493
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1494
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
1495
|
+
# situation where you make an initial request and t he request times out. If you
|
1496
|
+
# make the request again with the same request ID, the server can check if
|
1497
|
+
# original operation with the same request ID was received, and if so, will
|
1498
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1499
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1500
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1501
|
+
# @param [String] update_mask
|
1502
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
1503
|
+
# ClientConnectorService resource by the update. The fields specified in the
|
1504
|
+
# update_mask are relative to the resource, not the full request. A field will
|
1505
|
+
# be overwritten if it is in the mask. If the user does not provide a mask then
|
1506
|
+
# all fields will be overwritten. Mutable fields: display_name.
|
1507
|
+
# @param [Boolean] validate_only
|
1508
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
1509
|
+
# alter the resource in any way.
|
1510
|
+
# @param [String] fields
|
1511
|
+
# Selector specifying which fields to include in a partial response.
|
1512
|
+
# @param [String] quota_user
|
1513
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1514
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1515
|
+
# @param [Google::Apis::RequestOptions] options
|
1516
|
+
# Request-specific options
|
1517
|
+
#
|
1518
|
+
# @yield [result, err] Result & error if block supplied
|
1519
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
1520
|
+
# @yieldparam err [StandardError] error object if request failed
|
1521
|
+
#
|
1522
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
1523
|
+
#
|
1524
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1525
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1526
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1527
|
+
def patch_project_location_client_connector_service(name, client_connector_service_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1528
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
1529
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::ClientConnectorService::Representation
|
1530
|
+
command.request_object = client_connector_service_object
|
1531
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
1532
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
1533
|
+
command.params['name'] = name unless name.nil?
|
1534
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
1535
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1536
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1537
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1538
|
+
command.query['fields'] = fields unless fields.nil?
|
1539
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1540
|
+
execute_or_queue_command(command, &block)
|
1541
|
+
end
|
1542
|
+
|
1543
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1544
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1545
|
+
# PERMISSION_DENIED` errors.
|
1546
|
+
# @param [String] resource
|
1547
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1548
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1549
|
+
# appropriate value for this field.
|
1550
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
1551
|
+
# @param [String] fields
|
1552
|
+
# Selector specifying which fields to include in a partial response.
|
1553
|
+
# @param [String] quota_user
|
1554
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1555
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1556
|
+
# @param [Google::Apis::RequestOptions] options
|
1557
|
+
# Request-specific options
|
1558
|
+
#
|
1559
|
+
# @yield [result, err] Result & error if block supplied
|
1560
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
1561
|
+
# @yieldparam err [StandardError] error object if request failed
|
1562
|
+
#
|
1563
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
1564
|
+
#
|
1565
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1566
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1567
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1568
|
+
def set_project_location_client_connector_service_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1569
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
1570
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
|
1571
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
1572
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
1573
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
1574
|
+
command.params['resource'] = resource unless resource.nil?
|
1575
|
+
command.query['fields'] = fields unless fields.nil?
|
1576
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1577
|
+
execute_or_queue_command(command, &block)
|
1578
|
+
end
|
1579
|
+
|
1580
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1581
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1582
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1583
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1584
|
+
# This operation may "fail open" without warning.
|
1585
|
+
# @param [String] resource
|
1586
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1587
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1588
|
+
# appropriate value for this field.
|
1589
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
1590
|
+
# @param [String] fields
|
1591
|
+
# Selector specifying which fields to include in a partial response.
|
1592
|
+
# @param [String] quota_user
|
1593
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1594
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1595
|
+
# @param [Google::Apis::RequestOptions] options
|
1596
|
+
# Request-specific options
|
1597
|
+
#
|
1598
|
+
# @yield [result, err] Result & error if block supplied
|
1599
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
1600
|
+
# @yieldparam err [StandardError] error object if request failed
|
1601
|
+
#
|
1602
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
|
1603
|
+
#
|
1604
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1605
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1606
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1607
|
+
def test_project_location_client_connector_service_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1608
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
1609
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
|
1610
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
1611
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
|
1612
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
|
1613
|
+
command.params['resource'] = resource unless resource.nil?
|
1614
|
+
command.query['fields'] = fields unless fields.nil?
|
1615
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1616
|
+
execute_or_queue_command(command, &block)
|
1617
|
+
end
|
1618
|
+
|
1619
|
+
# Creates a new ClientGateway in a given project and location.
|
1620
|
+
# @param [String] parent
|
1621
|
+
# Required. Value for parent.
|
1622
|
+
# @param [Google::Apis::BeyondcorpV1alpha::ClientGateway] client_gateway_object
|
1623
|
+
# @param [String] client_gateway_id
|
1624
|
+
# Optional. User-settable client gateway resource ID. * Must start with a letter.
|
1625
|
+
# * Must contain between 4-63 characters from (/a-z-/). * Must end with a
|
1626
|
+
# number or a letter.
|
1627
|
+
# @param [String] request_id
|
1628
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1629
|
+
# request ID so that if you must retry your request, the server will know to
|
1630
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1631
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
1632
|
+
# situation where you make an initial request and t he request times out. If you
|
1633
|
+
# make the request again with the same request ID, the server can check if
|
1634
|
+
# original operation with the same request ID was received, and if so, will
|
1635
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1636
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1637
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1638
|
+
# @param [Boolean] validate_only
|
1639
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
1640
|
+
# alter the resource in any way.
|
1641
|
+
# @param [String] fields
|
1642
|
+
# Selector specifying which fields to include in a partial response.
|
1643
|
+
# @param [String] quota_user
|
1644
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1645
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1646
|
+
# @param [Google::Apis::RequestOptions] options
|
1647
|
+
# Request-specific options
|
1648
|
+
#
|
1649
|
+
# @yield [result, err] Result & error if block supplied
|
1650
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
1651
|
+
# @yieldparam err [StandardError] error object if request failed
|
1652
|
+
#
|
1653
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
1654
|
+
#
|
1655
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1656
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1657
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1658
|
+
def create_project_location_client_gateway(parent, client_gateway_object = nil, client_gateway_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1659
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/clientGateways', options)
|
1660
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::ClientGateway::Representation
|
1661
|
+
command.request_object = client_gateway_object
|
1662
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
1663
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
1664
|
+
command.params['parent'] = parent unless parent.nil?
|
1665
|
+
command.query['clientGatewayId'] = client_gateway_id unless client_gateway_id.nil?
|
1666
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1667
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1668
|
+
command.query['fields'] = fields unless fields.nil?
|
1669
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1670
|
+
execute_or_queue_command(command, &block)
|
1671
|
+
end
|
1672
|
+
|
1673
|
+
# Deletes a single ClientGateway.
|
1674
|
+
# @param [String] name
|
1675
|
+
# Required. Name of the resource
|
1676
|
+
# @param [String] request_id
|
1677
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1678
|
+
# request ID so that if you must retry your request, the server will know to
|
1679
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1680
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
1681
|
+
# situation where you make an initial request and t he request times out. If you
|
1682
|
+
# make the request again with the same request ID, the server can check if
|
1683
|
+
# original operation with the same request ID was received, and if so, will
|
1684
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1685
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1686
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1687
|
+
# @param [Boolean] validate_only
|
1688
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
1689
|
+
# alter the resource in any way.
|
1690
|
+
# @param [String] fields
|
1691
|
+
# Selector specifying which fields to include in a partial response.
|
1692
|
+
# @param [String] quota_user
|
1693
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1694
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1695
|
+
# @param [Google::Apis::RequestOptions] options
|
1696
|
+
# Request-specific options
|
1697
|
+
#
|
1698
|
+
# @yield [result, err] Result & error if block supplied
|
1699
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
1700
|
+
# @yieldparam err [StandardError] error object if request failed
|
1701
|
+
#
|
1702
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
1703
|
+
#
|
1704
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1705
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1706
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1707
|
+
def delete_project_location_client_gateway(name, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1708
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
1709
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
1710
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
1711
|
+
command.params['name'] = name unless name.nil?
|
1712
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1713
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1714
|
+
command.query['fields'] = fields unless fields.nil?
|
1715
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1716
|
+
execute_or_queue_command(command, &block)
|
1717
|
+
end
|
1718
|
+
|
1719
|
+
# Gets details of a single ClientGateway.
|
1720
|
+
# @param [String] name
|
1721
|
+
# Required. Name of the resource
|
1722
|
+
# @param [String] fields
|
1723
|
+
# Selector specifying which fields to include in a partial response.
|
1724
|
+
# @param [String] quota_user
|
1725
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1726
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1727
|
+
# @param [Google::Apis::RequestOptions] options
|
1728
|
+
# Request-specific options
|
1729
|
+
#
|
1730
|
+
# @yield [result, err] Result & error if block supplied
|
1731
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::ClientGateway] parsed result object
|
1732
|
+
# @yieldparam err [StandardError] error object if request failed
|
1733
|
+
#
|
1734
|
+
# @return [Google::Apis::BeyondcorpV1alpha::ClientGateway]
|
1735
|
+
#
|
1736
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1737
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1738
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1739
|
+
def get_project_location_client_gateway(name, fields: nil, quota_user: nil, options: nil, &block)
|
1740
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
1741
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::ClientGateway::Representation
|
1742
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::ClientGateway
|
1743
|
+
command.params['name'] = name unless name.nil?
|
1744
|
+
command.query['fields'] = fields unless fields.nil?
|
1745
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1746
|
+
execute_or_queue_command(command, &block)
|
1747
|
+
end
|
1748
|
+
|
1749
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1750
|
+
# resource exists and does not have a policy set.
|
1751
|
+
# @param [String] resource
|
1752
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1753
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1754
|
+
# appropriate value for this field.
|
1755
|
+
# @param [Fixnum] options_requested_policy_version
|
1756
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1757
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1758
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1759
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1760
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1761
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1762
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1763
|
+
# bindings, the response uses version 1. To learn which resources support
|
1764
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1765
|
+
# google.com/iam/help/conditions/resource-policies).
|
1766
|
+
# @param [String] fields
|
1767
|
+
# Selector specifying which fields to include in a partial response.
|
1768
|
+
# @param [String] quota_user
|
1769
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1770
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1771
|
+
# @param [Google::Apis::RequestOptions] options
|
1772
|
+
# Request-specific options
|
1773
|
+
#
|
1774
|
+
# @yield [result, err] Result & error if block supplied
|
1775
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
1776
|
+
# @yieldparam err [StandardError] error object if request failed
|
1777
|
+
#
|
1778
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
1779
|
+
#
|
1780
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1781
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1782
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1783
|
+
def get_project_location_client_gateway_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1784
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
1785
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
1786
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
1787
|
+
command.params['resource'] = resource unless resource.nil?
|
1788
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1789
|
+
command.query['fields'] = fields unless fields.nil?
|
1790
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1791
|
+
execute_or_queue_command(command, &block)
|
1792
|
+
end
|
1793
|
+
|
1794
|
+
# Lists ClientGateways in a given project and location.
|
1795
|
+
# @param [String] parent
|
1796
|
+
# Required. Parent value for ListClientGatewaysRequest.
|
1797
|
+
# @param [String] filter
|
1798
|
+
# Optional. Filtering results.
|
1799
|
+
# @param [String] order_by
|
1800
|
+
# Optional. Hint for how to order the results.
|
1801
|
+
# @param [Fixnum] page_size
|
1802
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
1803
|
+
# If unspecified, server will pick an appropriate default.
|
1804
|
+
# @param [String] page_token
|
1805
|
+
# Optional. A token identifying a page of results the server should return.
|
1806
|
+
# @param [String] fields
|
1807
|
+
# Selector specifying which fields to include in a partial response.
|
1808
|
+
# @param [String] quota_user
|
1809
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1810
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1811
|
+
# @param [Google::Apis::RequestOptions] options
|
1812
|
+
# Request-specific options
|
1813
|
+
#
|
1814
|
+
# @yield [result, err] Result & error if block supplied
|
1815
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::ListClientGatewaysResponse] parsed result object
|
1816
|
+
# @yieldparam err [StandardError] error object if request failed
|
1817
|
+
#
|
1818
|
+
# @return [Google::Apis::BeyondcorpV1alpha::ListClientGatewaysResponse]
|
1819
|
+
#
|
1820
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1821
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1822
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1823
|
+
def list_project_location_client_gateways(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1824
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/clientGateways', options)
|
1825
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::ListClientGatewaysResponse::Representation
|
1826
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::ListClientGatewaysResponse
|
1827
|
+
command.params['parent'] = parent unless parent.nil?
|
1828
|
+
command.query['filter'] = filter unless filter.nil?
|
1829
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1830
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1831
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1832
|
+
command.query['fields'] = fields unless fields.nil?
|
1833
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1834
|
+
execute_or_queue_command(command, &block)
|
1835
|
+
end
|
1836
|
+
|
1837
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1838
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1839
|
+
# PERMISSION_DENIED` errors.
|
1840
|
+
# @param [String] resource
|
1841
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1842
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1843
|
+
# appropriate value for this field.
|
1844
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
1845
|
+
# @param [String] fields
|
1846
|
+
# Selector specifying which fields to include in a partial response.
|
1847
|
+
# @param [String] quota_user
|
1848
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1849
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1850
|
+
# @param [Google::Apis::RequestOptions] options
|
1851
|
+
# Request-specific options
|
1852
|
+
#
|
1853
|
+
# @yield [result, err] Result & error if block supplied
|
1854
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
1855
|
+
# @yieldparam err [StandardError] error object if request failed
|
1856
|
+
#
|
1857
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
1858
|
+
#
|
1859
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1860
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1861
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1862
|
+
def set_project_location_client_gateway_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1863
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
1864
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
|
1865
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
1866
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
1867
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
1868
|
+
command.params['resource'] = resource unless resource.nil?
|
1869
|
+
command.query['fields'] = fields unless fields.nil?
|
1870
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1871
|
+
execute_or_queue_command(command, &block)
|
1872
|
+
end
|
1873
|
+
|
1874
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1875
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1876
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1877
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1878
|
+
# This operation may "fail open" without warning.
|
1879
|
+
# @param [String] resource
|
1880
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1881
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1882
|
+
# appropriate value for this field.
|
1883
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
1884
|
+
# @param [String] fields
|
1885
|
+
# Selector specifying which fields to include in a partial response.
|
1886
|
+
# @param [String] quota_user
|
1887
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1888
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1889
|
+
# @param [Google::Apis::RequestOptions] options
|
1890
|
+
# Request-specific options
|
1891
|
+
#
|
1892
|
+
# @yield [result, err] Result & error if block supplied
|
1893
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
1894
|
+
# @yieldparam err [StandardError] error object if request failed
|
1895
|
+
#
|
1896
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
|
1897
|
+
#
|
1898
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1899
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1900
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1901
|
+
def test_project_location_client_gateway_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1902
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
1903
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
|
1904
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
1905
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
|
1906
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
|
1907
|
+
command.params['resource'] = resource unless resource.nil?
|
1908
|
+
command.query['fields'] = fields unless fields.nil?
|
1909
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1910
|
+
execute_or_queue_command(command, &block)
|
1911
|
+
end
|
1912
|
+
|
1913
|
+
# Creates a new Connection in a given project and location.
|
1914
|
+
# @param [String] parent
|
1915
|
+
# Required. The resource project name of the connection location using the form:
|
1916
|
+
# `projects/`project_id`/locations/`location_id``
|
1917
|
+
# @param [Google::Apis::BeyondcorpV1alpha::Connection] connection_object
|
1918
|
+
# @param [String] connection_id
|
1919
|
+
# Optional. User-settable connection resource ID. * Must start with a letter. *
|
1920
|
+
# Must contain between 4-63 characters from (/a-z-/). * Must end with a number
|
1921
|
+
# or a letter.
|
1922
|
+
# @param [String] request_id
|
1923
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1924
|
+
# request ID so that if you must retry your request, the server will know to
|
1925
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1926
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
1927
|
+
# situation where you make an initial request and t he request times out. If you
|
1928
|
+
# make the request again with the same request ID, the server can check if
|
1929
|
+
# original operation with the same request ID was received, and if so, will
|
1930
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1931
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1932
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1933
|
+
# @param [Boolean] validate_only
|
1934
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
1935
|
+
# alter the resource in any way.
|
1936
|
+
# @param [String] fields
|
1937
|
+
# Selector specifying which fields to include in a partial response.
|
1938
|
+
# @param [String] quota_user
|
1939
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1940
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1941
|
+
# @param [Google::Apis::RequestOptions] options
|
1942
|
+
# Request-specific options
|
1943
|
+
#
|
1944
|
+
# @yield [result, err] Result & error if block supplied
|
1945
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
1946
|
+
# @yieldparam err [StandardError] error object if request failed
|
1947
|
+
#
|
1948
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
1949
|
+
#
|
1950
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1951
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1952
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1953
|
+
def create_project_location_connection(parent, connection_object = nil, connection_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1954
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/connections', options)
|
1955
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::Connection::Representation
|
1956
|
+
command.request_object = connection_object
|
1957
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
1958
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
1959
|
+
command.params['parent'] = parent unless parent.nil?
|
1960
|
+
command.query['connectionId'] = connection_id unless connection_id.nil?
|
1961
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
1962
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1963
|
+
command.query['fields'] = fields unless fields.nil?
|
1964
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1965
|
+
execute_or_queue_command(command, &block)
|
1966
|
+
end
|
1967
|
+
|
1968
|
+
# Deletes a single Connection.
|
1969
|
+
# @param [String] name
|
1970
|
+
# Required. BeyondCorp Connector name using the form: `projects/`project_id`/
|
1971
|
+
# locations/`location_id`/connections/`connection_id``
|
1972
|
+
# @param [String] request_id
|
1973
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1974
|
+
# request ID so that if you must retry your request, the server will know to
|
1975
|
+
# ignore the request if it has already been completed. The server will guarantee
|
1976
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
1977
|
+
# situation where you make an initial request and t he request times out. If you
|
1978
|
+
# make the request again with the same request ID, the server can check if
|
1979
|
+
# original operation with the same request ID was received, and if so, will
|
1980
|
+
# ignore the second request. This prevents clients from accidentally creating
|
1981
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
1982
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
1983
|
+
# @param [Boolean] validate_only
|
1984
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
1985
|
+
# alter the resource in any way.
|
1986
|
+
# @param [String] fields
|
1987
|
+
# Selector specifying which fields to include in a partial response.
|
1988
|
+
# @param [String] quota_user
|
1989
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1990
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1991
|
+
# @param [Google::Apis::RequestOptions] options
|
1992
|
+
# Request-specific options
|
1993
|
+
#
|
1994
|
+
# @yield [result, err] Result & error if block supplied
|
1995
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
1996
|
+
# @yieldparam err [StandardError] error object if request failed
|
1997
|
+
#
|
1998
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
1999
|
+
#
|
2000
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2001
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2002
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2003
|
+
def delete_project_location_connection(name, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2004
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
2005
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
2006
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
2007
|
+
command.params['name'] = name unless name.nil?
|
2008
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2009
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2010
|
+
command.query['fields'] = fields unless fields.nil?
|
2011
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2012
|
+
execute_or_queue_command(command, &block)
|
2013
|
+
end
|
2014
|
+
|
2015
|
+
# Gets details of a single Connection.
|
2016
|
+
# @param [String] name
|
2017
|
+
# Required. BeyondCorp Connection name using the form: `projects/`project_id`/
|
2018
|
+
# locations/`location_id`/connections/`connection_id``
|
2019
|
+
# @param [String] fields
|
2020
|
+
# Selector specifying which fields to include in a partial response.
|
2021
|
+
# @param [String] quota_user
|
2022
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2023
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2024
|
+
# @param [Google::Apis::RequestOptions] options
|
2025
|
+
# Request-specific options
|
2026
|
+
#
|
2027
|
+
# @yield [result, err] Result & error if block supplied
|
2028
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::Connection] parsed result object
|
2029
|
+
# @yieldparam err [StandardError] error object if request failed
|
2030
|
+
#
|
2031
|
+
# @return [Google::Apis::BeyondcorpV1alpha::Connection]
|
2032
|
+
#
|
2033
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2034
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2035
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2036
|
+
def get_project_location_connection(name, fields: nil, quota_user: nil, options: nil, &block)
|
2037
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
2038
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::Connection::Representation
|
2039
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::Connection
|
2040
|
+
command.params['name'] = name unless name.nil?
|
2041
|
+
command.query['fields'] = fields unless fields.nil?
|
2042
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2043
|
+
execute_or_queue_command(command, &block)
|
2044
|
+
end
|
2045
|
+
|
2046
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
2047
|
+
# resource exists and does not have a policy set.
|
2048
|
+
# @param [String] resource
|
2049
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
2050
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2051
|
+
# appropriate value for this field.
|
2052
|
+
# @param [Fixnum] options_requested_policy_version
|
2053
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
2054
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
2055
|
+
# rejected. Requests for policies with any conditional role bindings must
|
2056
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
2057
|
+
# valid value or leave the field unset. The policy in the response might use the
|
2058
|
+
# policy version that you specified, or it might use a lower policy version. For
|
2059
|
+
# example, if you specify version 3, but the policy has no conditional role
|
2060
|
+
# bindings, the response uses version 1. To learn which resources support
|
2061
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2062
|
+
# google.com/iam/help/conditions/resource-policies).
|
2063
|
+
# @param [String] fields
|
2064
|
+
# Selector specifying which fields to include in a partial response.
|
2065
|
+
# @param [String] quota_user
|
2066
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2067
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2068
|
+
# @param [Google::Apis::RequestOptions] options
|
2069
|
+
# Request-specific options
|
2070
|
+
#
|
2071
|
+
# @yield [result, err] Result & error if block supplied
|
2072
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
2073
|
+
# @yieldparam err [StandardError] error object if request failed
|
2074
|
+
#
|
2075
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
2076
|
+
#
|
2077
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2078
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2079
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2080
|
+
def get_project_location_connection_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2081
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
2082
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
2083
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
2084
|
+
command.params['resource'] = resource unless resource.nil?
|
2085
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
2086
|
+
command.query['fields'] = fields unless fields.nil?
|
2087
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2088
|
+
execute_or_queue_command(command, &block)
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
# Lists Connections in a given project and location.
|
2092
|
+
# @param [String] parent
|
2093
|
+
# Required. The resource name of the connection location using the form: `
|
2094
|
+
# projects/`project_id`/locations/`location_id``
|
2095
|
+
# @param [String] filter
|
2096
|
+
# Optional. A filter specifying constraints of a list operation.
|
2097
|
+
# @param [String] order_by
|
2098
|
+
# Optional. Specifies the ordering of results. See [Sorting order](https://cloud.
|
2099
|
+
# google.com/apis/design/design_patterns#sorting_order) for more information.
|
2100
|
+
# @param [Fixnum] page_size
|
2101
|
+
# Optional. The maximum number of items to return. If not specified, a default
|
2102
|
+
# value of 50 will be used by the service. Regardless of the page_size value,
|
2103
|
+
# the response may include a partial list and a caller should only rely on
|
2104
|
+
# response's next_page_token to determine if there are more instances left to be
|
2105
|
+
# queried.
|
2106
|
+
# @param [String] page_token
|
2107
|
+
# Optional. The next_page_token value returned from a previous
|
2108
|
+
# ListConnectionsRequest, if any.
|
2109
|
+
# @param [String] fields
|
2110
|
+
# Selector specifying which fields to include in a partial response.
|
2111
|
+
# @param [String] quota_user
|
2112
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2113
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2114
|
+
# @param [Google::Apis::RequestOptions] options
|
2115
|
+
# Request-specific options
|
2116
|
+
#
|
2117
|
+
# @yield [result, err] Result & error if block supplied
|
2118
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::ListConnectionsResponse] parsed result object
|
2119
|
+
# @yieldparam err [StandardError] error object if request failed
|
2120
|
+
#
|
2121
|
+
# @return [Google::Apis::BeyondcorpV1alpha::ListConnectionsResponse]
|
2122
|
+
#
|
2123
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2124
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2125
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2126
|
+
def list_project_location_connections(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2127
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/connections', options)
|
2128
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::ListConnectionsResponse::Representation
|
2129
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::ListConnectionsResponse
|
2130
|
+
command.params['parent'] = parent unless parent.nil?
|
2131
|
+
command.query['filter'] = filter unless filter.nil?
|
2132
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
2133
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2134
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2135
|
+
command.query['fields'] = fields unless fields.nil?
|
2136
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2137
|
+
execute_or_queue_command(command, &block)
|
2138
|
+
end
|
2139
|
+
|
2140
|
+
# Updates the parameters of a single Connection.
|
2141
|
+
# @param [String] name
|
2142
|
+
# Required. Unique resource name of the connection. The name is ignored when
|
2143
|
+
# creating a connection.
|
2144
|
+
# @param [Google::Apis::BeyondcorpV1alpha::Connection] connection_object
|
2145
|
+
# @param [Boolean] allow_missing
|
2146
|
+
# Optional. If set as true, will create the resource if it is not found.
|
2147
|
+
# @param [String] request_id
|
2148
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
2149
|
+
# request ID so that if you must retry your request, the server will know to
|
2150
|
+
# ignore the request if it has already been completed. The server will guarantee
|
2151
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
2152
|
+
# situation where you make an initial request and t he request times out. If you
|
2153
|
+
# make the request again with the same request ID, the server can check if
|
2154
|
+
# original operation with the same request ID was received, and if so, will
|
2155
|
+
# ignore the second request. This prevents clients from accidentally creating
|
2156
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
2157
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2158
|
+
# @param [String] update_mask
|
2159
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
2160
|
+
# field. The elements of the repeated paths field may only include these fields
|
2161
|
+
# from [BeyondCorp.Connection]: * `labels` * `display_name` * `
|
2162
|
+
# application_endpoint` * `connectors`
|
2163
|
+
# @param [Boolean] validate_only
|
2164
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
2165
|
+
# alter the resource in any way.
|
2166
|
+
# @param [String] fields
|
2167
|
+
# Selector specifying which fields to include in a partial response.
|
2168
|
+
# @param [String] quota_user
|
2169
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2170
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2171
|
+
# @param [Google::Apis::RequestOptions] options
|
2172
|
+
# Request-specific options
|
2173
|
+
#
|
2174
|
+
# @yield [result, err] Result & error if block supplied
|
2175
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
2176
|
+
# @yieldparam err [StandardError] error object if request failed
|
2177
|
+
#
|
2178
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
2179
|
+
#
|
2180
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2181
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2182
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2183
|
+
def patch_project_location_connection(name, connection_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2184
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
2185
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::Connection::Representation
|
2186
|
+
command.request_object = connection_object
|
2187
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
2188
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
2189
|
+
command.params['name'] = name unless name.nil?
|
2190
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
2191
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2192
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2193
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2194
|
+
command.query['fields'] = fields unless fields.nil?
|
2195
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2196
|
+
execute_or_queue_command(command, &block)
|
2197
|
+
end
|
2198
|
+
|
2199
|
+
# Resolves connections details for a given connector. An internal method called
|
2200
|
+
# by a connector to find connections to connect to.
|
2201
|
+
# @param [String] parent
|
2202
|
+
# Required. The resource name of the connection location using the form: `
|
2203
|
+
# projects/`project_id`/locations/`location_id``
|
2204
|
+
# @param [String] connector_id
|
2205
|
+
# Required. BeyondCorp Connector name of the connector associated with those
|
2206
|
+
# connections using the form: `projects/`project_id`/locations/`location_id`/
|
2207
|
+
# connectors/`connector_id``
|
2208
|
+
# @param [Fixnum] page_size
|
2209
|
+
# Optional. The maximum number of items to return. If not specified, a default
|
2210
|
+
# value of 50 will be used by the service. Regardless of the page_size value,
|
2211
|
+
# the response may include a partial list and a caller should only rely on
|
2212
|
+
# response's next_page_token to determine if there are more instances left to be
|
2213
|
+
# queried.
|
2214
|
+
# @param [String] page_token
|
2215
|
+
# Optional. The next_page_token value returned from a previous
|
2216
|
+
# ResolveConnectionsResponse, if any.
|
2217
|
+
# @param [String] fields
|
2218
|
+
# Selector specifying which fields to include in a partial response.
|
2219
|
+
# @param [String] quota_user
|
2220
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2221
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2222
|
+
# @param [Google::Apis::RequestOptions] options
|
2223
|
+
# Request-specific options
|
2224
|
+
#
|
2225
|
+
# @yield [result, err] Result & error if block supplied
|
2226
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::ResolveConnectionsResponse] parsed result object
|
2227
|
+
# @yieldparam err [StandardError] error object if request failed
|
2228
|
+
#
|
2229
|
+
# @return [Google::Apis::BeyondcorpV1alpha::ResolveConnectionsResponse]
|
2230
|
+
#
|
2231
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2232
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2233
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2234
|
+
def resolve_project_location_connection(parent, connector_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2235
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/connections:resolve', options)
|
2236
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::ResolveConnectionsResponse::Representation
|
2237
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::ResolveConnectionsResponse
|
2238
|
+
command.params['parent'] = parent unless parent.nil?
|
2239
|
+
command.query['connectorId'] = connector_id unless connector_id.nil?
|
2240
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2241
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2242
|
+
command.query['fields'] = fields unless fields.nil?
|
2243
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2244
|
+
execute_or_queue_command(command, &block)
|
2245
|
+
end
|
2246
|
+
|
2247
|
+
# Sets the access control policy on the specified resource. Replaces any
|
2248
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
2249
|
+
# PERMISSION_DENIED` errors.
|
2250
|
+
# @param [String] resource
|
2251
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
2252
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2253
|
+
# appropriate value for this field.
|
2254
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
2255
|
+
# @param [String] fields
|
2256
|
+
# Selector specifying which fields to include in a partial response.
|
2257
|
+
# @param [String] quota_user
|
2258
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2259
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2260
|
+
# @param [Google::Apis::RequestOptions] options
|
2261
|
+
# Request-specific options
|
2262
|
+
#
|
2263
|
+
# @yield [result, err] Result & error if block supplied
|
2264
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
2265
|
+
# @yieldparam err [StandardError] error object if request failed
|
2266
|
+
#
|
2267
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
2268
|
+
#
|
2269
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2270
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2271
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2272
|
+
def set_project_location_connection_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2273
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
2274
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
|
2275
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
2276
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
2277
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
2278
|
+
command.params['resource'] = resource unless resource.nil?
|
2279
|
+
command.query['fields'] = fields unless fields.nil?
|
2280
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2281
|
+
execute_or_queue_command(command, &block)
|
2282
|
+
end
|
2283
|
+
|
2284
|
+
# Returns permissions that a caller has on the specified resource. If the
|
2285
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
2286
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
2287
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
2288
|
+
# This operation may "fail open" without warning.
|
2289
|
+
# @param [String] resource
|
2290
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
2291
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
2292
|
+
# appropriate value for this field.
|
2293
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
2294
|
+
# @param [String] fields
|
2295
|
+
# Selector specifying which fields to include in a partial response.
|
2296
|
+
# @param [String] quota_user
|
2297
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2298
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2299
|
+
# @param [Google::Apis::RequestOptions] options
|
2300
|
+
# Request-specific options
|
2301
|
+
#
|
2302
|
+
# @yield [result, err] Result & error if block supplied
|
2303
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
2304
|
+
# @yieldparam err [StandardError] error object if request failed
|
2305
|
+
#
|
2306
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
|
2307
|
+
#
|
2308
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2309
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2310
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2311
|
+
def test_project_location_connection_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2312
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
2313
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
|
2314
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
2315
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
|
2316
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
|
2317
|
+
command.params['resource'] = resource unless resource.nil?
|
2318
|
+
command.query['fields'] = fields unless fields.nil?
|
2319
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2320
|
+
execute_or_queue_command(command, &block)
|
2321
|
+
end
|
2322
|
+
|
2323
|
+
# Creates a new Connector in a given project and location.
|
2324
|
+
# @param [String] parent
|
2325
|
+
# Required. The resource project name of the connector location using the form: `
|
2326
|
+
# projects/`project_id`/locations/`location_id``
|
2327
|
+
# @param [Google::Apis::BeyondcorpV1alpha::Connector] connector_object
|
2328
|
+
# @param [String] connector_id
|
2329
|
+
# Optional. User-settable connector resource ID. * Must start with a letter. *
|
2330
|
+
# Must contain between 4-63 characters from (/a-z-/). * Must end with a number
|
2331
|
+
# or a letter.
|
2332
|
+
# @param [String] request_id
|
2333
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
2334
|
+
# request ID so that if you must retry your request, the server will know to
|
2335
|
+
# ignore the request if it has already been completed. The server will guarantee
|
2336
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
2337
|
+
# situation where you make an initial request and t he request times out. If you
|
2338
|
+
# make the request again with the same request ID, the server can check if
|
2339
|
+
# original operation with the same request ID was received, and if so, will
|
2340
|
+
# ignore the second request. This prevents clients from accidentally creating
|
2341
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
2342
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2343
|
+
# @param [Boolean] validate_only
|
2344
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
2345
|
+
# alter the resource in any way.
|
2346
|
+
# @param [String] fields
|
2347
|
+
# Selector specifying which fields to include in a partial response.
|
2348
|
+
# @param [String] quota_user
|
2349
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2350
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2351
|
+
# @param [Google::Apis::RequestOptions] options
|
2352
|
+
# Request-specific options
|
2353
|
+
#
|
2354
|
+
# @yield [result, err] Result & error if block supplied
|
2355
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
2356
|
+
# @yieldparam err [StandardError] error object if request failed
|
2357
|
+
#
|
2358
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
2359
|
+
#
|
2360
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2361
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2362
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2363
|
+
def create_project_location_connector(parent, connector_object = nil, connector_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2364
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/connectors', options)
|
2365
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::Connector::Representation
|
2366
|
+
command.request_object = connector_object
|
2367
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
2368
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
2369
|
+
command.params['parent'] = parent unless parent.nil?
|
2370
|
+
command.query['connectorId'] = connector_id unless connector_id.nil?
|
2371
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2372
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2373
|
+
command.query['fields'] = fields unless fields.nil?
|
2374
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2375
|
+
execute_or_queue_command(command, &block)
|
2376
|
+
end
|
2377
|
+
|
2378
|
+
# Deletes a single Connector.
|
2379
|
+
# @param [String] name
|
2380
|
+
# Required. BeyondCorp Connector name using the form: `projects/`project_id`/
|
2381
|
+
# locations/`location_id`/connectors/`connector_id``
|
2382
|
+
# @param [String] request_id
|
2383
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
2384
|
+
# request ID so that if you must retry your request, the server will know to
|
2385
|
+
# ignore the request if it has already been completed. The server will guarantee
|
2386
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
2387
|
+
# situation where you make an initial request and t he request times out. If you
|
2388
|
+
# make the request again with the same request ID, the server can check if
|
2389
|
+
# original operation with the same request ID was received, and if so, will
|
2390
|
+
# ignore the second request. This prevents clients from accidentally creating
|
2391
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
2392
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2393
|
+
# @param [Boolean] validate_only
|
2394
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
2395
|
+
# alter the resource in any way.
|
2396
|
+
# @param [String] fields
|
2397
|
+
# Selector specifying which fields to include in a partial response.
|
2398
|
+
# @param [String] quota_user
|
2399
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2400
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2401
|
+
# @param [Google::Apis::RequestOptions] options
|
2402
|
+
# Request-specific options
|
2403
|
+
#
|
2404
|
+
# @yield [result, err] Result & error if block supplied
|
2405
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
2406
|
+
# @yieldparam err [StandardError] error object if request failed
|
2407
|
+
#
|
2408
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
2409
|
+
#
|
2410
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2411
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2412
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2413
|
+
def delete_project_location_connector(name, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2414
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
2415
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
2416
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
2417
|
+
command.params['name'] = name unless name.nil?
|
2418
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2419
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2420
|
+
command.query['fields'] = fields unless fields.nil?
|
2421
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2422
|
+
execute_or_queue_command(command, &block)
|
2423
|
+
end
|
2424
|
+
|
2425
|
+
# Gets details of a single Connector.
|
2426
|
+
# @param [String] name
|
2427
|
+
# Required. BeyondCorp Connector name using the form: `projects/`project_id`/
|
2428
|
+
# locations/`location_id`/connectors/`connector_id``
|
2429
|
+
# @param [String] fields
|
2430
|
+
# Selector specifying which fields to include in a partial response.
|
2431
|
+
# @param [String] quota_user
|
2432
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2433
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2434
|
+
# @param [Google::Apis::RequestOptions] options
|
2435
|
+
# Request-specific options
|
2436
|
+
#
|
2437
|
+
# @yield [result, err] Result & error if block supplied
|
2438
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::Connector] parsed result object
|
2439
|
+
# @yieldparam err [StandardError] error object if request failed
|
2440
|
+
#
|
2441
|
+
# @return [Google::Apis::BeyondcorpV1alpha::Connector]
|
2442
|
+
#
|
2443
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2444
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2445
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2446
|
+
def get_project_location_connector(name, fields: nil, quota_user: nil, options: nil, &block)
|
2447
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
2448
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::Connector::Representation
|
2449
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::Connector
|
2450
|
+
command.params['name'] = name unless name.nil?
|
2451
|
+
command.query['fields'] = fields unless fields.nil?
|
2452
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2453
|
+
execute_or_queue_command(command, &block)
|
2454
|
+
end
|
2455
|
+
|
2456
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
2457
|
+
# resource exists and does not have a policy set.
|
2458
|
+
# @param [String] resource
|
2459
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
2460
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2461
|
+
# appropriate value for this field.
|
2462
|
+
# @param [Fixnum] options_requested_policy_version
|
2463
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
2464
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
2465
|
+
# rejected. Requests for policies with any conditional role bindings must
|
2466
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
2467
|
+
# valid value or leave the field unset. The policy in the response might use the
|
2468
|
+
# policy version that you specified, or it might use a lower policy version. For
|
2469
|
+
# example, if you specify version 3, but the policy has no conditional role
|
2470
|
+
# bindings, the response uses version 1. To learn which resources support
|
2471
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2472
|
+
# google.com/iam/help/conditions/resource-policies).
|
2473
|
+
# @param [String] fields
|
2474
|
+
# Selector specifying which fields to include in a partial response.
|
2475
|
+
# @param [String] quota_user
|
2476
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2477
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2478
|
+
# @param [Google::Apis::RequestOptions] options
|
2479
|
+
# Request-specific options
|
2480
|
+
#
|
2481
|
+
# @yield [result, err] Result & error if block supplied
|
2482
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
2483
|
+
# @yieldparam err [StandardError] error object if request failed
|
2484
|
+
#
|
2485
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
2486
|
+
#
|
2487
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2488
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2489
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2490
|
+
def get_project_location_connector_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2491
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
2492
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
2493
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
2494
|
+
command.params['resource'] = resource unless resource.nil?
|
2495
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
2496
|
+
command.query['fields'] = fields unless fields.nil?
|
2497
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2498
|
+
execute_or_queue_command(command, &block)
|
2499
|
+
end
|
2500
|
+
|
2501
|
+
# Lists Connectors in a given project and location.
|
2502
|
+
# @param [String] parent
|
2503
|
+
# Required. The resource name of the connector location using the form: `
|
2504
|
+
# projects/`project_id`/locations/`location_id``
|
2505
|
+
# @param [String] filter
|
2506
|
+
# Optional. A filter specifying constraints of a list operation.
|
2507
|
+
# @param [String] order_by
|
2508
|
+
# Optional. Specifies the ordering of results. See [Sorting order](https://cloud.
|
2509
|
+
# google.com/apis/design/design_patterns#sorting_order) for more information.
|
2510
|
+
# @param [Fixnum] page_size
|
2511
|
+
# Optional. The maximum number of items to return. If not specified, a default
|
2512
|
+
# value of 50 will be used by the service. Regardless of the page_size value,
|
2513
|
+
# the response may include a partial list and a caller should only rely on
|
2514
|
+
# response's next_page_token to determine if there are more instances left to be
|
2515
|
+
# queried.
|
2516
|
+
# @param [String] page_token
|
2517
|
+
# Optional. The next_page_token value returned from a previous
|
2518
|
+
# ListConnectorsRequest, if any.
|
2519
|
+
# @param [String] fields
|
2520
|
+
# Selector specifying which fields to include in a partial response.
|
2521
|
+
# @param [String] quota_user
|
2522
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2523
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2524
|
+
# @param [Google::Apis::RequestOptions] options
|
2525
|
+
# Request-specific options
|
2526
|
+
#
|
2527
|
+
# @yield [result, err] Result & error if block supplied
|
2528
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::ListConnectorsResponse] parsed result object
|
2529
|
+
# @yieldparam err [StandardError] error object if request failed
|
2530
|
+
#
|
2531
|
+
# @return [Google::Apis::BeyondcorpV1alpha::ListConnectorsResponse]
|
2532
|
+
#
|
2533
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2534
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2535
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2536
|
+
def list_project_location_connectors(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2537
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/connectors', options)
|
2538
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::ListConnectorsResponse::Representation
|
2539
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::ListConnectorsResponse
|
2540
|
+
command.params['parent'] = parent unless parent.nil?
|
2541
|
+
command.query['filter'] = filter unless filter.nil?
|
2542
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
2543
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2544
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2545
|
+
command.query['fields'] = fields unless fields.nil?
|
2546
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2547
|
+
execute_or_queue_command(command, &block)
|
2548
|
+
end
|
2549
|
+
|
2550
|
+
# Updates the parameters of a single Connector.
|
2551
|
+
# @param [String] name
|
2552
|
+
# Required. Unique resource name of the connector. The name is ignored when
|
2553
|
+
# creating a connector.
|
2554
|
+
# @param [Google::Apis::BeyondcorpV1alpha::Connector] connector_object
|
2555
|
+
# @param [String] request_id
|
2556
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
2557
|
+
# request ID so that if you must retry your request, the server will know to
|
2558
|
+
# ignore the request if it has already been completed. The server will guarantee
|
2559
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
2560
|
+
# situation where you make an initial request and t he request times out. If you
|
2561
|
+
# make the request again with the same request ID, the server can check if
|
2562
|
+
# original operation with the same request ID was received, and if so, will
|
2563
|
+
# ignore the second request. This prevents clients from accidentally creating
|
2564
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
2565
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
2566
|
+
# @param [String] update_mask
|
2567
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
2568
|
+
# field. The elements of the repeated paths field may only include these fields
|
2569
|
+
# from [BeyondCorp.Connector]: * `labels` * `display_name`
|
2570
|
+
# @param [Boolean] validate_only
|
2571
|
+
# Optional. If set, validates request by executing a dry-run which would not
|
2572
|
+
# alter the resource in any way.
|
2573
|
+
# @param [String] fields
|
2574
|
+
# Selector specifying which fields to include in a partial response.
|
2575
|
+
# @param [String] quota_user
|
2576
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2577
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2578
|
+
# @param [Google::Apis::RequestOptions] options
|
2579
|
+
# Request-specific options
|
2580
|
+
#
|
2581
|
+
# @yield [result, err] Result & error if block supplied
|
2582
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
2583
|
+
# @yieldparam err [StandardError] error object if request failed
|
2584
|
+
#
|
2585
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
2586
|
+
#
|
2587
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2588
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2589
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2590
|
+
def patch_project_location_connector(name, connector_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2591
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
2592
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::Connector::Representation
|
2593
|
+
command.request_object = connector_object
|
2594
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
2595
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
2596
|
+
command.params['name'] = name unless name.nil?
|
2597
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
2598
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2599
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2600
|
+
command.query['fields'] = fields unless fields.nil?
|
2601
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2602
|
+
execute_or_queue_command(command, &block)
|
2603
|
+
end
|
2604
|
+
|
2605
|
+
# Report status for a given connector.
|
2606
|
+
# @param [String] connector
|
2607
|
+
# Required. BeyondCorp Connector name using the form: `projects/`project_id`/
|
2608
|
+
# locations/`location_id`/connectors/`connector``
|
2609
|
+
# @param [Google::Apis::BeyondcorpV1alpha::ReportStatusRequest] report_status_request_object
|
2610
|
+
# @param [String] fields
|
2611
|
+
# Selector specifying which fields to include in a partial response.
|
2612
|
+
# @param [String] quota_user
|
2613
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2614
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2615
|
+
# @param [Google::Apis::RequestOptions] options
|
2616
|
+
# Request-specific options
|
2617
|
+
#
|
2618
|
+
# @yield [result, err] Result & error if block supplied
|
2619
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
2620
|
+
# @yieldparam err [StandardError] error object if request failed
|
2621
|
+
#
|
2622
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
2623
|
+
#
|
2624
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2625
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2626
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2627
|
+
def report_connector_status(connector, report_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2628
|
+
command = make_simple_command(:post, 'v1alpha/{+connector}:reportStatus', options)
|
2629
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::ReportStatusRequest::Representation
|
2630
|
+
command.request_object = report_status_request_object
|
2631
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
2632
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
2633
|
+
command.params['connector'] = connector unless connector.nil?
|
2634
|
+
command.query['fields'] = fields unless fields.nil?
|
2635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2636
|
+
execute_or_queue_command(command, &block)
|
2637
|
+
end
|
2638
|
+
|
2639
|
+
# Get instance config for a given connector. An internal method called by a
|
2640
|
+
# connector to get its container config.
|
2641
|
+
# @param [String] connector
|
2642
|
+
# Required. BeyondCorp Connector name using the form: `projects/`project_id`/
|
2643
|
+
# locations/`location_id`/connectors/`connector``
|
2644
|
+
# @param [String] fields
|
2645
|
+
# Selector specifying which fields to include in a partial response.
|
2646
|
+
# @param [String] quota_user
|
2647
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2648
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2649
|
+
# @param [Google::Apis::RequestOptions] options
|
2650
|
+
# Request-specific options
|
2651
|
+
#
|
2652
|
+
# @yield [result, err] Result & error if block supplied
|
2653
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::ResolveInstanceConfigResponse] parsed result object
|
2654
|
+
# @yieldparam err [StandardError] error object if request failed
|
2655
|
+
#
|
2656
|
+
# @return [Google::Apis::BeyondcorpV1alpha::ResolveInstanceConfigResponse]
|
2657
|
+
#
|
2658
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2659
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2660
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2661
|
+
def resolve_project_location_connector_instance_config(connector, fields: nil, quota_user: nil, options: nil, &block)
|
2662
|
+
command = make_simple_command(:get, 'v1alpha/{+connector}:resolveInstanceConfig', options)
|
2663
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::ResolveInstanceConfigResponse::Representation
|
2664
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::ResolveInstanceConfigResponse
|
2665
|
+
command.params['connector'] = connector unless connector.nil?
|
2666
|
+
command.query['fields'] = fields unless fields.nil?
|
2667
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2668
|
+
execute_or_queue_command(command, &block)
|
2669
|
+
end
|
2670
|
+
|
2671
|
+
# Sets the access control policy on the specified resource. Replaces any
|
2672
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
2673
|
+
# PERMISSION_DENIED` errors.
|
2674
|
+
# @param [String] resource
|
2675
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
2676
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2677
|
+
# appropriate value for this field.
|
2678
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
2679
|
+
# @param [String] fields
|
2680
|
+
# Selector specifying which fields to include in a partial response.
|
2681
|
+
# @param [String] quota_user
|
2682
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2683
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2684
|
+
# @param [Google::Apis::RequestOptions] options
|
2685
|
+
# Request-specific options
|
2686
|
+
#
|
2687
|
+
# @yield [result, err] Result & error if block supplied
|
2688
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
|
2689
|
+
# @yieldparam err [StandardError] error object if request failed
|
2690
|
+
#
|
2691
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
|
2692
|
+
#
|
2693
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2694
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2695
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2696
|
+
def set_project_location_connector_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2697
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
2698
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
|
2699
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
2700
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
|
2701
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
|
2702
|
+
command.params['resource'] = resource unless resource.nil?
|
2703
|
+
command.query['fields'] = fields unless fields.nil?
|
2704
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2705
|
+
execute_or_queue_command(command, &block)
|
2706
|
+
end
|
2707
|
+
|
2708
|
+
# Returns permissions that a caller has on the specified resource. If the
|
2709
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
2710
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
2711
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
2712
|
+
# This operation may "fail open" without warning.
|
2713
|
+
# @param [String] resource
|
2714
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
2715
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
2716
|
+
# appropriate value for this field.
|
2717
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
2718
|
+
# @param [String] fields
|
2719
|
+
# Selector specifying which fields to include in a partial response.
|
2720
|
+
# @param [String] quota_user
|
2721
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2722
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2723
|
+
# @param [Google::Apis::RequestOptions] options
|
2724
|
+
# Request-specific options
|
2725
|
+
#
|
2726
|
+
# @yield [result, err] Result & error if block supplied
|
2727
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
2728
|
+
# @yieldparam err [StandardError] error object if request failed
|
2729
|
+
#
|
2730
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
|
2731
|
+
#
|
2732
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2733
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2734
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2735
|
+
def test_project_location_connector_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2736
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
|
2737
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
|
2738
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
2739
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
|
2740
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
|
2741
|
+
command.params['resource'] = resource unless resource.nil?
|
2742
|
+
command.query['fields'] = fields unless fields.nil?
|
2743
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2744
|
+
execute_or_queue_command(command, &block)
|
2745
|
+
end
|
2746
|
+
|
2747
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
2748
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
2749
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
2750
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
2751
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
2752
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
2753
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
2754
|
+
# corresponding to `Code.CANCELLED`.
|
2755
|
+
# @param [String] name
|
2756
|
+
# The name of the operation resource to be cancelled.
|
2757
|
+
# @param [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
|
2758
|
+
# @param [String] fields
|
2759
|
+
# Selector specifying which fields to include in a partial response.
|
2760
|
+
# @param [String] quota_user
|
2761
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2762
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2763
|
+
# @param [Google::Apis::RequestOptions] options
|
2764
|
+
# Request-specific options
|
2765
|
+
#
|
2766
|
+
# @yield [result, err] Result & error if block supplied
|
2767
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::Empty] parsed result object
|
2768
|
+
# @yieldparam err [StandardError] error object if request failed
|
2769
|
+
#
|
2770
|
+
# @return [Google::Apis::BeyondcorpV1alpha::Empty]
|
2771
|
+
#
|
2772
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2773
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2774
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2775
|
+
def cancel_project_location_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2776
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:cancel', options)
|
2777
|
+
command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningCancelOperationRequest::Representation
|
2778
|
+
command.request_object = google_longrunning_cancel_operation_request_object
|
2779
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::Empty::Representation
|
2780
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::Empty
|
2781
|
+
command.params['name'] = name unless name.nil?
|
2782
|
+
command.query['fields'] = fields unless fields.nil?
|
2783
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2784
|
+
execute_or_queue_command(command, &block)
|
2785
|
+
end
|
2786
|
+
|
2787
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
2788
|
+
# longer interested in the operation result. It does not cancel the operation.
|
2789
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
2790
|
+
# UNIMPLEMENTED`.
|
2791
|
+
# @param [String] name
|
2792
|
+
# The name of the operation resource to be deleted.
|
2793
|
+
# @param [String] fields
|
2794
|
+
# Selector specifying which fields to include in a partial response.
|
2795
|
+
# @param [String] quota_user
|
2796
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2797
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2798
|
+
# @param [Google::Apis::RequestOptions] options
|
2799
|
+
# Request-specific options
|
2800
|
+
#
|
2801
|
+
# @yield [result, err] Result & error if block supplied
|
2802
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::Empty] parsed result object
|
2803
|
+
# @yieldparam err [StandardError] error object if request failed
|
2804
|
+
#
|
2805
|
+
# @return [Google::Apis::BeyondcorpV1alpha::Empty]
|
2806
|
+
#
|
2807
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2808
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2809
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2810
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
2811
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
2812
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::Empty::Representation
|
2813
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::Empty
|
2814
|
+
command.params['name'] = name unless name.nil?
|
2815
|
+
command.query['fields'] = fields unless fields.nil?
|
2816
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2817
|
+
execute_or_queue_command(command, &block)
|
2818
|
+
end
|
2819
|
+
|
2820
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
2821
|
+
# to poll the operation result at intervals as recommended by the API service.
|
2822
|
+
# @param [String] name
|
2823
|
+
# The name of the operation resource.
|
2824
|
+
# @param [String] fields
|
2825
|
+
# Selector specifying which fields to include in a partial response.
|
2826
|
+
# @param [String] quota_user
|
2827
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2828
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2829
|
+
# @param [Google::Apis::RequestOptions] options
|
2830
|
+
# Request-specific options
|
2831
|
+
#
|
2832
|
+
# @yield [result, err] Result & error if block supplied
|
2833
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
|
2834
|
+
# @yieldparam err [StandardError] error object if request failed
|
2835
|
+
#
|
2836
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
|
2837
|
+
#
|
2838
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2839
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2840
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2841
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
2842
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
2843
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
|
2844
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
|
2845
|
+
command.params['name'] = name unless name.nil?
|
2846
|
+
command.query['fields'] = fields unless fields.nil?
|
2847
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2848
|
+
execute_or_queue_command(command, &block)
|
2849
|
+
end
|
2850
|
+
|
2851
|
+
# Lists operations that match the specified filter in the request. If the server
|
2852
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
2853
|
+
# binding allows API services to override the binding to use different resource
|
2854
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
2855
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
2856
|
+
# service configuration. For backwards compatibility, the default name includes
|
2857
|
+
# the operations collection id, however overriding users must ensure the name
|
2858
|
+
# binding is the parent resource, without the operations collection id.
|
2859
|
+
# @param [String] name
|
2860
|
+
# The name of the operation's parent resource.
|
2861
|
+
# @param [String] filter
|
2862
|
+
# The standard list filter.
|
2863
|
+
# @param [Fixnum] page_size
|
2864
|
+
# The standard list page size.
|
2865
|
+
# @param [String] page_token
|
2866
|
+
# The standard list page token.
|
2867
|
+
# @param [String] fields
|
2868
|
+
# Selector specifying which fields to include in a partial response.
|
2869
|
+
# @param [String] quota_user
|
2870
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2871
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2872
|
+
# @param [Google::Apis::RequestOptions] options
|
2873
|
+
# Request-specific options
|
2874
|
+
#
|
2875
|
+
# @yield [result, err] Result & error if block supplied
|
2876
|
+
# @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningListOperationsResponse] parsed result object
|
2877
|
+
# @yieldparam err [StandardError] error object if request failed
|
2878
|
+
#
|
2879
|
+
# @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningListOperationsResponse]
|
2880
|
+
#
|
2881
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2882
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2883
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2884
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2885
|
+
command = make_simple_command(:get, 'v1alpha/{+name}/operations', options)
|
2886
|
+
command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningListOperationsResponse::Representation
|
2887
|
+
command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningListOperationsResponse
|
2888
|
+
command.params['name'] = name unless name.nil?
|
2889
|
+
command.query['filter'] = filter unless filter.nil?
|
2890
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2891
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2892
|
+
command.query['fields'] = fields unless fields.nil?
|
2893
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2894
|
+
execute_or_queue_command(command, &block)
|
2895
|
+
end
|
2896
|
+
|
2897
|
+
protected
|
2898
|
+
|
2899
|
+
def apply_command_defaults(command)
|
2900
|
+
command.query['key'] = key unless key.nil?
|
2901
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2902
|
+
end
|
2903
|
+
end
|
2904
|
+
end
|
2905
|
+
end
|
2906
|
+
end
|