google-apis-networkservices_v1beta1 0.7.0 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d6bec729168509f33e223ceaa7f6f1c2893ba947beb6ee8c5d445645cacc5c7
4
- data.tar.gz: ce859e6b2e159855d8b2fb4906f339d043f10db70aaecff1edc9e14886bc5024
3
+ metadata.gz: 6fdf35afb8afba7123a8ec08f6cdb2e9fa08ecc9cba339bdb86da798975813c6
4
+ data.tar.gz: cc4ce010012863b0463f2bea7948aa8951f293f09ecc5ac312af4c2a2d05063e
5
5
  SHA512:
6
- metadata.gz: a0caa2ecdecc6e8faad81e5e17ae4581d0f13a571c05c4bb5424cf08ad84b26621f682f701ace307d38cbef653972bad817ff535591fc350c4e6b028710827cf
7
- data.tar.gz: 3938d33e0827272317e35915384c05bb1a3e08d332f77de780a97f150083c43056fc5173d1b4b9fcae657cd1b9eac754552447b285152e70528520108ab83232
6
+ metadata.gz: 3154c0c221e7893bd33edbdb59f12a5230de4ef80384c4d7f60de62873d1b5452dda414d57e0a4aafcfafd288ceb2d7ecdc8ae4ed2d1eccfb1c0957ee320099a
7
+ data.tar.gz: a2e02561573f04811c8f5502166326288e83a48a57f1642e14f6a2aedd8690085f86367fde2af8cd5e3b9c4a87216b7153ec8e823fea35980695ece4ec1415b6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.7.0 (2021-12-14)
4
8
 
5
9
  * Unspecified changes
@@ -442,6 +442,33 @@ module Google
442
442
  end
443
443
  end
444
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
+
445
472
  # A resource that represents Google Cloud Platform location.
446
473
  class Location
447
474
  include Google::Apis::Core::Hashable
@@ -770,6 +797,66 @@ module Google
770
797
  end
771
798
  end
772
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
+
773
860
  # Request message for `SetIamPolicy` method.
774
861
  class SetIamPolicyRequest
775
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.7.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 = "20211201"
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
@@ -570,6 +570,105 @@ module Google
570
570
  execute_or_queue_command(command, &block)
571
571
  end
572
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
+
573
672
  # Gets the access control policy for a resource. Returns an empty policy if the
574
673
  # resource exists and does not have a policy set.
575
674
  # @param [String] resource
@@ -614,6 +713,86 @@ module Google
614
713
  execute_or_queue_command(command, &block)
615
714
  end
616
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
+
617
796
  # Sets the access control policy on the specified resource. Replaces any
618
797
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
619
798
  # PERMISSION_DENIED` errors.
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.7.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: 2022-01-10 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.7.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.3.4
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