google-apis-networkservices_v1 0.1.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/networkservices_v1/classes.rb +231 -0
- data/lib/google/apis/networkservices_v1/gem_version.rb +2 -2
- data/lib/google/apis/networkservices_v1/representations.rb +96 -0
- data/lib/google/apis/networkservices_v1/service.rb +295 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cae2d23e57bc5c7e3c490b0f69345682011a1a689ef2cbe9054afa7865aed01
|
4
|
+
data.tar.gz: 45d34c0818ffb42ca7cb7cf9947b40013bb1e28061579c3cfb27ae4a3c96cfe0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f812a361ce248cde7efecd29f14a616aec6351a7a684e01b3fbedfb1964d5a7655bd57640d81b6b369792efdeac5e6a889eed957c914cd5c70fc355d707e6bc2
|
7
|
+
data.tar.gz: 174235bfdf04071b1a6f0bb16cf502108c1531060bb30610036e1e21ffbbc5c8d724b49a1dbc2a33863b65591e2d17ebe9f25098c664894d342b2f90805e745f
|
data/CHANGELOG.md
CHANGED
@@ -194,6 +194,189 @@ module Google
|
|
194
194
|
end
|
195
195
|
end
|
196
196
|
|
197
|
+
# A definition of a matcher that selects endpoints to which the policies should
|
198
|
+
# be applied.
|
199
|
+
class EndpointMatcher
|
200
|
+
include Google::Apis::Core::Hashable
|
201
|
+
|
202
|
+
# The matcher that is based on node metadata presented by xDS clients.
|
203
|
+
# Corresponds to the JSON property `metadataLabelMatcher`
|
204
|
+
# @return [Google::Apis::NetworkservicesV1::EndpointMatcherMetadataLabelMatcher]
|
205
|
+
attr_accessor :metadata_label_matcher
|
206
|
+
|
207
|
+
def initialize(**args)
|
208
|
+
update!(**args)
|
209
|
+
end
|
210
|
+
|
211
|
+
# Update properties of this object
|
212
|
+
def update!(**args)
|
213
|
+
@metadata_label_matcher = args[:metadata_label_matcher] if args.key?(:metadata_label_matcher)
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
# The matcher that is based on node metadata presented by xDS clients.
|
218
|
+
class EndpointMatcherMetadataLabelMatcher
|
219
|
+
include Google::Apis::Core::Hashable
|
220
|
+
|
221
|
+
# Specifies how matching should be done. Supported values are: MATCH_ANY: At
|
222
|
+
# least one of the Labels specified in the matcher should match the metadata
|
223
|
+
# presented by xDS client. MATCH_ALL: The metadata presented by the xDS client
|
224
|
+
# should contain all of the labels specified here. The selection is determined
|
225
|
+
# based on the best match. For example, suppose there are three EndpointPolicy
|
226
|
+
# resources P1, P2 and P3 and if P1 has a the matcher as MATCH_ANY , P2 has
|
227
|
+
# MATCH_ALL , and P3 has MATCH_ALL . If a client with label connects, the config
|
228
|
+
# from P1 will be selected. If a client with label connects, the config from P2
|
229
|
+
# will be selected. If a client with label connects, the config from P3 will be
|
230
|
+
# selected. If there is more than one best match, (for example, if a config P4
|
231
|
+
# with selector exists and if a client with label connects), an error will be
|
232
|
+
# thrown.
|
233
|
+
# Corresponds to the JSON property `metadataLabelMatchCriteria`
|
234
|
+
# @return [String]
|
235
|
+
attr_accessor :metadata_label_match_criteria
|
236
|
+
|
237
|
+
# The list of label value pairs that must match labels in the provided metadata
|
238
|
+
# based on filterMatchCriteria This list can have at most 64 entries. The list
|
239
|
+
# can be empty if the match criteria is MATCH_ANY, to specify a wildcard match (
|
240
|
+
# i.e this matches any client).
|
241
|
+
# Corresponds to the JSON property `metadataLabels`
|
242
|
+
# @return [Array<Google::Apis::NetworkservicesV1::EndpointMatcherMetadataLabelMatcherMetadataLabels>]
|
243
|
+
attr_accessor :metadata_labels
|
244
|
+
|
245
|
+
def initialize(**args)
|
246
|
+
update!(**args)
|
247
|
+
end
|
248
|
+
|
249
|
+
# Update properties of this object
|
250
|
+
def update!(**args)
|
251
|
+
@metadata_label_match_criteria = args[:metadata_label_match_criteria] if args.key?(:metadata_label_match_criteria)
|
252
|
+
@metadata_labels = args[:metadata_labels] if args.key?(:metadata_labels)
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
# Defines a name-pair value for a single label.
|
257
|
+
class EndpointMatcherMetadataLabelMatcherMetadataLabels
|
258
|
+
include Google::Apis::Core::Hashable
|
259
|
+
|
260
|
+
# Required. Label name presented as key in xDS Node Metadata.
|
261
|
+
# Corresponds to the JSON property `labelName`
|
262
|
+
# @return [String]
|
263
|
+
attr_accessor :label_name
|
264
|
+
|
265
|
+
# Required. Label value presented as value corresponding to the above key, in
|
266
|
+
# xDS Node Metadata.
|
267
|
+
# Corresponds to the JSON property `labelValue`
|
268
|
+
# @return [String]
|
269
|
+
attr_accessor :label_value
|
270
|
+
|
271
|
+
def initialize(**args)
|
272
|
+
update!(**args)
|
273
|
+
end
|
274
|
+
|
275
|
+
# Update properties of this object
|
276
|
+
def update!(**args)
|
277
|
+
@label_name = args[:label_name] if args.key?(:label_name)
|
278
|
+
@label_value = args[:label_value] if args.key?(:label_value)
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
# EndpointPolicy is a resource that helps apply desired configuration on the
|
283
|
+
# endpoints that match specific criteria. For example, this resource can be used
|
284
|
+
# to apply "authentication config" an all endpoints that serve on port 8080.
|
285
|
+
class EndpointPolicy
|
286
|
+
include Google::Apis::Core::Hashable
|
287
|
+
|
288
|
+
# Optional. This field specifies the URL of AuthorizationPolicy resource that
|
289
|
+
# applies authorization policies to the inbound traffic at the matched endpoints.
|
290
|
+
# Refer to Authorization. If this field is not specified, authorization is
|
291
|
+
# disabled(no authz checks) for this endpoint. Applicable only when
|
292
|
+
# EndpointPolicyType is SIDECAR_PROXY.
|
293
|
+
# Corresponds to the JSON property `authorizationPolicy`
|
294
|
+
# @return [String]
|
295
|
+
attr_accessor :authorization_policy
|
296
|
+
|
297
|
+
# Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can
|
298
|
+
# be set to specify the authentication for traffic from the proxy to the actual
|
299
|
+
# endpoints. More specifically, it is applied to the outgoing traffic from the
|
300
|
+
# proxy to the endpoint. This is typically used for sidecar model where the
|
301
|
+
# proxy identifies itself as endpoint to the control plane, with the connection
|
302
|
+
# between sidecar and endpoint requiring authentication. If this field is not
|
303
|
+
# set, authentication is disabled(open). Applicable only when EndpointPolicyType
|
304
|
+
# is SIDECAR_PROXY.
|
305
|
+
# Corresponds to the JSON property `clientTlsPolicy`
|
306
|
+
# @return [String]
|
307
|
+
attr_accessor :client_tls_policy
|
308
|
+
|
309
|
+
# Output only. The timestamp when the resource was created.
|
310
|
+
# Corresponds to the JSON property `createTime`
|
311
|
+
# @return [String]
|
312
|
+
attr_accessor :create_time
|
313
|
+
|
314
|
+
# Optional. A free-text description of the resource. Max length 1024 characters.
|
315
|
+
# Corresponds to the JSON property `description`
|
316
|
+
# @return [String]
|
317
|
+
attr_accessor :description
|
318
|
+
|
319
|
+
# A definition of a matcher that selects endpoints to which the policies should
|
320
|
+
# be applied.
|
321
|
+
# Corresponds to the JSON property `endpointMatcher`
|
322
|
+
# @return [Google::Apis::NetworkservicesV1::EndpointMatcher]
|
323
|
+
attr_accessor :endpoint_matcher
|
324
|
+
|
325
|
+
# Optional. Set of label tags associated with the EndpointPolicy resource.
|
326
|
+
# Corresponds to the JSON property `labels`
|
327
|
+
# @return [Hash<String,String>]
|
328
|
+
attr_accessor :labels
|
329
|
+
|
330
|
+
# Required. Name of the EndpointPolicy resource. It matches pattern `projects/`
|
331
|
+
# project`/locations/global/endpointPolicies/`endpoint_policy``.
|
332
|
+
# Corresponds to the JSON property `name`
|
333
|
+
# @return [String]
|
334
|
+
attr_accessor :name
|
335
|
+
|
336
|
+
# Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used
|
337
|
+
# to determine the authentication policy to be applied to terminate the inbound
|
338
|
+
# traffic at the identified backends. If this field is not set, authentication
|
339
|
+
# is disabled(open) for this endpoint.
|
340
|
+
# Corresponds to the JSON property `serverTlsPolicy`
|
341
|
+
# @return [String]
|
342
|
+
attr_accessor :server_tls_policy
|
343
|
+
|
344
|
+
# Specification of a port-based selector.
|
345
|
+
# Corresponds to the JSON property `trafficPortSelector`
|
346
|
+
# @return [Google::Apis::NetworkservicesV1::TrafficPortSelector]
|
347
|
+
attr_accessor :traffic_port_selector
|
348
|
+
|
349
|
+
# Required. The type of endpoint policy. This is primarily used to validate the
|
350
|
+
# configuration.
|
351
|
+
# Corresponds to the JSON property `type`
|
352
|
+
# @return [String]
|
353
|
+
attr_accessor :type
|
354
|
+
|
355
|
+
# Output only. The timestamp when the resource was updated.
|
356
|
+
# Corresponds to the JSON property `updateTime`
|
357
|
+
# @return [String]
|
358
|
+
attr_accessor :update_time
|
359
|
+
|
360
|
+
def initialize(**args)
|
361
|
+
update!(**args)
|
362
|
+
end
|
363
|
+
|
364
|
+
# Update properties of this object
|
365
|
+
def update!(**args)
|
366
|
+
@authorization_policy = args[:authorization_policy] if args.key?(:authorization_policy)
|
367
|
+
@client_tls_policy = args[:client_tls_policy] if args.key?(:client_tls_policy)
|
368
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
369
|
+
@description = args[:description] if args.key?(:description)
|
370
|
+
@endpoint_matcher = args[:endpoint_matcher] if args.key?(:endpoint_matcher)
|
371
|
+
@labels = args[:labels] if args.key?(:labels)
|
372
|
+
@name = args[:name] if args.key?(:name)
|
373
|
+
@server_tls_policy = args[:server_tls_policy] if args.key?(:server_tls_policy)
|
374
|
+
@traffic_port_selector = args[:traffic_port_selector] if args.key?(:traffic_port_selector)
|
375
|
+
@type = args[:type] if args.key?(:type)
|
376
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
377
|
+
end
|
378
|
+
end
|
379
|
+
|
197
380
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
198
381
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
199
382
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -248,6 +431,33 @@ module Google
|
|
248
431
|
end
|
249
432
|
end
|
250
433
|
|
434
|
+
# Response returned by the ListEndpointPolicies method.
|
435
|
+
class ListEndpointPoliciesResponse
|
436
|
+
include Google::Apis::Core::Hashable
|
437
|
+
|
438
|
+
# List of EndpointPolicy resources.
|
439
|
+
# Corresponds to the JSON property `endpointPolicies`
|
440
|
+
# @return [Array<Google::Apis::NetworkservicesV1::EndpointPolicy>]
|
441
|
+
attr_accessor :endpoint_policies
|
442
|
+
|
443
|
+
# If there might be more results than those appearing in this response, then `
|
444
|
+
# next_page_token` is included. To get the next set of results, call this method
|
445
|
+
# again using the value of `next_page_token` as `page_token`.
|
446
|
+
# Corresponds to the JSON property `nextPageToken`
|
447
|
+
# @return [String]
|
448
|
+
attr_accessor :next_page_token
|
449
|
+
|
450
|
+
def initialize(**args)
|
451
|
+
update!(**args)
|
452
|
+
end
|
453
|
+
|
454
|
+
# Update properties of this object
|
455
|
+
def update!(**args)
|
456
|
+
@endpoint_policies = args[:endpoint_policies] if args.key?(:endpoint_policies)
|
457
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
251
461
|
# The response message for Locations.ListLocations.
|
252
462
|
class ListLocationsResponse
|
253
463
|
include Google::Apis::Core::Hashable
|
@@ -687,6 +897,27 @@ module Google
|
|
687
897
|
@permissions = args[:permissions] if args.key?(:permissions)
|
688
898
|
end
|
689
899
|
end
|
900
|
+
|
901
|
+
# Specification of a port-based selector.
|
902
|
+
class TrafficPortSelector
|
903
|
+
include Google::Apis::Core::Hashable
|
904
|
+
|
905
|
+
# Optional. A list of ports. Can be port numbers or port range (example, [80-90]
|
906
|
+
# specifies all ports from 80 to 90, including 80 and 90) or named ports or * to
|
907
|
+
# specify all ports. If the list is empty, all ports are selected.
|
908
|
+
# Corresponds to the JSON property `ports`
|
909
|
+
# @return [Array<String>]
|
910
|
+
attr_accessor :ports
|
911
|
+
|
912
|
+
def initialize(**args)
|
913
|
+
update!(**args)
|
914
|
+
end
|
915
|
+
|
916
|
+
# Update properties of this object
|
917
|
+
def update!(**args)
|
918
|
+
@ports = args[:ports] if args.key?(:ports)
|
919
|
+
end
|
920
|
+
end
|
690
921
|
end
|
691
922
|
end
|
692
923
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NetworkservicesV1
|
18
18
|
# Version of the google-apis-networkservices_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210922"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,12 +52,42 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class EndpointMatcher
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class EndpointMatcherMetadataLabelMatcher
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class EndpointMatcherMetadataLabelMatcherMetadataLabels
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class EndpointPolicy
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
55
79
|
class Expr
|
56
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
81
|
|
58
82
|
include Google::Apis::Core::JsonObjectSupport
|
59
83
|
end
|
60
84
|
|
85
|
+
class ListEndpointPoliciesResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
61
91
|
class ListLocationsResponse
|
62
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
93
|
|
@@ -118,6 +148,12 @@ module Google
|
|
118
148
|
include Google::Apis::Core::JsonObjectSupport
|
119
149
|
end
|
120
150
|
|
151
|
+
class TrafficPortSelector
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
121
157
|
class AuditConfig
|
122
158
|
# @private
|
123
159
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -157,6 +193,50 @@ module Google
|
|
157
193
|
end
|
158
194
|
end
|
159
195
|
|
196
|
+
class EndpointMatcher
|
197
|
+
# @private
|
198
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
+
property :metadata_label_matcher, as: 'metadataLabelMatcher', class: Google::Apis::NetworkservicesV1::EndpointMatcherMetadataLabelMatcher, decorator: Google::Apis::NetworkservicesV1::EndpointMatcherMetadataLabelMatcher::Representation
|
200
|
+
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
class EndpointMatcherMetadataLabelMatcher
|
205
|
+
# @private
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
207
|
+
property :metadata_label_match_criteria, as: 'metadataLabelMatchCriteria'
|
208
|
+
collection :metadata_labels, as: 'metadataLabels', class: Google::Apis::NetworkservicesV1::EndpointMatcherMetadataLabelMatcherMetadataLabels, decorator: Google::Apis::NetworkservicesV1::EndpointMatcherMetadataLabelMatcherMetadataLabels::Representation
|
209
|
+
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
class EndpointMatcherMetadataLabelMatcherMetadataLabels
|
214
|
+
# @private
|
215
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
216
|
+
property :label_name, as: 'labelName'
|
217
|
+
property :label_value, as: 'labelValue'
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
class EndpointPolicy
|
222
|
+
# @private
|
223
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
224
|
+
property :authorization_policy, as: 'authorizationPolicy'
|
225
|
+
property :client_tls_policy, as: 'clientTlsPolicy'
|
226
|
+
property :create_time, as: 'createTime'
|
227
|
+
property :description, as: 'description'
|
228
|
+
property :endpoint_matcher, as: 'endpointMatcher', class: Google::Apis::NetworkservicesV1::EndpointMatcher, decorator: Google::Apis::NetworkservicesV1::EndpointMatcher::Representation
|
229
|
+
|
230
|
+
hash :labels, as: 'labels'
|
231
|
+
property :name, as: 'name'
|
232
|
+
property :server_tls_policy, as: 'serverTlsPolicy'
|
233
|
+
property :traffic_port_selector, as: 'trafficPortSelector', class: Google::Apis::NetworkservicesV1::TrafficPortSelector, decorator: Google::Apis::NetworkservicesV1::TrafficPortSelector::Representation
|
234
|
+
|
235
|
+
property :type, as: 'type'
|
236
|
+
property :update_time, as: 'updateTime'
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
160
240
|
class Expr
|
161
241
|
# @private
|
162
242
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -167,6 +247,15 @@ module Google
|
|
167
247
|
end
|
168
248
|
end
|
169
249
|
|
250
|
+
class ListEndpointPoliciesResponse
|
251
|
+
# @private
|
252
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
253
|
+
collection :endpoint_policies, as: 'endpointPolicies', class: Google::Apis::NetworkservicesV1::EndpointPolicy, decorator: Google::Apis::NetworkservicesV1::EndpointPolicy::Representation
|
254
|
+
|
255
|
+
property :next_page_token, as: 'nextPageToken'
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
170
259
|
class ListLocationsResponse
|
171
260
|
# @private
|
172
261
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -264,6 +353,13 @@ module Google
|
|
264
353
|
collection :permissions, as: 'permissions'
|
265
354
|
end
|
266
355
|
end
|
356
|
+
|
357
|
+
class TrafficPortSelector
|
358
|
+
# @private
|
359
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
360
|
+
collection :ports, as: 'ports'
|
361
|
+
end
|
362
|
+
end
|
267
363
|
end
|
268
364
|
end
|
269
365
|
end
|
@@ -467,6 +467,301 @@ module Google
|
|
467
467
|
execute_or_queue_command(command, &block)
|
468
468
|
end
|
469
469
|
|
470
|
+
# Creates a new EndpointPolicy in a given project and location.
|
471
|
+
# @param [String] parent
|
472
|
+
# Required. The parent resource of the EndpointPolicy. Must be in the format `
|
473
|
+
# projects/*/locations/global`.
|
474
|
+
# @param [Google::Apis::NetworkservicesV1::EndpointPolicy] endpoint_policy_object
|
475
|
+
# @param [String] endpoint_policy_id
|
476
|
+
# Required. Short name of the EndpointPolicy resource to be created. E.g. "
|
477
|
+
# CustomECS".
|
478
|
+
# @param [String] fields
|
479
|
+
# Selector specifying which fields to include in a partial response.
|
480
|
+
# @param [String] quota_user
|
481
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
482
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
483
|
+
# @param [Google::Apis::RequestOptions] options
|
484
|
+
# Request-specific options
|
485
|
+
#
|
486
|
+
# @yield [result, err] Result & error if block supplied
|
487
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
488
|
+
# @yieldparam err [StandardError] error object if request failed
|
489
|
+
#
|
490
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
491
|
+
#
|
492
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
493
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
494
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
495
|
+
def create_project_location_endpoint_policy(parent, endpoint_policy_object = nil, endpoint_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
496
|
+
command = make_simple_command(:post, 'v1/{+parent}/endpointPolicies', options)
|
497
|
+
command.request_representation = Google::Apis::NetworkservicesV1::EndpointPolicy::Representation
|
498
|
+
command.request_object = endpoint_policy_object
|
499
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
500
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
501
|
+
command.params['parent'] = parent unless parent.nil?
|
502
|
+
command.query['endpointPolicyId'] = endpoint_policy_id unless endpoint_policy_id.nil?
|
503
|
+
command.query['fields'] = fields unless fields.nil?
|
504
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
505
|
+
execute_or_queue_command(command, &block)
|
506
|
+
end
|
507
|
+
|
508
|
+
# Deletes a single EndpointPolicy.
|
509
|
+
# @param [String] name
|
510
|
+
# Required. A name of the EndpointPolicy to delete. Must be in the format `
|
511
|
+
# projects/*/locations/global/endpointPolicies/*`.
|
512
|
+
# @param [String] fields
|
513
|
+
# Selector specifying which fields to include in a partial response.
|
514
|
+
# @param [String] quota_user
|
515
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
516
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
517
|
+
# @param [Google::Apis::RequestOptions] options
|
518
|
+
# Request-specific options
|
519
|
+
#
|
520
|
+
# @yield [result, err] Result & error if block supplied
|
521
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
522
|
+
# @yieldparam err [StandardError] error object if request failed
|
523
|
+
#
|
524
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
525
|
+
#
|
526
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
527
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
528
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
529
|
+
def delete_project_location_endpoint_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
530
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
531
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
532
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
533
|
+
command.params['name'] = name unless name.nil?
|
534
|
+
command.query['fields'] = fields unless fields.nil?
|
535
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
536
|
+
execute_or_queue_command(command, &block)
|
537
|
+
end
|
538
|
+
|
539
|
+
# Gets details of a single EndpointPolicy.
|
540
|
+
# @param [String] name
|
541
|
+
# Required. A name of the EndpointPolicy to get. Must be in the format `projects/
|
542
|
+
# */locations/global/endpointPolicies/*`.
|
543
|
+
# @param [String] fields
|
544
|
+
# Selector specifying which fields to include in a partial response.
|
545
|
+
# @param [String] quota_user
|
546
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
547
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
548
|
+
# @param [Google::Apis::RequestOptions] options
|
549
|
+
# Request-specific options
|
550
|
+
#
|
551
|
+
# @yield [result, err] Result & error if block supplied
|
552
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::EndpointPolicy] parsed result object
|
553
|
+
# @yieldparam err [StandardError] error object if request failed
|
554
|
+
#
|
555
|
+
# @return [Google::Apis::NetworkservicesV1::EndpointPolicy]
|
556
|
+
#
|
557
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
558
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
559
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
560
|
+
def get_project_location_endpoint_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
561
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
562
|
+
command.response_representation = Google::Apis::NetworkservicesV1::EndpointPolicy::Representation
|
563
|
+
command.response_class = Google::Apis::NetworkservicesV1::EndpointPolicy
|
564
|
+
command.params['name'] = name unless name.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
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
571
|
+
# resource exists and does not have a policy set.
|
572
|
+
# @param [String] resource
|
573
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
574
|
+
# operation documentation for the appropriate value for this field.
|
575
|
+
# @param [Fixnum] options_requested_policy_version
|
576
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
577
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
578
|
+
# policies with any conditional bindings must specify version 3. Policies
|
579
|
+
# without any conditional bindings may specify any valid value or leave the
|
580
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
581
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
582
|
+
# resource-policies).
|
583
|
+
# @param [String] fields
|
584
|
+
# Selector specifying which fields to include in a partial response.
|
585
|
+
# @param [String] quota_user
|
586
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
587
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
588
|
+
# @param [Google::Apis::RequestOptions] options
|
589
|
+
# Request-specific options
|
590
|
+
#
|
591
|
+
# @yield [result, err] Result & error if block supplied
|
592
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
|
593
|
+
# @yieldparam err [StandardError] error object if request failed
|
594
|
+
#
|
595
|
+
# @return [Google::Apis::NetworkservicesV1::Policy]
|
596
|
+
#
|
597
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
598
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
599
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
600
|
+
def get_project_location_endpoint_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
601
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
602
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
|
603
|
+
command.response_class = Google::Apis::NetworkservicesV1::Policy
|
604
|
+
command.params['resource'] = resource unless resource.nil?
|
605
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
606
|
+
command.query['fields'] = fields unless fields.nil?
|
607
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
608
|
+
execute_or_queue_command(command, &block)
|
609
|
+
end
|
610
|
+
|
611
|
+
# Lists EndpointPolicies in a given project and location.
|
612
|
+
# @param [String] parent
|
613
|
+
# Required. The project and location from which the EndpointPolicies should be
|
614
|
+
# listed, specified in the format `projects/*/locations/global`.
|
615
|
+
# @param [Fixnum] page_size
|
616
|
+
# Maximum number of EndpointPolicies to return per call.
|
617
|
+
# @param [String] page_token
|
618
|
+
# The value returned by the last `ListEndpointPoliciesResponse` Indicates that
|
619
|
+
# this is a continuation of a prior `ListEndpointPolicies` call, and that the
|
620
|
+
# system should return the next page of data.
|
621
|
+
# @param [String] fields
|
622
|
+
# Selector specifying which fields to include in a partial response.
|
623
|
+
# @param [String] quota_user
|
624
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
625
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
626
|
+
# @param [Google::Apis::RequestOptions] options
|
627
|
+
# Request-specific options
|
628
|
+
#
|
629
|
+
# @yield [result, err] Result & error if block supplied
|
630
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::ListEndpointPoliciesResponse] parsed result object
|
631
|
+
# @yieldparam err [StandardError] error object if request failed
|
632
|
+
#
|
633
|
+
# @return [Google::Apis::NetworkservicesV1::ListEndpointPoliciesResponse]
|
634
|
+
#
|
635
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
636
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
637
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
638
|
+
def list_project_location_endpoint_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
639
|
+
command = make_simple_command(:get, 'v1/{+parent}/endpointPolicies', options)
|
640
|
+
command.response_representation = Google::Apis::NetworkservicesV1::ListEndpointPoliciesResponse::Representation
|
641
|
+
command.response_class = Google::Apis::NetworkservicesV1::ListEndpointPoliciesResponse
|
642
|
+
command.params['parent'] = parent unless parent.nil?
|
643
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
644
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
645
|
+
command.query['fields'] = fields unless fields.nil?
|
646
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
647
|
+
execute_or_queue_command(command, &block)
|
648
|
+
end
|
649
|
+
|
650
|
+
# Updates the parameters of a single EndpointPolicy.
|
651
|
+
# @param [String] name
|
652
|
+
# Required. Name of the EndpointPolicy resource. It matches pattern `projects/`
|
653
|
+
# project`/locations/global/endpointPolicies/`endpoint_policy``.
|
654
|
+
# @param [Google::Apis::NetworkservicesV1::EndpointPolicy] endpoint_policy_object
|
655
|
+
# @param [String] update_mask
|
656
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
657
|
+
# EndpointPolicy resource by the update. The fields specified in the update_mask
|
658
|
+
# are relative to the resource, not the full request. A field will be
|
659
|
+
# overwritten if it is in the mask. If the user does not provide a mask then all
|
660
|
+
# fields will be overwritten.
|
661
|
+
# @param [String] fields
|
662
|
+
# Selector specifying which fields to include in a partial response.
|
663
|
+
# @param [String] quota_user
|
664
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
665
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
666
|
+
# @param [Google::Apis::RequestOptions] options
|
667
|
+
# Request-specific options
|
668
|
+
#
|
669
|
+
# @yield [result, err] Result & error if block supplied
|
670
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
|
671
|
+
# @yieldparam err [StandardError] error object if request failed
|
672
|
+
#
|
673
|
+
# @return [Google::Apis::NetworkservicesV1::Operation]
|
674
|
+
#
|
675
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
676
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
677
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
678
|
+
def patch_project_location_endpoint_policy(name, endpoint_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
679
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
680
|
+
command.request_representation = Google::Apis::NetworkservicesV1::EndpointPolicy::Representation
|
681
|
+
command.request_object = endpoint_policy_object
|
682
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
|
683
|
+
command.response_class = Google::Apis::NetworkservicesV1::Operation
|
684
|
+
command.params['name'] = name unless name.nil?
|
685
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
686
|
+
command.query['fields'] = fields unless fields.nil?
|
687
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
688
|
+
execute_or_queue_command(command, &block)
|
689
|
+
end
|
690
|
+
|
691
|
+
# Sets the access control policy on the specified resource. Replaces any
|
692
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
693
|
+
# PERMISSION_DENIED` errors.
|
694
|
+
# @param [String] resource
|
695
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
696
|
+
# operation documentation for the appropriate value for this field.
|
697
|
+
# @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
|
698
|
+
# @param [String] fields
|
699
|
+
# Selector specifying which fields to include in a partial response.
|
700
|
+
# @param [String] quota_user
|
701
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
702
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
703
|
+
# @param [Google::Apis::RequestOptions] options
|
704
|
+
# Request-specific options
|
705
|
+
#
|
706
|
+
# @yield [result, err] Result & error if block supplied
|
707
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
|
708
|
+
# @yieldparam err [StandardError] error object if request failed
|
709
|
+
#
|
710
|
+
# @return [Google::Apis::NetworkservicesV1::Policy]
|
711
|
+
#
|
712
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
713
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
714
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
715
|
+
def set_endpoint_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
716
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
717
|
+
command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
|
718
|
+
command.request_object = set_iam_policy_request_object
|
719
|
+
command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
|
720
|
+
command.response_class = Google::Apis::NetworkservicesV1::Policy
|
721
|
+
command.params['resource'] = resource unless resource.nil?
|
722
|
+
command.query['fields'] = fields unless fields.nil?
|
723
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
724
|
+
execute_or_queue_command(command, &block)
|
725
|
+
end
|
726
|
+
|
727
|
+
# Returns permissions that a caller has on the specified resource. If the
|
728
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
729
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
730
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
731
|
+
# This operation may "fail open" without warning.
|
732
|
+
# @param [String] resource
|
733
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
734
|
+
# operation documentation for the appropriate value for this field.
|
735
|
+
# @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
736
|
+
# @param [String] fields
|
737
|
+
# Selector specifying which fields to include in a partial response.
|
738
|
+
# @param [String] quota_user
|
739
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
740
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
741
|
+
# @param [Google::Apis::RequestOptions] options
|
742
|
+
# Request-specific options
|
743
|
+
#
|
744
|
+
# @yield [result, err] Result & error if block supplied
|
745
|
+
# @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
|
746
|
+
# @yieldparam err [StandardError] error object if request failed
|
747
|
+
#
|
748
|
+
# @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
|
749
|
+
#
|
750
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
751
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
752
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
753
|
+
def test_endpoint_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
754
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
755
|
+
command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
|
756
|
+
command.request_object = test_iam_permissions_request_object
|
757
|
+
command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
|
758
|
+
command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
|
759
|
+
command.params['resource'] = resource unless resource.nil?
|
760
|
+
command.query['fields'] = fields unless fields.nil?
|
761
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
762
|
+
execute_or_queue_command(command, &block)
|
763
|
+
end
|
764
|
+
|
470
765
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
471
766
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
472
767
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-networkservices_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-networkservices_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1/v0.2.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-networkservices_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|