google-apis-networkservices_v1beta1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-networkservices_v1beta1.rb +15 -0
- data/lib/google/apis/networkservices_v1beta1.rb +36 -0
- data/lib/google/apis/networkservices_v1beta1/classes.rb +923 -0
- data/lib/google/apis/networkservices_v1beta1/gem_version.rb +28 -0
- data/lib/google/apis/networkservices_v1beta1/representations.rb +365 -0
- data/lib/google/apis/networkservices_v1beta1/service.rb +579 -0
- metadata +82 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module NetworkservicesV1beta1
|
18
|
+
# Version of the google-apis-networkservices_v1beta1 gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20210721"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,365 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module NetworkservicesV1beta1
|
24
|
+
|
25
|
+
class AuditConfig
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class AuditLogConfig
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Binding
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class CancelOperationRequest
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class Empty
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class EndpointMatcher
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class EndpointPolicy
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Expr
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ListEndpointPoliciesResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ListLocationsResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class ListOperationsResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class Location
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class MetadataLabelMatcher
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class MetadataLabels
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class Operation
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class OperationMetadata
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class Policy
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class SetIamPolicyRequest
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class Status
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class TestIamPermissionsRequest
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class TestIamPermissionsResponse
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class TrafficPortSelector
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class AuditConfig
|
158
|
+
# @private
|
159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
+
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::NetworkservicesV1beta1::AuditLogConfig, decorator: Google::Apis::NetworkservicesV1beta1::AuditLogConfig::Representation
|
161
|
+
|
162
|
+
property :service, as: 'service'
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
class AuditLogConfig
|
167
|
+
# @private
|
168
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
169
|
+
collection :exempted_members, as: 'exemptedMembers'
|
170
|
+
property :log_type, as: 'logType'
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
class Binding
|
175
|
+
# @private
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
177
|
+
property :condition, as: 'condition', class: Google::Apis::NetworkservicesV1beta1::Expr, decorator: Google::Apis::NetworkservicesV1beta1::Expr::Representation
|
178
|
+
|
179
|
+
collection :members, as: 'members'
|
180
|
+
property :role, as: 'role'
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
class CancelOperationRequest
|
185
|
+
# @private
|
186
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
class Empty
|
191
|
+
# @private
|
192
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class EndpointMatcher
|
197
|
+
# @private
|
198
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
+
property :metadata_label_matcher, as: 'metadataLabelMatcher', class: Google::Apis::NetworkservicesV1beta1::MetadataLabelMatcher, decorator: Google::Apis::NetworkservicesV1beta1::MetadataLabelMatcher::Representation
|
200
|
+
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
class EndpointPolicy
|
205
|
+
# @private
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
207
|
+
property :authorization_policy, as: 'authorizationPolicy'
|
208
|
+
property :client_tls_policy, as: 'clientTlsPolicy'
|
209
|
+
property :create_time, as: 'createTime'
|
210
|
+
property :description, as: 'description'
|
211
|
+
property :endpoint_matcher, as: 'endpointMatcher', class: Google::Apis::NetworkservicesV1beta1::EndpointMatcher, decorator: Google::Apis::NetworkservicesV1beta1::EndpointMatcher::Representation
|
212
|
+
|
213
|
+
hash :labels, as: 'labels'
|
214
|
+
property :name, as: 'name'
|
215
|
+
property :server_tls_policy, as: 'serverTlsPolicy'
|
216
|
+
property :traffic_port_selector, as: 'trafficPortSelector', class: Google::Apis::NetworkservicesV1beta1::TrafficPortSelector, decorator: Google::Apis::NetworkservicesV1beta1::TrafficPortSelector::Representation
|
217
|
+
|
218
|
+
property :type, as: 'type'
|
219
|
+
property :update_time, as: 'updateTime'
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
class Expr
|
224
|
+
# @private
|
225
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
226
|
+
property :description, as: 'description'
|
227
|
+
property :expression, as: 'expression'
|
228
|
+
property :location, as: 'location'
|
229
|
+
property :title, as: 'title'
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
class ListEndpointPoliciesResponse
|
234
|
+
# @private
|
235
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
236
|
+
collection :endpoint_policies, as: 'endpointPolicies', class: Google::Apis::NetworkservicesV1beta1::EndpointPolicy, decorator: Google::Apis::NetworkservicesV1beta1::EndpointPolicy::Representation
|
237
|
+
|
238
|
+
property :next_page_token, as: 'nextPageToken'
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
class ListLocationsResponse
|
243
|
+
# @private
|
244
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
245
|
+
collection :locations, as: 'locations', class: Google::Apis::NetworkservicesV1beta1::Location, decorator: Google::Apis::NetworkservicesV1beta1::Location::Representation
|
246
|
+
|
247
|
+
property :next_page_token, as: 'nextPageToken'
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
class ListOperationsResponse
|
252
|
+
# @private
|
253
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
254
|
+
property :next_page_token, as: 'nextPageToken'
|
255
|
+
collection :operations, as: 'operations', class: Google::Apis::NetworkservicesV1beta1::Operation, decorator: Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
256
|
+
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
class Location
|
261
|
+
# @private
|
262
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
263
|
+
property :display_name, as: 'displayName'
|
264
|
+
hash :labels, as: 'labels'
|
265
|
+
property :location_id, as: 'locationId'
|
266
|
+
hash :metadata, as: 'metadata'
|
267
|
+
property :name, as: 'name'
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
class MetadataLabelMatcher
|
272
|
+
# @private
|
273
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
274
|
+
property :metadata_label_match_criteria, as: 'metadataLabelMatchCriteria'
|
275
|
+
collection :metadata_labels, as: 'metadataLabels', class: Google::Apis::NetworkservicesV1beta1::MetadataLabels, decorator: Google::Apis::NetworkservicesV1beta1::MetadataLabels::Representation
|
276
|
+
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
class MetadataLabels
|
281
|
+
# @private
|
282
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
283
|
+
property :label_name, as: 'labelName'
|
284
|
+
property :label_value, as: 'labelValue'
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
class Operation
|
289
|
+
# @private
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
291
|
+
property :done, as: 'done'
|
292
|
+
property :error, as: 'error', class: Google::Apis::NetworkservicesV1beta1::Status, decorator: Google::Apis::NetworkservicesV1beta1::Status::Representation
|
293
|
+
|
294
|
+
hash :metadata, as: 'metadata'
|
295
|
+
property :name, as: 'name'
|
296
|
+
hash :response, as: 'response'
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
class OperationMetadata
|
301
|
+
# @private
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
303
|
+
property :api_version, as: 'apiVersion'
|
304
|
+
property :create_time, as: 'createTime'
|
305
|
+
property :end_time, as: 'endTime'
|
306
|
+
property :requested_cancellation, as: 'requestedCancellation'
|
307
|
+
property :status_message, as: 'statusMessage'
|
308
|
+
property :target, as: 'target'
|
309
|
+
property :verb, as: 'verb'
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
class Policy
|
314
|
+
# @private
|
315
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
316
|
+
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::NetworkservicesV1beta1::AuditConfig, decorator: Google::Apis::NetworkservicesV1beta1::AuditConfig::Representation
|
317
|
+
|
318
|
+
collection :bindings, as: 'bindings', class: Google::Apis::NetworkservicesV1beta1::Binding, decorator: Google::Apis::NetworkservicesV1beta1::Binding::Representation
|
319
|
+
|
320
|
+
property :etag, :base64 => true, as: 'etag'
|
321
|
+
property :version, as: 'version'
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
class SetIamPolicyRequest
|
326
|
+
# @private
|
327
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
328
|
+
property :policy, as: 'policy', class: Google::Apis::NetworkservicesV1beta1::Policy, decorator: Google::Apis::NetworkservicesV1beta1::Policy::Representation
|
329
|
+
|
330
|
+
property :update_mask, as: 'updateMask'
|
331
|
+
end
|
332
|
+
end
|
333
|
+
|
334
|
+
class Status
|
335
|
+
# @private
|
336
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
337
|
+
property :code, as: 'code'
|
338
|
+
collection :details, as: 'details'
|
339
|
+
property :message, as: 'message'
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
class TestIamPermissionsRequest
|
344
|
+
# @private
|
345
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
346
|
+
collection :permissions, as: 'permissions'
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
class TestIamPermissionsResponse
|
351
|
+
# @private
|
352
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
353
|
+
collection :permissions, as: 'permissions'
|
354
|
+
end
|
355
|
+
end
|
356
|
+
|
357
|
+
class TrafficPortSelector
|
358
|
+
# @private
|
359
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
360
|
+
collection :ports, as: 'ports'
|
361
|
+
end
|
362
|
+
end
|
363
|
+
end
|
364
|
+
end
|
365
|
+
end
|
@@ -0,0 +1,579 @@
|
|
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 NetworkservicesV1beta1
|
23
|
+
# Network Services API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/networkservices_v1beta1'
|
29
|
+
#
|
30
|
+
# Networkservices = Google::Apis::NetworkservicesV1beta1 # Alias the module
|
31
|
+
# service = Networkservices::NetworkServicesService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/networking
|
34
|
+
class NetworkServicesService < 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://networkservices.googleapis.com/', '',
|
47
|
+
client_name: 'google-apis-networkservices_v1beta1',
|
48
|
+
client_version: Google::Apis::NetworkservicesV1beta1::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::NetworkservicesV1beta1::Location] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::NetworkservicesV1beta1::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, 'v1beta1/{+name}', options)
|
74
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Location::Representation
|
75
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::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::NetworkservicesV1beta1::ListLocationsResponse] parsed result object
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
106
|
+
#
|
107
|
+
# @return [Google::Apis::NetworkservicesV1beta1::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, 'v1beta1/{+name}/locations', options)
|
114
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListLocationsResponse::Representation
|
115
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::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 EndpointPolicy in a given project and location.
|
126
|
+
# @param [String] parent
|
127
|
+
# Required. The parent resource of the EndpointPolicy. Must be in the format `
|
128
|
+
# projects/*/locations/global`.
|
129
|
+
# @param [Google::Apis::NetworkservicesV1beta1::EndpointPolicy] endpoint_policy_object
|
130
|
+
# @param [String] endpoint_policy_id
|
131
|
+
# Required. Short name of the EndpointPolicy resource to be created. E.g. "
|
132
|
+
# CustomECS".
|
133
|
+
# @param [String] fields
|
134
|
+
# Selector specifying which fields to include in a partial response.
|
135
|
+
# @param [String] quota_user
|
136
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
137
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
138
|
+
# @param [Google::Apis::RequestOptions] options
|
139
|
+
# Request-specific options
|
140
|
+
#
|
141
|
+
# @yield [result, err] Result & error if block supplied
|
142
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
143
|
+
# @yieldparam err [StandardError] error object if request failed
|
144
|
+
#
|
145
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
146
|
+
#
|
147
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
148
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
149
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
150
|
+
def create_project_location_endpoint_policy(parent, endpoint_policy_object = nil, endpoint_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
151
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/endpointPolicies', options)
|
152
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::EndpointPolicy::Representation
|
153
|
+
command.request_object = endpoint_policy_object
|
154
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
155
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
156
|
+
command.params['parent'] = parent unless parent.nil?
|
157
|
+
command.query['endpointPolicyId'] = endpoint_policy_id unless endpoint_policy_id.nil?
|
158
|
+
command.query['fields'] = fields unless fields.nil?
|
159
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
160
|
+
execute_or_queue_command(command, &block)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Deletes a single EndpointPolicy.
|
164
|
+
# @param [String] name
|
165
|
+
# Required. A name of the EndpointPolicy to delete. Must be in the format `
|
166
|
+
# projects/*/locations/global/endpointPolicies/*`.
|
167
|
+
# @param [String] fields
|
168
|
+
# Selector specifying which fields to include in a partial response.
|
169
|
+
# @param [String] quota_user
|
170
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
171
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
172
|
+
# @param [Google::Apis::RequestOptions] options
|
173
|
+
# Request-specific options
|
174
|
+
#
|
175
|
+
# @yield [result, err] Result & error if block supplied
|
176
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
177
|
+
# @yieldparam err [StandardError] error object if request failed
|
178
|
+
#
|
179
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
180
|
+
#
|
181
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
182
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
183
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
184
|
+
def delete_project_location_endpoint_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
185
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
186
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
187
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
188
|
+
command.params['name'] = name unless name.nil?
|
189
|
+
command.query['fields'] = fields unless fields.nil?
|
190
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
191
|
+
execute_or_queue_command(command, &block)
|
192
|
+
end
|
193
|
+
|
194
|
+
# Gets details of a single EndpointPolicy.
|
195
|
+
# @param [String] name
|
196
|
+
# Required. A name of the EndpointPolicy to get. Must be in the format `projects/
|
197
|
+
# */locations/global/endpointPolicies/*`.
|
198
|
+
# @param [String] fields
|
199
|
+
# Selector specifying which fields to include in a partial response.
|
200
|
+
# @param [String] quota_user
|
201
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
202
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
203
|
+
# @param [Google::Apis::RequestOptions] options
|
204
|
+
# Request-specific options
|
205
|
+
#
|
206
|
+
# @yield [result, err] Result & error if block supplied
|
207
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::EndpointPolicy] parsed result object
|
208
|
+
# @yieldparam err [StandardError] error object if request failed
|
209
|
+
#
|
210
|
+
# @return [Google::Apis::NetworkservicesV1beta1::EndpointPolicy]
|
211
|
+
#
|
212
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
213
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
214
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
215
|
+
def get_project_location_endpoint_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
216
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
217
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::EndpointPolicy::Representation
|
218
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::EndpointPolicy
|
219
|
+
command.params['name'] = name unless name.nil?
|
220
|
+
command.query['fields'] = fields unless fields.nil?
|
221
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
222
|
+
execute_or_queue_command(command, &block)
|
223
|
+
end
|
224
|
+
|
225
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
226
|
+
# resource exists and does not have a policy set.
|
227
|
+
# @param [String] resource
|
228
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
229
|
+
# operation documentation for the appropriate value for this field.
|
230
|
+
# @param [Fixnum] options_requested_policy_version
|
231
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
232
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
233
|
+
# policies with any conditional bindings must specify version 3. Policies
|
234
|
+
# without any conditional bindings may specify any valid value or leave the
|
235
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
236
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
237
|
+
# resource-policies).
|
238
|
+
# @param [String] fields
|
239
|
+
# Selector specifying which fields to include in a partial response.
|
240
|
+
# @param [String] quota_user
|
241
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
242
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
243
|
+
# @param [Google::Apis::RequestOptions] options
|
244
|
+
# Request-specific options
|
245
|
+
#
|
246
|
+
# @yield [result, err] Result & error if block supplied
|
247
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
|
248
|
+
# @yieldparam err [StandardError] error object if request failed
|
249
|
+
#
|
250
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Policy]
|
251
|
+
#
|
252
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
253
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
254
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
255
|
+
def get_project_location_endpoint_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
256
|
+
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
257
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
|
258
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
|
259
|
+
command.params['resource'] = resource unless resource.nil?
|
260
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
261
|
+
command.query['fields'] = fields unless fields.nil?
|
262
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
263
|
+
execute_or_queue_command(command, &block)
|
264
|
+
end
|
265
|
+
|
266
|
+
# Lists EndpointPolicies in a given project and location.
|
267
|
+
# @param [String] parent
|
268
|
+
# Required. The project and location from which the EndpointPolicies should be
|
269
|
+
# listed, specified in the format `projects/*/locations/global`.
|
270
|
+
# @param [Fixnum] page_size
|
271
|
+
# Maximum number of EndpointPolicies to return per call.
|
272
|
+
# @param [String] page_token
|
273
|
+
# The value returned by the last `ListEndpointPoliciesResponse` Indicates that
|
274
|
+
# this is a continuation of a prior `ListEndpointPolicies` call, and that the
|
275
|
+
# system should return the next page of data.
|
276
|
+
# @param [String] fields
|
277
|
+
# Selector specifying which fields to include in a partial response.
|
278
|
+
# @param [String] quota_user
|
279
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
280
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
281
|
+
# @param [Google::Apis::RequestOptions] options
|
282
|
+
# Request-specific options
|
283
|
+
#
|
284
|
+
# @yield [result, err] Result & error if block supplied
|
285
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListEndpointPoliciesResponse] parsed result object
|
286
|
+
# @yieldparam err [StandardError] error object if request failed
|
287
|
+
#
|
288
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ListEndpointPoliciesResponse]
|
289
|
+
#
|
290
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
291
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
292
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
293
|
+
def list_project_location_endpoint_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
294
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/endpointPolicies', options)
|
295
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListEndpointPoliciesResponse::Representation
|
296
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ListEndpointPoliciesResponse
|
297
|
+
command.params['parent'] = parent unless parent.nil?
|
298
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
299
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
300
|
+
command.query['fields'] = fields unless fields.nil?
|
301
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
302
|
+
execute_or_queue_command(command, &block)
|
303
|
+
end
|
304
|
+
|
305
|
+
# Updates the parameters of a single EndpointPolicy.
|
306
|
+
# @param [String] name
|
307
|
+
# Required. Name of the EndpointPolicy resource. It matches pattern `projects/*/
|
308
|
+
# locations/global/endpointPolicies/`.
|
309
|
+
# @param [Google::Apis::NetworkservicesV1beta1::EndpointPolicy] endpoint_policy_object
|
310
|
+
# @param [String] update_mask
|
311
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
312
|
+
# EndpointPolicy resource by the update. The fields specified in the update_mask
|
313
|
+
# are relative to the resource, not the full request. A field will be
|
314
|
+
# overwritten if it is in the mask. If the user does not provide a mask then all
|
315
|
+
# fields will be overwritten.
|
316
|
+
# @param [String] fields
|
317
|
+
# Selector specifying which fields to include in a partial response.
|
318
|
+
# @param [String] quota_user
|
319
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
320
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
321
|
+
# @param [Google::Apis::RequestOptions] options
|
322
|
+
# Request-specific options
|
323
|
+
#
|
324
|
+
# @yield [result, err] Result & error if block supplied
|
325
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
326
|
+
# @yieldparam err [StandardError] error object if request failed
|
327
|
+
#
|
328
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
329
|
+
#
|
330
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
331
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
332
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
333
|
+
def patch_project_location_endpoint_policy(name, endpoint_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
334
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
335
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::EndpointPolicy::Representation
|
336
|
+
command.request_object = endpoint_policy_object
|
337
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
338
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
339
|
+
command.params['name'] = name unless name.nil?
|
340
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
341
|
+
command.query['fields'] = fields unless fields.nil?
|
342
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
343
|
+
execute_or_queue_command(command, &block)
|
344
|
+
end
|
345
|
+
|
346
|
+
# Sets the access control policy on the specified resource. Replaces any
|
347
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
348
|
+
# PERMISSION_DENIED` errors.
|
349
|
+
# @param [String] resource
|
350
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
351
|
+
# operation documentation for the appropriate value for this field.
|
352
|
+
# @param [Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
353
|
+
# @param [String] fields
|
354
|
+
# Selector specifying which fields to include in a partial response.
|
355
|
+
# @param [String] quota_user
|
356
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
357
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
358
|
+
# @param [Google::Apis::RequestOptions] options
|
359
|
+
# Request-specific options
|
360
|
+
#
|
361
|
+
# @yield [result, err] Result & error if block supplied
|
362
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
|
363
|
+
# @yieldparam err [StandardError] error object if request failed
|
364
|
+
#
|
365
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Policy]
|
366
|
+
#
|
367
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
368
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
369
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
370
|
+
def set_endpoint_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
371
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
372
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest::Representation
|
373
|
+
command.request_object = set_iam_policy_request_object
|
374
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
|
375
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
|
376
|
+
command.params['resource'] = resource unless resource.nil?
|
377
|
+
command.query['fields'] = fields unless fields.nil?
|
378
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
379
|
+
execute_or_queue_command(command, &block)
|
380
|
+
end
|
381
|
+
|
382
|
+
# Returns permissions that a caller has on the specified resource. If the
|
383
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
384
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
385
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
386
|
+
# This operation may "fail open" without warning.
|
387
|
+
# @param [String] resource
|
388
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
389
|
+
# operation documentation for the appropriate value for this field.
|
390
|
+
# @param [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
391
|
+
# @param [String] fields
|
392
|
+
# Selector specifying which fields to include in a partial response.
|
393
|
+
# @param [String] quota_user
|
394
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
395
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
396
|
+
# @param [Google::Apis::RequestOptions] options
|
397
|
+
# Request-specific options
|
398
|
+
#
|
399
|
+
# @yield [result, err] Result & error if block supplied
|
400
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse] parsed result object
|
401
|
+
# @yieldparam err [StandardError] error object if request failed
|
402
|
+
#
|
403
|
+
# @return [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse]
|
404
|
+
#
|
405
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
406
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
407
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
408
|
+
def test_endpoint_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
409
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
410
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest::Representation
|
411
|
+
command.request_object = test_iam_permissions_request_object
|
412
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse::Representation
|
413
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse
|
414
|
+
command.params['resource'] = resource unless resource.nil?
|
415
|
+
command.query['fields'] = fields unless fields.nil?
|
416
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
417
|
+
execute_or_queue_command(command, &block)
|
418
|
+
end
|
419
|
+
|
420
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
421
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
422
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
423
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
424
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
425
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
426
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
427
|
+
# corresponding to `Code.CANCELLED`.
|
428
|
+
# @param [String] name
|
429
|
+
# The name of the operation resource to be cancelled.
|
430
|
+
# @param [Google::Apis::NetworkservicesV1beta1::CancelOperationRequest] cancel_operation_request_object
|
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::NetworkservicesV1beta1::Empty] parsed result object
|
441
|
+
# @yieldparam err [StandardError] error object if request failed
|
442
|
+
#
|
443
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Empty]
|
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 cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
449
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
450
|
+
command.request_representation = Google::Apis::NetworkservicesV1beta1::CancelOperationRequest::Representation
|
451
|
+
command.request_object = cancel_operation_request_object
|
452
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Empty::Representation
|
453
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Empty
|
454
|
+
command.params['name'] = name unless name.nil?
|
455
|
+
command.query['fields'] = fields unless fields.nil?
|
456
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
457
|
+
execute_or_queue_command(command, &block)
|
458
|
+
end
|
459
|
+
|
460
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
461
|
+
# longer interested in the operation result. It does not cancel the operation.
|
462
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
463
|
+
# UNIMPLEMENTED`.
|
464
|
+
# @param [String] name
|
465
|
+
# The name of the operation resource to be deleted.
|
466
|
+
# @param [String] fields
|
467
|
+
# Selector specifying which fields to include in a partial response.
|
468
|
+
# @param [String] quota_user
|
469
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
470
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
471
|
+
# @param [Google::Apis::RequestOptions] options
|
472
|
+
# Request-specific options
|
473
|
+
#
|
474
|
+
# @yield [result, err] Result & error if block supplied
|
475
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Empty] parsed result object
|
476
|
+
# @yieldparam err [StandardError] error object if request failed
|
477
|
+
#
|
478
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Empty]
|
479
|
+
#
|
480
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
481
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
482
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
483
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
484
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
485
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Empty::Representation
|
486
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Empty
|
487
|
+
command.params['name'] = name unless name.nil?
|
488
|
+
command.query['fields'] = fields unless fields.nil?
|
489
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
490
|
+
execute_or_queue_command(command, &block)
|
491
|
+
end
|
492
|
+
|
493
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
494
|
+
# to poll the operation result at intervals as recommended by the API service.
|
495
|
+
# @param [String] name
|
496
|
+
# The name of the operation resource.
|
497
|
+
# @param [String] fields
|
498
|
+
# Selector specifying which fields to include in a partial response.
|
499
|
+
# @param [String] quota_user
|
500
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
501
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
502
|
+
# @param [Google::Apis::RequestOptions] options
|
503
|
+
# Request-specific options
|
504
|
+
#
|
505
|
+
# @yield [result, err] Result & error if block supplied
|
506
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
|
507
|
+
# @yieldparam err [StandardError] error object if request failed
|
508
|
+
#
|
509
|
+
# @return [Google::Apis::NetworkservicesV1beta1::Operation]
|
510
|
+
#
|
511
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
512
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
513
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
514
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
515
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
516
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
|
517
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
|
518
|
+
command.params['name'] = name unless name.nil?
|
519
|
+
command.query['fields'] = fields unless fields.nil?
|
520
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
521
|
+
execute_or_queue_command(command, &block)
|
522
|
+
end
|
523
|
+
|
524
|
+
# Lists operations that match the specified filter in the request. If the server
|
525
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
526
|
+
# binding allows API services to override the binding to use different resource
|
527
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
528
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
529
|
+
# service configuration. For backwards compatibility, the default name includes
|
530
|
+
# the operations collection id, however overriding users must ensure the name
|
531
|
+
# binding is the parent resource, without the operations collection id.
|
532
|
+
# @param [String] name
|
533
|
+
# The name of the operation's parent resource.
|
534
|
+
# @param [String] filter
|
535
|
+
# The standard list filter.
|
536
|
+
# @param [Fixnum] page_size
|
537
|
+
# The standard list page size.
|
538
|
+
# @param [String] page_token
|
539
|
+
# The standard list page token.
|
540
|
+
# @param [String] fields
|
541
|
+
# Selector specifying which fields to include in a partial response.
|
542
|
+
# @param [String] quota_user
|
543
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
544
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
545
|
+
# @param [Google::Apis::RequestOptions] options
|
546
|
+
# Request-specific options
|
547
|
+
#
|
548
|
+
# @yield [result, err] Result & error if block supplied
|
549
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListOperationsResponse] parsed result object
|
550
|
+
# @yieldparam err [StandardError] error object if request failed
|
551
|
+
#
|
552
|
+
# @return [Google::Apis::NetworkservicesV1beta1::ListOperationsResponse]
|
553
|
+
#
|
554
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
555
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
556
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
557
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
558
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
559
|
+
command.response_representation = Google::Apis::NetworkservicesV1beta1::ListOperationsResponse::Representation
|
560
|
+
command.response_class = Google::Apis::NetworkservicesV1beta1::ListOperationsResponse
|
561
|
+
command.params['name'] = name unless name.nil?
|
562
|
+
command.query['filter'] = filter unless filter.nil?
|
563
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
564
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
565
|
+
command.query['fields'] = fields unless fields.nil?
|
566
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
567
|
+
execute_or_queue_command(command, &block)
|
568
|
+
end
|
569
|
+
|
570
|
+
protected
|
571
|
+
|
572
|
+
def apply_command_defaults(command)
|
573
|
+
command.query['key'] = key unless key.nil?
|
574
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
575
|
+
end
|
576
|
+
end
|
577
|
+
end
|
578
|
+
end
|
579
|
+
end
|