google-apis-networkservices_v1 0.1.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e23baee1fc253cc49aeeac5f21d53e131b26d6d4616a2c3ac77c0808513ad255
4
- data.tar.gz: 7c8a75b2976a02e7680b0d407b4e49e6811e877a45d8e414ce8fc261cf755503
3
+ metadata.gz: 918d6dac4c679997b40dd643918aca45774f3dbd08e07cd9a2fea5399a74ad32
4
+ data.tar.gz: 42d1fb8061152e0717826bd6e20241476f7bcbe7cbdaaad6d5a2142a815cdd97
5
5
  SHA512:
6
- metadata.gz: 91fc05ef0b21d728b9cc76930dc1e02cfc79dc0e0017330317aa0023db425fdc467c83b15d4d78e94931a30e2f7a470e42b821485163dce747e4869cd7b9d991
7
- data.tar.gz: e6e8dafcd4c4a580d7ab9ea1f153cc9ff70b4ae47de1d3fbae5691f16daab550166b5d2a1cadebba750684eff5c331b069cdbfcf33691aee2b2abc7d4c9568bc
6
+ metadata.gz: 34b1ad98b7063fc32a791d846442522991fa4ba2af664dd31ceb627bdb9f3cc0e8de9b574cb01356f0f3c2ab78f7b2ebc9807e5a706dc2287996f66f98b23798
7
+ data.tar.gz: e72b72d53d9f477dec5414880b119b4f42e9a8e784eb3739e9fb8073bf694c359a582013add0ba70a4609a6c8273a82e672cf8be00063d34eb1e307fb7d5e591
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-networkservices_v1
2
2
 
3
+ ### v0.5.0 (2021-11-14)
4
+
5
+ * Regenerated from discovery document revision 20211109
6
+
7
+ ### v0.4.0 (2021-10-31)
8
+
9
+ * Regenerated from discovery document revision 20211019
10
+
11
+ ### v0.3.0 (2021-10-21)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.2.0 (2021-10-05)
16
+
17
+ * Regenerated from discovery document revision 20210922
18
+
3
19
  ### v0.1.0 (2021-09-01)
4
20
 
5
21
  * Regenerated from discovery document revision 20210811
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Networkservices service in particular.)
67
67
 
@@ -93,7 +93,7 @@ module Google
93
93
  end
94
94
  end
95
95
 
96
- # Associates `members` with a `role`.
96
+ # Associates `members`, or principals, with a `role`.
97
97
  class Binding
98
98
  include Google::Apis::Core::Hashable
99
99
 
@@ -116,7 +116,7 @@ module Google
116
116
  # @return [Google::Apis::NetworkservicesV1::Expr]
117
117
  attr_accessor :condition
118
118
 
119
- # Specifies the identities requesting access for a Cloud Platform resource. `
119
+ # Specifies the principals requesting access for a Cloud Platform resource. `
120
120
  # members` can have the following values: * `allUsers`: A special identifier
121
121
  # that represents anyone who is on the internet; with or without a Google
122
122
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -146,8 +146,8 @@ module Google
146
146
  # @return [Array<String>]
147
147
  attr_accessor :members
148
148
 
149
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
150
- # , or `roles/owner`.
149
+ # Role that is assigned to the list of `members`, or principals. For example, `
150
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
151
151
  # Corresponds to the JSON property `role`
152
152
  # @return [String]
153
153
  attr_accessor :role
@@ -194,6 +194,188 @@ 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.
292
+ # Corresponds to the JSON property `authorizationPolicy`
293
+ # @return [String]
294
+ attr_accessor :authorization_policy
295
+
296
+ # Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can
297
+ # be set to specify the authentication for traffic from the proxy to the actual
298
+ # endpoints. More specifically, it is applied to the outgoing traffic from the
299
+ # proxy to the endpoint. This is typically used for sidecar model where the
300
+ # proxy identifies itself as endpoint to the control plane, with the connection
301
+ # between sidecar and endpoint requiring authentication. If this field is not
302
+ # set, authentication is disabled(open). Applicable only when EndpointPolicyType
303
+ # is SIDECAR_PROXY.
304
+ # Corresponds to the JSON property `clientTlsPolicy`
305
+ # @return [String]
306
+ attr_accessor :client_tls_policy
307
+
308
+ # Output only. The timestamp when the resource was created.
309
+ # Corresponds to the JSON property `createTime`
310
+ # @return [String]
311
+ attr_accessor :create_time
312
+
313
+ # Optional. A free-text description of the resource. Max length 1024 characters.
314
+ # Corresponds to the JSON property `description`
315
+ # @return [String]
316
+ attr_accessor :description
317
+
318
+ # A definition of a matcher that selects endpoints to which the policies should
319
+ # be applied.
320
+ # Corresponds to the JSON property `endpointMatcher`
321
+ # @return [Google::Apis::NetworkservicesV1::EndpointMatcher]
322
+ attr_accessor :endpoint_matcher
323
+
324
+ # Optional. Set of label tags associated with the EndpointPolicy resource.
325
+ # Corresponds to the JSON property `labels`
326
+ # @return [Hash<String,String>]
327
+ attr_accessor :labels
328
+
329
+ # Required. Name of the EndpointPolicy resource. It matches pattern `projects/`
330
+ # project`/locations/global/endpointPolicies/`endpoint_policy``.
331
+ # Corresponds to the JSON property `name`
332
+ # @return [String]
333
+ attr_accessor :name
334
+
335
+ # Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used
336
+ # to determine the authentication policy to be applied to terminate the inbound
337
+ # traffic at the identified backends. If this field is not set, authentication
338
+ # is disabled(open) for this endpoint.
339
+ # Corresponds to the JSON property `serverTlsPolicy`
340
+ # @return [String]
341
+ attr_accessor :server_tls_policy
342
+
343
+ # Specification of a port-based selector.
344
+ # Corresponds to the JSON property `trafficPortSelector`
345
+ # @return [Google::Apis::NetworkservicesV1::TrafficPortSelector]
346
+ attr_accessor :traffic_port_selector
347
+
348
+ # Required. The type of endpoint policy. This is primarily used to validate the
349
+ # configuration.
350
+ # Corresponds to the JSON property `type`
351
+ # @return [String]
352
+ attr_accessor :type
353
+
354
+ # Output only. The timestamp when the resource was updated.
355
+ # Corresponds to the JSON property `updateTime`
356
+ # @return [String]
357
+ attr_accessor :update_time
358
+
359
+ def initialize(**args)
360
+ update!(**args)
361
+ end
362
+
363
+ # Update properties of this object
364
+ def update!(**args)
365
+ @authorization_policy = args[:authorization_policy] if args.key?(:authorization_policy)
366
+ @client_tls_policy = args[:client_tls_policy] if args.key?(:client_tls_policy)
367
+ @create_time = args[:create_time] if args.key?(:create_time)
368
+ @description = args[:description] if args.key?(:description)
369
+ @endpoint_matcher = args[:endpoint_matcher] if args.key?(:endpoint_matcher)
370
+ @labels = args[:labels] if args.key?(:labels)
371
+ @name = args[:name] if args.key?(:name)
372
+ @server_tls_policy = args[:server_tls_policy] if args.key?(:server_tls_policy)
373
+ @traffic_port_selector = args[:traffic_port_selector] if args.key?(:traffic_port_selector)
374
+ @type = args[:type] if args.key?(:type)
375
+ @update_time = args[:update_time] if args.key?(:update_time)
376
+ end
377
+ end
378
+
197
379
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
198
380
  # CEL is a C-like expression language. The syntax and semantics of CEL are
199
381
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -248,6 +430,33 @@ module Google
248
430
  end
249
431
  end
250
432
 
433
+ # Response returned by the ListEndpointPolicies method.
434
+ class ListEndpointPoliciesResponse
435
+ include Google::Apis::Core::Hashable
436
+
437
+ # List of EndpointPolicy resources.
438
+ # Corresponds to the JSON property `endpointPolicies`
439
+ # @return [Array<Google::Apis::NetworkservicesV1::EndpointPolicy>]
440
+ attr_accessor :endpoint_policies
441
+
442
+ # If there might be more results than those appearing in this response, then `
443
+ # next_page_token` is included. To get the next set of results, call this method
444
+ # again using the value of `next_page_token` as `page_token`.
445
+ # Corresponds to the JSON property `nextPageToken`
446
+ # @return [String]
447
+ attr_accessor :next_page_token
448
+
449
+ def initialize(**args)
450
+ update!(**args)
451
+ end
452
+
453
+ # Update properties of this object
454
+ def update!(**args)
455
+ @endpoint_policies = args[:endpoint_policies] if args.key?(:endpoint_policies)
456
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
457
+ end
458
+ end
459
+
251
460
  # The response message for Locations.ListLocations.
252
461
  class ListLocationsResponse
253
462
  include Google::Apis::Core::Hashable
@@ -468,31 +677,31 @@ module Google
468
677
 
469
678
  # An Identity and Access Management (IAM) policy, which specifies access
470
679
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
471
- # A `binding` binds one or more `members` to a single `role`. Members can be
472
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
473
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
474
- # role or a user-created custom role. For some types of Google Cloud resources,
475
- # a `binding` can also specify a `condition`, which is a logical expression that
476
- # allows access to a resource only if the expression evaluates to `true`. A
477
- # condition can add constraints based on attributes of the request, the resource,
478
- # or both. To learn which resources support conditions in their IAM policies,
479
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
480
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
481
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
482
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
483
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
484
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
485
- # title": "expirable access", "description": "Does not grant access after Sep
486
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
487
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
488
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
489
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
490
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
491
- # roles/resourcemanager.organizationViewer condition: title: expirable access
492
- # description: Does not grant access after Sep 2020 expression: request.time <
493
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
494
- # description of IAM and its features, see the [IAM documentation](https://cloud.
495
- # google.com/iam/docs/).
680
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
681
+ # Principals can be user accounts, service accounts, Google groups, and domains (
682
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
683
+ # an IAM predefined role or a user-created custom role. For some types of Google
684
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
685
+ # logical expression that allows access to a resource only if the expression
686
+ # evaluates to `true`. A condition can add constraints based on attributes of
687
+ # the request, the resource, or both. To learn which resources support
688
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
689
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
690
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
691
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
692
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
693
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
694
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
695
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
696
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
697
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
698
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
699
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
700
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
701
+ # access description: Does not grant access after Sep 2020 expression: request.
702
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
703
+ # a description of IAM and its features, see the [IAM documentation](https://
704
+ # cloud.google.com/iam/docs/).
496
705
  class Policy
497
706
  include Google::Apis::Core::Hashable
498
707
 
@@ -501,9 +710,14 @@ module Google
501
710
  # @return [Array<Google::Apis::NetworkservicesV1::AuditConfig>]
502
711
  attr_accessor :audit_configs
503
712
 
504
- # Associates a list of `members` to a `role`. Optionally, may specify a `
505
- # condition` that determines how and when the `bindings` are applied. Each of
506
- # the `bindings` must contain at least one member.
713
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
714
+ # specify a `condition` that determines how and when the `bindings` are applied.
715
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
716
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
717
+ # can be Google groups. Each occurrence of a principal counts towards these
718
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
719
+ # example.com`, and not to any other principal, then you can add another 1,450
720
+ # principals to the `bindings` in the `Policy`.
507
721
  # Corresponds to the JSON property `bindings`
508
722
  # @return [Array<Google::Apis::NetworkservicesV1::Binding>]
509
723
  attr_accessor :bindings
@@ -562,31 +776,31 @@ module Google
562
776
 
563
777
  # An Identity and Access Management (IAM) policy, which specifies access
564
778
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
565
- # A `binding` binds one or more `members` to a single `role`. Members can be
566
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
567
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
568
- # role or a user-created custom role. For some types of Google Cloud resources,
569
- # a `binding` can also specify a `condition`, which is a logical expression that
570
- # allows access to a resource only if the expression evaluates to `true`. A
571
- # condition can add constraints based on attributes of the request, the resource,
572
- # or both. To learn which resources support conditions in their IAM policies,
573
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
574
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
575
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
576
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
577
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
578
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
579
- # title": "expirable access", "description": "Does not grant access after Sep
580
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
581
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
582
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
583
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
584
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
585
- # roles/resourcemanager.organizationViewer condition: title: expirable access
586
- # description: Does not grant access after Sep 2020 expression: request.time <
587
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
588
- # description of IAM and its features, see the [IAM documentation](https://cloud.
589
- # google.com/iam/docs/).
779
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
780
+ # Principals can be user accounts, service accounts, Google groups, and domains (
781
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
782
+ # an IAM predefined role or a user-created custom role. For some types of Google
783
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
784
+ # logical expression that allows access to a resource only if the expression
785
+ # evaluates to `true`. A condition can add constraints based on attributes of
786
+ # the request, the resource, or both. To learn which resources support
787
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
788
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
789
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
790
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
791
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
792
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
793
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
794
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
795
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
796
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
797
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
798
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
799
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
800
+ # access description: Does not grant access after Sep 2020 expression: request.
801
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
802
+ # a description of IAM and its features, see the [IAM documentation](https://
803
+ # cloud.google.com/iam/docs/).
590
804
  # Corresponds to the JSON property `policy`
591
805
  # @return [Google::Apis::NetworkservicesV1::Policy]
592
806
  attr_accessor :policy
@@ -687,6 +901,27 @@ module Google
687
901
  @permissions = args[:permissions] if args.key?(:permissions)
688
902
  end
689
903
  end
904
+
905
+ # Specification of a port-based selector.
906
+ class TrafficPortSelector
907
+ include Google::Apis::Core::Hashable
908
+
909
+ # Optional. A list of ports. Can be port numbers or port range (example, [80-90]
910
+ # specifies all ports from 80 to 90, including 80 and 90) or named ports or * to
911
+ # specify all ports. If the list is empty, all ports are selected.
912
+ # Corresponds to the JSON property `ports`
913
+ # @return [Array<String>]
914
+ attr_accessor :ports
915
+
916
+ def initialize(**args)
917
+ update!(**args)
918
+ end
919
+
920
+ # Update properties of this object
921
+ def update!(**args)
922
+ @ports = args[:ports] if args.key?(:ports)
923
+ end
924
+ end
690
925
  end
691
926
  end
692
927
  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.1.0"
19
+ GEM_VERSION = "0.5.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 = "20210811"
25
+ REVISION = "20211109"
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
@@ -128,13 +128,16 @@ module Google
128
128
  # REQUIRED: The resource for which the policy is being requested. See the
129
129
  # operation documentation for the appropriate value for this field.
130
130
  # @param [Fixnum] options_requested_policy_version
131
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
132
- # 3. Requests specifying an invalid value will be rejected. Requests for
133
- # policies with any conditional bindings must specify version 3. Policies
134
- # without any conditional bindings may specify any valid value or leave the
135
- # field unset. To learn which resources support conditions in their IAM policies,
136
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
137
- # resource-policies).
131
+ # Optional. The maximum policy version that will be used to format the policy.
132
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
133
+ # rejected. Requests for policies with any conditional role bindings must
134
+ # specify version 3. Policies with no conditional role bindings may specify any
135
+ # valid value or leave the field unset. The policy in the response might use the
136
+ # policy version that you specified, or it might use a lower policy version. For
137
+ # example, if you specify version 3, but the policy has no conditional role
138
+ # bindings, the response uses version 1. To learn which resources support
139
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
140
+ # google.com/iam/help/conditions/resource-policies).
138
141
  # @param [String] fields
139
142
  # Selector specifying which fields to include in a partial response.
140
143
  # @param [String] quota_user
@@ -243,13 +246,16 @@ module Google
243
246
  # REQUIRED: The resource for which the policy is being requested. See the
244
247
  # operation documentation for the appropriate value for this field.
245
248
  # @param [Fixnum] options_requested_policy_version
246
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
247
- # 3. Requests specifying an invalid value will be rejected. Requests for
248
- # policies with any conditional bindings must specify version 3. Policies
249
- # without any conditional bindings may specify any valid value or leave the
250
- # field unset. To learn which resources support conditions in their IAM policies,
251
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
252
- # resource-policies).
249
+ # Optional. The maximum policy version that will be used to format the policy.
250
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
251
+ # rejected. Requests for policies with any conditional role bindings must
252
+ # specify version 3. Policies with no conditional role bindings may specify any
253
+ # valid value or leave the field unset. The policy in the response might use the
254
+ # policy version that you specified, or it might use a lower policy version. For
255
+ # example, if you specify version 3, but the policy has no conditional role
256
+ # bindings, the response uses version 1. To learn which resources support
257
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
258
+ # google.com/iam/help/conditions/resource-policies).
253
259
  # @param [String] fields
254
260
  # Selector specifying which fields to include in a partial response.
255
261
  # @param [String] quota_user
@@ -358,13 +364,16 @@ module Google
358
364
  # REQUIRED: The resource for which the policy is being requested. See the
359
365
  # operation documentation for the appropriate value for this field.
360
366
  # @param [Fixnum] options_requested_policy_version
361
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
362
- # 3. Requests specifying an invalid value will be rejected. Requests for
363
- # policies with any conditional bindings must specify version 3. Policies
364
- # without any conditional bindings may specify any valid value or leave the
365
- # field unset. To learn which resources support conditions in their IAM policies,
366
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
367
- # resource-policies).
367
+ # Optional. The maximum policy version that will be used to format the policy.
368
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
369
+ # rejected. Requests for policies with any conditional role bindings must
370
+ # specify version 3. Policies with no conditional role bindings may specify any
371
+ # valid value or leave the field unset. The policy in the response might use the
372
+ # policy version that you specified, or it might use a lower policy version. For
373
+ # example, if you specify version 3, but the policy has no conditional role
374
+ # bindings, the response uses version 1. To learn which resources support
375
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
376
+ # google.com/iam/help/conditions/resource-policies).
368
377
  # @param [String] fields
369
378
  # Selector specifying which fields to include in a partial response.
370
379
  # @param [String] quota_user
@@ -467,6 +476,304 @@ module Google
467
476
  execute_or_queue_command(command, &block)
468
477
  end
469
478
 
479
+ # Creates a new EndpointPolicy in a given project and location.
480
+ # @param [String] parent
481
+ # Required. The parent resource of the EndpointPolicy. Must be in the format `
482
+ # projects/*/locations/global`.
483
+ # @param [Google::Apis::NetworkservicesV1::EndpointPolicy] endpoint_policy_object
484
+ # @param [String] endpoint_policy_id
485
+ # Required. Short name of the EndpointPolicy resource to be created. E.g. "
486
+ # CustomECS".
487
+ # @param [String] fields
488
+ # Selector specifying which fields to include in a partial response.
489
+ # @param [String] quota_user
490
+ # Available to use for quota purposes for server-side applications. Can be any
491
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
492
+ # @param [Google::Apis::RequestOptions] options
493
+ # Request-specific options
494
+ #
495
+ # @yield [result, err] Result & error if block supplied
496
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
497
+ # @yieldparam err [StandardError] error object if request failed
498
+ #
499
+ # @return [Google::Apis::NetworkservicesV1::Operation]
500
+ #
501
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
502
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
503
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
504
+ def create_project_location_endpoint_policy(parent, endpoint_policy_object = nil, endpoint_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
505
+ command = make_simple_command(:post, 'v1/{+parent}/endpointPolicies', options)
506
+ command.request_representation = Google::Apis::NetworkservicesV1::EndpointPolicy::Representation
507
+ command.request_object = endpoint_policy_object
508
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
509
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
510
+ command.params['parent'] = parent unless parent.nil?
511
+ command.query['endpointPolicyId'] = endpoint_policy_id unless endpoint_policy_id.nil?
512
+ command.query['fields'] = fields unless fields.nil?
513
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
514
+ execute_or_queue_command(command, &block)
515
+ end
516
+
517
+ # Deletes a single EndpointPolicy.
518
+ # @param [String] name
519
+ # Required. A name of the EndpointPolicy to delete. Must be in the format `
520
+ # projects/*/locations/global/endpointPolicies/*`.
521
+ # @param [String] fields
522
+ # Selector specifying which fields to include in a partial response.
523
+ # @param [String] quota_user
524
+ # Available to use for quota purposes for server-side applications. Can be any
525
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
526
+ # @param [Google::Apis::RequestOptions] options
527
+ # Request-specific options
528
+ #
529
+ # @yield [result, err] Result & error if block supplied
530
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
531
+ # @yieldparam err [StandardError] error object if request failed
532
+ #
533
+ # @return [Google::Apis::NetworkservicesV1::Operation]
534
+ #
535
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
536
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
537
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
538
+ def delete_project_location_endpoint_policy(name, fields: nil, quota_user: nil, options: nil, &block)
539
+ command = make_simple_command(:delete, 'v1/{+name}', options)
540
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
541
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
542
+ command.params['name'] = name unless name.nil?
543
+ command.query['fields'] = fields unless fields.nil?
544
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
545
+ execute_or_queue_command(command, &block)
546
+ end
547
+
548
+ # Gets details of a single EndpointPolicy.
549
+ # @param [String] name
550
+ # Required. A name of the EndpointPolicy to get. Must be in the format `projects/
551
+ # */locations/global/endpointPolicies/*`.
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
554
+ # @param [String] quota_user
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
557
+ # @param [Google::Apis::RequestOptions] options
558
+ # Request-specific options
559
+ #
560
+ # @yield [result, err] Result & error if block supplied
561
+ # @yieldparam result [Google::Apis::NetworkservicesV1::EndpointPolicy] parsed result object
562
+ # @yieldparam err [StandardError] error object if request failed
563
+ #
564
+ # @return [Google::Apis::NetworkservicesV1::EndpointPolicy]
565
+ #
566
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
569
+ def get_project_location_endpoint_policy(name, fields: nil, quota_user: nil, options: nil, &block)
570
+ command = make_simple_command(:get, 'v1/{+name}', options)
571
+ command.response_representation = Google::Apis::NetworkservicesV1::EndpointPolicy::Representation
572
+ command.response_class = Google::Apis::NetworkservicesV1::EndpointPolicy
573
+ command.params['name'] = name unless name.nil?
574
+ command.query['fields'] = fields unless fields.nil?
575
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
576
+ execute_or_queue_command(command, &block)
577
+ end
578
+
579
+ # Gets the access control policy for a resource. Returns an empty policy if the
580
+ # resource exists and does not have a policy set.
581
+ # @param [String] resource
582
+ # REQUIRED: The resource for which the policy is being requested. See the
583
+ # operation documentation for the appropriate value for this field.
584
+ # @param [Fixnum] options_requested_policy_version
585
+ # Optional. The maximum policy version that will be used to format the policy.
586
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
587
+ # rejected. Requests for policies with any conditional role bindings must
588
+ # specify version 3. Policies with no conditional role bindings may specify any
589
+ # valid value or leave the field unset. The policy in the response might use the
590
+ # policy version that you specified, or it might use a lower policy version. For
591
+ # example, if you specify version 3, but the policy has no conditional role
592
+ # bindings, the response uses version 1. To learn which resources support
593
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
594
+ # google.com/iam/help/conditions/resource-policies).
595
+ # @param [String] fields
596
+ # Selector specifying which fields to include in a partial response.
597
+ # @param [String] quota_user
598
+ # Available to use for quota purposes for server-side applications. Can be any
599
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
600
+ # @param [Google::Apis::RequestOptions] options
601
+ # Request-specific options
602
+ #
603
+ # @yield [result, err] Result & error if block supplied
604
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
605
+ # @yieldparam err [StandardError] error object if request failed
606
+ #
607
+ # @return [Google::Apis::NetworkservicesV1::Policy]
608
+ #
609
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
610
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
611
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
612
+ def get_project_location_endpoint_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
613
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
614
+ command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
615
+ command.response_class = Google::Apis::NetworkservicesV1::Policy
616
+ command.params['resource'] = resource unless resource.nil?
617
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
618
+ command.query['fields'] = fields unless fields.nil?
619
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
620
+ execute_or_queue_command(command, &block)
621
+ end
622
+
623
+ # Lists EndpointPolicies in a given project and location.
624
+ # @param [String] parent
625
+ # Required. The project and location from which the EndpointPolicies should be
626
+ # listed, specified in the format `projects/*/locations/global`.
627
+ # @param [Fixnum] page_size
628
+ # Maximum number of EndpointPolicies to return per call.
629
+ # @param [String] page_token
630
+ # The value returned by the last `ListEndpointPoliciesResponse` Indicates that
631
+ # this is a continuation of a prior `ListEndpointPolicies` call, and that the
632
+ # system should return the next page of data.
633
+ # @param [String] fields
634
+ # Selector specifying which fields to include in a partial response.
635
+ # @param [String] quota_user
636
+ # Available to use for quota purposes for server-side applications. Can be any
637
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
638
+ # @param [Google::Apis::RequestOptions] options
639
+ # Request-specific options
640
+ #
641
+ # @yield [result, err] Result & error if block supplied
642
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListEndpointPoliciesResponse] parsed result object
643
+ # @yieldparam err [StandardError] error object if request failed
644
+ #
645
+ # @return [Google::Apis::NetworkservicesV1::ListEndpointPoliciesResponse]
646
+ #
647
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
648
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
649
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
650
+ def list_project_location_endpoint_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
651
+ command = make_simple_command(:get, 'v1/{+parent}/endpointPolicies', options)
652
+ command.response_representation = Google::Apis::NetworkservicesV1::ListEndpointPoliciesResponse::Representation
653
+ command.response_class = Google::Apis::NetworkservicesV1::ListEndpointPoliciesResponse
654
+ command.params['parent'] = parent unless parent.nil?
655
+ command.query['pageSize'] = page_size unless page_size.nil?
656
+ command.query['pageToken'] = page_token unless page_token.nil?
657
+ command.query['fields'] = fields unless fields.nil?
658
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
659
+ execute_or_queue_command(command, &block)
660
+ end
661
+
662
+ # Updates the parameters of a single EndpointPolicy.
663
+ # @param [String] name
664
+ # Required. Name of the EndpointPolicy resource. It matches pattern `projects/`
665
+ # project`/locations/global/endpointPolicies/`endpoint_policy``.
666
+ # @param [Google::Apis::NetworkservicesV1::EndpointPolicy] endpoint_policy_object
667
+ # @param [String] update_mask
668
+ # Optional. Field mask is used to specify the fields to be overwritten in the
669
+ # EndpointPolicy resource by the update. The fields specified in the update_mask
670
+ # are relative to the resource, not the full request. A field will be
671
+ # overwritten if it is in the mask. If the user does not provide a mask then all
672
+ # fields will be overwritten.
673
+ # @param [String] fields
674
+ # Selector specifying which fields to include in a partial response.
675
+ # @param [String] quota_user
676
+ # Available to use for quota purposes for server-side applications. Can be any
677
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
678
+ # @param [Google::Apis::RequestOptions] options
679
+ # Request-specific options
680
+ #
681
+ # @yield [result, err] Result & error if block supplied
682
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
683
+ # @yieldparam err [StandardError] error object if request failed
684
+ #
685
+ # @return [Google::Apis::NetworkservicesV1::Operation]
686
+ #
687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
690
+ def patch_project_location_endpoint_policy(name, endpoint_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
691
+ command = make_simple_command(:patch, 'v1/{+name}', options)
692
+ command.request_representation = Google::Apis::NetworkservicesV1::EndpointPolicy::Representation
693
+ command.request_object = endpoint_policy_object
694
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
695
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
696
+ command.params['name'] = name unless name.nil?
697
+ command.query['updateMask'] = update_mask unless update_mask.nil?
698
+ command.query['fields'] = fields unless fields.nil?
699
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
700
+ execute_or_queue_command(command, &block)
701
+ end
702
+
703
+ # Sets the access control policy on the specified resource. Replaces any
704
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
705
+ # PERMISSION_DENIED` errors.
706
+ # @param [String] resource
707
+ # REQUIRED: The resource for which the policy is being specified. See the
708
+ # operation documentation for the appropriate value for this field.
709
+ # @param [Google::Apis::NetworkservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
710
+ # @param [String] fields
711
+ # Selector specifying which fields to include in a partial response.
712
+ # @param [String] quota_user
713
+ # Available to use for quota purposes for server-side applications. Can be any
714
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
715
+ # @param [Google::Apis::RequestOptions] options
716
+ # Request-specific options
717
+ #
718
+ # @yield [result, err] Result & error if block supplied
719
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Policy] parsed result object
720
+ # @yieldparam err [StandardError] error object if request failed
721
+ #
722
+ # @return [Google::Apis::NetworkservicesV1::Policy]
723
+ #
724
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
725
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
726
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
727
+ def set_endpoint_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
728
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
729
+ command.request_representation = Google::Apis::NetworkservicesV1::SetIamPolicyRequest::Representation
730
+ command.request_object = set_iam_policy_request_object
731
+ command.response_representation = Google::Apis::NetworkservicesV1::Policy::Representation
732
+ command.response_class = Google::Apis::NetworkservicesV1::Policy
733
+ command.params['resource'] = resource unless resource.nil?
734
+ command.query['fields'] = fields unless fields.nil?
735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
736
+ execute_or_queue_command(command, &block)
737
+ end
738
+
739
+ # Returns permissions that a caller has on the specified resource. If the
740
+ # resource does not exist, this will return an empty set of permissions, not a `
741
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
742
+ # permission-aware UIs and command-line tools, not for authorization checking.
743
+ # This operation may "fail open" without warning.
744
+ # @param [String] resource
745
+ # REQUIRED: The resource for which the policy detail is being requested. See the
746
+ # operation documentation for the appropriate value for this field.
747
+ # @param [Google::Apis::NetworkservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
748
+ # @param [String] fields
749
+ # Selector specifying which fields to include in a partial response.
750
+ # @param [String] quota_user
751
+ # Available to use for quota purposes for server-side applications. Can be any
752
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
753
+ # @param [Google::Apis::RequestOptions] options
754
+ # Request-specific options
755
+ #
756
+ # @yield [result, err] Result & error if block supplied
757
+ # @yieldparam result [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse] parsed result object
758
+ # @yieldparam err [StandardError] error object if request failed
759
+ #
760
+ # @return [Google::Apis::NetworkservicesV1::TestIamPermissionsResponse]
761
+ #
762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
765
+ def test_endpoint_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
766
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
767
+ command.request_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsRequest::Representation
768
+ command.request_object = test_iam_permissions_request_object
769
+ command.response_representation = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse::Representation
770
+ command.response_class = Google::Apis::NetworkservicesV1::TestIamPermissionsResponse
771
+ command.params['resource'] = resource unless resource.nil?
772
+ command.query['fields'] = fields unless fields.nil?
773
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
774
+ execute_or_queue_command(command, &block)
775
+ end
776
+
470
777
  # Starts asynchronous cancellation on a long-running operation. The server makes
471
778
  # a best effort to cancel the operation, but success is not guaranteed. If the
472
779
  # 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.1.0
4
+ version: 0.5.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-09-06 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
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.1.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-networkservices_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1/v0.5.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: