google-cloud-eventarc-v1 0.1.3 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -136,6 +136,7 @@ module Google
136
136
 
137
137
  @operations_client = Operations.new do |config|
138
138
  config.credentials = credentials
139
+ config.quota_project = @quota_project_id
139
140
  config.endpoint = @config.endpoint
140
141
  end
141
142
 
@@ -272,9 +273,9 @@ module Google
272
273
  # When paginating, all other parameters provided to `ListTriggers` must match
273
274
  # the call that provided the page token.
274
275
  # @param order_by [::String]
275
- # The sorting order of the resources returned. Value should be a comma
276
- # separated list of fields. The default sorting oder is ascending. To specify
277
- # descending order for a field, append a ` desc` suffix; for example:
276
+ # The sorting order of the resources returned. Value should be a
277
+ # comma-separated list of fields. The default sorting order is ascending. To
278
+ # specify descending order for a field, append a `desc` suffix; for example:
278
279
  # `name desc, trigger_id`.
279
280
  #
280
281
  # @yield [response, operation] Access the result along with the RPC operation
@@ -373,7 +374,7 @@ module Google
373
374
  # @param trigger_id [::String]
374
375
  # Required. The user-provided ID to be assigned to the trigger.
375
376
  # @param validate_only [::Boolean]
376
- # Required. If set, validate the request and preview the review, but do not actually
377
+ # Required. If set, validate the request and preview the review, but do not
377
378
  # post it.
378
379
  #
379
380
  # @yield [response, operation] Access the result along with the RPC operation
@@ -469,14 +470,14 @@ module Google
469
470
  # @param trigger [::Google::Cloud::Eventarc::V1::Trigger, ::Hash]
470
471
  # The trigger to be updated.
471
472
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
472
- # The fields to be updated; only fields explicitly provided will be updated.
473
- # If no field mask is provided, all provided fields in the request will be
473
+ # The fields to be updated; only fields explicitly provided are updated.
474
+ # If no field mask is provided, all provided fields in the request are
474
475
  # updated. To update all fields, provide a field mask of "*".
475
476
  # @param allow_missing [::Boolean]
476
477
  # If set to true, and the trigger is not found, a new trigger will be
477
478
  # created. In this situation, `update_mask` is ignored.
478
479
  # @param validate_only [::Boolean]
479
- # Required. If set, validate the request and preview the review, but do not actually
480
+ # Required. If set, validate the request and preview the review, but do not
480
481
  # post it.
481
482
  #
482
483
  # @yield [response, operation] Access the result along with the RPC operation
@@ -578,7 +579,7 @@ module Google
578
579
  # If set to true, and the trigger is not found, the request will succeed
579
580
  # but no action will be taken on the server.
580
581
  # @param validate_only [::Boolean]
581
- # Required. If set, validate the request and preview the review, but do not actually
582
+ # Required. If set, validate the request and preview the review, but do not
582
583
  # post it.
583
584
  #
584
585
  # @yield [response, operation] Access the result along with the RPC operation
@@ -653,6 +654,869 @@ module Google
653
654
  raise ::Google::Cloud::Error.from_error(e)
654
655
  end
655
656
 
657
+ ##
658
+ # Get a single Channel.
659
+ #
660
+ # @overload get_channel(request, options = nil)
661
+ # Pass arguments to `get_channel` via a request object, either of type
662
+ # {::Google::Cloud::Eventarc::V1::GetChannelRequest} or an equivalent Hash.
663
+ #
664
+ # @param request [::Google::Cloud::Eventarc::V1::GetChannelRequest, ::Hash]
665
+ # A request object representing the call parameters. Required. To specify no
666
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
667
+ # @param options [::Gapic::CallOptions, ::Hash]
668
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
669
+ #
670
+ # @overload get_channel(name: nil)
671
+ # Pass arguments to `get_channel` via keyword arguments. Note that at
672
+ # least one keyword argument is required. To specify no parameters, or to keep all
673
+ # the default parameter values, pass an empty Hash as a request object (see above).
674
+ #
675
+ # @param name [::String]
676
+ # Required. The name of the channel to get.
677
+ #
678
+ # @yield [response, operation] Access the result along with the RPC operation
679
+ # @yieldparam response [::Google::Cloud::Eventarc::V1::Channel]
680
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
681
+ #
682
+ # @return [::Google::Cloud::Eventarc::V1::Channel]
683
+ #
684
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
685
+ #
686
+ # @example Basic example
687
+ # require "google/cloud/eventarc/v1"
688
+ #
689
+ # # Create a client object. The client can be reused for multiple calls.
690
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
691
+ #
692
+ # # Create a request. To set request fields, pass in keyword arguments.
693
+ # request = Google::Cloud::Eventarc::V1::GetChannelRequest.new
694
+ #
695
+ # # Call the get_channel method.
696
+ # result = client.get_channel request
697
+ #
698
+ # # The returned object is of type Google::Cloud::Eventarc::V1::Channel.
699
+ # p result
700
+ #
701
+ def get_channel request, options = nil
702
+ raise ::ArgumentError, "request must be provided" if request.nil?
703
+
704
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetChannelRequest
705
+
706
+ # Converts hash and nil to an options object
707
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
708
+
709
+ # Customize the options with defaults
710
+ metadata = @config.rpcs.get_channel.metadata.to_h
711
+
712
+ # Set x-goog-api-client and x-goog-user-project headers
713
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
714
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
715
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
716
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
717
+
718
+ header_params = {}
719
+ if request.name
720
+ header_params["name"] = request.name
721
+ end
722
+
723
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
724
+ metadata[:"x-goog-request-params"] ||= request_params_header
725
+
726
+ options.apply_defaults timeout: @config.rpcs.get_channel.timeout,
727
+ metadata: metadata,
728
+ retry_policy: @config.rpcs.get_channel.retry_policy
729
+
730
+ options.apply_defaults timeout: @config.timeout,
731
+ metadata: @config.metadata,
732
+ retry_policy: @config.retry_policy
733
+
734
+ @eventarc_stub.call_rpc :get_channel, request, options: options do |response, operation|
735
+ yield response, operation if block_given?
736
+ return response
737
+ end
738
+ rescue ::GRPC::BadStatus => e
739
+ raise ::Google::Cloud::Error.from_error(e)
740
+ end
741
+
742
+ ##
743
+ # List channels.
744
+ #
745
+ # @overload list_channels(request, options = nil)
746
+ # Pass arguments to `list_channels` via a request object, either of type
747
+ # {::Google::Cloud::Eventarc::V1::ListChannelsRequest} or an equivalent Hash.
748
+ #
749
+ # @param request [::Google::Cloud::Eventarc::V1::ListChannelsRequest, ::Hash]
750
+ # A request object representing the call parameters. Required. To specify no
751
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
752
+ # @param options [::Gapic::CallOptions, ::Hash]
753
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
754
+ #
755
+ # @overload list_channels(parent: nil, page_size: nil, page_token: nil, order_by: nil)
756
+ # Pass arguments to `list_channels` via keyword arguments. Note that at
757
+ # least one keyword argument is required. To specify no parameters, or to keep all
758
+ # the default parameter values, pass an empty Hash as a request object (see above).
759
+ #
760
+ # @param parent [::String]
761
+ # Required. The parent collection to list channels on.
762
+ # @param page_size [::Integer]
763
+ # The maximum number of channels to return on each page.
764
+ # Note: The service may send fewer.
765
+ # @param page_token [::String]
766
+ # The page token; provide the value from the `next_page_token` field in a
767
+ # previous `ListChannels` call to retrieve the subsequent page.
768
+ #
769
+ # When paginating, all other parameters provided to `ListChannels` must
770
+ # match the call that provided the page token.
771
+ # @param order_by [::String]
772
+ # The sorting order of the resources returned. Value should be a
773
+ # comma-separated list of fields. The default sorting order is ascending. To
774
+ # specify descending order for a field, append a `desc` suffix; for example:
775
+ # `name desc, channel_id`.
776
+ #
777
+ # @yield [response, operation] Access the result along with the RPC operation
778
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::Channel>]
779
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
780
+ #
781
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::Channel>]
782
+ #
783
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
784
+ #
785
+ # @example Basic example
786
+ # require "google/cloud/eventarc/v1"
787
+ #
788
+ # # Create a client object. The client can be reused for multiple calls.
789
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
790
+ #
791
+ # # Create a request. To set request fields, pass in keyword arguments.
792
+ # request = Google::Cloud::Eventarc::V1::ListChannelsRequest.new
793
+ #
794
+ # # Call the list_channels method.
795
+ # result = client.list_channels request
796
+ #
797
+ # # The returned object is of type Gapic::PagedEnumerable. You can
798
+ # # iterate over all elements by calling #each, and the enumerable
799
+ # # will lazily make API calls to fetch subsequent pages. Other
800
+ # # methods are also available for managing paging directly.
801
+ # result.each do |response|
802
+ # # Each element is of type ::Google::Cloud::Eventarc::V1::Channel.
803
+ # p response
804
+ # end
805
+ #
806
+ def list_channels request, options = nil
807
+ raise ::ArgumentError, "request must be provided" if request.nil?
808
+
809
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListChannelsRequest
810
+
811
+ # Converts hash and nil to an options object
812
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
813
+
814
+ # Customize the options with defaults
815
+ metadata = @config.rpcs.list_channels.metadata.to_h
816
+
817
+ # Set x-goog-api-client and x-goog-user-project headers
818
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
819
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
820
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
821
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
822
+
823
+ header_params = {}
824
+ if request.parent
825
+ header_params["parent"] = request.parent
826
+ end
827
+
828
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
829
+ metadata[:"x-goog-request-params"] ||= request_params_header
830
+
831
+ options.apply_defaults timeout: @config.rpcs.list_channels.timeout,
832
+ metadata: metadata,
833
+ retry_policy: @config.rpcs.list_channels.retry_policy
834
+
835
+ options.apply_defaults timeout: @config.timeout,
836
+ metadata: @config.metadata,
837
+ retry_policy: @config.retry_policy
838
+
839
+ @eventarc_stub.call_rpc :list_channels, request, options: options do |response, operation|
840
+ response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_channels, request, response, operation, options
841
+ yield response, operation if block_given?
842
+ return response
843
+ end
844
+ rescue ::GRPC::BadStatus => e
845
+ raise ::Google::Cloud::Error.from_error(e)
846
+ end
847
+
848
+ ##
849
+ # Create a new channel in a particular project and location.
850
+ #
851
+ # @overload create_channel(request, options = nil)
852
+ # Pass arguments to `create_channel` via a request object, either of type
853
+ # {::Google::Cloud::Eventarc::V1::CreateChannelRequest} or an equivalent Hash.
854
+ #
855
+ # @param request [::Google::Cloud::Eventarc::V1::CreateChannelRequest, ::Hash]
856
+ # A request object representing the call parameters. Required. To specify no
857
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
858
+ # @param options [::Gapic::CallOptions, ::Hash]
859
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
860
+ #
861
+ # @overload create_channel(parent: nil, channel: nil, channel_id: nil, validate_only: nil)
862
+ # Pass arguments to `create_channel` via keyword arguments. Note that at
863
+ # least one keyword argument is required. To specify no parameters, or to keep all
864
+ # the default parameter values, pass an empty Hash as a request object (see above).
865
+ #
866
+ # @param parent [::String]
867
+ # Required. The parent collection in which to add this channel.
868
+ # @param channel [::Google::Cloud::Eventarc::V1::Channel, ::Hash]
869
+ # Required. The channel to create.
870
+ # @param channel_id [::String]
871
+ # Required. The user-provided ID to be assigned to the channel.
872
+ # @param validate_only [::Boolean]
873
+ # Required. If set, validate the request and preview the review, but do not
874
+ # post it.
875
+ #
876
+ # @yield [response, operation] Access the result along with the RPC operation
877
+ # @yieldparam response [::Gapic::Operation]
878
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
879
+ #
880
+ # @return [::Gapic::Operation]
881
+ #
882
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
883
+ #
884
+ # @example Basic example
885
+ # require "google/cloud/eventarc/v1"
886
+ #
887
+ # # Create a client object. The client can be reused for multiple calls.
888
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
889
+ #
890
+ # # Create a request. To set request fields, pass in keyword arguments.
891
+ # request = Google::Cloud::Eventarc::V1::CreateChannelRequest.new
892
+ #
893
+ # # Call the create_channel method.
894
+ # result = client.create_channel request
895
+ #
896
+ # # The returned object is of type Gapic::Operation. You can use this
897
+ # # object to check the status of an operation, cancel it, or wait
898
+ # # for results. Here is how to block until completion:
899
+ # result.wait_until_done! timeout: 60
900
+ # if result.response?
901
+ # p result.response
902
+ # else
903
+ # puts "Error!"
904
+ # end
905
+ #
906
+ def create_channel request, options = nil
907
+ raise ::ArgumentError, "request must be provided" if request.nil?
908
+
909
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::CreateChannelRequest
910
+
911
+ # Converts hash and nil to an options object
912
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
913
+
914
+ # Customize the options with defaults
915
+ metadata = @config.rpcs.create_channel.metadata.to_h
916
+
917
+ # Set x-goog-api-client and x-goog-user-project headers
918
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
919
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
920
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
921
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
922
+
923
+ header_params = {}
924
+ if request.parent
925
+ header_params["parent"] = request.parent
926
+ end
927
+
928
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
929
+ metadata[:"x-goog-request-params"] ||= request_params_header
930
+
931
+ options.apply_defaults timeout: @config.rpcs.create_channel.timeout,
932
+ metadata: metadata,
933
+ retry_policy: @config.rpcs.create_channel.retry_policy
934
+
935
+ options.apply_defaults timeout: @config.timeout,
936
+ metadata: @config.metadata,
937
+ retry_policy: @config.retry_policy
938
+
939
+ @eventarc_stub.call_rpc :create_channel, request, options: options do |response, operation|
940
+ response = ::Gapic::Operation.new response, @operations_client, options: options
941
+ yield response, operation if block_given?
942
+ return response
943
+ end
944
+ rescue ::GRPC::BadStatus => e
945
+ raise ::Google::Cloud::Error.from_error(e)
946
+ end
947
+
948
+ ##
949
+ # Update a single channel.
950
+ #
951
+ # @overload update_channel(request, options = nil)
952
+ # Pass arguments to `update_channel` via a request object, either of type
953
+ # {::Google::Cloud::Eventarc::V1::UpdateChannelRequest} or an equivalent Hash.
954
+ #
955
+ # @param request [::Google::Cloud::Eventarc::V1::UpdateChannelRequest, ::Hash]
956
+ # A request object representing the call parameters. Required. To specify no
957
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
958
+ # @param options [::Gapic::CallOptions, ::Hash]
959
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
960
+ #
961
+ # @overload update_channel(channel: nil, update_mask: nil, validate_only: nil)
962
+ # Pass arguments to `update_channel` via keyword arguments. Note that at
963
+ # least one keyword argument is required. To specify no parameters, or to keep all
964
+ # the default parameter values, pass an empty Hash as a request object (see above).
965
+ #
966
+ # @param channel [::Google::Cloud::Eventarc::V1::Channel, ::Hash]
967
+ # The channel to be updated.
968
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
969
+ # The fields to be updated; only fields explicitly provided are updated.
970
+ # If no field mask is provided, all provided fields in the request are
971
+ # updated. To update all fields, provide a field mask of "*".
972
+ # @param validate_only [::Boolean]
973
+ # Required. If set, validate the request and preview the review, but do not
974
+ # post it.
975
+ #
976
+ # @yield [response, operation] Access the result along with the RPC operation
977
+ # @yieldparam response [::Gapic::Operation]
978
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
979
+ #
980
+ # @return [::Gapic::Operation]
981
+ #
982
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
983
+ #
984
+ # @example Basic example
985
+ # require "google/cloud/eventarc/v1"
986
+ #
987
+ # # Create a client object. The client can be reused for multiple calls.
988
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
989
+ #
990
+ # # Create a request. To set request fields, pass in keyword arguments.
991
+ # request = Google::Cloud::Eventarc::V1::UpdateChannelRequest.new
992
+ #
993
+ # # Call the update_channel method.
994
+ # result = client.update_channel request
995
+ #
996
+ # # The returned object is of type Gapic::Operation. You can use this
997
+ # # object to check the status of an operation, cancel it, or wait
998
+ # # for results. Here is how to block until completion:
999
+ # result.wait_until_done! timeout: 60
1000
+ # if result.response?
1001
+ # p result.response
1002
+ # else
1003
+ # puts "Error!"
1004
+ # end
1005
+ #
1006
+ def update_channel request, options = nil
1007
+ raise ::ArgumentError, "request must be provided" if request.nil?
1008
+
1009
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::UpdateChannelRequest
1010
+
1011
+ # Converts hash and nil to an options object
1012
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1013
+
1014
+ # Customize the options with defaults
1015
+ metadata = @config.rpcs.update_channel.metadata.to_h
1016
+
1017
+ # Set x-goog-api-client and x-goog-user-project headers
1018
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1019
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1020
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1021
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1022
+
1023
+ header_params = {}
1024
+ if request.channel&.name
1025
+ header_params["channel.name"] = request.channel.name
1026
+ end
1027
+
1028
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1029
+ metadata[:"x-goog-request-params"] ||= request_params_header
1030
+
1031
+ options.apply_defaults timeout: @config.rpcs.update_channel.timeout,
1032
+ metadata: metadata,
1033
+ retry_policy: @config.rpcs.update_channel.retry_policy
1034
+
1035
+ options.apply_defaults timeout: @config.timeout,
1036
+ metadata: @config.metadata,
1037
+ retry_policy: @config.retry_policy
1038
+
1039
+ @eventarc_stub.call_rpc :update_channel, request, options: options do |response, operation|
1040
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1041
+ yield response, operation if block_given?
1042
+ return response
1043
+ end
1044
+ rescue ::GRPC::BadStatus => e
1045
+ raise ::Google::Cloud::Error.from_error(e)
1046
+ end
1047
+
1048
+ ##
1049
+ # Delete a single channel.
1050
+ #
1051
+ # @overload delete_channel(request, options = nil)
1052
+ # Pass arguments to `delete_channel` via a request object, either of type
1053
+ # {::Google::Cloud::Eventarc::V1::DeleteChannelRequest} or an equivalent Hash.
1054
+ #
1055
+ # @param request [::Google::Cloud::Eventarc::V1::DeleteChannelRequest, ::Hash]
1056
+ # A request object representing the call parameters. Required. To specify no
1057
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1058
+ # @param options [::Gapic::CallOptions, ::Hash]
1059
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1060
+ #
1061
+ # @overload delete_channel(name: nil, validate_only: nil)
1062
+ # Pass arguments to `delete_channel` via keyword arguments. Note that at
1063
+ # least one keyword argument is required. To specify no parameters, or to keep all
1064
+ # the default parameter values, pass an empty Hash as a request object (see above).
1065
+ #
1066
+ # @param name [::String]
1067
+ # Required. The name of the channel to be deleted.
1068
+ # @param validate_only [::Boolean]
1069
+ # Required. If set, validate the request and preview the review, but do not
1070
+ # post it.
1071
+ #
1072
+ # @yield [response, operation] Access the result along with the RPC operation
1073
+ # @yieldparam response [::Gapic::Operation]
1074
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1075
+ #
1076
+ # @return [::Gapic::Operation]
1077
+ #
1078
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1079
+ #
1080
+ # @example Basic example
1081
+ # require "google/cloud/eventarc/v1"
1082
+ #
1083
+ # # Create a client object. The client can be reused for multiple calls.
1084
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
1085
+ #
1086
+ # # Create a request. To set request fields, pass in keyword arguments.
1087
+ # request = Google::Cloud::Eventarc::V1::DeleteChannelRequest.new
1088
+ #
1089
+ # # Call the delete_channel method.
1090
+ # result = client.delete_channel request
1091
+ #
1092
+ # # The returned object is of type Gapic::Operation. You can use this
1093
+ # # object to check the status of an operation, cancel it, or wait
1094
+ # # for results. Here is how to block until completion:
1095
+ # result.wait_until_done! timeout: 60
1096
+ # if result.response?
1097
+ # p result.response
1098
+ # else
1099
+ # puts "Error!"
1100
+ # end
1101
+ #
1102
+ def delete_channel request, options = nil
1103
+ raise ::ArgumentError, "request must be provided" if request.nil?
1104
+
1105
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::DeleteChannelRequest
1106
+
1107
+ # Converts hash and nil to an options object
1108
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1109
+
1110
+ # Customize the options with defaults
1111
+ metadata = @config.rpcs.delete_channel.metadata.to_h
1112
+
1113
+ # Set x-goog-api-client and x-goog-user-project headers
1114
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1115
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1116
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1117
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1118
+
1119
+ header_params = {}
1120
+ if request.name
1121
+ header_params["name"] = request.name
1122
+ end
1123
+
1124
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1125
+ metadata[:"x-goog-request-params"] ||= request_params_header
1126
+
1127
+ options.apply_defaults timeout: @config.rpcs.delete_channel.timeout,
1128
+ metadata: metadata,
1129
+ retry_policy: @config.rpcs.delete_channel.retry_policy
1130
+
1131
+ options.apply_defaults timeout: @config.timeout,
1132
+ metadata: @config.metadata,
1133
+ retry_policy: @config.retry_policy
1134
+
1135
+ @eventarc_stub.call_rpc :delete_channel, request, options: options do |response, operation|
1136
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1137
+ yield response, operation if block_given?
1138
+ return response
1139
+ end
1140
+ rescue ::GRPC::BadStatus => e
1141
+ raise ::Google::Cloud::Error.from_error(e)
1142
+ end
1143
+
1144
+ ##
1145
+ # Get a single ChannelConnection.
1146
+ #
1147
+ # @overload get_channel_connection(request, options = nil)
1148
+ # Pass arguments to `get_channel_connection` via a request object, either of type
1149
+ # {::Google::Cloud::Eventarc::V1::GetChannelConnectionRequest} or an equivalent Hash.
1150
+ #
1151
+ # @param request [::Google::Cloud::Eventarc::V1::GetChannelConnectionRequest, ::Hash]
1152
+ # A request object representing the call parameters. Required. To specify no
1153
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1154
+ # @param options [::Gapic::CallOptions, ::Hash]
1155
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1156
+ #
1157
+ # @overload get_channel_connection(name: nil)
1158
+ # Pass arguments to `get_channel_connection` via keyword arguments. Note that at
1159
+ # least one keyword argument is required. To specify no parameters, or to keep all
1160
+ # the default parameter values, pass an empty Hash as a request object (see above).
1161
+ #
1162
+ # @param name [::String]
1163
+ # Required. The name of the channel connection to get.
1164
+ #
1165
+ # @yield [response, operation] Access the result along with the RPC operation
1166
+ # @yieldparam response [::Google::Cloud::Eventarc::V1::ChannelConnection]
1167
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1168
+ #
1169
+ # @return [::Google::Cloud::Eventarc::V1::ChannelConnection]
1170
+ #
1171
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1172
+ #
1173
+ # @example Basic example
1174
+ # require "google/cloud/eventarc/v1"
1175
+ #
1176
+ # # Create a client object. The client can be reused for multiple calls.
1177
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
1178
+ #
1179
+ # # Create a request. To set request fields, pass in keyword arguments.
1180
+ # request = Google::Cloud::Eventarc::V1::GetChannelConnectionRequest.new
1181
+ #
1182
+ # # Call the get_channel_connection method.
1183
+ # result = client.get_channel_connection request
1184
+ #
1185
+ # # The returned object is of type Google::Cloud::Eventarc::V1::ChannelConnection.
1186
+ # p result
1187
+ #
1188
+ def get_channel_connection request, options = nil
1189
+ raise ::ArgumentError, "request must be provided" if request.nil?
1190
+
1191
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetChannelConnectionRequest
1192
+
1193
+ # Converts hash and nil to an options object
1194
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1195
+
1196
+ # Customize the options with defaults
1197
+ metadata = @config.rpcs.get_channel_connection.metadata.to_h
1198
+
1199
+ # Set x-goog-api-client and x-goog-user-project headers
1200
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1201
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1202
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1203
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1204
+
1205
+ header_params = {}
1206
+ if request.name
1207
+ header_params["name"] = request.name
1208
+ end
1209
+
1210
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1211
+ metadata[:"x-goog-request-params"] ||= request_params_header
1212
+
1213
+ options.apply_defaults timeout: @config.rpcs.get_channel_connection.timeout,
1214
+ metadata: metadata,
1215
+ retry_policy: @config.rpcs.get_channel_connection.retry_policy
1216
+
1217
+ options.apply_defaults timeout: @config.timeout,
1218
+ metadata: @config.metadata,
1219
+ retry_policy: @config.retry_policy
1220
+
1221
+ @eventarc_stub.call_rpc :get_channel_connection, request, options: options do |response, operation|
1222
+ yield response, operation if block_given?
1223
+ return response
1224
+ end
1225
+ rescue ::GRPC::BadStatus => e
1226
+ raise ::Google::Cloud::Error.from_error(e)
1227
+ end
1228
+
1229
+ ##
1230
+ # List channel connections.
1231
+ #
1232
+ # @overload list_channel_connections(request, options = nil)
1233
+ # Pass arguments to `list_channel_connections` via a request object, either of type
1234
+ # {::Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest} or an equivalent Hash.
1235
+ #
1236
+ # @param request [::Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest, ::Hash]
1237
+ # A request object representing the call parameters. Required. To specify no
1238
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1239
+ # @param options [::Gapic::CallOptions, ::Hash]
1240
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1241
+ #
1242
+ # @overload list_channel_connections(parent: nil, page_size: nil, page_token: nil)
1243
+ # Pass arguments to `list_channel_connections` via keyword arguments. Note that at
1244
+ # least one keyword argument is required. To specify no parameters, or to keep all
1245
+ # the default parameter values, pass an empty Hash as a request object (see above).
1246
+ #
1247
+ # @param parent [::String]
1248
+ # Required. The parent collection from which to list channel connections.
1249
+ # @param page_size [::Integer]
1250
+ # The maximum number of channel connections to return on each page.
1251
+ # Note: The service may send fewer responses.
1252
+ # @param page_token [::String]
1253
+ # The page token; provide the value from the `next_page_token` field in a
1254
+ # previous `ListChannelConnections` call to retrieve the subsequent page.
1255
+ #
1256
+ # When paginating, all other parameters provided to `ListChannelConnetions`
1257
+ # match the call that provided the page token.
1258
+ #
1259
+ # @yield [response, operation] Access the result along with the RPC operation
1260
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::ChannelConnection>]
1261
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1262
+ #
1263
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::ChannelConnection>]
1264
+ #
1265
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1266
+ #
1267
+ # @example Basic example
1268
+ # require "google/cloud/eventarc/v1"
1269
+ #
1270
+ # # Create a client object. The client can be reused for multiple calls.
1271
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
1272
+ #
1273
+ # # Create a request. To set request fields, pass in keyword arguments.
1274
+ # request = Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest.new
1275
+ #
1276
+ # # Call the list_channel_connections method.
1277
+ # result = client.list_channel_connections request
1278
+ #
1279
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1280
+ # # iterate over all elements by calling #each, and the enumerable
1281
+ # # will lazily make API calls to fetch subsequent pages. Other
1282
+ # # methods are also available for managing paging directly.
1283
+ # result.each do |response|
1284
+ # # Each element is of type ::Google::Cloud::Eventarc::V1::ChannelConnection.
1285
+ # p response
1286
+ # end
1287
+ #
1288
+ def list_channel_connections request, options = nil
1289
+ raise ::ArgumentError, "request must be provided" if request.nil?
1290
+
1291
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest
1292
+
1293
+ # Converts hash and nil to an options object
1294
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1295
+
1296
+ # Customize the options with defaults
1297
+ metadata = @config.rpcs.list_channel_connections.metadata.to_h
1298
+
1299
+ # Set x-goog-api-client and x-goog-user-project headers
1300
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1301
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1302
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1303
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1304
+
1305
+ header_params = {}
1306
+ if request.parent
1307
+ header_params["parent"] = request.parent
1308
+ end
1309
+
1310
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1311
+ metadata[:"x-goog-request-params"] ||= request_params_header
1312
+
1313
+ options.apply_defaults timeout: @config.rpcs.list_channel_connections.timeout,
1314
+ metadata: metadata,
1315
+ retry_policy: @config.rpcs.list_channel_connections.retry_policy
1316
+
1317
+ options.apply_defaults timeout: @config.timeout,
1318
+ metadata: @config.metadata,
1319
+ retry_policy: @config.retry_policy
1320
+
1321
+ @eventarc_stub.call_rpc :list_channel_connections, request, options: options do |response, operation|
1322
+ response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_channel_connections, request, response, operation, options
1323
+ yield response, operation if block_given?
1324
+ return response
1325
+ end
1326
+ rescue ::GRPC::BadStatus => e
1327
+ raise ::Google::Cloud::Error.from_error(e)
1328
+ end
1329
+
1330
+ ##
1331
+ # Create a new ChannelConnection in a particular project and location.
1332
+ #
1333
+ # @overload create_channel_connection(request, options = nil)
1334
+ # Pass arguments to `create_channel_connection` via a request object, either of type
1335
+ # {::Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest} or an equivalent Hash.
1336
+ #
1337
+ # @param request [::Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest, ::Hash]
1338
+ # A request object representing the call parameters. Required. To specify no
1339
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1340
+ # @param options [::Gapic::CallOptions, ::Hash]
1341
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1342
+ #
1343
+ # @overload create_channel_connection(parent: nil, channel_connection: nil, channel_connection_id: nil)
1344
+ # Pass arguments to `create_channel_connection` via keyword arguments. Note that at
1345
+ # least one keyword argument is required. To specify no parameters, or to keep all
1346
+ # the default parameter values, pass an empty Hash as a request object (see above).
1347
+ #
1348
+ # @param parent [::String]
1349
+ # Required. The parent collection in which to add this channel connection.
1350
+ # @param channel_connection [::Google::Cloud::Eventarc::V1::ChannelConnection, ::Hash]
1351
+ # Required. Channel connection to create.
1352
+ # @param channel_connection_id [::String]
1353
+ # Required. The user-provided ID to be assigned to the channel connection.
1354
+ #
1355
+ # @yield [response, operation] Access the result along with the RPC operation
1356
+ # @yieldparam response [::Gapic::Operation]
1357
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1358
+ #
1359
+ # @return [::Gapic::Operation]
1360
+ #
1361
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1362
+ #
1363
+ # @example Basic example
1364
+ # require "google/cloud/eventarc/v1"
1365
+ #
1366
+ # # Create a client object. The client can be reused for multiple calls.
1367
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
1368
+ #
1369
+ # # Create a request. To set request fields, pass in keyword arguments.
1370
+ # request = Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest.new
1371
+ #
1372
+ # # Call the create_channel_connection method.
1373
+ # result = client.create_channel_connection request
1374
+ #
1375
+ # # The returned object is of type Gapic::Operation. You can use this
1376
+ # # object to check the status of an operation, cancel it, or wait
1377
+ # # for results. Here is how to block until completion:
1378
+ # result.wait_until_done! timeout: 60
1379
+ # if result.response?
1380
+ # p result.response
1381
+ # else
1382
+ # puts "Error!"
1383
+ # end
1384
+ #
1385
+ def create_channel_connection request, options = nil
1386
+ raise ::ArgumentError, "request must be provided" if request.nil?
1387
+
1388
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest
1389
+
1390
+ # Converts hash and nil to an options object
1391
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1392
+
1393
+ # Customize the options with defaults
1394
+ metadata = @config.rpcs.create_channel_connection.metadata.to_h
1395
+
1396
+ # Set x-goog-api-client and x-goog-user-project headers
1397
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1398
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1399
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1400
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1401
+
1402
+ header_params = {}
1403
+ if request.parent
1404
+ header_params["parent"] = request.parent
1405
+ end
1406
+
1407
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1408
+ metadata[:"x-goog-request-params"] ||= request_params_header
1409
+
1410
+ options.apply_defaults timeout: @config.rpcs.create_channel_connection.timeout,
1411
+ metadata: metadata,
1412
+ retry_policy: @config.rpcs.create_channel_connection.retry_policy
1413
+
1414
+ options.apply_defaults timeout: @config.timeout,
1415
+ metadata: @config.metadata,
1416
+ retry_policy: @config.retry_policy
1417
+
1418
+ @eventarc_stub.call_rpc :create_channel_connection, request, options: options do |response, operation|
1419
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1420
+ yield response, operation if block_given?
1421
+ return response
1422
+ end
1423
+ rescue ::GRPC::BadStatus => e
1424
+ raise ::Google::Cloud::Error.from_error(e)
1425
+ end
1426
+
1427
+ ##
1428
+ # Delete a single ChannelConnection.
1429
+ #
1430
+ # @overload delete_channel_connection(request, options = nil)
1431
+ # Pass arguments to `delete_channel_connection` via a request object, either of type
1432
+ # {::Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest} or an equivalent Hash.
1433
+ #
1434
+ # @param request [::Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest, ::Hash]
1435
+ # A request object representing the call parameters. Required. To specify no
1436
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1437
+ # @param options [::Gapic::CallOptions, ::Hash]
1438
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1439
+ #
1440
+ # @overload delete_channel_connection(name: nil)
1441
+ # Pass arguments to `delete_channel_connection` via keyword arguments. Note that at
1442
+ # least one keyword argument is required. To specify no parameters, or to keep all
1443
+ # the default parameter values, pass an empty Hash as a request object (see above).
1444
+ #
1445
+ # @param name [::String]
1446
+ # Required. The name of the channel connection to delete.
1447
+ #
1448
+ # @yield [response, operation] Access the result along with the RPC operation
1449
+ # @yieldparam response [::Gapic::Operation]
1450
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1451
+ #
1452
+ # @return [::Gapic::Operation]
1453
+ #
1454
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1455
+ #
1456
+ # @example Basic example
1457
+ # require "google/cloud/eventarc/v1"
1458
+ #
1459
+ # # Create a client object. The client can be reused for multiple calls.
1460
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
1461
+ #
1462
+ # # Create a request. To set request fields, pass in keyword arguments.
1463
+ # request = Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest.new
1464
+ #
1465
+ # # Call the delete_channel_connection method.
1466
+ # result = client.delete_channel_connection request
1467
+ #
1468
+ # # The returned object is of type Gapic::Operation. You can use this
1469
+ # # object to check the status of an operation, cancel it, or wait
1470
+ # # for results. Here is how to block until completion:
1471
+ # result.wait_until_done! timeout: 60
1472
+ # if result.response?
1473
+ # p result.response
1474
+ # else
1475
+ # puts "Error!"
1476
+ # end
1477
+ #
1478
+ def delete_channel_connection request, options = nil
1479
+ raise ::ArgumentError, "request must be provided" if request.nil?
1480
+
1481
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest
1482
+
1483
+ # Converts hash and nil to an options object
1484
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1485
+
1486
+ # Customize the options with defaults
1487
+ metadata = @config.rpcs.delete_channel_connection.metadata.to_h
1488
+
1489
+ # Set x-goog-api-client and x-goog-user-project headers
1490
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1491
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1492
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
1493
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1494
+
1495
+ header_params = {}
1496
+ if request.name
1497
+ header_params["name"] = request.name
1498
+ end
1499
+
1500
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1501
+ metadata[:"x-goog-request-params"] ||= request_params_header
1502
+
1503
+ options.apply_defaults timeout: @config.rpcs.delete_channel_connection.timeout,
1504
+ metadata: metadata,
1505
+ retry_policy: @config.rpcs.delete_channel_connection.retry_policy
1506
+
1507
+ options.apply_defaults timeout: @config.timeout,
1508
+ metadata: @config.metadata,
1509
+ retry_policy: @config.retry_policy
1510
+
1511
+ @eventarc_stub.call_rpc :delete_channel_connection, request, options: options do |response, operation|
1512
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1513
+ yield response, operation if block_given?
1514
+ return response
1515
+ end
1516
+ rescue ::GRPC::BadStatus => e
1517
+ raise ::Google::Cloud::Error.from_error(e)
1518
+ end
1519
+
656
1520
  ##
657
1521
  # Configuration class for the Eventarc API.
658
1522
  #
@@ -813,6 +1677,51 @@ module Google
813
1677
  # @return [::Gapic::Config::Method]
814
1678
  #
815
1679
  attr_reader :delete_trigger
1680
+ ##
1681
+ # RPC-specific configuration for `get_channel`
1682
+ # @return [::Gapic::Config::Method]
1683
+ #
1684
+ attr_reader :get_channel
1685
+ ##
1686
+ # RPC-specific configuration for `list_channels`
1687
+ # @return [::Gapic::Config::Method]
1688
+ #
1689
+ attr_reader :list_channels
1690
+ ##
1691
+ # RPC-specific configuration for `create_channel`
1692
+ # @return [::Gapic::Config::Method]
1693
+ #
1694
+ attr_reader :create_channel
1695
+ ##
1696
+ # RPC-specific configuration for `update_channel`
1697
+ # @return [::Gapic::Config::Method]
1698
+ #
1699
+ attr_reader :update_channel
1700
+ ##
1701
+ # RPC-specific configuration for `delete_channel`
1702
+ # @return [::Gapic::Config::Method]
1703
+ #
1704
+ attr_reader :delete_channel
1705
+ ##
1706
+ # RPC-specific configuration for `get_channel_connection`
1707
+ # @return [::Gapic::Config::Method]
1708
+ #
1709
+ attr_reader :get_channel_connection
1710
+ ##
1711
+ # RPC-specific configuration for `list_channel_connections`
1712
+ # @return [::Gapic::Config::Method]
1713
+ #
1714
+ attr_reader :list_channel_connections
1715
+ ##
1716
+ # RPC-specific configuration for `create_channel_connection`
1717
+ # @return [::Gapic::Config::Method]
1718
+ #
1719
+ attr_reader :create_channel_connection
1720
+ ##
1721
+ # RPC-specific configuration for `delete_channel_connection`
1722
+ # @return [::Gapic::Config::Method]
1723
+ #
1724
+ attr_reader :delete_channel_connection
816
1725
 
817
1726
  # @private
818
1727
  def initialize parent_rpcs = nil
@@ -826,6 +1735,24 @@ module Google
826
1735
  @update_trigger = ::Gapic::Config::Method.new update_trigger_config
827
1736
  delete_trigger_config = parent_rpcs.delete_trigger if parent_rpcs.respond_to? :delete_trigger
828
1737
  @delete_trigger = ::Gapic::Config::Method.new delete_trigger_config
1738
+ get_channel_config = parent_rpcs.get_channel if parent_rpcs.respond_to? :get_channel
1739
+ @get_channel = ::Gapic::Config::Method.new get_channel_config
1740
+ list_channels_config = parent_rpcs.list_channels if parent_rpcs.respond_to? :list_channels
1741
+ @list_channels = ::Gapic::Config::Method.new list_channels_config
1742
+ create_channel_config = parent_rpcs.create_channel if parent_rpcs.respond_to? :create_channel
1743
+ @create_channel = ::Gapic::Config::Method.new create_channel_config
1744
+ update_channel_config = parent_rpcs.update_channel if parent_rpcs.respond_to? :update_channel
1745
+ @update_channel = ::Gapic::Config::Method.new update_channel_config
1746
+ delete_channel_config = parent_rpcs.delete_channel if parent_rpcs.respond_to? :delete_channel
1747
+ @delete_channel = ::Gapic::Config::Method.new delete_channel_config
1748
+ get_channel_connection_config = parent_rpcs.get_channel_connection if parent_rpcs.respond_to? :get_channel_connection
1749
+ @get_channel_connection = ::Gapic::Config::Method.new get_channel_connection_config
1750
+ list_channel_connections_config = parent_rpcs.list_channel_connections if parent_rpcs.respond_to? :list_channel_connections
1751
+ @list_channel_connections = ::Gapic::Config::Method.new list_channel_connections_config
1752
+ create_channel_connection_config = parent_rpcs.create_channel_connection if parent_rpcs.respond_to? :create_channel_connection
1753
+ @create_channel_connection = ::Gapic::Config::Method.new create_channel_connection_config
1754
+ delete_channel_connection_config = parent_rpcs.delete_channel_connection if parent_rpcs.respond_to? :delete_channel_connection
1755
+ @delete_channel_connection = ::Gapic::Config::Method.new delete_channel_connection_config
829
1756
 
830
1757
  yield self if block_given?
831
1758
  end