google-apis-networkservices_v1beta1 0.4.0 → 0.8.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: ea027b667f8fd30bbecfcc8cbf5cb95c22fc9381ae1f68c98af059edc4f28243
4
- data.tar.gz: e4a7b5ae0b73573d07ab23bb2e712f3780e0770cfaa93a935e70c3d89dcfce2e
3
+ metadata.gz: 6fdf35afb8afba7123a8ec08f6cdb2e9fa08ecc9cba339bdb86da798975813c6
4
+ data.tar.gz: cc4ce010012863b0463f2bea7948aa8951f293f09ecc5ac312af4c2a2d05063e
5
5
  SHA512:
6
- metadata.gz: 46ec4bad6c5d8d13e4bfbd7e160fc5c884c1f3550812f66f8689eabd94e1038b670f8a54f0770ca46e62a54cbd019525bc533fd1e77bf38fc29b29dda5985e69
7
- data.tar.gz: 8cef0244d95d6f32591a41f7af174242e5f1d179fdbee25250a17d1cd2cc2ae302e7909cdc6658272b65e2d258d2b7a80a4983a98e3f64876bc41efb12d9aaaa
6
+ metadata.gz: 3154c0c221e7893bd33edbdb59f12a5230de4ef80384c4d7f60de62873d1b5452dda414d57e0a4aafcfafd288ceb2d7ecdc8ae4ed2d1eccfb1c0957ee320099a
7
+ data.tar.gz: a2e02561573f04811c8f5502166326288e83a48a57f1642e14f6a2aedd8690085f86367fde2af8cd5e3b9c4a87216b7153ec8e823fea35980695ece4ec1415b6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-networkservices_v1beta1
2
2
 
3
+ ### v0.8.0 (2022-01-11)
4
+
5
+ * Regenerated from discovery document revision 20220105
6
+
7
+ ### v0.7.0 (2021-12-14)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.6.0 (2021-12-09)
12
+
13
+ * Regenerated from discovery document revision 20211201
14
+
15
+ ### v0.5.0 (2021-11-14)
16
+
17
+ * Regenerated from discovery document revision 20211109
18
+
3
19
  ### v0.4.0 (2021-10-31)
4
20
 
5
21
  * Regenerated from discovery document revision 20211019
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/networkservices_v1beta1"
51
51
  client = Google::Apis::NetworkservicesV1beta1::NetworkServicesService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -223,8 +223,7 @@ module Google
223
223
  # Optional. This field specifies the URL of AuthorizationPolicy resource that
224
224
  # applies authorization policies to the inbound traffic at the matched endpoints.
225
225
  # Refer to Authorization. If this field is not specified, authorization is
226
- # disabled(no authz checks) for this endpoint. Applicable only when
227
- # EndpointPolicyType is SIDECAR_PROXY.
226
+ # disabled(no authz checks) for this endpoint.
228
227
  # Corresponds to the JSON property `authorizationPolicy`
229
228
  # @return [String]
230
229
  attr_accessor :authorization_policy
@@ -443,6 +442,33 @@ module Google
443
442
  end
444
443
  end
445
444
 
445
+ # Response returned by the ListServiceBindings method.
446
+ class ListServiceBindingsResponse
447
+ include Google::Apis::Core::Hashable
448
+
449
+ # If there might be more results than those appearing in this response, then `
450
+ # next_page_token` is included. To get the next set of results, call this method
451
+ # again using the value of `next_page_token` as `page_token`.
452
+ # Corresponds to the JSON property `nextPageToken`
453
+ # @return [String]
454
+ attr_accessor :next_page_token
455
+
456
+ # List of ServiceBinding resources.
457
+ # Corresponds to the JSON property `serviceBindings`
458
+ # @return [Array<Google::Apis::NetworkservicesV1beta1::ServiceBinding>]
459
+ attr_accessor :service_bindings
460
+
461
+ def initialize(**args)
462
+ update!(**args)
463
+ end
464
+
465
+ # Update properties of this object
466
+ def update!(**args)
467
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
468
+ @service_bindings = args[:service_bindings] if args.key?(:service_bindings)
469
+ end
470
+ end
471
+
446
472
  # A resource that represents Google Cloud Platform location.
447
473
  class Location
448
474
  include Google::Apis::Core::Hashable
@@ -771,6 +797,66 @@ module Google
771
797
  end
772
798
  end
773
799
 
800
+ # ServiceBinding is the resource that defines a Service Directory Service to be
801
+ # used in a BackendService resource.
802
+ class ServiceBinding
803
+ include Google::Apis::Core::Hashable
804
+
805
+ # Output only. The timestamp when the resource was created.
806
+ # Corresponds to the JSON property `createTime`
807
+ # @return [String]
808
+ attr_accessor :create_time
809
+
810
+ # Optional. A free-text description of the resource. Max length 1024 characters.
811
+ # Corresponds to the JSON property `description`
812
+ # @return [String]
813
+ attr_accessor :description
814
+
815
+ # Optional. The endpoint filter associated with the Service Binding. The syntax
816
+ # is described in http://cloud/service-directory/docs/reference/rpc/google.cloud.
817
+ # servicedirectory.v1#google.cloud.servicedirectory.v1.ResolveServiceRequest
818
+ # Corresponds to the JSON property `endpointFilter`
819
+ # @return [String]
820
+ attr_accessor :endpoint_filter
821
+
822
+ # Optional. Set of label tags associated with the ServiceBinding resource.
823
+ # Corresponds to the JSON property `labels`
824
+ # @return [Hash<String,String>]
825
+ attr_accessor :labels
826
+
827
+ # Required. Name of the ServiceBinding resource. It matches pattern `projects/*/
828
+ # locations/global/serviceBindings/service_binding_name>`.
829
+ # Corresponds to the JSON property `name`
830
+ # @return [String]
831
+ attr_accessor :name
832
+
833
+ # Required. The full service directory service name of the format /projects/*/
834
+ # locations/*/namespaces/*/services/*
835
+ # Corresponds to the JSON property `service`
836
+ # @return [String]
837
+ attr_accessor :service
838
+
839
+ # Output only. The timestamp when the resource was updated.
840
+ # Corresponds to the JSON property `updateTime`
841
+ # @return [String]
842
+ attr_accessor :update_time
843
+
844
+ def initialize(**args)
845
+ update!(**args)
846
+ end
847
+
848
+ # Update properties of this object
849
+ def update!(**args)
850
+ @create_time = args[:create_time] if args.key?(:create_time)
851
+ @description = args[:description] if args.key?(:description)
852
+ @endpoint_filter = args[:endpoint_filter] if args.key?(:endpoint_filter)
853
+ @labels = args[:labels] if args.key?(:labels)
854
+ @name = args[:name] if args.key?(:name)
855
+ @service = args[:service] if args.key?(:service)
856
+ @update_time = args[:update_time] if args.key?(:update_time)
857
+ end
858
+ end
859
+
774
860
  # Request message for `SetIamPolicy` method.
775
861
  class SetIamPolicyRequest
776
862
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworkservicesV1beta1
18
18
  # Version of the google-apis-networkservices_v1beta1 gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.8.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 = "20211019"
25
+ REVISION = "20220105"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class ListServiceBindingsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class Location
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -124,6 +130,12 @@ module Google
124
130
  include Google::Apis::Core::JsonObjectSupport
125
131
  end
126
132
 
133
+ class ServiceBinding
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
127
139
  class SetIamPolicyRequest
128
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
141
 
@@ -257,6 +269,15 @@ module Google
257
269
  end
258
270
  end
259
271
 
272
+ class ListServiceBindingsResponse
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ property :next_page_token, as: 'nextPageToken'
276
+ collection :service_bindings, as: 'serviceBindings', class: Google::Apis::NetworkservicesV1beta1::ServiceBinding, decorator: Google::Apis::NetworkservicesV1beta1::ServiceBinding::Representation
277
+
278
+ end
279
+ end
280
+
260
281
  class Location
261
282
  # @private
262
283
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -322,6 +343,19 @@ module Google
322
343
  end
323
344
  end
324
345
 
346
+ class ServiceBinding
347
+ # @private
348
+ class Representation < Google::Apis::Core::JsonRepresentation
349
+ property :create_time, as: 'createTime'
350
+ property :description, as: 'description'
351
+ property :endpoint_filter, as: 'endpointFilter'
352
+ hash :labels, as: 'labels'
353
+ property :name, as: 'name'
354
+ property :service, as: 'service'
355
+ property :update_time, as: 'updateTime'
356
+ end
357
+ end
358
+
325
359
  class SetIamPolicyRequest
326
360
  # @private
327
361
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -228,13 +228,16 @@ module Google
228
228
  # REQUIRED: The resource for which the policy is being requested. See the
229
229
  # operation documentation for the appropriate value for this field.
230
230
  # @param [Fixnum] options_requested_policy_version
231
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
232
- # 3. Requests specifying an invalid value will be rejected. Requests for
233
- # policies with any conditional bindings must specify version 3. Policies
234
- # without any conditional bindings may specify any valid value or leave the
235
- # field unset. To learn which resources support conditions in their IAM policies,
236
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
237
- # resource-policies).
231
+ # Optional. The maximum policy version that will be used to format the policy.
232
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
233
+ # rejected. Requests for policies with any conditional role bindings must
234
+ # specify version 3. Policies with no conditional role bindings may specify any
235
+ # valid value or leave the field unset. The policy in the response might use the
236
+ # policy version that you specified, or it might use a lower policy version. For
237
+ # example, if you specify version 3, but the policy has no conditional role
238
+ # bindings, the response uses version 1. To learn which resources support
239
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
240
+ # google.com/iam/help/conditions/resource-policies).
238
241
  # @param [String] fields
239
242
  # Selector specifying which fields to include in a partial response.
240
243
  # @param [String] quota_user
@@ -566,6 +569,303 @@ module Google
566
569
  command.query['quotaUser'] = quota_user unless quota_user.nil?
567
570
  execute_or_queue_command(command, &block)
568
571
  end
572
+
573
+ # Creates a new ServiceBinding in a given project and location.
574
+ # @param [String] parent
575
+ # Required. The parent resource of the ServiceBinding. Must be in the format `
576
+ # projects/*/locations/global`.
577
+ # @param [Google::Apis::NetworkservicesV1beta1::ServiceBinding] service_binding_object
578
+ # @param [String] service_binding_id
579
+ # Required. Short name of the ServiceBinding resource to be created.
580
+ # @param [String] fields
581
+ # Selector specifying which fields to include in a partial response.
582
+ # @param [String] quota_user
583
+ # Available to use for quota purposes for server-side applications. Can be any
584
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
585
+ # @param [Google::Apis::RequestOptions] options
586
+ # Request-specific options
587
+ #
588
+ # @yield [result, err] Result & error if block supplied
589
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
590
+ # @yieldparam err [StandardError] error object if request failed
591
+ #
592
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
593
+ #
594
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
595
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
596
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
597
+ def create_project_location_service_binding(parent, service_binding_object = nil, service_binding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
598
+ command = make_simple_command(:post, 'v1beta1/{+parent}/serviceBindings', options)
599
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::ServiceBinding::Representation
600
+ command.request_object = service_binding_object
601
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
602
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
603
+ command.params['parent'] = parent unless parent.nil?
604
+ command.query['serviceBindingId'] = service_binding_id unless service_binding_id.nil?
605
+ command.query['fields'] = fields unless fields.nil?
606
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
607
+ execute_or_queue_command(command, &block)
608
+ end
609
+
610
+ # Deletes a single ServiceBinding.
611
+ # @param [String] name
612
+ # Required. A name of the ServiceBinding to delete. Must be in the format `
613
+ # projects/*/locations/global/serviceBindings/*`.
614
+ # @param [String] fields
615
+ # Selector specifying which fields to include in a partial response.
616
+ # @param [String] quota_user
617
+ # Available to use for quota purposes for server-side applications. Can be any
618
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
619
+ # @param [Google::Apis::RequestOptions] options
620
+ # Request-specific options
621
+ #
622
+ # @yield [result, err] Result & error if block supplied
623
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
624
+ # @yieldparam err [StandardError] error object if request failed
625
+ #
626
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
627
+ #
628
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
629
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
630
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
631
+ def delete_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
632
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
633
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
634
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
635
+ command.params['name'] = name unless name.nil?
636
+ command.query['fields'] = fields unless fields.nil?
637
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
638
+ execute_or_queue_command(command, &block)
639
+ end
640
+
641
+ # Gets details of a single ServiceBinding.
642
+ # @param [String] name
643
+ # Required. A name of the ServiceBinding to get. Must be in the format `projects/
644
+ # */locations/global/serviceBindings/*`.
645
+ # @param [String] fields
646
+ # Selector specifying which fields to include in a partial response.
647
+ # @param [String] quota_user
648
+ # Available to use for quota purposes for server-side applications. Can be any
649
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
650
+ # @param [Google::Apis::RequestOptions] options
651
+ # Request-specific options
652
+ #
653
+ # @yield [result, err] Result & error if block supplied
654
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::ServiceBinding] parsed result object
655
+ # @yieldparam err [StandardError] error object if request failed
656
+ #
657
+ # @return [Google::Apis::NetworkservicesV1beta1::ServiceBinding]
658
+ #
659
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
660
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
661
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
662
+ def get_project_location_service_binding(name, fields: nil, quota_user: nil, options: nil, &block)
663
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
664
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::ServiceBinding::Representation
665
+ command.response_class = Google::Apis::NetworkservicesV1beta1::ServiceBinding
666
+ command.params['name'] = name unless name.nil?
667
+ command.query['fields'] = fields unless fields.nil?
668
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
669
+ execute_or_queue_command(command, &block)
670
+ end
671
+
672
+ # Gets the access control policy for a resource. Returns an empty policy if the
673
+ # resource exists and does not have a policy set.
674
+ # @param [String] resource
675
+ # REQUIRED: The resource for which the policy is being requested. See the
676
+ # operation documentation for the appropriate value for this field.
677
+ # @param [Fixnum] options_requested_policy_version
678
+ # Optional. The maximum policy version that will be used to format the policy.
679
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
680
+ # rejected. Requests for policies with any conditional role bindings must
681
+ # specify version 3. Policies with no conditional role bindings may specify any
682
+ # valid value or leave the field unset. The policy in the response might use the
683
+ # policy version that you specified, or it might use a lower policy version. For
684
+ # example, if you specify version 3, but the policy has no conditional role
685
+ # bindings, the response uses version 1. To learn which resources support
686
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
687
+ # google.com/iam/help/conditions/resource-policies).
688
+ # @param [String] fields
689
+ # Selector specifying which fields to include in a partial response.
690
+ # @param [String] quota_user
691
+ # Available to use for quota purposes for server-side applications. Can be any
692
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
693
+ # @param [Google::Apis::RequestOptions] options
694
+ # Request-specific options
695
+ #
696
+ # @yield [result, err] Result & error if block supplied
697
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
698
+ # @yieldparam err [StandardError] error object if request failed
699
+ #
700
+ # @return [Google::Apis::NetworkservicesV1beta1::Policy]
701
+ #
702
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
703
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
704
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
705
+ def get_project_location_service_binding_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
706
+ command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
707
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
708
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
709
+ command.params['resource'] = resource unless resource.nil?
710
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
711
+ command.query['fields'] = fields unless fields.nil?
712
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
713
+ execute_or_queue_command(command, &block)
714
+ end
715
+
716
+ # Lists ServiceBinding in a given project and location.
717
+ # @param [String] parent
718
+ # Required. The project and location from which the ServiceBindings should be
719
+ # listed, specified in the format `projects/*/locations/global`.
720
+ # @param [Fixnum] page_size
721
+ # Maximum number of ServiceBindings to return per call.
722
+ # @param [String] page_token
723
+ # The value returned by the last `ListServiceBindingsResponse` Indicates that
724
+ # this is a continuation of a prior `ListRouters` call, and that the system
725
+ # should return the next page of data.
726
+ # @param [String] fields
727
+ # Selector specifying which fields to include in a partial response.
728
+ # @param [String] quota_user
729
+ # Available to use for quota purposes for server-side applications. Can be any
730
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
731
+ # @param [Google::Apis::RequestOptions] options
732
+ # Request-specific options
733
+ #
734
+ # @yield [result, err] Result & error if block supplied
735
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListServiceBindingsResponse] parsed result object
736
+ # @yieldparam err [StandardError] error object if request failed
737
+ #
738
+ # @return [Google::Apis::NetworkservicesV1beta1::ListServiceBindingsResponse]
739
+ #
740
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
741
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
742
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
743
+ def list_project_location_service_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
744
+ command = make_simple_command(:get, 'v1beta1/{+parent}/serviceBindings', options)
745
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::ListServiceBindingsResponse::Representation
746
+ command.response_class = Google::Apis::NetworkservicesV1beta1::ListServiceBindingsResponse
747
+ command.params['parent'] = parent unless parent.nil?
748
+ command.query['pageSize'] = page_size unless page_size.nil?
749
+ command.query['pageToken'] = page_token unless page_token.nil?
750
+ command.query['fields'] = fields unless fields.nil?
751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
752
+ execute_or_queue_command(command, &block)
753
+ end
754
+
755
+ # Updates the parameters of a single ServiceBinding.
756
+ # @param [String] name
757
+ # Required. Name of the ServiceBinding resource. It matches pattern `projects/*/
758
+ # locations/global/serviceBindings/service_binding_name>`.
759
+ # @param [Google::Apis::NetworkservicesV1beta1::ServiceBinding] service_binding_object
760
+ # @param [String] update_mask
761
+ # Optional. Field mask is used to specify the fields to be overwritten in the
762
+ # ServiceBinding resource by the update. The fields specified in the update_mask
763
+ # are relative to the resource, not the full request. A field will be
764
+ # overwritten if it is in the mask. If the user does not provide a mask then all
765
+ # fields will be overwritten.
766
+ # @param [String] fields
767
+ # Selector specifying which fields to include in a partial response.
768
+ # @param [String] quota_user
769
+ # Available to use for quota purposes for server-side applications. Can be any
770
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
771
+ # @param [Google::Apis::RequestOptions] options
772
+ # Request-specific options
773
+ #
774
+ # @yield [result, err] Result & error if block supplied
775
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
776
+ # @yieldparam err [StandardError] error object if request failed
777
+ #
778
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
779
+ #
780
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
781
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
782
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
783
+ def patch_project_location_service_binding(name, service_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
784
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
785
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::ServiceBinding::Representation
786
+ command.request_object = service_binding_object
787
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
788
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
789
+ command.params['name'] = name unless name.nil?
790
+ command.query['updateMask'] = update_mask unless update_mask.nil?
791
+ command.query['fields'] = fields unless fields.nil?
792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
793
+ execute_or_queue_command(command, &block)
794
+ end
795
+
796
+ # Sets the access control policy on the specified resource. Replaces any
797
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
798
+ # PERMISSION_DENIED` errors.
799
+ # @param [String] resource
800
+ # REQUIRED: The resource for which the policy is being specified. See the
801
+ # operation documentation for the appropriate value for this field.
802
+ # @param [Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
803
+ # @param [String] fields
804
+ # Selector specifying which fields to include in a partial response.
805
+ # @param [String] quota_user
806
+ # Available to use for quota purposes for server-side applications. Can be any
807
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
808
+ # @param [Google::Apis::RequestOptions] options
809
+ # Request-specific options
810
+ #
811
+ # @yield [result, err] Result & error if block supplied
812
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
813
+ # @yieldparam err [StandardError] error object if request failed
814
+ #
815
+ # @return [Google::Apis::NetworkservicesV1beta1::Policy]
816
+ #
817
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
818
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
819
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
820
+ def set_service_binding_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
821
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
822
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest::Representation
823
+ command.request_object = set_iam_policy_request_object
824
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
825
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
826
+ command.params['resource'] = resource unless resource.nil?
827
+ command.query['fields'] = fields unless fields.nil?
828
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
829
+ execute_or_queue_command(command, &block)
830
+ end
831
+
832
+ # Returns permissions that a caller has on the specified resource. If the
833
+ # resource does not exist, this will return an empty set of permissions, not a `
834
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
835
+ # permission-aware UIs and command-line tools, not for authorization checking.
836
+ # This operation may "fail open" without warning.
837
+ # @param [String] resource
838
+ # REQUIRED: The resource for which the policy detail is being requested. See the
839
+ # operation documentation for the appropriate value for this field.
840
+ # @param [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
841
+ # @param [String] fields
842
+ # Selector specifying which fields to include in a partial response.
843
+ # @param [String] quota_user
844
+ # Available to use for quota purposes for server-side applications. Can be any
845
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
846
+ # @param [Google::Apis::RequestOptions] options
847
+ # Request-specific options
848
+ #
849
+ # @yield [result, err] Result & error if block supplied
850
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse] parsed result object
851
+ # @yieldparam err [StandardError] error object if request failed
852
+ #
853
+ # @return [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse]
854
+ #
855
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
856
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
857
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
858
+ def test_service_binding_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
859
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
860
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest::Representation
861
+ command.request_object = test_iam_permissions_request_object
862
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse::Representation
863
+ command.response_class = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse
864
+ command.params['resource'] = resource unless resource.nil?
865
+ command.query['fields'] = fields unless fields.nil?
866
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
867
+ execute_or_queue_command(command, &block)
868
+ end
569
869
 
570
870
  protected
571
871
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networkservices_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.8.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-01 00:00:00.000000000 Z
11
+ date: 2022-01-17 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/main/generated/google-apis-networkservices_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1beta1/v0.4.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1beta1/v0.8.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Network Services API V1beta1