google-apis-networksecurity_v1 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/networksecurity_v1/classes.rb +1230 -0
- data/lib/google/apis/networksecurity_v1/gem_version.rb +28 -0
- data/lib/google/apis/networksecurity_v1/representations.rb +511 -0
- data/lib/google/apis/networksecurity_v1/service.rb +1173 -0
- data/lib/google/apis/networksecurity_v1.rb +36 -0
- data/lib/google-apis-networksecurity_v1.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,1173 @@
|
|
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 NetworksecurityV1
|
23
|
+
# Network Security API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/networksecurity_v1'
|
29
|
+
#
|
30
|
+
# Networksecurity = Google::Apis::NetworksecurityV1 # Alias the module
|
31
|
+
# service = Networksecurity::NetworkSecurityService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/networking
|
34
|
+
class NetworkSecurityService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://networksecurity.googleapis.com/', '',
|
47
|
+
client_name: 'google-apis-networksecurity_v1',
|
48
|
+
client_version: Google::Apis::NetworksecurityV1::GEM_VERSION)
|
49
|
+
@batch_path = 'batch'
|
50
|
+
end
|
51
|
+
|
52
|
+
# Gets information about a location.
|
53
|
+
# @param [String] name
|
54
|
+
# Resource name for the location.
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Location] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::NetworksecurityV1::Location]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
74
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Location::Representation
|
75
|
+
command.response_class = Google::Apis::NetworksecurityV1::Location
|
76
|
+
command.params['name'] = name unless name.nil?
|
77
|
+
command.query['fields'] = fields unless fields.nil?
|
78
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
|
+
execute_or_queue_command(command, &block)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Lists information about the supported locations for this service.
|
83
|
+
# @param [String] name
|
84
|
+
# The resource that owns the locations collection, if applicable.
|
85
|
+
# @param [String] filter
|
86
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
87
|
+
# accepts strings like "displayName=tokyo", and is documented in more detail in [
|
88
|
+
# AIP-160](https://google.aip.dev/160).
|
89
|
+
# @param [Fixnum] page_size
|
90
|
+
# The maximum number of results to return. If not set, the service selects a
|
91
|
+
# default.
|
92
|
+
# @param [String] page_token
|
93
|
+
# A page token received from the `next_page_token` field in the response. Send
|
94
|
+
# that page token to receive the subsequent page.
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
97
|
+
# @param [String] quota_user
|
98
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
99
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
100
|
+
# @param [Google::Apis::RequestOptions] options
|
101
|
+
# Request-specific options
|
102
|
+
#
|
103
|
+
# @yield [result, err] Result & error if block supplied
|
104
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::ListLocationsResponse] parsed result object
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
106
|
+
#
|
107
|
+
# @return [Google::Apis::NetworksecurityV1::ListLocationsResponse]
|
108
|
+
#
|
109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
114
|
+
command.response_representation = Google::Apis::NetworksecurityV1::ListLocationsResponse::Representation
|
115
|
+
command.response_class = Google::Apis::NetworksecurityV1::ListLocationsResponse
|
116
|
+
command.params['name'] = name unless name.nil?
|
117
|
+
command.query['filter'] = filter unless filter.nil?
|
118
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
119
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
120
|
+
command.query['fields'] = fields unless fields.nil?
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
122
|
+
execute_or_queue_command(command, &block)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Creates a new AuthorizationPolicy in a given project and location.
|
126
|
+
# @param [String] parent
|
127
|
+
# Required. The parent resource of the AuthorizationPolicy. Must be in the
|
128
|
+
# format `projects/`project`/locations/`location``.
|
129
|
+
# @param [Google::Apis::NetworksecurityV1::AuthorizationPolicy] authorization_policy_object
|
130
|
+
# @param [String] authorization_policy_id
|
131
|
+
# Required. Short name of the AuthorizationPolicy resource to be created. This
|
132
|
+
# value should be 1-63 characters long, containing only letters, numbers,
|
133
|
+
# hyphens, and underscores, and should not start with a number. E.g. "
|
134
|
+
# authz_policy".
|
135
|
+
# @param [String] fields
|
136
|
+
# Selector specifying which fields to include in a partial response.
|
137
|
+
# @param [String] quota_user
|
138
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
139
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
140
|
+
# @param [Google::Apis::RequestOptions] options
|
141
|
+
# Request-specific options
|
142
|
+
#
|
143
|
+
# @yield [result, err] Result & error if block supplied
|
144
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
|
145
|
+
# @yieldparam err [StandardError] error object if request failed
|
146
|
+
#
|
147
|
+
# @return [Google::Apis::NetworksecurityV1::Operation]
|
148
|
+
#
|
149
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
150
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
151
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
152
|
+
def create_project_location_authorization_policy(parent, authorization_policy_object = nil, authorization_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
153
|
+
command = make_simple_command(:post, 'v1/{+parent}/authorizationPolicies', options)
|
154
|
+
command.request_representation = Google::Apis::NetworksecurityV1::AuthorizationPolicy::Representation
|
155
|
+
command.request_object = authorization_policy_object
|
156
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
|
157
|
+
command.response_class = Google::Apis::NetworksecurityV1::Operation
|
158
|
+
command.params['parent'] = parent unless parent.nil?
|
159
|
+
command.query['authorizationPolicyId'] = authorization_policy_id unless authorization_policy_id.nil?
|
160
|
+
command.query['fields'] = fields unless fields.nil?
|
161
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
162
|
+
execute_or_queue_command(command, &block)
|
163
|
+
end
|
164
|
+
|
165
|
+
# Deletes a single AuthorizationPolicy.
|
166
|
+
# @param [String] name
|
167
|
+
# Required. A name of the AuthorizationPolicy to delete. Must be in the format `
|
168
|
+
# projects/`project`/locations/`location`/authorizationPolicies/*`.
|
169
|
+
# @param [String] fields
|
170
|
+
# Selector specifying which fields to include in a partial response.
|
171
|
+
# @param [String] quota_user
|
172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
174
|
+
# @param [Google::Apis::RequestOptions] options
|
175
|
+
# Request-specific options
|
176
|
+
#
|
177
|
+
# @yield [result, err] Result & error if block supplied
|
178
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
|
179
|
+
# @yieldparam err [StandardError] error object if request failed
|
180
|
+
#
|
181
|
+
# @return [Google::Apis::NetworksecurityV1::Operation]
|
182
|
+
#
|
183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
186
|
+
def delete_project_location_authorization_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
187
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
188
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
|
189
|
+
command.response_class = Google::Apis::NetworksecurityV1::Operation
|
190
|
+
command.params['name'] = name unless name.nil?
|
191
|
+
command.query['fields'] = fields unless fields.nil?
|
192
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
193
|
+
execute_or_queue_command(command, &block)
|
194
|
+
end
|
195
|
+
|
196
|
+
# Gets details of a single AuthorizationPolicy.
|
197
|
+
# @param [String] name
|
198
|
+
# Required. A name of the AuthorizationPolicy to get. Must be in the format `
|
199
|
+
# projects/`project`/locations/`location`/authorizationPolicies/*`.
|
200
|
+
# @param [String] fields
|
201
|
+
# Selector specifying which fields to include in a partial response.
|
202
|
+
# @param [String] quota_user
|
203
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
204
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
205
|
+
# @param [Google::Apis::RequestOptions] options
|
206
|
+
# Request-specific options
|
207
|
+
#
|
208
|
+
# @yield [result, err] Result & error if block supplied
|
209
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::AuthorizationPolicy] parsed result object
|
210
|
+
# @yieldparam err [StandardError] error object if request failed
|
211
|
+
#
|
212
|
+
# @return [Google::Apis::NetworksecurityV1::AuthorizationPolicy]
|
213
|
+
#
|
214
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
215
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
216
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
217
|
+
def get_project_location_authorization_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
218
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
219
|
+
command.response_representation = Google::Apis::NetworksecurityV1::AuthorizationPolicy::Representation
|
220
|
+
command.response_class = Google::Apis::NetworksecurityV1::AuthorizationPolicy
|
221
|
+
command.params['name'] = name unless name.nil?
|
222
|
+
command.query['fields'] = fields unless fields.nil?
|
223
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
224
|
+
execute_or_queue_command(command, &block)
|
225
|
+
end
|
226
|
+
|
227
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
228
|
+
# resource exists and does not have a policy set.
|
229
|
+
# @param [String] resource
|
230
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
231
|
+
# operation documentation for the appropriate value for this field.
|
232
|
+
# @param [Fixnum] options_requested_policy_version
|
233
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
234
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
235
|
+
# policies with any conditional bindings must specify version 3. Policies
|
236
|
+
# without any conditional bindings may specify any valid value or leave the
|
237
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
238
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
239
|
+
# resource-policies).
|
240
|
+
# @param [String] fields
|
241
|
+
# Selector specifying which fields to include in a partial response.
|
242
|
+
# @param [String] quota_user
|
243
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
244
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
245
|
+
# @param [Google::Apis::RequestOptions] options
|
246
|
+
# Request-specific options
|
247
|
+
#
|
248
|
+
# @yield [result, err] Result & error if block supplied
|
249
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
|
250
|
+
# @yieldparam err [StandardError] error object if request failed
|
251
|
+
#
|
252
|
+
# @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
|
253
|
+
#
|
254
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
255
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
256
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
257
|
+
def get_project_location_authorization_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
258
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
259
|
+
command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
|
260
|
+
command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
|
261
|
+
command.params['resource'] = resource unless resource.nil?
|
262
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
263
|
+
command.query['fields'] = fields unless fields.nil?
|
264
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
265
|
+
execute_or_queue_command(command, &block)
|
266
|
+
end
|
267
|
+
|
268
|
+
# Lists AuthorizationPolicies in a given project and location.
|
269
|
+
# @param [String] parent
|
270
|
+
# Required. The project and location from which the AuthorizationPolicies should
|
271
|
+
# be listed, specified in the format `projects/`project`/locations/`location``.
|
272
|
+
# @param [Fixnum] page_size
|
273
|
+
# Maximum number of AuthorizationPolicies to return per call.
|
274
|
+
# @param [String] page_token
|
275
|
+
# The value returned by the last `ListAuthorizationPoliciesResponse` Indicates
|
276
|
+
# that this is a continuation of a prior `ListAuthorizationPolicies` call, and
|
277
|
+
# that the system should return the next page of data.
|
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::NetworksecurityV1::ListAuthorizationPoliciesResponse] parsed result object
|
288
|
+
# @yieldparam err [StandardError] error object if request failed
|
289
|
+
#
|
290
|
+
# @return [Google::Apis::NetworksecurityV1::ListAuthorizationPoliciesResponse]
|
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 list_project_location_authorization_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
296
|
+
command = make_simple_command(:get, 'v1/{+parent}/authorizationPolicies', options)
|
297
|
+
command.response_representation = Google::Apis::NetworksecurityV1::ListAuthorizationPoliciesResponse::Representation
|
298
|
+
command.response_class = Google::Apis::NetworksecurityV1::ListAuthorizationPoliciesResponse
|
299
|
+
command.params['parent'] = parent unless parent.nil?
|
300
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
301
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
302
|
+
command.query['fields'] = fields unless fields.nil?
|
303
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
304
|
+
execute_or_queue_command(command, &block)
|
305
|
+
end
|
306
|
+
|
307
|
+
# Updates the parameters of a single AuthorizationPolicy.
|
308
|
+
# @param [String] name
|
309
|
+
# Required. Name of the AuthorizationPolicy resource. It matches pattern `
|
310
|
+
# projects/`project`/locations/`location`/authorizationPolicies/`.
|
311
|
+
# @param [Google::Apis::NetworksecurityV1::AuthorizationPolicy] authorization_policy_object
|
312
|
+
# @param [String] update_mask
|
313
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
314
|
+
# AuthorizationPolicy resource by the update. The fields specified in the
|
315
|
+
# update_mask are relative to the resource, not the full request. A field will
|
316
|
+
# be overwritten if it is in the mask. If the user does not provide a mask then
|
317
|
+
# all fields will be overwritten.
|
318
|
+
# @param [String] fields
|
319
|
+
# Selector specifying which fields to include in a partial response.
|
320
|
+
# @param [String] quota_user
|
321
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
322
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
323
|
+
# @param [Google::Apis::RequestOptions] options
|
324
|
+
# Request-specific options
|
325
|
+
#
|
326
|
+
# @yield [result, err] Result & error if block supplied
|
327
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
|
328
|
+
# @yieldparam err [StandardError] error object if request failed
|
329
|
+
#
|
330
|
+
# @return [Google::Apis::NetworksecurityV1::Operation]
|
331
|
+
#
|
332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
335
|
+
def patch_project_location_authorization_policy(name, authorization_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
336
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
337
|
+
command.request_representation = Google::Apis::NetworksecurityV1::AuthorizationPolicy::Representation
|
338
|
+
command.request_object = authorization_policy_object
|
339
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
|
340
|
+
command.response_class = Google::Apis::NetworksecurityV1::Operation
|
341
|
+
command.params['name'] = name unless name.nil?
|
342
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
343
|
+
command.query['fields'] = fields unless fields.nil?
|
344
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
345
|
+
execute_or_queue_command(command, &block)
|
346
|
+
end
|
347
|
+
|
348
|
+
# Sets the access control policy on the specified resource. Replaces any
|
349
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
350
|
+
# PERMISSION_DENIED` errors.
|
351
|
+
# @param [String] resource
|
352
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
353
|
+
# operation documentation for the appropriate value for this field.
|
354
|
+
# @param [Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
355
|
+
# @param [String] fields
|
356
|
+
# Selector specifying which fields to include in a partial response.
|
357
|
+
# @param [String] quota_user
|
358
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
359
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
360
|
+
# @param [Google::Apis::RequestOptions] options
|
361
|
+
# Request-specific options
|
362
|
+
#
|
363
|
+
# @yield [result, err] Result & error if block supplied
|
364
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
|
365
|
+
# @yieldparam err [StandardError] error object if request failed
|
366
|
+
#
|
367
|
+
# @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
|
368
|
+
#
|
369
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
370
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
371
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
372
|
+
def set_project_location_authorization_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
373
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
374
|
+
command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest::Representation
|
375
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
376
|
+
command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
|
377
|
+
command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
|
378
|
+
command.params['resource'] = resource unless resource.nil?
|
379
|
+
command.query['fields'] = fields unless fields.nil?
|
380
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
381
|
+
execute_or_queue_command(command, &block)
|
382
|
+
end
|
383
|
+
|
384
|
+
# Returns permissions that a caller has on the specified resource. If the
|
385
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
386
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
387
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
388
|
+
# This operation may "fail open" without warning.
|
389
|
+
# @param [String] resource
|
390
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
391
|
+
# operation documentation for the appropriate value for this field.
|
392
|
+
# @param [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
393
|
+
# @param [String] fields
|
394
|
+
# Selector specifying which fields to include in a partial response.
|
395
|
+
# @param [String] quota_user
|
396
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
397
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
398
|
+
# @param [Google::Apis::RequestOptions] options
|
399
|
+
# Request-specific options
|
400
|
+
#
|
401
|
+
# @yield [result, err] Result & error if block supplied
|
402
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
403
|
+
# @yieldparam err [StandardError] error object if request failed
|
404
|
+
#
|
405
|
+
# @return [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse]
|
406
|
+
#
|
407
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
408
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
409
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
410
|
+
def test_project_location_authorization_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
411
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
412
|
+
command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest::Representation
|
413
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
414
|
+
command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse::Representation
|
415
|
+
command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse
|
416
|
+
command.params['resource'] = resource unless resource.nil?
|
417
|
+
command.query['fields'] = fields unless fields.nil?
|
418
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
419
|
+
execute_or_queue_command(command, &block)
|
420
|
+
end
|
421
|
+
|
422
|
+
# Creates a new ClientTlsPolicy in a given project and location.
|
423
|
+
# @param [String] parent
|
424
|
+
# Required. The parent resource of the ClientTlsPolicy. Must be in the format `
|
425
|
+
# projects/*/locations/`location``.
|
426
|
+
# @param [Google::Apis::NetworksecurityV1::ClientTlsPolicy] client_tls_policy_object
|
427
|
+
# @param [String] client_tls_policy_id
|
428
|
+
# Required. Short name of the ClientTlsPolicy resource to be created. This value
|
429
|
+
# should be 1-63 characters long, containing only letters, numbers, hyphens, and
|
430
|
+
# underscores, and should not start with a number. E.g. "client_mtls_policy".
|
431
|
+
# @param [String] fields
|
432
|
+
# Selector specifying which fields to include in a partial response.
|
433
|
+
# @param [String] quota_user
|
434
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
435
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
436
|
+
# @param [Google::Apis::RequestOptions] options
|
437
|
+
# Request-specific options
|
438
|
+
#
|
439
|
+
# @yield [result, err] Result & error if block supplied
|
440
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
|
441
|
+
# @yieldparam err [StandardError] error object if request failed
|
442
|
+
#
|
443
|
+
# @return [Google::Apis::NetworksecurityV1::Operation]
|
444
|
+
#
|
445
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
446
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
447
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
448
|
+
def create_project_location_client_tls_policy(parent, client_tls_policy_object = nil, client_tls_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
449
|
+
command = make_simple_command(:post, 'v1/{+parent}/clientTlsPolicies', options)
|
450
|
+
command.request_representation = Google::Apis::NetworksecurityV1::ClientTlsPolicy::Representation
|
451
|
+
command.request_object = client_tls_policy_object
|
452
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
|
453
|
+
command.response_class = Google::Apis::NetworksecurityV1::Operation
|
454
|
+
command.params['parent'] = parent unless parent.nil?
|
455
|
+
command.query['clientTlsPolicyId'] = client_tls_policy_id unless client_tls_policy_id.nil?
|
456
|
+
command.query['fields'] = fields unless fields.nil?
|
457
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
458
|
+
execute_or_queue_command(command, &block)
|
459
|
+
end
|
460
|
+
|
461
|
+
# Deletes a single ClientTlsPolicy.
|
462
|
+
# @param [String] name
|
463
|
+
# Required. A name of the ClientTlsPolicy to delete. Must be in the format `
|
464
|
+
# projects/*/locations/`location`/clientTlsPolicies/*`.
|
465
|
+
# @param [String] fields
|
466
|
+
# Selector specifying which fields to include in a partial response.
|
467
|
+
# @param [String] quota_user
|
468
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
469
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
470
|
+
# @param [Google::Apis::RequestOptions] options
|
471
|
+
# Request-specific options
|
472
|
+
#
|
473
|
+
# @yield [result, err] Result & error if block supplied
|
474
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
|
475
|
+
# @yieldparam err [StandardError] error object if request failed
|
476
|
+
#
|
477
|
+
# @return [Google::Apis::NetworksecurityV1::Operation]
|
478
|
+
#
|
479
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
480
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
481
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
482
|
+
def delete_project_location_client_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
483
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
484
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
|
485
|
+
command.response_class = Google::Apis::NetworksecurityV1::Operation
|
486
|
+
command.params['name'] = name unless name.nil?
|
487
|
+
command.query['fields'] = fields unless fields.nil?
|
488
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
489
|
+
execute_or_queue_command(command, &block)
|
490
|
+
end
|
491
|
+
|
492
|
+
# Gets details of a single ClientTlsPolicy.
|
493
|
+
# @param [String] name
|
494
|
+
# Required. A name of the ClientTlsPolicy to get. Must be in the format `
|
495
|
+
# projects/*/locations/`location`/clientTlsPolicies/*`.
|
496
|
+
# @param [String] fields
|
497
|
+
# Selector specifying which fields to include in a partial response.
|
498
|
+
# @param [String] quota_user
|
499
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
500
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
501
|
+
# @param [Google::Apis::RequestOptions] options
|
502
|
+
# Request-specific options
|
503
|
+
#
|
504
|
+
# @yield [result, err] Result & error if block supplied
|
505
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::ClientTlsPolicy] parsed result object
|
506
|
+
# @yieldparam err [StandardError] error object if request failed
|
507
|
+
#
|
508
|
+
# @return [Google::Apis::NetworksecurityV1::ClientTlsPolicy]
|
509
|
+
#
|
510
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
511
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
512
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
513
|
+
def get_project_location_client_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
514
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
515
|
+
command.response_representation = Google::Apis::NetworksecurityV1::ClientTlsPolicy::Representation
|
516
|
+
command.response_class = Google::Apis::NetworksecurityV1::ClientTlsPolicy
|
517
|
+
command.params['name'] = name unless name.nil?
|
518
|
+
command.query['fields'] = fields unless fields.nil?
|
519
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
520
|
+
execute_or_queue_command(command, &block)
|
521
|
+
end
|
522
|
+
|
523
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
524
|
+
# resource exists and does not have a policy set.
|
525
|
+
# @param [String] resource
|
526
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
527
|
+
# operation documentation for the appropriate value for this field.
|
528
|
+
# @param [Fixnum] options_requested_policy_version
|
529
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
530
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
531
|
+
# policies with any conditional bindings must specify version 3. Policies
|
532
|
+
# without any conditional bindings may specify any valid value or leave the
|
533
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
534
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
535
|
+
# resource-policies).
|
536
|
+
# @param [String] fields
|
537
|
+
# Selector specifying which fields to include in a partial response.
|
538
|
+
# @param [String] quota_user
|
539
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
540
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
541
|
+
# @param [Google::Apis::RequestOptions] options
|
542
|
+
# Request-specific options
|
543
|
+
#
|
544
|
+
# @yield [result, err] Result & error if block supplied
|
545
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
|
546
|
+
# @yieldparam err [StandardError] error object if request failed
|
547
|
+
#
|
548
|
+
# @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
|
549
|
+
#
|
550
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
551
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
552
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
553
|
+
def get_project_location_client_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
554
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
555
|
+
command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
|
556
|
+
command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
|
557
|
+
command.params['resource'] = resource unless resource.nil?
|
558
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
559
|
+
command.query['fields'] = fields unless fields.nil?
|
560
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
561
|
+
execute_or_queue_command(command, &block)
|
562
|
+
end
|
563
|
+
|
564
|
+
# Lists ClientTlsPolicies in a given project and location.
|
565
|
+
# @param [String] parent
|
566
|
+
# Required. The project and location from which the ClientTlsPolicies should be
|
567
|
+
# listed, specified in the format `projects/*/locations/`location``.
|
568
|
+
# @param [Fixnum] page_size
|
569
|
+
# Maximum number of ClientTlsPolicies to return per call.
|
570
|
+
# @param [String] page_token
|
571
|
+
# The value returned by the last `ListClientTlsPoliciesResponse` Indicates that
|
572
|
+
# this is a continuation of a prior `ListClientTlsPolicies` call, and that the
|
573
|
+
# system should return the next page of data.
|
574
|
+
# @param [String] fields
|
575
|
+
# Selector specifying which fields to include in a partial response.
|
576
|
+
# @param [String] quota_user
|
577
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
578
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
579
|
+
# @param [Google::Apis::RequestOptions] options
|
580
|
+
# Request-specific options
|
581
|
+
#
|
582
|
+
# @yield [result, err] Result & error if block supplied
|
583
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::ListClientTlsPoliciesResponse] parsed result object
|
584
|
+
# @yieldparam err [StandardError] error object if request failed
|
585
|
+
#
|
586
|
+
# @return [Google::Apis::NetworksecurityV1::ListClientTlsPoliciesResponse]
|
587
|
+
#
|
588
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
589
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
590
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
591
|
+
def list_project_location_client_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
592
|
+
command = make_simple_command(:get, 'v1/{+parent}/clientTlsPolicies', options)
|
593
|
+
command.response_representation = Google::Apis::NetworksecurityV1::ListClientTlsPoliciesResponse::Representation
|
594
|
+
command.response_class = Google::Apis::NetworksecurityV1::ListClientTlsPoliciesResponse
|
595
|
+
command.params['parent'] = parent unless parent.nil?
|
596
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
597
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
598
|
+
command.query['fields'] = fields unless fields.nil?
|
599
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
600
|
+
execute_or_queue_command(command, &block)
|
601
|
+
end
|
602
|
+
|
603
|
+
# Updates the parameters of a single ClientTlsPolicy.
|
604
|
+
# @param [String] name
|
605
|
+
# Required. Name of the ClientTlsPolicy resource. It matches the pattern `
|
606
|
+
# projects/*/locations/`location`/clientTlsPolicies/`client_tls_policy``
|
607
|
+
# @param [Google::Apis::NetworksecurityV1::ClientTlsPolicy] client_tls_policy_object
|
608
|
+
# @param [String] update_mask
|
609
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
610
|
+
# ClientTlsPolicy resource by the update. The fields specified in the
|
611
|
+
# update_mask are relative to the resource, not the full request. A field will
|
612
|
+
# be overwritten if it is in the mask. If the user does not provide a mask then
|
613
|
+
# all fields will be overwritten.
|
614
|
+
# @param [String] fields
|
615
|
+
# Selector specifying which fields to include in a partial response.
|
616
|
+
# @param [String] quota_user
|
617
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
618
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
619
|
+
# @param [Google::Apis::RequestOptions] options
|
620
|
+
# Request-specific options
|
621
|
+
#
|
622
|
+
# @yield [result, err] Result & error if block supplied
|
623
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
|
624
|
+
# @yieldparam err [StandardError] error object if request failed
|
625
|
+
#
|
626
|
+
# @return [Google::Apis::NetworksecurityV1::Operation]
|
627
|
+
#
|
628
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
629
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
630
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
631
|
+
def patch_project_location_client_tls_policy(name, client_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
632
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
633
|
+
command.request_representation = Google::Apis::NetworksecurityV1::ClientTlsPolicy::Representation
|
634
|
+
command.request_object = client_tls_policy_object
|
635
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
|
636
|
+
command.response_class = Google::Apis::NetworksecurityV1::Operation
|
637
|
+
command.params['name'] = name unless name.nil?
|
638
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
639
|
+
command.query['fields'] = fields unless fields.nil?
|
640
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
641
|
+
execute_or_queue_command(command, &block)
|
642
|
+
end
|
643
|
+
|
644
|
+
# Sets the access control policy on the specified resource. Replaces any
|
645
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
646
|
+
# PERMISSION_DENIED` errors.
|
647
|
+
# @param [String] resource
|
648
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
649
|
+
# operation documentation for the appropriate value for this field.
|
650
|
+
# @param [Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
651
|
+
# @param [String] fields
|
652
|
+
# Selector specifying which fields to include in a partial response.
|
653
|
+
# @param [String] quota_user
|
654
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
655
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
656
|
+
# @param [Google::Apis::RequestOptions] options
|
657
|
+
# Request-specific options
|
658
|
+
#
|
659
|
+
# @yield [result, err] Result & error if block supplied
|
660
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
|
661
|
+
# @yieldparam err [StandardError] error object if request failed
|
662
|
+
#
|
663
|
+
# @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
|
664
|
+
#
|
665
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
666
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
667
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
668
|
+
def set_project_location_client_tls_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
669
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
670
|
+
command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest::Representation
|
671
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
672
|
+
command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
|
673
|
+
command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
|
674
|
+
command.params['resource'] = resource unless resource.nil?
|
675
|
+
command.query['fields'] = fields unless fields.nil?
|
676
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
677
|
+
execute_or_queue_command(command, &block)
|
678
|
+
end
|
679
|
+
|
680
|
+
# Returns permissions that a caller has on the specified resource. If the
|
681
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
682
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
683
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
684
|
+
# This operation may "fail open" without warning.
|
685
|
+
# @param [String] resource
|
686
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
687
|
+
# operation documentation for the appropriate value for this field.
|
688
|
+
# @param [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
689
|
+
# @param [String] fields
|
690
|
+
# Selector specifying which fields to include in a partial response.
|
691
|
+
# @param [String] quota_user
|
692
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
693
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
694
|
+
# @param [Google::Apis::RequestOptions] options
|
695
|
+
# Request-specific options
|
696
|
+
#
|
697
|
+
# @yield [result, err] Result & error if block supplied
|
698
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
699
|
+
# @yieldparam err [StandardError] error object if request failed
|
700
|
+
#
|
701
|
+
# @return [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse]
|
702
|
+
#
|
703
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
704
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
705
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
706
|
+
def test_project_location_client_tls_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
707
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
708
|
+
command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest::Representation
|
709
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
710
|
+
command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse::Representation
|
711
|
+
command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse
|
712
|
+
command.params['resource'] = resource unless resource.nil?
|
713
|
+
command.query['fields'] = fields unless fields.nil?
|
714
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
715
|
+
execute_or_queue_command(command, &block)
|
716
|
+
end
|
717
|
+
|
718
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
719
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
720
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
721
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
722
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
723
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
724
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
725
|
+
# corresponding to `Code.CANCELLED`.
|
726
|
+
# @param [String] name
|
727
|
+
# The name of the operation resource to be cancelled.
|
728
|
+
# @param [Google::Apis::NetworksecurityV1::CancelOperationRequest] cancel_operation_request_object
|
729
|
+
# @param [String] fields
|
730
|
+
# Selector specifying which fields to include in a partial response.
|
731
|
+
# @param [String] quota_user
|
732
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
733
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
734
|
+
# @param [Google::Apis::RequestOptions] options
|
735
|
+
# Request-specific options
|
736
|
+
#
|
737
|
+
# @yield [result, err] Result & error if block supplied
|
738
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Empty] parsed result object
|
739
|
+
# @yieldparam err [StandardError] error object if request failed
|
740
|
+
#
|
741
|
+
# @return [Google::Apis::NetworksecurityV1::Empty]
|
742
|
+
#
|
743
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
744
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
745
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
746
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
747
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
748
|
+
command.request_representation = Google::Apis::NetworksecurityV1::CancelOperationRequest::Representation
|
749
|
+
command.request_object = cancel_operation_request_object
|
750
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Empty::Representation
|
751
|
+
command.response_class = Google::Apis::NetworksecurityV1::Empty
|
752
|
+
command.params['name'] = name unless name.nil?
|
753
|
+
command.query['fields'] = fields unless fields.nil?
|
754
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
755
|
+
execute_or_queue_command(command, &block)
|
756
|
+
end
|
757
|
+
|
758
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
759
|
+
# longer interested in the operation result. It does not cancel the operation.
|
760
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
761
|
+
# UNIMPLEMENTED`.
|
762
|
+
# @param [String] name
|
763
|
+
# The name of the operation resource to be deleted.
|
764
|
+
# @param [String] fields
|
765
|
+
# Selector specifying which fields to include in a partial response.
|
766
|
+
# @param [String] quota_user
|
767
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
768
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
769
|
+
# @param [Google::Apis::RequestOptions] options
|
770
|
+
# Request-specific options
|
771
|
+
#
|
772
|
+
# @yield [result, err] Result & error if block supplied
|
773
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Empty] parsed result object
|
774
|
+
# @yieldparam err [StandardError] error object if request failed
|
775
|
+
#
|
776
|
+
# @return [Google::Apis::NetworksecurityV1::Empty]
|
777
|
+
#
|
778
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
779
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
780
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
781
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
782
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
783
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Empty::Representation
|
784
|
+
command.response_class = Google::Apis::NetworksecurityV1::Empty
|
785
|
+
command.params['name'] = name unless name.nil?
|
786
|
+
command.query['fields'] = fields unless fields.nil?
|
787
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
788
|
+
execute_or_queue_command(command, &block)
|
789
|
+
end
|
790
|
+
|
791
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
792
|
+
# to poll the operation result at intervals as recommended by the API service.
|
793
|
+
# @param [String] name
|
794
|
+
# The name of the operation resource.
|
795
|
+
# @param [String] fields
|
796
|
+
# Selector specifying which fields to include in a partial response.
|
797
|
+
# @param [String] quota_user
|
798
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
799
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
800
|
+
# @param [Google::Apis::RequestOptions] options
|
801
|
+
# Request-specific options
|
802
|
+
#
|
803
|
+
# @yield [result, err] Result & error if block supplied
|
804
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
|
805
|
+
# @yieldparam err [StandardError] error object if request failed
|
806
|
+
#
|
807
|
+
# @return [Google::Apis::NetworksecurityV1::Operation]
|
808
|
+
#
|
809
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
810
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
811
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
812
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
813
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
814
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
|
815
|
+
command.response_class = Google::Apis::NetworksecurityV1::Operation
|
816
|
+
command.params['name'] = name unless name.nil?
|
817
|
+
command.query['fields'] = fields unless fields.nil?
|
818
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
819
|
+
execute_or_queue_command(command, &block)
|
820
|
+
end
|
821
|
+
|
822
|
+
# Lists operations that match the specified filter in the request. If the server
|
823
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
824
|
+
# binding allows API services to override the binding to use different resource
|
825
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
826
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
827
|
+
# service configuration. For backwards compatibility, the default name includes
|
828
|
+
# the operations collection id, however overriding users must ensure the name
|
829
|
+
# binding is the parent resource, without the operations collection id.
|
830
|
+
# @param [String] name
|
831
|
+
# The name of the operation's parent resource.
|
832
|
+
# @param [String] filter
|
833
|
+
# The standard list filter.
|
834
|
+
# @param [Fixnum] page_size
|
835
|
+
# The standard list page size.
|
836
|
+
# @param [String] page_token
|
837
|
+
# The standard list page token.
|
838
|
+
# @param [String] fields
|
839
|
+
# Selector specifying which fields to include in a partial response.
|
840
|
+
# @param [String] quota_user
|
841
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
842
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
843
|
+
# @param [Google::Apis::RequestOptions] options
|
844
|
+
# Request-specific options
|
845
|
+
#
|
846
|
+
# @yield [result, err] Result & error if block supplied
|
847
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::ListOperationsResponse] parsed result object
|
848
|
+
# @yieldparam err [StandardError] error object if request failed
|
849
|
+
#
|
850
|
+
# @return [Google::Apis::NetworksecurityV1::ListOperationsResponse]
|
851
|
+
#
|
852
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
853
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
854
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
855
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
856
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
857
|
+
command.response_representation = Google::Apis::NetworksecurityV1::ListOperationsResponse::Representation
|
858
|
+
command.response_class = Google::Apis::NetworksecurityV1::ListOperationsResponse
|
859
|
+
command.params['name'] = name unless name.nil?
|
860
|
+
command.query['filter'] = filter unless filter.nil?
|
861
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
862
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
863
|
+
command.query['fields'] = fields unless fields.nil?
|
864
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
865
|
+
execute_or_queue_command(command, &block)
|
866
|
+
end
|
867
|
+
|
868
|
+
# Creates a new ServerTlsPolicy in a given project and location.
|
869
|
+
# @param [String] parent
|
870
|
+
# Required. The parent resource of the ServerTlsPolicy. Must be in the format `
|
871
|
+
# projects/*/locations/`location``.
|
872
|
+
# @param [Google::Apis::NetworksecurityV1::ServerTlsPolicy] server_tls_policy_object
|
873
|
+
# @param [String] server_tls_policy_id
|
874
|
+
# Required. Short name of the ServerTlsPolicy resource to be created. This value
|
875
|
+
# should be 1-63 characters long, containing only letters, numbers, hyphens, and
|
876
|
+
# underscores, and should not start with a number. E.g. "server_mtls_policy".
|
877
|
+
# @param [String] fields
|
878
|
+
# Selector specifying which fields to include in a partial response.
|
879
|
+
# @param [String] quota_user
|
880
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
881
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
882
|
+
# @param [Google::Apis::RequestOptions] options
|
883
|
+
# Request-specific options
|
884
|
+
#
|
885
|
+
# @yield [result, err] Result & error if block supplied
|
886
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
|
887
|
+
# @yieldparam err [StandardError] error object if request failed
|
888
|
+
#
|
889
|
+
# @return [Google::Apis::NetworksecurityV1::Operation]
|
890
|
+
#
|
891
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
892
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
893
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
894
|
+
def create_project_location_server_tls_policy(parent, server_tls_policy_object = nil, server_tls_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
895
|
+
command = make_simple_command(:post, 'v1/{+parent}/serverTlsPolicies', options)
|
896
|
+
command.request_representation = Google::Apis::NetworksecurityV1::ServerTlsPolicy::Representation
|
897
|
+
command.request_object = server_tls_policy_object
|
898
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
|
899
|
+
command.response_class = Google::Apis::NetworksecurityV1::Operation
|
900
|
+
command.params['parent'] = parent unless parent.nil?
|
901
|
+
command.query['serverTlsPolicyId'] = server_tls_policy_id unless server_tls_policy_id.nil?
|
902
|
+
command.query['fields'] = fields unless fields.nil?
|
903
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
904
|
+
execute_or_queue_command(command, &block)
|
905
|
+
end
|
906
|
+
|
907
|
+
# Deletes a single ServerTlsPolicy.
|
908
|
+
# @param [String] name
|
909
|
+
# Required. A name of the ServerTlsPolicy to delete. Must be in the format `
|
910
|
+
# projects/*/locations/`location`/serverTlsPolicies/*`.
|
911
|
+
# @param [String] fields
|
912
|
+
# Selector specifying which fields to include in a partial response.
|
913
|
+
# @param [String] quota_user
|
914
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
915
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
916
|
+
# @param [Google::Apis::RequestOptions] options
|
917
|
+
# Request-specific options
|
918
|
+
#
|
919
|
+
# @yield [result, err] Result & error if block supplied
|
920
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
|
921
|
+
# @yieldparam err [StandardError] error object if request failed
|
922
|
+
#
|
923
|
+
# @return [Google::Apis::NetworksecurityV1::Operation]
|
924
|
+
#
|
925
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
926
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
927
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
928
|
+
def delete_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
929
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
930
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
|
931
|
+
command.response_class = Google::Apis::NetworksecurityV1::Operation
|
932
|
+
command.params['name'] = name unless name.nil?
|
933
|
+
command.query['fields'] = fields unless fields.nil?
|
934
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
935
|
+
execute_or_queue_command(command, &block)
|
936
|
+
end
|
937
|
+
|
938
|
+
# Gets details of a single ServerTlsPolicy.
|
939
|
+
# @param [String] name
|
940
|
+
# Required. A name of the ServerTlsPolicy to get. Must be in the format `
|
941
|
+
# projects/*/locations/`location`/serverTlsPolicies/*`.
|
942
|
+
# @param [String] fields
|
943
|
+
# Selector specifying which fields to include in a partial response.
|
944
|
+
# @param [String] quota_user
|
945
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
946
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
947
|
+
# @param [Google::Apis::RequestOptions] options
|
948
|
+
# Request-specific options
|
949
|
+
#
|
950
|
+
# @yield [result, err] Result & error if block supplied
|
951
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::ServerTlsPolicy] parsed result object
|
952
|
+
# @yieldparam err [StandardError] error object if request failed
|
953
|
+
#
|
954
|
+
# @return [Google::Apis::NetworksecurityV1::ServerTlsPolicy]
|
955
|
+
#
|
956
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
957
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
958
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
959
|
+
def get_project_location_server_tls_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
960
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
961
|
+
command.response_representation = Google::Apis::NetworksecurityV1::ServerTlsPolicy::Representation
|
962
|
+
command.response_class = Google::Apis::NetworksecurityV1::ServerTlsPolicy
|
963
|
+
command.params['name'] = name unless name.nil?
|
964
|
+
command.query['fields'] = fields unless fields.nil?
|
965
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
966
|
+
execute_or_queue_command(command, &block)
|
967
|
+
end
|
968
|
+
|
969
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
970
|
+
# resource exists and does not have a policy set.
|
971
|
+
# @param [String] resource
|
972
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
973
|
+
# operation documentation for the appropriate value for this field.
|
974
|
+
# @param [Fixnum] options_requested_policy_version
|
975
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
976
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
977
|
+
# policies with any conditional bindings must specify version 3. Policies
|
978
|
+
# without any conditional bindings may specify any valid value or leave the
|
979
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
980
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
981
|
+
# resource-policies).
|
982
|
+
# @param [String] fields
|
983
|
+
# Selector specifying which fields to include in a partial response.
|
984
|
+
# @param [String] quota_user
|
985
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
986
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
987
|
+
# @param [Google::Apis::RequestOptions] options
|
988
|
+
# Request-specific options
|
989
|
+
#
|
990
|
+
# @yield [result, err] Result & error if block supplied
|
991
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
|
992
|
+
# @yieldparam err [StandardError] error object if request failed
|
993
|
+
#
|
994
|
+
# @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
|
995
|
+
#
|
996
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
997
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
998
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
999
|
+
def get_project_location_server_tls_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1000
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1001
|
+
command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
|
1002
|
+
command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
|
1003
|
+
command.params['resource'] = resource unless resource.nil?
|
1004
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1005
|
+
command.query['fields'] = fields unless fields.nil?
|
1006
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1007
|
+
execute_or_queue_command(command, &block)
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
# Lists ServerTlsPolicies in a given project and location.
|
1011
|
+
# @param [String] parent
|
1012
|
+
# Required. The project and location from which the ServerTlsPolicies should be
|
1013
|
+
# listed, specified in the format `projects/*/locations/`location``.
|
1014
|
+
# @param [Fixnum] page_size
|
1015
|
+
# Maximum number of ServerTlsPolicies to return per call.
|
1016
|
+
# @param [String] page_token
|
1017
|
+
# The value returned by the last `ListServerTlsPoliciesResponse` Indicates that
|
1018
|
+
# this is a continuation of a prior `ListServerTlsPolicies` call, and that the
|
1019
|
+
# system should return the next page of data.
|
1020
|
+
# @param [String] fields
|
1021
|
+
# Selector specifying which fields to include in a partial response.
|
1022
|
+
# @param [String] quota_user
|
1023
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1024
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1025
|
+
# @param [Google::Apis::RequestOptions] options
|
1026
|
+
# Request-specific options
|
1027
|
+
#
|
1028
|
+
# @yield [result, err] Result & error if block supplied
|
1029
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse] parsed result object
|
1030
|
+
# @yieldparam err [StandardError] error object if request failed
|
1031
|
+
#
|
1032
|
+
# @return [Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse]
|
1033
|
+
#
|
1034
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1035
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1036
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1037
|
+
def list_project_location_server_tls_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1038
|
+
command = make_simple_command(:get, 'v1/{+parent}/serverTlsPolicies', options)
|
1039
|
+
command.response_representation = Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse::Representation
|
1040
|
+
command.response_class = Google::Apis::NetworksecurityV1::ListServerTlsPoliciesResponse
|
1041
|
+
command.params['parent'] = parent unless parent.nil?
|
1042
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1043
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1044
|
+
command.query['fields'] = fields unless fields.nil?
|
1045
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1046
|
+
execute_or_queue_command(command, &block)
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
# Updates the parameters of a single ServerTlsPolicy.
|
1050
|
+
# @param [String] name
|
1051
|
+
# Required. Name of the ServerTlsPolicy resource. It matches the pattern `
|
1052
|
+
# projects/*/locations/`location`/serverTlsPolicies/`server_tls_policy``
|
1053
|
+
# @param [Google::Apis::NetworksecurityV1::ServerTlsPolicy] server_tls_policy_object
|
1054
|
+
# @param [String] update_mask
|
1055
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
1056
|
+
# ServerTlsPolicy resource by the update. The fields specified in the
|
1057
|
+
# update_mask are relative to the resource, not the full request. A field will
|
1058
|
+
# be overwritten if it is in the mask. If the user does not provide a mask then
|
1059
|
+
# all fields will be overwritten.
|
1060
|
+
# @param [String] fields
|
1061
|
+
# Selector specifying which fields to include in a partial response.
|
1062
|
+
# @param [String] quota_user
|
1063
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1064
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1065
|
+
# @param [Google::Apis::RequestOptions] options
|
1066
|
+
# Request-specific options
|
1067
|
+
#
|
1068
|
+
# @yield [result, err] Result & error if block supplied
|
1069
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
|
1070
|
+
# @yieldparam err [StandardError] error object if request failed
|
1071
|
+
#
|
1072
|
+
# @return [Google::Apis::NetworksecurityV1::Operation]
|
1073
|
+
#
|
1074
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1075
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1076
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1077
|
+
def patch_project_location_server_tls_policy(name, server_tls_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1078
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1079
|
+
command.request_representation = Google::Apis::NetworksecurityV1::ServerTlsPolicy::Representation
|
1080
|
+
command.request_object = server_tls_policy_object
|
1081
|
+
command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
|
1082
|
+
command.response_class = Google::Apis::NetworksecurityV1::Operation
|
1083
|
+
command.params['name'] = name unless name.nil?
|
1084
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1085
|
+
command.query['fields'] = fields unless fields.nil?
|
1086
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1087
|
+
execute_or_queue_command(command, &block)
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1091
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1092
|
+
# PERMISSION_DENIED` errors.
|
1093
|
+
# @param [String] resource
|
1094
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
1095
|
+
# operation documentation for the appropriate value for this field.
|
1096
|
+
# @param [Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
1097
|
+
# @param [String] fields
|
1098
|
+
# Selector specifying which fields to include in a partial response.
|
1099
|
+
# @param [String] quota_user
|
1100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1102
|
+
# @param [Google::Apis::RequestOptions] options
|
1103
|
+
# Request-specific options
|
1104
|
+
#
|
1105
|
+
# @yield [result, err] Result & error if block supplied
|
1106
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
|
1107
|
+
# @yieldparam err [StandardError] error object if request failed
|
1108
|
+
#
|
1109
|
+
# @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
|
1110
|
+
#
|
1111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1114
|
+
def set_project_location_server_tls_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1115
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1116
|
+
command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest::Representation
|
1117
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
1118
|
+
command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
|
1119
|
+
command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
|
1120
|
+
command.params['resource'] = resource unless resource.nil?
|
1121
|
+
command.query['fields'] = fields unless fields.nil?
|
1122
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1123
|
+
execute_or_queue_command(command, &block)
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1127
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1128
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1129
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1130
|
+
# This operation may "fail open" without warning.
|
1131
|
+
# @param [String] resource
|
1132
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1133
|
+
# operation documentation for the appropriate value for this field.
|
1134
|
+
# @param [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
1135
|
+
# @param [String] fields
|
1136
|
+
# Selector specifying which fields to include in a partial response.
|
1137
|
+
# @param [String] quota_user
|
1138
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1139
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1140
|
+
# @param [Google::Apis::RequestOptions] options
|
1141
|
+
# Request-specific options
|
1142
|
+
#
|
1143
|
+
# @yield [result, err] Result & error if block supplied
|
1144
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
1145
|
+
# @yieldparam err [StandardError] error object if request failed
|
1146
|
+
#
|
1147
|
+
# @return [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse]
|
1148
|
+
#
|
1149
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1150
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1151
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1152
|
+
def test_project_location_server_tls_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1153
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1154
|
+
command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest::Representation
|
1155
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
1156
|
+
command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse::Representation
|
1157
|
+
command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse
|
1158
|
+
command.params['resource'] = resource unless resource.nil?
|
1159
|
+
command.query['fields'] = fields unless fields.nil?
|
1160
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1161
|
+
execute_or_queue_command(command, &block)
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
protected
|
1165
|
+
|
1166
|
+
def apply_command_defaults(command)
|
1167
|
+
command.query['key'] = key unless key.nil?
|
1168
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1169
|
+
end
|
1170
|
+
end
|
1171
|
+
end
|
1172
|
+
end
|
1173
|
+
end
|