google-cloud-eventarc-v1 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/eventarc/v1/bindings_override.rb +96 -0
  3. data/lib/google/cloud/eventarc/v1/channel_pb.rb +1 -1
  4. data/lib/google/cloud/eventarc/v1/enrollment_pb.rb +47 -0
  5. data/lib/google/cloud/eventarc/v1/eventarc/client.rb +2565 -174
  6. data/lib/google/cloud/eventarc/v1/eventarc/paths.rb +112 -0
  7. data/lib/google/cloud/eventarc/v1/eventarc/rest/client.rb +2420 -180
  8. data/lib/google/cloud/eventarc/v1/eventarc/rest/service_stub.rb +1335 -88
  9. data/lib/google/cloud/eventarc/v1/eventarc_pb.rb +35 -1
  10. data/lib/google/cloud/eventarc/v1/eventarc_services_pb.rb +42 -0
  11. data/lib/google/cloud/eventarc/v1/google_api_source_pb.rb +50 -0
  12. data/lib/google/cloud/eventarc/v1/logging_config_pb.rb +45 -0
  13. data/lib/google/cloud/eventarc/v1/message_bus_pb.rb +49 -0
  14. data/lib/google/cloud/eventarc/v1/network_config_pb.rb +45 -0
  15. data/lib/google/cloud/eventarc/v1/pipeline_pb.rb +65 -0
  16. data/lib/google/cloud/eventarc/v1/trigger_pb.rb +4 -1
  17. data/lib/google/cloud/eventarc/v1/version.rb +1 -1
  18. data/proto_docs/google/api/client.rb +51 -10
  19. data/proto_docs/google/api/field_info.rb +88 -0
  20. data/proto_docs/google/api/resource.rb +7 -2
  21. data/proto_docs/google/cloud/eventarc/v1/channel.rb +5 -1
  22. data/proto_docs/google/cloud/eventarc/v1/discovery.rb +8 -7
  23. data/proto_docs/google/cloud/eventarc/v1/enrollment.rb +95 -0
  24. data/proto_docs/google/cloud/eventarc/v1/eventarc.rb +522 -8
  25. data/proto_docs/google/cloud/eventarc/v1/google_api_source.rb +95 -0
  26. data/proto_docs/google/cloud/eventarc/v1/logging_config.rb +78 -0
  27. data/proto_docs/google/cloud/eventarc/v1/message_bus.rb +94 -0
  28. data/proto_docs/google/cloud/eventarc/v1/network_config.rb +37 -0
  29. data/proto_docs/google/cloud/eventarc/v1/pipeline.rb +583 -0
  30. data/proto_docs/google/cloud/eventarc/v1/trigger.rb +76 -35
  31. metadata +16 -3
@@ -73,6 +73,138 @@ module Google
73
73
  end
74
74
  default_config = Client::Configuration.new parent_config
75
75
 
76
+ default_config.rpcs.get_trigger.timeout = 60.0
77
+ default_config.rpcs.get_trigger.retry_policy = {
78
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
79
+ }
80
+
81
+ default_config.rpcs.list_triggers.timeout = 60.0
82
+ default_config.rpcs.list_triggers.retry_policy = {
83
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
84
+ }
85
+
86
+ default_config.rpcs.create_trigger.timeout = 60.0
87
+
88
+ default_config.rpcs.update_trigger.timeout = 60.0
89
+
90
+ default_config.rpcs.delete_trigger.timeout = 60.0
91
+
92
+ default_config.rpcs.get_channel.timeout = 60.0
93
+ default_config.rpcs.get_channel.retry_policy = {
94
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
95
+ }
96
+
97
+ default_config.rpcs.list_channels.timeout = 60.0
98
+ default_config.rpcs.list_channels.retry_policy = {
99
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
100
+ }
101
+
102
+ default_config.rpcs.create_channel.timeout = 60.0
103
+
104
+ default_config.rpcs.update_channel.timeout = 60.0
105
+
106
+ default_config.rpcs.delete_channel.timeout = 60.0
107
+
108
+ default_config.rpcs.get_provider.timeout = 60.0
109
+ default_config.rpcs.get_provider.retry_policy = {
110
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
111
+ }
112
+
113
+ default_config.rpcs.list_providers.timeout = 60.0
114
+ default_config.rpcs.list_providers.retry_policy = {
115
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
116
+ }
117
+
118
+ default_config.rpcs.get_channel_connection.timeout = 60.0
119
+ default_config.rpcs.get_channel_connection.retry_policy = {
120
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
121
+ }
122
+
123
+ default_config.rpcs.list_channel_connections.timeout = 60.0
124
+ default_config.rpcs.list_channel_connections.retry_policy = {
125
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
126
+ }
127
+
128
+ default_config.rpcs.create_channel_connection.timeout = 60.0
129
+
130
+ default_config.rpcs.delete_channel_connection.timeout = 60.0
131
+
132
+ default_config.rpcs.get_google_channel_config.timeout = 60.0
133
+ default_config.rpcs.get_google_channel_config.retry_policy = {
134
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
135
+ }
136
+
137
+ default_config.rpcs.update_google_channel_config.timeout = 60.0
138
+
139
+ default_config.rpcs.get_message_bus.timeout = 60.0
140
+ default_config.rpcs.get_message_bus.retry_policy = {
141
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
142
+ }
143
+
144
+ default_config.rpcs.list_message_buses.timeout = 60.0
145
+ default_config.rpcs.list_message_buses.retry_policy = {
146
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
147
+ }
148
+
149
+ default_config.rpcs.list_message_bus_enrollments.timeout = 60.0
150
+ default_config.rpcs.list_message_bus_enrollments.retry_policy = {
151
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
152
+ }
153
+
154
+ default_config.rpcs.create_message_bus.timeout = 60.0
155
+
156
+ default_config.rpcs.update_message_bus.timeout = 60.0
157
+
158
+ default_config.rpcs.delete_message_bus.timeout = 60.0
159
+
160
+ default_config.rpcs.get_enrollment.timeout = 60.0
161
+ default_config.rpcs.get_enrollment.retry_policy = {
162
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
163
+ }
164
+
165
+ default_config.rpcs.list_enrollments.timeout = 60.0
166
+ default_config.rpcs.list_enrollments.retry_policy = {
167
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
168
+ }
169
+
170
+ default_config.rpcs.create_enrollment.timeout = 60.0
171
+
172
+ default_config.rpcs.update_enrollment.timeout = 60.0
173
+
174
+ default_config.rpcs.delete_enrollment.timeout = 60.0
175
+
176
+ default_config.rpcs.get_pipeline.timeout = 60.0
177
+ default_config.rpcs.get_pipeline.retry_policy = {
178
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
179
+ }
180
+
181
+ default_config.rpcs.list_pipelines.timeout = 60.0
182
+ default_config.rpcs.list_pipelines.retry_policy = {
183
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
184
+ }
185
+
186
+ default_config.rpcs.create_pipeline.timeout = 60.0
187
+
188
+ default_config.rpcs.update_pipeline.timeout = 60.0
189
+
190
+ default_config.rpcs.delete_pipeline.timeout = 60.0
191
+
192
+ default_config.rpcs.get_google_api_source.timeout = 60.0
193
+ default_config.rpcs.get_google_api_source.retry_policy = {
194
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
195
+ }
196
+
197
+ default_config.rpcs.list_google_api_sources.timeout = 60.0
198
+ default_config.rpcs.list_google_api_sources.retry_policy = {
199
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
200
+ }
201
+
202
+ default_config.rpcs.create_google_api_source.timeout = 60.0
203
+
204
+ default_config.rpcs.update_google_api_source.timeout = 60.0
205
+
206
+ default_config.rpcs.delete_google_api_source.timeout = 60.0
207
+
76
208
  default_config
77
209
  end
78
210
  yield @configure if block_given?
@@ -429,7 +561,7 @@ module Google
429
561
  # @param trigger_id [::String]
430
562
  # Required. The user-provided ID to be assigned to the trigger.
431
563
  # @param validate_only [::Boolean]
432
- # Required. If set, validate the request and preview the review, but do not
564
+ # Optional. If set, validate the request and preview the review, but do not
433
565
  # post it.
434
566
  #
435
567
  # @yield [response, operation] Access the result along with the RPC operation
@@ -533,7 +665,7 @@ module Google
533
665
  # If set to true, and the trigger is not found, a new trigger will be
534
666
  # created. In this situation, `update_mask` is ignored.
535
667
  # @param validate_only [::Boolean]
536
- # Required. If set, validate the request and preview the review, but do not
668
+ # Optional. If set, validate the request and preview the review, but do not
537
669
  # post it.
538
670
  #
539
671
  # @yield [response, operation] Access the result along with the RPC operation
@@ -636,7 +768,7 @@ module Google
636
768
  # If set to true, and the trigger is not found, the request will succeed
637
769
  # but no action will be taken on the server.
638
770
  # @param validate_only [::Boolean]
639
- # Required. If set, validate the request and preview the review, but do not
771
+ # Optional. If set, validate the request and preview the review, but do not
640
772
  # post it.
641
773
  #
642
774
  # @yield [response, operation] Access the result along with the RPC operation
@@ -929,7 +1061,7 @@ module Google
929
1061
  # @param channel_id [::String]
930
1062
  # Required. The user-provided ID to be assigned to the channel.
931
1063
  # @param validate_only [::Boolean]
932
- # Required. If set, validate the request and preview the review, but do not
1064
+ # Optional. If set, validate the request and preview the review, but do not
933
1065
  # post it.
934
1066
  #
935
1067
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1030,7 +1162,7 @@ module Google
1030
1162
  # If no field mask is provided, all provided fields in the request are
1031
1163
  # updated. To update all fields, provide a field mask of "*".
1032
1164
  # @param validate_only [::Boolean]
1033
- # Required. If set, validate the request and preview the review, but do not
1165
+ # Optional. If set, validate the request and preview the review, but do not
1034
1166
  # post it.
1035
1167
  #
1036
1168
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1127,7 +1259,7 @@ module Google
1127
1259
  # @param name [::String]
1128
1260
  # Required. The name of the channel to be deleted.
1129
1261
  # @param validate_only [::Boolean]
1130
- # Required. If set, validate the request and preview the review, but do not
1262
+ # Optional. If set, validate the request and preview the review, but do not
1131
1263
  # post it.
1132
1264
  #
1133
1265
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1951,190 +2083,2302 @@ module Google
1951
2083
  end
1952
2084
 
1953
2085
  ##
1954
- # Configuration class for the Eventarc API.
2086
+ # Get a single MessageBus.
1955
2087
  #
1956
- # This class represents the configuration for Eventarc,
1957
- # providing control over timeouts, retry behavior, logging, transport
1958
- # parameters, and other low-level controls. Certain parameters can also be
1959
- # applied individually to specific RPCs. See
1960
- # {::Google::Cloud::Eventarc::V1::Eventarc::Client::Configuration::Rpcs}
1961
- # for a list of RPCs that can be configured independently.
2088
+ # @overload get_message_bus(request, options = nil)
2089
+ # Pass arguments to `get_message_bus` via a request object, either of type
2090
+ # {::Google::Cloud::Eventarc::V1::GetMessageBusRequest} or an equivalent Hash.
1962
2091
  #
1963
- # Configuration can be applied globally to all clients, or to a single client
1964
- # on construction.
2092
+ # @param request [::Google::Cloud::Eventarc::V1::GetMessageBusRequest, ::Hash]
2093
+ # A request object representing the call parameters. Required. To specify no
2094
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2095
+ # @param options [::Gapic::CallOptions, ::Hash]
2096
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1965
2097
  #
1966
- # @example
2098
+ # @overload get_message_bus(name: nil)
2099
+ # Pass arguments to `get_message_bus` via keyword arguments. Note that at
2100
+ # least one keyword argument is required. To specify no parameters, or to keep all
2101
+ # the default parameter values, pass an empty Hash as a request object (see above).
1967
2102
  #
1968
- # # Modify the global config, setting the timeout for
1969
- # # get_trigger to 20 seconds,
1970
- # # and all remaining timeouts to 10 seconds.
1971
- # ::Google::Cloud::Eventarc::V1::Eventarc::Client.configure do |config|
1972
- # config.timeout = 10.0
1973
- # config.rpcs.get_trigger.timeout = 20.0
1974
- # end
2103
+ # @param name [::String]
2104
+ # Required. The name of the message bus to get.
1975
2105
  #
1976
- # # Apply the above configuration only to a new client.
1977
- # client = ::Google::Cloud::Eventarc::V1::Eventarc::Client.new do |config|
1978
- # config.timeout = 10.0
1979
- # config.rpcs.get_trigger.timeout = 20.0
1980
- # end
2106
+ # @yield [response, operation] Access the result along with the RPC operation
2107
+ # @yieldparam response [::Google::Cloud::Eventarc::V1::MessageBus]
2108
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1981
2109
  #
1982
- # @!attribute [rw] endpoint
1983
- # A custom service endpoint, as a hostname or hostname:port. The default is
1984
- # nil, indicating to use the default endpoint in the current universe domain.
1985
- # @return [::String,nil]
1986
- # @!attribute [rw] credentials
1987
- # Credentials to send with calls. You may provide any of the following types:
1988
- # * (`String`) The path to a service account key file in JSON format
1989
- # * (`Hash`) A service account key as a Hash
1990
- # * (`Google::Auth::Credentials`) A googleauth credentials object
1991
- # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1992
- # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1993
- # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1994
- # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1995
- # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1996
- # * (`nil`) indicating no credentials
1997
- # @return [::Object]
1998
- # @!attribute [rw] scope
1999
- # The OAuth scopes
2000
- # @return [::Array<::String>]
2001
- # @!attribute [rw] lib_name
2002
- # The library name as recorded in instrumentation and logging
2003
- # @return [::String]
2004
- # @!attribute [rw] lib_version
2005
- # The library version as recorded in instrumentation and logging
2006
- # @return [::String]
2007
- # @!attribute [rw] channel_args
2008
- # Extra parameters passed to the gRPC channel. Note: this is ignored if a
2009
- # `GRPC::Core::Channel` object is provided as the credential.
2010
- # @return [::Hash]
2011
- # @!attribute [rw] interceptors
2012
- # An array of interceptors that are run before calls are executed.
2013
- # @return [::Array<::GRPC::ClientInterceptor>]
2014
- # @!attribute [rw] timeout
2015
- # The call timeout in seconds.
2016
- # @return [::Numeric]
2017
- # @!attribute [rw] metadata
2018
- # Additional gRPC headers to be sent with the call.
2019
- # @return [::Hash{::Symbol=>::String}]
2020
- # @!attribute [rw] retry_policy
2021
- # The retry policy. The value is a hash with the following keys:
2022
- # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2023
- # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2024
- # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2025
- # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2026
- # trigger a retry.
2027
- # @return [::Hash]
2028
- # @!attribute [rw] quota_project
2029
- # A separate project against which to charge quota.
2030
- # @return [::String]
2031
- # @!attribute [rw] universe_domain
2032
- # The universe domain within which to make requests. This determines the
2033
- # default endpoint URL. The default value of nil uses the environment
2034
- # universe (usually the default "googleapis.com" universe).
2035
- # @return [::String,nil]
2110
+ # @return [::Google::Cloud::Eventarc::V1::MessageBus]
2036
2111
  #
2037
- class Configuration
2038
- extend ::Gapic::Config
2112
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2113
+ #
2114
+ # @example Basic example
2115
+ # require "google/cloud/eventarc/v1"
2116
+ #
2117
+ # # Create a client object. The client can be reused for multiple calls.
2118
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
2119
+ #
2120
+ # # Create a request. To set request fields, pass in keyword arguments.
2121
+ # request = Google::Cloud::Eventarc::V1::GetMessageBusRequest.new
2122
+ #
2123
+ # # Call the get_message_bus method.
2124
+ # result = client.get_message_bus request
2125
+ #
2126
+ # # The returned object is of type Google::Cloud::Eventarc::V1::MessageBus.
2127
+ # p result
2128
+ #
2129
+ def get_message_bus request, options = nil
2130
+ raise ::ArgumentError, "request must be provided" if request.nil?
2039
2131
 
2040
- # @private
2041
- # The endpoint specific to the default "googleapis.com" universe. Deprecated.
2042
- DEFAULT_ENDPOINT = "eventarc.googleapis.com"
2132
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetMessageBusRequest
2043
2133
 
2044
- config_attr :endpoint, nil, ::String, nil
2045
- config_attr :credentials, nil do |value|
2046
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2047
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2048
- allowed.any? { |klass| klass === value }
2049
- end
2050
- config_attr :scope, nil, ::String, ::Array, nil
2051
- config_attr :lib_name, nil, ::String, nil
2052
- config_attr :lib_version, nil, ::String, nil
2053
- config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
2054
- config_attr :interceptors, nil, ::Array, nil
2055
- config_attr :timeout, nil, ::Numeric, nil
2056
- config_attr :metadata, nil, ::Hash, nil
2057
- config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2058
- config_attr :quota_project, nil, ::String, nil
2059
- config_attr :universe_domain, nil, ::String, nil
2134
+ # Converts hash and nil to an options object
2135
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2060
2136
 
2061
- # @private
2062
- def initialize parent_config = nil
2063
- @parent_config = parent_config unless parent_config.nil?
2137
+ # Customize the options with defaults
2138
+ metadata = @config.rpcs.get_message_bus.metadata.to_h
2064
2139
 
2065
- yield self if block_given?
2066
- end
2140
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2141
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2142
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2143
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
2144
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2145
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2067
2146
 
2068
- ##
2069
- # Configurations for individual RPCs
2070
- # @return [Rpcs]
2071
- #
2072
- def rpcs
2073
- @rpcs ||= begin
2074
- parent_rpcs = nil
2075
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
2076
- Rpcs.new parent_rpcs
2077
- end
2147
+ header_params = {}
2148
+ if request.name
2149
+ header_params["name"] = request.name
2078
2150
  end
2079
2151
 
2080
- ##
2081
- # Configuration for the channel pool
2082
- # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2083
- #
2084
- def channel_pool
2085
- @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2152
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2153
+ metadata[:"x-goog-request-params"] ||= request_params_header
2154
+
2155
+ options.apply_defaults timeout: @config.rpcs.get_message_bus.timeout,
2156
+ metadata: metadata,
2157
+ retry_policy: @config.rpcs.get_message_bus.retry_policy
2158
+
2159
+ options.apply_defaults timeout: @config.timeout,
2160
+ metadata: @config.metadata,
2161
+ retry_policy: @config.retry_policy
2162
+
2163
+ @eventarc_stub.call_rpc :get_message_bus, request, options: options do |response, operation|
2164
+ yield response, operation if block_given?
2165
+ return response
2086
2166
  end
2167
+ rescue ::GRPC::BadStatus => e
2168
+ raise ::Google::Cloud::Error.from_error(e)
2169
+ end
2087
2170
 
2088
- ##
2089
- # Configuration RPC class for the Eventarc API.
2090
- #
2091
- # Includes fields providing the configuration for each RPC in this service.
2092
- # Each configuration object is of type `Gapic::Config::Method` and includes
2093
- # the following configuration fields:
2094
- #
2095
- # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
2096
- # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
2097
- # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
2098
- # include the following keys:
2099
- # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2100
- # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2101
- # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2102
- # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2103
- # trigger a retry.
2104
- #
2105
- class Rpcs
2106
- ##
2107
- # RPC-specific configuration for `get_trigger`
2108
- # @return [::Gapic::Config::Method]
2109
- #
2110
- attr_reader :get_trigger
2111
- ##
2112
- # RPC-specific configuration for `list_triggers`
2113
- # @return [::Gapic::Config::Method]
2114
- #
2115
- attr_reader :list_triggers
2116
- ##
2117
- # RPC-specific configuration for `create_trigger`
2118
- # @return [::Gapic::Config::Method]
2119
- #
2120
- attr_reader :create_trigger
2121
- ##
2122
- # RPC-specific configuration for `update_trigger`
2123
- # @return [::Gapic::Config::Method]
2124
- #
2125
- attr_reader :update_trigger
2126
- ##
2127
- # RPC-specific configuration for `delete_trigger`
2128
- # @return [::Gapic::Config::Method]
2129
- #
2130
- attr_reader :delete_trigger
2131
- ##
2132
- # RPC-specific configuration for `get_channel`
2133
- # @return [::Gapic::Config::Method]
2134
- #
2135
- attr_reader :get_channel
2136
- ##
2137
- # RPC-specific configuration for `list_channels`
2171
+ ##
2172
+ # List message buses.
2173
+ #
2174
+ # @overload list_message_buses(request, options = nil)
2175
+ # Pass arguments to `list_message_buses` via a request object, either of type
2176
+ # {::Google::Cloud::Eventarc::V1::ListMessageBusesRequest} or an equivalent Hash.
2177
+ #
2178
+ # @param request [::Google::Cloud::Eventarc::V1::ListMessageBusesRequest, ::Hash]
2179
+ # A request object representing the call parameters. Required. To specify no
2180
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2181
+ # @param options [::Gapic::CallOptions, ::Hash]
2182
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2183
+ #
2184
+ # @overload list_message_buses(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
2185
+ # Pass arguments to `list_message_buses` via keyword arguments. Note that at
2186
+ # least one keyword argument is required. To specify no parameters, or to keep all
2187
+ # the default parameter values, pass an empty Hash as a request object (see above).
2188
+ #
2189
+ # @param parent [::String]
2190
+ # Required. The parent collection to list triggers on.
2191
+ # @param page_size [::Integer]
2192
+ # Optional. The maximum number of results to return on each page.
2193
+ #
2194
+ # Note: The service may send fewer.
2195
+ # @param page_token [::String]
2196
+ # Optional. The page token; provide the value from the `next_page_token`
2197
+ # field in a previous call to retrieve the subsequent page.
2198
+ #
2199
+ # When paginating, all other parameters provided must match
2200
+ # the previous call that provided the page token.
2201
+ # @param order_by [::String]
2202
+ # Optional. The sorting order of the resources returned. Value should be a
2203
+ # comma-separated list of fields. The default sorting order is ascending. To
2204
+ # specify descending order for a field, append a `desc` suffix; for example:
2205
+ # `name desc, update_time`.
2206
+ # @param filter [::String]
2207
+ # Optional. The filter field that the list request will filter on.
2208
+ # Possible filtersare described in https://google.aip.dev/160.
2209
+ #
2210
+ # @yield [response, operation] Access the result along with the RPC operation
2211
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::MessageBus>]
2212
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2213
+ #
2214
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::MessageBus>]
2215
+ #
2216
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2217
+ #
2218
+ # @example Basic example
2219
+ # require "google/cloud/eventarc/v1"
2220
+ #
2221
+ # # Create a client object. The client can be reused for multiple calls.
2222
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
2223
+ #
2224
+ # # Create a request. To set request fields, pass in keyword arguments.
2225
+ # request = Google::Cloud::Eventarc::V1::ListMessageBusesRequest.new
2226
+ #
2227
+ # # Call the list_message_buses method.
2228
+ # result = client.list_message_buses request
2229
+ #
2230
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2231
+ # # over elements, and API calls will be issued to fetch pages as needed.
2232
+ # result.each do |item|
2233
+ # # Each element is of type ::Google::Cloud::Eventarc::V1::MessageBus.
2234
+ # p item
2235
+ # end
2236
+ #
2237
+ def list_message_buses request, options = nil
2238
+ raise ::ArgumentError, "request must be provided" if request.nil?
2239
+
2240
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListMessageBusesRequest
2241
+
2242
+ # Converts hash and nil to an options object
2243
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2244
+
2245
+ # Customize the options with defaults
2246
+ metadata = @config.rpcs.list_message_buses.metadata.to_h
2247
+
2248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2249
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2250
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2251
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
2252
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2253
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2254
+
2255
+ header_params = {}
2256
+ if request.parent
2257
+ header_params["parent"] = request.parent
2258
+ end
2259
+
2260
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2261
+ metadata[:"x-goog-request-params"] ||= request_params_header
2262
+
2263
+ options.apply_defaults timeout: @config.rpcs.list_message_buses.timeout,
2264
+ metadata: metadata,
2265
+ retry_policy: @config.rpcs.list_message_buses.retry_policy
2266
+
2267
+ options.apply_defaults timeout: @config.timeout,
2268
+ metadata: @config.metadata,
2269
+ retry_policy: @config.retry_policy
2270
+
2271
+ @eventarc_stub.call_rpc :list_message_buses, request, options: options do |response, operation|
2272
+ response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_message_buses, request, response, operation, options
2273
+ yield response, operation if block_given?
2274
+ return response
2275
+ end
2276
+ rescue ::GRPC::BadStatus => e
2277
+ raise ::Google::Cloud::Error.from_error(e)
2278
+ end
2279
+
2280
+ ##
2281
+ # List message bus enrollments.
2282
+ #
2283
+ # @overload list_message_bus_enrollments(request, options = nil)
2284
+ # Pass arguments to `list_message_bus_enrollments` via a request object, either of type
2285
+ # {::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest} or an equivalent Hash.
2286
+ #
2287
+ # @param request [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest, ::Hash]
2288
+ # A request object representing the call parameters. Required. To specify no
2289
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2290
+ # @param options [::Gapic::CallOptions, ::Hash]
2291
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2292
+ #
2293
+ # @overload list_message_bus_enrollments(parent: nil, page_size: nil, page_token: nil)
2294
+ # Pass arguments to `list_message_bus_enrollments` via keyword arguments. Note that at
2295
+ # least one keyword argument is required. To specify no parameters, or to keep all
2296
+ # the default parameter values, pass an empty Hash as a request object (see above).
2297
+ #
2298
+ # @param parent [::String]
2299
+ # Required. The parent message bus to list enrollments on.
2300
+ # @param page_size [::Integer]
2301
+ # Optional. The maximum number of results to return on each page.
2302
+ #
2303
+ # Note: The service may send fewer.
2304
+ # @param page_token [::String]
2305
+ # Optional. The page token; provide the value from the `next_page_token`
2306
+ # field in a previous call to retrieve the subsequent page.
2307
+ #
2308
+ # When paginating, all other parameters provided must match
2309
+ # the previous call that provided the page token.
2310
+ #
2311
+ # @yield [response, operation] Access the result along with the RPC operation
2312
+ # @yieldparam response [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse]
2313
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2314
+ #
2315
+ # @return [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse]
2316
+ #
2317
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2318
+ #
2319
+ # @example Basic example
2320
+ # require "google/cloud/eventarc/v1"
2321
+ #
2322
+ # # Create a client object. The client can be reused for multiple calls.
2323
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
2324
+ #
2325
+ # # Create a request. To set request fields, pass in keyword arguments.
2326
+ # request = Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest.new
2327
+ #
2328
+ # # Call the list_message_bus_enrollments method.
2329
+ # result = client.list_message_bus_enrollments request
2330
+ #
2331
+ # # The returned object is of type Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse.
2332
+ # p result
2333
+ #
2334
+ def list_message_bus_enrollments request, options = nil
2335
+ raise ::ArgumentError, "request must be provided" if request.nil?
2336
+
2337
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest
2338
+
2339
+ # Converts hash and nil to an options object
2340
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2341
+
2342
+ # Customize the options with defaults
2343
+ metadata = @config.rpcs.list_message_bus_enrollments.metadata.to_h
2344
+
2345
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2346
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2347
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2348
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
2349
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2350
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2351
+
2352
+ header_params = {}
2353
+ if request.parent
2354
+ header_params["parent"] = request.parent
2355
+ end
2356
+
2357
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2358
+ metadata[:"x-goog-request-params"] ||= request_params_header
2359
+
2360
+ options.apply_defaults timeout: @config.rpcs.list_message_bus_enrollments.timeout,
2361
+ metadata: metadata,
2362
+ retry_policy: @config.rpcs.list_message_bus_enrollments.retry_policy
2363
+
2364
+ options.apply_defaults timeout: @config.timeout,
2365
+ metadata: @config.metadata,
2366
+ retry_policy: @config.retry_policy
2367
+
2368
+ @eventarc_stub.call_rpc :list_message_bus_enrollments, request, options: options do |response, operation|
2369
+ yield response, operation if block_given?
2370
+ return response
2371
+ end
2372
+ rescue ::GRPC::BadStatus => e
2373
+ raise ::Google::Cloud::Error.from_error(e)
2374
+ end
2375
+
2376
+ ##
2377
+ # Create a new MessageBus in a particular project and location.
2378
+ #
2379
+ # @overload create_message_bus(request, options = nil)
2380
+ # Pass arguments to `create_message_bus` via a request object, either of type
2381
+ # {::Google::Cloud::Eventarc::V1::CreateMessageBusRequest} or an equivalent Hash.
2382
+ #
2383
+ # @param request [::Google::Cloud::Eventarc::V1::CreateMessageBusRequest, ::Hash]
2384
+ # A request object representing the call parameters. Required. To specify no
2385
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2386
+ # @param options [::Gapic::CallOptions, ::Hash]
2387
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2388
+ #
2389
+ # @overload create_message_bus(parent: nil, message_bus: nil, message_bus_id: nil, validate_only: nil)
2390
+ # Pass arguments to `create_message_bus` via keyword arguments. Note that at
2391
+ # least one keyword argument is required. To specify no parameters, or to keep all
2392
+ # the default parameter values, pass an empty Hash as a request object (see above).
2393
+ #
2394
+ # @param parent [::String]
2395
+ # Required. The parent collection in which to add this message bus.
2396
+ # @param message_bus [::Google::Cloud::Eventarc::V1::MessageBus, ::Hash]
2397
+ # Required. The message bus to create.
2398
+ # @param message_bus_id [::String]
2399
+ # Required. The user-provided ID to be assigned to the MessageBus. It should
2400
+ # match the format (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$)
2401
+ # @param validate_only [::Boolean]
2402
+ # Optional. If set, validate the request and preview the review, but do not
2403
+ # post it.
2404
+ #
2405
+ # @yield [response, operation] Access the result along with the RPC operation
2406
+ # @yieldparam response [::Gapic::Operation]
2407
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2408
+ #
2409
+ # @return [::Gapic::Operation]
2410
+ #
2411
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2412
+ #
2413
+ # @example Basic example
2414
+ # require "google/cloud/eventarc/v1"
2415
+ #
2416
+ # # Create a client object. The client can be reused for multiple calls.
2417
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
2418
+ #
2419
+ # # Create a request. To set request fields, pass in keyword arguments.
2420
+ # request = Google::Cloud::Eventarc::V1::CreateMessageBusRequest.new
2421
+ #
2422
+ # # Call the create_message_bus method.
2423
+ # result = client.create_message_bus request
2424
+ #
2425
+ # # The returned object is of type Gapic::Operation. You can use it to
2426
+ # # check the status of an operation, cancel it, or wait for results.
2427
+ # # Here is how to wait for a response.
2428
+ # result.wait_until_done! timeout: 60
2429
+ # if result.response?
2430
+ # p result.response
2431
+ # else
2432
+ # puts "No response received."
2433
+ # end
2434
+ #
2435
+ def create_message_bus request, options = nil
2436
+ raise ::ArgumentError, "request must be provided" if request.nil?
2437
+
2438
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::CreateMessageBusRequest
2439
+
2440
+ # Converts hash and nil to an options object
2441
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2442
+
2443
+ # Customize the options with defaults
2444
+ metadata = @config.rpcs.create_message_bus.metadata.to_h
2445
+
2446
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2447
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2448
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2449
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
2450
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2451
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2452
+
2453
+ header_params = {}
2454
+ if request.parent
2455
+ header_params["parent"] = request.parent
2456
+ end
2457
+
2458
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2459
+ metadata[:"x-goog-request-params"] ||= request_params_header
2460
+
2461
+ options.apply_defaults timeout: @config.rpcs.create_message_bus.timeout,
2462
+ metadata: metadata,
2463
+ retry_policy: @config.rpcs.create_message_bus.retry_policy
2464
+
2465
+ options.apply_defaults timeout: @config.timeout,
2466
+ metadata: @config.metadata,
2467
+ retry_policy: @config.retry_policy
2468
+
2469
+ @eventarc_stub.call_rpc :create_message_bus, request, options: options do |response, operation|
2470
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2471
+ yield response, operation if block_given?
2472
+ return response
2473
+ end
2474
+ rescue ::GRPC::BadStatus => e
2475
+ raise ::Google::Cloud::Error.from_error(e)
2476
+ end
2477
+
2478
+ ##
2479
+ # Update a single message bus.
2480
+ #
2481
+ # @overload update_message_bus(request, options = nil)
2482
+ # Pass arguments to `update_message_bus` via a request object, either of type
2483
+ # {::Google::Cloud::Eventarc::V1::UpdateMessageBusRequest} or an equivalent Hash.
2484
+ #
2485
+ # @param request [::Google::Cloud::Eventarc::V1::UpdateMessageBusRequest, ::Hash]
2486
+ # A request object representing the call parameters. Required. To specify no
2487
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2488
+ # @param options [::Gapic::CallOptions, ::Hash]
2489
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2490
+ #
2491
+ # @overload update_message_bus(message_bus: nil, update_mask: nil, allow_missing: nil, validate_only: nil)
2492
+ # Pass arguments to `update_message_bus` via keyword arguments. Note that at
2493
+ # least one keyword argument is required. To specify no parameters, or to keep all
2494
+ # the default parameter values, pass an empty Hash as a request object (see above).
2495
+ #
2496
+ # @param message_bus [::Google::Cloud::Eventarc::V1::MessageBus, ::Hash]
2497
+ # Required. The MessageBus to be updated.
2498
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2499
+ # Optional. The fields to be updated; only fields explicitly provided are
2500
+ # updated. If no field mask is provided, all provided fields in the request
2501
+ # are updated. To update all fields, provide a field mask of "*".
2502
+ # @param allow_missing [::Boolean]
2503
+ # Optional. If set to true, and the MessageBus is not found, a new MessageBus
2504
+ # will be created. In this situation, `update_mask` is ignored.
2505
+ # @param validate_only [::Boolean]
2506
+ # Optional. If set, validate the request and preview the review, but do not
2507
+ # post it.
2508
+ #
2509
+ # @yield [response, operation] Access the result along with the RPC operation
2510
+ # @yieldparam response [::Gapic::Operation]
2511
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2512
+ #
2513
+ # @return [::Gapic::Operation]
2514
+ #
2515
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2516
+ #
2517
+ # @example Basic example
2518
+ # require "google/cloud/eventarc/v1"
2519
+ #
2520
+ # # Create a client object. The client can be reused for multiple calls.
2521
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
2522
+ #
2523
+ # # Create a request. To set request fields, pass in keyword arguments.
2524
+ # request = Google::Cloud::Eventarc::V1::UpdateMessageBusRequest.new
2525
+ #
2526
+ # # Call the update_message_bus method.
2527
+ # result = client.update_message_bus request
2528
+ #
2529
+ # # The returned object is of type Gapic::Operation. You can use it to
2530
+ # # check the status of an operation, cancel it, or wait for results.
2531
+ # # Here is how to wait for a response.
2532
+ # result.wait_until_done! timeout: 60
2533
+ # if result.response?
2534
+ # p result.response
2535
+ # else
2536
+ # puts "No response received."
2537
+ # end
2538
+ #
2539
+ def update_message_bus request, options = nil
2540
+ raise ::ArgumentError, "request must be provided" if request.nil?
2541
+
2542
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::UpdateMessageBusRequest
2543
+
2544
+ # Converts hash and nil to an options object
2545
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2546
+
2547
+ # Customize the options with defaults
2548
+ metadata = @config.rpcs.update_message_bus.metadata.to_h
2549
+
2550
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2551
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2552
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2553
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
2554
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2555
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2556
+
2557
+ header_params = {}
2558
+ if request.message_bus&.name
2559
+ header_params["message_bus.name"] = request.message_bus.name
2560
+ end
2561
+
2562
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2563
+ metadata[:"x-goog-request-params"] ||= request_params_header
2564
+
2565
+ options.apply_defaults timeout: @config.rpcs.update_message_bus.timeout,
2566
+ metadata: metadata,
2567
+ retry_policy: @config.rpcs.update_message_bus.retry_policy
2568
+
2569
+ options.apply_defaults timeout: @config.timeout,
2570
+ metadata: @config.metadata,
2571
+ retry_policy: @config.retry_policy
2572
+
2573
+ @eventarc_stub.call_rpc :update_message_bus, request, options: options do |response, operation|
2574
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2575
+ yield response, operation if block_given?
2576
+ return response
2577
+ end
2578
+ rescue ::GRPC::BadStatus => e
2579
+ raise ::Google::Cloud::Error.from_error(e)
2580
+ end
2581
+
2582
+ ##
2583
+ # Delete a single message bus.
2584
+ #
2585
+ # @overload delete_message_bus(request, options = nil)
2586
+ # Pass arguments to `delete_message_bus` via a request object, either of type
2587
+ # {::Google::Cloud::Eventarc::V1::DeleteMessageBusRequest} or an equivalent Hash.
2588
+ #
2589
+ # @param request [::Google::Cloud::Eventarc::V1::DeleteMessageBusRequest, ::Hash]
2590
+ # A request object representing the call parameters. Required. To specify no
2591
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2592
+ # @param options [::Gapic::CallOptions, ::Hash]
2593
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2594
+ #
2595
+ # @overload delete_message_bus(name: nil, etag: nil, allow_missing: nil, validate_only: nil)
2596
+ # Pass arguments to `delete_message_bus` via keyword arguments. Note that at
2597
+ # least one keyword argument is required. To specify no parameters, or to keep all
2598
+ # the default parameter values, pass an empty Hash as a request object (see above).
2599
+ #
2600
+ # @param name [::String]
2601
+ # Required. The name of the MessageBus to be deleted.
2602
+ # @param etag [::String]
2603
+ # Optional. If provided, the MessageBus will only be deleted if the etag
2604
+ # matches the current etag on the resource.
2605
+ # @param allow_missing [::Boolean]
2606
+ # Optional. If set to true, and the MessageBus is not found, the request will
2607
+ # succeed but no action will be taken on the server.
2608
+ # @param validate_only [::Boolean]
2609
+ # Optional. If set, validate the request and preview the review, but do not
2610
+ # post it.
2611
+ #
2612
+ # @yield [response, operation] Access the result along with the RPC operation
2613
+ # @yieldparam response [::Gapic::Operation]
2614
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2615
+ #
2616
+ # @return [::Gapic::Operation]
2617
+ #
2618
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2619
+ #
2620
+ # @example Basic example
2621
+ # require "google/cloud/eventarc/v1"
2622
+ #
2623
+ # # Create a client object. The client can be reused for multiple calls.
2624
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
2625
+ #
2626
+ # # Create a request. To set request fields, pass in keyword arguments.
2627
+ # request = Google::Cloud::Eventarc::V1::DeleteMessageBusRequest.new
2628
+ #
2629
+ # # Call the delete_message_bus method.
2630
+ # result = client.delete_message_bus request
2631
+ #
2632
+ # # The returned object is of type Gapic::Operation. You can use it to
2633
+ # # check the status of an operation, cancel it, or wait for results.
2634
+ # # Here is how to wait for a response.
2635
+ # result.wait_until_done! timeout: 60
2636
+ # if result.response?
2637
+ # p result.response
2638
+ # else
2639
+ # puts "No response received."
2640
+ # end
2641
+ #
2642
+ def delete_message_bus request, options = nil
2643
+ raise ::ArgumentError, "request must be provided" if request.nil?
2644
+
2645
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::DeleteMessageBusRequest
2646
+
2647
+ # Converts hash and nil to an options object
2648
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2649
+
2650
+ # Customize the options with defaults
2651
+ metadata = @config.rpcs.delete_message_bus.metadata.to_h
2652
+
2653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2654
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2655
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2656
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
2657
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2658
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2659
+
2660
+ header_params = {}
2661
+ if request.name
2662
+ header_params["name"] = request.name
2663
+ end
2664
+
2665
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2666
+ metadata[:"x-goog-request-params"] ||= request_params_header
2667
+
2668
+ options.apply_defaults timeout: @config.rpcs.delete_message_bus.timeout,
2669
+ metadata: metadata,
2670
+ retry_policy: @config.rpcs.delete_message_bus.retry_policy
2671
+
2672
+ options.apply_defaults timeout: @config.timeout,
2673
+ metadata: @config.metadata,
2674
+ retry_policy: @config.retry_policy
2675
+
2676
+ @eventarc_stub.call_rpc :delete_message_bus, request, options: options do |response, operation|
2677
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2678
+ yield response, operation if block_given?
2679
+ return response
2680
+ end
2681
+ rescue ::GRPC::BadStatus => e
2682
+ raise ::Google::Cloud::Error.from_error(e)
2683
+ end
2684
+
2685
+ ##
2686
+ # Get a single Enrollment.
2687
+ #
2688
+ # @overload get_enrollment(request, options = nil)
2689
+ # Pass arguments to `get_enrollment` via a request object, either of type
2690
+ # {::Google::Cloud::Eventarc::V1::GetEnrollmentRequest} or an equivalent Hash.
2691
+ #
2692
+ # @param request [::Google::Cloud::Eventarc::V1::GetEnrollmentRequest, ::Hash]
2693
+ # A request object representing the call parameters. Required. To specify no
2694
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2695
+ # @param options [::Gapic::CallOptions, ::Hash]
2696
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2697
+ #
2698
+ # @overload get_enrollment(name: nil)
2699
+ # Pass arguments to `get_enrollment` via keyword arguments. Note that at
2700
+ # least one keyword argument is required. To specify no parameters, or to keep all
2701
+ # the default parameter values, pass an empty Hash as a request object (see above).
2702
+ #
2703
+ # @param name [::String]
2704
+ # Required. The name of the Enrollment to get.
2705
+ #
2706
+ # @yield [response, operation] Access the result along with the RPC operation
2707
+ # @yieldparam response [::Google::Cloud::Eventarc::V1::Enrollment]
2708
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2709
+ #
2710
+ # @return [::Google::Cloud::Eventarc::V1::Enrollment]
2711
+ #
2712
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2713
+ #
2714
+ # @example Basic example
2715
+ # require "google/cloud/eventarc/v1"
2716
+ #
2717
+ # # Create a client object. The client can be reused for multiple calls.
2718
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
2719
+ #
2720
+ # # Create a request. To set request fields, pass in keyword arguments.
2721
+ # request = Google::Cloud::Eventarc::V1::GetEnrollmentRequest.new
2722
+ #
2723
+ # # Call the get_enrollment method.
2724
+ # result = client.get_enrollment request
2725
+ #
2726
+ # # The returned object is of type Google::Cloud::Eventarc::V1::Enrollment.
2727
+ # p result
2728
+ #
2729
+ def get_enrollment request, options = nil
2730
+ raise ::ArgumentError, "request must be provided" if request.nil?
2731
+
2732
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetEnrollmentRequest
2733
+
2734
+ # Converts hash and nil to an options object
2735
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2736
+
2737
+ # Customize the options with defaults
2738
+ metadata = @config.rpcs.get_enrollment.metadata.to_h
2739
+
2740
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2741
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2742
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2743
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
2744
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2745
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2746
+
2747
+ header_params = {}
2748
+ if request.name
2749
+ header_params["name"] = request.name
2750
+ end
2751
+
2752
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2753
+ metadata[:"x-goog-request-params"] ||= request_params_header
2754
+
2755
+ options.apply_defaults timeout: @config.rpcs.get_enrollment.timeout,
2756
+ metadata: metadata,
2757
+ retry_policy: @config.rpcs.get_enrollment.retry_policy
2758
+
2759
+ options.apply_defaults timeout: @config.timeout,
2760
+ metadata: @config.metadata,
2761
+ retry_policy: @config.retry_policy
2762
+
2763
+ @eventarc_stub.call_rpc :get_enrollment, request, options: options do |response, operation|
2764
+ yield response, operation if block_given?
2765
+ return response
2766
+ end
2767
+ rescue ::GRPC::BadStatus => e
2768
+ raise ::Google::Cloud::Error.from_error(e)
2769
+ end
2770
+
2771
+ ##
2772
+ # List Enrollments.
2773
+ #
2774
+ # @overload list_enrollments(request, options = nil)
2775
+ # Pass arguments to `list_enrollments` via a request object, either of type
2776
+ # {::Google::Cloud::Eventarc::V1::ListEnrollmentsRequest} or an equivalent Hash.
2777
+ #
2778
+ # @param request [::Google::Cloud::Eventarc::V1::ListEnrollmentsRequest, ::Hash]
2779
+ # A request object representing the call parameters. Required. To specify no
2780
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2781
+ # @param options [::Gapic::CallOptions, ::Hash]
2782
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2783
+ #
2784
+ # @overload list_enrollments(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
2785
+ # Pass arguments to `list_enrollments` via keyword arguments. Note that at
2786
+ # least one keyword argument is required. To specify no parameters, or to keep all
2787
+ # the default parameter values, pass an empty Hash as a request object (see above).
2788
+ #
2789
+ # @param parent [::String]
2790
+ # Required. The parent collection to list triggers on.
2791
+ # @param page_size [::Integer]
2792
+ # Optional. The maximum number of results to return on each page.
2793
+ #
2794
+ # Note: The service may send fewer.
2795
+ # @param page_token [::String]
2796
+ # Optional. The page token; provide the value from the `next_page_token`
2797
+ # field in a previous call to retrieve the subsequent page.
2798
+ #
2799
+ # When paginating, all other parameters provided must match
2800
+ # the previous call that provided the page token.
2801
+ # @param order_by [::String]
2802
+ # Optional. The sorting order of the resources returned. Value should be a
2803
+ # comma-separated list of fields. The default sorting order is ascending. To
2804
+ # specify descending order for a field, append a `desc` suffix; for example:
2805
+ # `name desc, update_time`.
2806
+ # @param filter [::String]
2807
+ # Optional. The filter field that the list request will filter on.
2808
+ # Possible filtersare described in https://google.aip.dev/160.
2809
+ #
2810
+ # @yield [response, operation] Access the result along with the RPC operation
2811
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::Enrollment>]
2812
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2813
+ #
2814
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::Enrollment>]
2815
+ #
2816
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2817
+ #
2818
+ # @example Basic example
2819
+ # require "google/cloud/eventarc/v1"
2820
+ #
2821
+ # # Create a client object. The client can be reused for multiple calls.
2822
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
2823
+ #
2824
+ # # Create a request. To set request fields, pass in keyword arguments.
2825
+ # request = Google::Cloud::Eventarc::V1::ListEnrollmentsRequest.new
2826
+ #
2827
+ # # Call the list_enrollments method.
2828
+ # result = client.list_enrollments request
2829
+ #
2830
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2831
+ # # over elements, and API calls will be issued to fetch pages as needed.
2832
+ # result.each do |item|
2833
+ # # Each element is of type ::Google::Cloud::Eventarc::V1::Enrollment.
2834
+ # p item
2835
+ # end
2836
+ #
2837
+ def list_enrollments request, options = nil
2838
+ raise ::ArgumentError, "request must be provided" if request.nil?
2839
+
2840
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListEnrollmentsRequest
2841
+
2842
+ # Converts hash and nil to an options object
2843
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2844
+
2845
+ # Customize the options with defaults
2846
+ metadata = @config.rpcs.list_enrollments.metadata.to_h
2847
+
2848
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2849
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2850
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2851
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
2852
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2853
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2854
+
2855
+ header_params = {}
2856
+ if request.parent
2857
+ header_params["parent"] = request.parent
2858
+ end
2859
+
2860
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2861
+ metadata[:"x-goog-request-params"] ||= request_params_header
2862
+
2863
+ options.apply_defaults timeout: @config.rpcs.list_enrollments.timeout,
2864
+ metadata: metadata,
2865
+ retry_policy: @config.rpcs.list_enrollments.retry_policy
2866
+
2867
+ options.apply_defaults timeout: @config.timeout,
2868
+ metadata: @config.metadata,
2869
+ retry_policy: @config.retry_policy
2870
+
2871
+ @eventarc_stub.call_rpc :list_enrollments, request, options: options do |response, operation|
2872
+ response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_enrollments, request, response, operation, options
2873
+ yield response, operation if block_given?
2874
+ return response
2875
+ end
2876
+ rescue ::GRPC::BadStatus => e
2877
+ raise ::Google::Cloud::Error.from_error(e)
2878
+ end
2879
+
2880
+ ##
2881
+ # Create a new Enrollment in a particular project and location.
2882
+ #
2883
+ # @overload create_enrollment(request, options = nil)
2884
+ # Pass arguments to `create_enrollment` via a request object, either of type
2885
+ # {::Google::Cloud::Eventarc::V1::CreateEnrollmentRequest} or an equivalent Hash.
2886
+ #
2887
+ # @param request [::Google::Cloud::Eventarc::V1::CreateEnrollmentRequest, ::Hash]
2888
+ # A request object representing the call parameters. Required. To specify no
2889
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2890
+ # @param options [::Gapic::CallOptions, ::Hash]
2891
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2892
+ #
2893
+ # @overload create_enrollment(parent: nil, enrollment: nil, enrollment_id: nil, validate_only: nil)
2894
+ # Pass arguments to `create_enrollment` via keyword arguments. Note that at
2895
+ # least one keyword argument is required. To specify no parameters, or to keep all
2896
+ # the default parameter values, pass an empty Hash as a request object (see above).
2897
+ #
2898
+ # @param parent [::String]
2899
+ # Required. The parent collection in which to add this enrollment.
2900
+ # @param enrollment [::Google::Cloud::Eventarc::V1::Enrollment, ::Hash]
2901
+ # Required. The enrollment to create.
2902
+ # @param enrollment_id [::String]
2903
+ # Required. The user-provided ID to be assigned to the Enrollment. It should
2904
+ # match the format (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$).
2905
+ # @param validate_only [::Boolean]
2906
+ # Optional. If set, validate the request and preview the review, but do not
2907
+ # post it.
2908
+ #
2909
+ # @yield [response, operation] Access the result along with the RPC operation
2910
+ # @yieldparam response [::Gapic::Operation]
2911
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2912
+ #
2913
+ # @return [::Gapic::Operation]
2914
+ #
2915
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2916
+ #
2917
+ # @example Basic example
2918
+ # require "google/cloud/eventarc/v1"
2919
+ #
2920
+ # # Create a client object. The client can be reused for multiple calls.
2921
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
2922
+ #
2923
+ # # Create a request. To set request fields, pass in keyword arguments.
2924
+ # request = Google::Cloud::Eventarc::V1::CreateEnrollmentRequest.new
2925
+ #
2926
+ # # Call the create_enrollment method.
2927
+ # result = client.create_enrollment request
2928
+ #
2929
+ # # The returned object is of type Gapic::Operation. You can use it to
2930
+ # # check the status of an operation, cancel it, or wait for results.
2931
+ # # Here is how to wait for a response.
2932
+ # result.wait_until_done! timeout: 60
2933
+ # if result.response?
2934
+ # p result.response
2935
+ # else
2936
+ # puts "No response received."
2937
+ # end
2938
+ #
2939
+ def create_enrollment request, options = nil
2940
+ raise ::ArgumentError, "request must be provided" if request.nil?
2941
+
2942
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::CreateEnrollmentRequest
2943
+
2944
+ # Converts hash and nil to an options object
2945
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2946
+
2947
+ # Customize the options with defaults
2948
+ metadata = @config.rpcs.create_enrollment.metadata.to_h
2949
+
2950
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2951
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2952
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2953
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
2954
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2955
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2956
+
2957
+ header_params = {}
2958
+ if request.parent
2959
+ header_params["parent"] = request.parent
2960
+ end
2961
+
2962
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2963
+ metadata[:"x-goog-request-params"] ||= request_params_header
2964
+
2965
+ options.apply_defaults timeout: @config.rpcs.create_enrollment.timeout,
2966
+ metadata: metadata,
2967
+ retry_policy: @config.rpcs.create_enrollment.retry_policy
2968
+
2969
+ options.apply_defaults timeout: @config.timeout,
2970
+ metadata: @config.metadata,
2971
+ retry_policy: @config.retry_policy
2972
+
2973
+ @eventarc_stub.call_rpc :create_enrollment, request, options: options do |response, operation|
2974
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2975
+ yield response, operation if block_given?
2976
+ return response
2977
+ end
2978
+ rescue ::GRPC::BadStatus => e
2979
+ raise ::Google::Cloud::Error.from_error(e)
2980
+ end
2981
+
2982
+ ##
2983
+ # Update a single Enrollment.
2984
+ #
2985
+ # @overload update_enrollment(request, options = nil)
2986
+ # Pass arguments to `update_enrollment` via a request object, either of type
2987
+ # {::Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest} or an equivalent Hash.
2988
+ #
2989
+ # @param request [::Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest, ::Hash]
2990
+ # A request object representing the call parameters. Required. To specify no
2991
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2992
+ # @param options [::Gapic::CallOptions, ::Hash]
2993
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2994
+ #
2995
+ # @overload update_enrollment(enrollment: nil, update_mask: nil, allow_missing: nil, validate_only: nil)
2996
+ # Pass arguments to `update_enrollment` via keyword arguments. Note that at
2997
+ # least one keyword argument is required. To specify no parameters, or to keep all
2998
+ # the default parameter values, pass an empty Hash as a request object (see above).
2999
+ #
3000
+ # @param enrollment [::Google::Cloud::Eventarc::V1::Enrollment, ::Hash]
3001
+ # Required. The Enrollment to be updated.
3002
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3003
+ # Optional. The fields to be updated; only fields explicitly provided are
3004
+ # updated. If no field mask is provided, all provided fields in the request
3005
+ # are updated. To update all fields, provide a field mask of "*".
3006
+ # @param allow_missing [::Boolean]
3007
+ # Optional. If set to true, and the Enrollment is not found, a new Enrollment
3008
+ # will be created. In this situation, `update_mask` is ignored.
3009
+ # @param validate_only [::Boolean]
3010
+ # Optional. If set, validate the request and preview the review, but do not
3011
+ # post it.
3012
+ #
3013
+ # @yield [response, operation] Access the result along with the RPC operation
3014
+ # @yieldparam response [::Gapic::Operation]
3015
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3016
+ #
3017
+ # @return [::Gapic::Operation]
3018
+ #
3019
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3020
+ #
3021
+ # @example Basic example
3022
+ # require "google/cloud/eventarc/v1"
3023
+ #
3024
+ # # Create a client object. The client can be reused for multiple calls.
3025
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
3026
+ #
3027
+ # # Create a request. To set request fields, pass in keyword arguments.
3028
+ # request = Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest.new
3029
+ #
3030
+ # # Call the update_enrollment method.
3031
+ # result = client.update_enrollment request
3032
+ #
3033
+ # # The returned object is of type Gapic::Operation. You can use it to
3034
+ # # check the status of an operation, cancel it, or wait for results.
3035
+ # # Here is how to wait for a response.
3036
+ # result.wait_until_done! timeout: 60
3037
+ # if result.response?
3038
+ # p result.response
3039
+ # else
3040
+ # puts "No response received."
3041
+ # end
3042
+ #
3043
+ def update_enrollment request, options = nil
3044
+ raise ::ArgumentError, "request must be provided" if request.nil?
3045
+
3046
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest
3047
+
3048
+ # Converts hash and nil to an options object
3049
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3050
+
3051
+ # Customize the options with defaults
3052
+ metadata = @config.rpcs.update_enrollment.metadata.to_h
3053
+
3054
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3055
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3056
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3057
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
3058
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3059
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3060
+
3061
+ header_params = {}
3062
+ if request.enrollment&.name
3063
+ header_params["enrollment.name"] = request.enrollment.name
3064
+ end
3065
+
3066
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3067
+ metadata[:"x-goog-request-params"] ||= request_params_header
3068
+
3069
+ options.apply_defaults timeout: @config.rpcs.update_enrollment.timeout,
3070
+ metadata: metadata,
3071
+ retry_policy: @config.rpcs.update_enrollment.retry_policy
3072
+
3073
+ options.apply_defaults timeout: @config.timeout,
3074
+ metadata: @config.metadata,
3075
+ retry_policy: @config.retry_policy
3076
+
3077
+ @eventarc_stub.call_rpc :update_enrollment, request, options: options do |response, operation|
3078
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3079
+ yield response, operation if block_given?
3080
+ return response
3081
+ end
3082
+ rescue ::GRPC::BadStatus => e
3083
+ raise ::Google::Cloud::Error.from_error(e)
3084
+ end
3085
+
3086
+ ##
3087
+ # Delete a single Enrollment.
3088
+ #
3089
+ # @overload delete_enrollment(request, options = nil)
3090
+ # Pass arguments to `delete_enrollment` via a request object, either of type
3091
+ # {::Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest} or an equivalent Hash.
3092
+ #
3093
+ # @param request [::Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest, ::Hash]
3094
+ # A request object representing the call parameters. Required. To specify no
3095
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3096
+ # @param options [::Gapic::CallOptions, ::Hash]
3097
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3098
+ #
3099
+ # @overload delete_enrollment(name: nil, etag: nil, allow_missing: nil, validate_only: nil)
3100
+ # Pass arguments to `delete_enrollment` via keyword arguments. Note that at
3101
+ # least one keyword argument is required. To specify no parameters, or to keep all
3102
+ # the default parameter values, pass an empty Hash as a request object (see above).
3103
+ #
3104
+ # @param name [::String]
3105
+ # Required. The name of the Enrollment to be deleted.
3106
+ # @param etag [::String]
3107
+ # Optional. If provided, the Enrollment will only be deleted if the etag
3108
+ # matches the current etag on the resource.
3109
+ # @param allow_missing [::Boolean]
3110
+ # Optional. If set to true, and the Enrollment is not found, the request will
3111
+ # succeed but no action will be taken on the server.
3112
+ # @param validate_only [::Boolean]
3113
+ # Optional. If set, validate the request and preview the review, but do not
3114
+ # post it.
3115
+ #
3116
+ # @yield [response, operation] Access the result along with the RPC operation
3117
+ # @yieldparam response [::Gapic::Operation]
3118
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3119
+ #
3120
+ # @return [::Gapic::Operation]
3121
+ #
3122
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3123
+ #
3124
+ # @example Basic example
3125
+ # require "google/cloud/eventarc/v1"
3126
+ #
3127
+ # # Create a client object. The client can be reused for multiple calls.
3128
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
3129
+ #
3130
+ # # Create a request. To set request fields, pass in keyword arguments.
3131
+ # request = Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest.new
3132
+ #
3133
+ # # Call the delete_enrollment method.
3134
+ # result = client.delete_enrollment request
3135
+ #
3136
+ # # The returned object is of type Gapic::Operation. You can use it to
3137
+ # # check the status of an operation, cancel it, or wait for results.
3138
+ # # Here is how to wait for a response.
3139
+ # result.wait_until_done! timeout: 60
3140
+ # if result.response?
3141
+ # p result.response
3142
+ # else
3143
+ # puts "No response received."
3144
+ # end
3145
+ #
3146
+ def delete_enrollment request, options = nil
3147
+ raise ::ArgumentError, "request must be provided" if request.nil?
3148
+
3149
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest
3150
+
3151
+ # Converts hash and nil to an options object
3152
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3153
+
3154
+ # Customize the options with defaults
3155
+ metadata = @config.rpcs.delete_enrollment.metadata.to_h
3156
+
3157
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3158
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3159
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3160
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
3161
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3162
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3163
+
3164
+ header_params = {}
3165
+ if request.name
3166
+ header_params["name"] = request.name
3167
+ end
3168
+
3169
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3170
+ metadata[:"x-goog-request-params"] ||= request_params_header
3171
+
3172
+ options.apply_defaults timeout: @config.rpcs.delete_enrollment.timeout,
3173
+ metadata: metadata,
3174
+ retry_policy: @config.rpcs.delete_enrollment.retry_policy
3175
+
3176
+ options.apply_defaults timeout: @config.timeout,
3177
+ metadata: @config.metadata,
3178
+ retry_policy: @config.retry_policy
3179
+
3180
+ @eventarc_stub.call_rpc :delete_enrollment, request, options: options do |response, operation|
3181
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3182
+ yield response, operation if block_given?
3183
+ return response
3184
+ end
3185
+ rescue ::GRPC::BadStatus => e
3186
+ raise ::Google::Cloud::Error.from_error(e)
3187
+ end
3188
+
3189
+ ##
3190
+ # Get a single Pipeline.
3191
+ #
3192
+ # @overload get_pipeline(request, options = nil)
3193
+ # Pass arguments to `get_pipeline` via a request object, either of type
3194
+ # {::Google::Cloud::Eventarc::V1::GetPipelineRequest} or an equivalent Hash.
3195
+ #
3196
+ # @param request [::Google::Cloud::Eventarc::V1::GetPipelineRequest, ::Hash]
3197
+ # A request object representing the call parameters. Required. To specify no
3198
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3199
+ # @param options [::Gapic::CallOptions, ::Hash]
3200
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3201
+ #
3202
+ # @overload get_pipeline(name: nil)
3203
+ # Pass arguments to `get_pipeline` via keyword arguments. Note that at
3204
+ # least one keyword argument is required. To specify no parameters, or to keep all
3205
+ # the default parameter values, pass an empty Hash as a request object (see above).
3206
+ #
3207
+ # @param name [::String]
3208
+ # Required. The name of the pipeline to get.
3209
+ #
3210
+ # @yield [response, operation] Access the result along with the RPC operation
3211
+ # @yieldparam response [::Google::Cloud::Eventarc::V1::Pipeline]
3212
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3213
+ #
3214
+ # @return [::Google::Cloud::Eventarc::V1::Pipeline]
3215
+ #
3216
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3217
+ #
3218
+ # @example Basic example
3219
+ # require "google/cloud/eventarc/v1"
3220
+ #
3221
+ # # Create a client object. The client can be reused for multiple calls.
3222
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
3223
+ #
3224
+ # # Create a request. To set request fields, pass in keyword arguments.
3225
+ # request = Google::Cloud::Eventarc::V1::GetPipelineRequest.new
3226
+ #
3227
+ # # Call the get_pipeline method.
3228
+ # result = client.get_pipeline request
3229
+ #
3230
+ # # The returned object is of type Google::Cloud::Eventarc::V1::Pipeline.
3231
+ # p result
3232
+ #
3233
+ def get_pipeline request, options = nil
3234
+ raise ::ArgumentError, "request must be provided" if request.nil?
3235
+
3236
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetPipelineRequest
3237
+
3238
+ # Converts hash and nil to an options object
3239
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3240
+
3241
+ # Customize the options with defaults
3242
+ metadata = @config.rpcs.get_pipeline.metadata.to_h
3243
+
3244
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3245
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3246
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3247
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
3248
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3249
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3250
+
3251
+ header_params = {}
3252
+ if request.name
3253
+ header_params["name"] = request.name
3254
+ end
3255
+
3256
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3257
+ metadata[:"x-goog-request-params"] ||= request_params_header
3258
+
3259
+ options.apply_defaults timeout: @config.rpcs.get_pipeline.timeout,
3260
+ metadata: metadata,
3261
+ retry_policy: @config.rpcs.get_pipeline.retry_policy
3262
+
3263
+ options.apply_defaults timeout: @config.timeout,
3264
+ metadata: @config.metadata,
3265
+ retry_policy: @config.retry_policy
3266
+
3267
+ @eventarc_stub.call_rpc :get_pipeline, request, options: options do |response, operation|
3268
+ yield response, operation if block_given?
3269
+ return response
3270
+ end
3271
+ rescue ::GRPC::BadStatus => e
3272
+ raise ::Google::Cloud::Error.from_error(e)
3273
+ end
3274
+
3275
+ ##
3276
+ # List pipelines.
3277
+ #
3278
+ # @overload list_pipelines(request, options = nil)
3279
+ # Pass arguments to `list_pipelines` via a request object, either of type
3280
+ # {::Google::Cloud::Eventarc::V1::ListPipelinesRequest} or an equivalent Hash.
3281
+ #
3282
+ # @param request [::Google::Cloud::Eventarc::V1::ListPipelinesRequest, ::Hash]
3283
+ # A request object representing the call parameters. Required. To specify no
3284
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3285
+ # @param options [::Gapic::CallOptions, ::Hash]
3286
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3287
+ #
3288
+ # @overload list_pipelines(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
3289
+ # Pass arguments to `list_pipelines` via keyword arguments. Note that at
3290
+ # least one keyword argument is required. To specify no parameters, or to keep all
3291
+ # the default parameter values, pass an empty Hash as a request object (see above).
3292
+ #
3293
+ # @param parent [::String]
3294
+ # Required. The parent collection to list pipelines on.
3295
+ # @param page_size [::Integer]
3296
+ # Optional. The maximum number of results to return on each page.
3297
+ #
3298
+ # Note: The service may send fewer.
3299
+ # @param page_token [::String]
3300
+ # Optional. The page token; provide the value from the `next_page_token`
3301
+ # field in a previous call to retrieve the subsequent page.
3302
+ #
3303
+ # When paginating, all other parameters provided must match
3304
+ # the previous call that provided the page token.
3305
+ # @param order_by [::String]
3306
+ # Optional. The sorting order of the resources returned. Value should be a
3307
+ # comma-separated list of fields. The default sorting order is ascending. To
3308
+ # specify descending order for a field, append a `desc` suffix; for example:
3309
+ # `name desc, update_time`.
3310
+ # @param filter [::String]
3311
+ # Optional. The filter field that the list request will filter on.
3312
+ # Possible filters are described in https://google.aip.dev/160.
3313
+ #
3314
+ # @yield [response, operation] Access the result along with the RPC operation
3315
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::Pipeline>]
3316
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3317
+ #
3318
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::Pipeline>]
3319
+ #
3320
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3321
+ #
3322
+ # @example Basic example
3323
+ # require "google/cloud/eventarc/v1"
3324
+ #
3325
+ # # Create a client object. The client can be reused for multiple calls.
3326
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
3327
+ #
3328
+ # # Create a request. To set request fields, pass in keyword arguments.
3329
+ # request = Google::Cloud::Eventarc::V1::ListPipelinesRequest.new
3330
+ #
3331
+ # # Call the list_pipelines method.
3332
+ # result = client.list_pipelines request
3333
+ #
3334
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3335
+ # # over elements, and API calls will be issued to fetch pages as needed.
3336
+ # result.each do |item|
3337
+ # # Each element is of type ::Google::Cloud::Eventarc::V1::Pipeline.
3338
+ # p item
3339
+ # end
3340
+ #
3341
+ def list_pipelines request, options = nil
3342
+ raise ::ArgumentError, "request must be provided" if request.nil?
3343
+
3344
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListPipelinesRequest
3345
+
3346
+ # Converts hash and nil to an options object
3347
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3348
+
3349
+ # Customize the options with defaults
3350
+ metadata = @config.rpcs.list_pipelines.metadata.to_h
3351
+
3352
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3353
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3354
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3355
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
3356
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3357
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3358
+
3359
+ header_params = {}
3360
+ if request.parent
3361
+ header_params["parent"] = request.parent
3362
+ end
3363
+
3364
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3365
+ metadata[:"x-goog-request-params"] ||= request_params_header
3366
+
3367
+ options.apply_defaults timeout: @config.rpcs.list_pipelines.timeout,
3368
+ metadata: metadata,
3369
+ retry_policy: @config.rpcs.list_pipelines.retry_policy
3370
+
3371
+ options.apply_defaults timeout: @config.timeout,
3372
+ metadata: @config.metadata,
3373
+ retry_policy: @config.retry_policy
3374
+
3375
+ @eventarc_stub.call_rpc :list_pipelines, request, options: options do |response, operation|
3376
+ response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_pipelines, request, response, operation, options
3377
+ yield response, operation if block_given?
3378
+ return response
3379
+ end
3380
+ rescue ::GRPC::BadStatus => e
3381
+ raise ::Google::Cloud::Error.from_error(e)
3382
+ end
3383
+
3384
+ ##
3385
+ # Create a new Pipeline in a particular project and location.
3386
+ #
3387
+ # @overload create_pipeline(request, options = nil)
3388
+ # Pass arguments to `create_pipeline` via a request object, either of type
3389
+ # {::Google::Cloud::Eventarc::V1::CreatePipelineRequest} or an equivalent Hash.
3390
+ #
3391
+ # @param request [::Google::Cloud::Eventarc::V1::CreatePipelineRequest, ::Hash]
3392
+ # A request object representing the call parameters. Required. To specify no
3393
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3394
+ # @param options [::Gapic::CallOptions, ::Hash]
3395
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3396
+ #
3397
+ # @overload create_pipeline(parent: nil, pipeline: nil, pipeline_id: nil, validate_only: nil)
3398
+ # Pass arguments to `create_pipeline` via keyword arguments. Note that at
3399
+ # least one keyword argument is required. To specify no parameters, or to keep all
3400
+ # the default parameter values, pass an empty Hash as a request object (see above).
3401
+ #
3402
+ # @param parent [::String]
3403
+ # Required. The parent collection in which to add this pipeline.
3404
+ # @param pipeline [::Google::Cloud::Eventarc::V1::Pipeline, ::Hash]
3405
+ # Required. The pipeline to create.
3406
+ # @param pipeline_id [::String]
3407
+ # Required. The user-provided ID to be assigned to the Pipeline.
3408
+ # @param validate_only [::Boolean]
3409
+ # Optional. If set, validate the request and preview the review, but do not
3410
+ # post it.
3411
+ #
3412
+ # @yield [response, operation] Access the result along with the RPC operation
3413
+ # @yieldparam response [::Gapic::Operation]
3414
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3415
+ #
3416
+ # @return [::Gapic::Operation]
3417
+ #
3418
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3419
+ #
3420
+ # @example Basic example
3421
+ # require "google/cloud/eventarc/v1"
3422
+ #
3423
+ # # Create a client object. The client can be reused for multiple calls.
3424
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
3425
+ #
3426
+ # # Create a request. To set request fields, pass in keyword arguments.
3427
+ # request = Google::Cloud::Eventarc::V1::CreatePipelineRequest.new
3428
+ #
3429
+ # # Call the create_pipeline method.
3430
+ # result = client.create_pipeline request
3431
+ #
3432
+ # # The returned object is of type Gapic::Operation. You can use it to
3433
+ # # check the status of an operation, cancel it, or wait for results.
3434
+ # # Here is how to wait for a response.
3435
+ # result.wait_until_done! timeout: 60
3436
+ # if result.response?
3437
+ # p result.response
3438
+ # else
3439
+ # puts "No response received."
3440
+ # end
3441
+ #
3442
+ def create_pipeline request, options = nil
3443
+ raise ::ArgumentError, "request must be provided" if request.nil?
3444
+
3445
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::CreatePipelineRequest
3446
+
3447
+ # Converts hash and nil to an options object
3448
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3449
+
3450
+ # Customize the options with defaults
3451
+ metadata = @config.rpcs.create_pipeline.metadata.to_h
3452
+
3453
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3454
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3455
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3456
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
3457
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3458
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3459
+
3460
+ header_params = {}
3461
+ if request.parent
3462
+ header_params["parent"] = request.parent
3463
+ end
3464
+
3465
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3466
+ metadata[:"x-goog-request-params"] ||= request_params_header
3467
+
3468
+ options.apply_defaults timeout: @config.rpcs.create_pipeline.timeout,
3469
+ metadata: metadata,
3470
+ retry_policy: @config.rpcs.create_pipeline.retry_policy
3471
+
3472
+ options.apply_defaults timeout: @config.timeout,
3473
+ metadata: @config.metadata,
3474
+ retry_policy: @config.retry_policy
3475
+
3476
+ @eventarc_stub.call_rpc :create_pipeline, request, options: options do |response, operation|
3477
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3478
+ yield response, operation if block_given?
3479
+ return response
3480
+ end
3481
+ rescue ::GRPC::BadStatus => e
3482
+ raise ::Google::Cloud::Error.from_error(e)
3483
+ end
3484
+
3485
+ ##
3486
+ # Update a single pipeline.
3487
+ #
3488
+ # @overload update_pipeline(request, options = nil)
3489
+ # Pass arguments to `update_pipeline` via a request object, either of type
3490
+ # {::Google::Cloud::Eventarc::V1::UpdatePipelineRequest} or an equivalent Hash.
3491
+ #
3492
+ # @param request [::Google::Cloud::Eventarc::V1::UpdatePipelineRequest, ::Hash]
3493
+ # A request object representing the call parameters. Required. To specify no
3494
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3495
+ # @param options [::Gapic::CallOptions, ::Hash]
3496
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3497
+ #
3498
+ # @overload update_pipeline(pipeline: nil, update_mask: nil, allow_missing: nil, validate_only: nil)
3499
+ # Pass arguments to `update_pipeline` via keyword arguments. Note that at
3500
+ # least one keyword argument is required. To specify no parameters, or to keep all
3501
+ # the default parameter values, pass an empty Hash as a request object (see above).
3502
+ #
3503
+ # @param pipeline [::Google::Cloud::Eventarc::V1::Pipeline, ::Hash]
3504
+ # Required. The Pipeline to be updated.
3505
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3506
+ # Optional. The fields to be updated; only fields explicitly provided are
3507
+ # updated. If no field mask is provided, all provided fields in the request
3508
+ # are updated. To update all fields, provide a field mask of "*".
3509
+ # @param allow_missing [::Boolean]
3510
+ # Optional. If set to true, and the Pipeline is not found, a new Pipeline
3511
+ # will be created. In this situation, `update_mask` is ignored.
3512
+ # @param validate_only [::Boolean]
3513
+ # Optional. If set, validate the request and preview the review, but do not
3514
+ # post it.
3515
+ #
3516
+ # @yield [response, operation] Access the result along with the RPC operation
3517
+ # @yieldparam response [::Gapic::Operation]
3518
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3519
+ #
3520
+ # @return [::Gapic::Operation]
3521
+ #
3522
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3523
+ #
3524
+ # @example Basic example
3525
+ # require "google/cloud/eventarc/v1"
3526
+ #
3527
+ # # Create a client object. The client can be reused for multiple calls.
3528
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
3529
+ #
3530
+ # # Create a request. To set request fields, pass in keyword arguments.
3531
+ # request = Google::Cloud::Eventarc::V1::UpdatePipelineRequest.new
3532
+ #
3533
+ # # Call the update_pipeline method.
3534
+ # result = client.update_pipeline request
3535
+ #
3536
+ # # The returned object is of type Gapic::Operation. You can use it to
3537
+ # # check the status of an operation, cancel it, or wait for results.
3538
+ # # Here is how to wait for a response.
3539
+ # result.wait_until_done! timeout: 60
3540
+ # if result.response?
3541
+ # p result.response
3542
+ # else
3543
+ # puts "No response received."
3544
+ # end
3545
+ #
3546
+ def update_pipeline request, options = nil
3547
+ raise ::ArgumentError, "request must be provided" if request.nil?
3548
+
3549
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::UpdatePipelineRequest
3550
+
3551
+ # Converts hash and nil to an options object
3552
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3553
+
3554
+ # Customize the options with defaults
3555
+ metadata = @config.rpcs.update_pipeline.metadata.to_h
3556
+
3557
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3558
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3559
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3560
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
3561
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3562
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3563
+
3564
+ header_params = {}
3565
+ if request.pipeline&.name
3566
+ header_params["pipeline.name"] = request.pipeline.name
3567
+ end
3568
+
3569
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3570
+ metadata[:"x-goog-request-params"] ||= request_params_header
3571
+
3572
+ options.apply_defaults timeout: @config.rpcs.update_pipeline.timeout,
3573
+ metadata: metadata,
3574
+ retry_policy: @config.rpcs.update_pipeline.retry_policy
3575
+
3576
+ options.apply_defaults timeout: @config.timeout,
3577
+ metadata: @config.metadata,
3578
+ retry_policy: @config.retry_policy
3579
+
3580
+ @eventarc_stub.call_rpc :update_pipeline, request, options: options do |response, operation|
3581
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3582
+ yield response, operation if block_given?
3583
+ return response
3584
+ end
3585
+ rescue ::GRPC::BadStatus => e
3586
+ raise ::Google::Cloud::Error.from_error(e)
3587
+ end
3588
+
3589
+ ##
3590
+ # Delete a single pipeline.
3591
+ #
3592
+ # @overload delete_pipeline(request, options = nil)
3593
+ # Pass arguments to `delete_pipeline` via a request object, either of type
3594
+ # {::Google::Cloud::Eventarc::V1::DeletePipelineRequest} or an equivalent Hash.
3595
+ #
3596
+ # @param request [::Google::Cloud::Eventarc::V1::DeletePipelineRequest, ::Hash]
3597
+ # A request object representing the call parameters. Required. To specify no
3598
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3599
+ # @param options [::Gapic::CallOptions, ::Hash]
3600
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3601
+ #
3602
+ # @overload delete_pipeline(name: nil, etag: nil, allow_missing: nil, validate_only: nil)
3603
+ # Pass arguments to `delete_pipeline` via keyword arguments. Note that at
3604
+ # least one keyword argument is required. To specify no parameters, or to keep all
3605
+ # the default parameter values, pass an empty Hash as a request object (see above).
3606
+ #
3607
+ # @param name [::String]
3608
+ # Required. The name of the Pipeline to be deleted.
3609
+ # @param etag [::String]
3610
+ # Optional. If provided, the Pipeline will only be deleted if the etag
3611
+ # matches the current etag on the resource.
3612
+ # @param allow_missing [::Boolean]
3613
+ # Optional. If set to true, and the Pipeline is not found, the request will
3614
+ # succeed but no action will be taken on the server.
3615
+ # @param validate_only [::Boolean]
3616
+ # Optional. If set, validate the request and preview the review, but do not
3617
+ # post it.
3618
+ #
3619
+ # @yield [response, operation] Access the result along with the RPC operation
3620
+ # @yieldparam response [::Gapic::Operation]
3621
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3622
+ #
3623
+ # @return [::Gapic::Operation]
3624
+ #
3625
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3626
+ #
3627
+ # @example Basic example
3628
+ # require "google/cloud/eventarc/v1"
3629
+ #
3630
+ # # Create a client object. The client can be reused for multiple calls.
3631
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
3632
+ #
3633
+ # # Create a request. To set request fields, pass in keyword arguments.
3634
+ # request = Google::Cloud::Eventarc::V1::DeletePipelineRequest.new
3635
+ #
3636
+ # # Call the delete_pipeline method.
3637
+ # result = client.delete_pipeline request
3638
+ #
3639
+ # # The returned object is of type Gapic::Operation. You can use it to
3640
+ # # check the status of an operation, cancel it, or wait for results.
3641
+ # # Here is how to wait for a response.
3642
+ # result.wait_until_done! timeout: 60
3643
+ # if result.response?
3644
+ # p result.response
3645
+ # else
3646
+ # puts "No response received."
3647
+ # end
3648
+ #
3649
+ def delete_pipeline request, options = nil
3650
+ raise ::ArgumentError, "request must be provided" if request.nil?
3651
+
3652
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::DeletePipelineRequest
3653
+
3654
+ # Converts hash and nil to an options object
3655
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3656
+
3657
+ # Customize the options with defaults
3658
+ metadata = @config.rpcs.delete_pipeline.metadata.to_h
3659
+
3660
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3661
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3662
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3663
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
3664
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3665
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3666
+
3667
+ header_params = {}
3668
+ if request.name
3669
+ header_params["name"] = request.name
3670
+ end
3671
+
3672
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3673
+ metadata[:"x-goog-request-params"] ||= request_params_header
3674
+
3675
+ options.apply_defaults timeout: @config.rpcs.delete_pipeline.timeout,
3676
+ metadata: metadata,
3677
+ retry_policy: @config.rpcs.delete_pipeline.retry_policy
3678
+
3679
+ options.apply_defaults timeout: @config.timeout,
3680
+ metadata: @config.metadata,
3681
+ retry_policy: @config.retry_policy
3682
+
3683
+ @eventarc_stub.call_rpc :delete_pipeline, request, options: options do |response, operation|
3684
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3685
+ yield response, operation if block_given?
3686
+ return response
3687
+ end
3688
+ rescue ::GRPC::BadStatus => e
3689
+ raise ::Google::Cloud::Error.from_error(e)
3690
+ end
3691
+
3692
+ ##
3693
+ # Get a single GoogleApiSource.
3694
+ #
3695
+ # @overload get_google_api_source(request, options = nil)
3696
+ # Pass arguments to `get_google_api_source` via a request object, either of type
3697
+ # {::Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest} or an equivalent Hash.
3698
+ #
3699
+ # @param request [::Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest, ::Hash]
3700
+ # A request object representing the call parameters. Required. To specify no
3701
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3702
+ # @param options [::Gapic::CallOptions, ::Hash]
3703
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3704
+ #
3705
+ # @overload get_google_api_source(name: nil)
3706
+ # Pass arguments to `get_google_api_source` via keyword arguments. Note that at
3707
+ # least one keyword argument is required. To specify no parameters, or to keep all
3708
+ # the default parameter values, pass an empty Hash as a request object (see above).
3709
+ #
3710
+ # @param name [::String]
3711
+ # Required. The name of the google api source to get.
3712
+ #
3713
+ # @yield [response, operation] Access the result along with the RPC operation
3714
+ # @yieldparam response [::Google::Cloud::Eventarc::V1::GoogleApiSource]
3715
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3716
+ #
3717
+ # @return [::Google::Cloud::Eventarc::V1::GoogleApiSource]
3718
+ #
3719
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3720
+ #
3721
+ # @example Basic example
3722
+ # require "google/cloud/eventarc/v1"
3723
+ #
3724
+ # # Create a client object. The client can be reused for multiple calls.
3725
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
3726
+ #
3727
+ # # Create a request. To set request fields, pass in keyword arguments.
3728
+ # request = Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest.new
3729
+ #
3730
+ # # Call the get_google_api_source method.
3731
+ # result = client.get_google_api_source request
3732
+ #
3733
+ # # The returned object is of type Google::Cloud::Eventarc::V1::GoogleApiSource.
3734
+ # p result
3735
+ #
3736
+ def get_google_api_source request, options = nil
3737
+ raise ::ArgumentError, "request must be provided" if request.nil?
3738
+
3739
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest
3740
+
3741
+ # Converts hash and nil to an options object
3742
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3743
+
3744
+ # Customize the options with defaults
3745
+ metadata = @config.rpcs.get_google_api_source.metadata.to_h
3746
+
3747
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3748
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3749
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3750
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
3751
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3752
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3753
+
3754
+ header_params = {}
3755
+ if request.name
3756
+ header_params["name"] = request.name
3757
+ end
3758
+
3759
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3760
+ metadata[:"x-goog-request-params"] ||= request_params_header
3761
+
3762
+ options.apply_defaults timeout: @config.rpcs.get_google_api_source.timeout,
3763
+ metadata: metadata,
3764
+ retry_policy: @config.rpcs.get_google_api_source.retry_policy
3765
+
3766
+ options.apply_defaults timeout: @config.timeout,
3767
+ metadata: @config.metadata,
3768
+ retry_policy: @config.retry_policy
3769
+
3770
+ @eventarc_stub.call_rpc :get_google_api_source, request, options: options do |response, operation|
3771
+ yield response, operation if block_given?
3772
+ return response
3773
+ end
3774
+ rescue ::GRPC::BadStatus => e
3775
+ raise ::Google::Cloud::Error.from_error(e)
3776
+ end
3777
+
3778
+ ##
3779
+ # List GoogleApiSources.
3780
+ #
3781
+ # @overload list_google_api_sources(request, options = nil)
3782
+ # Pass arguments to `list_google_api_sources` via a request object, either of type
3783
+ # {::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest} or an equivalent Hash.
3784
+ #
3785
+ # @param request [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest, ::Hash]
3786
+ # A request object representing the call parameters. Required. To specify no
3787
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3788
+ # @param options [::Gapic::CallOptions, ::Hash]
3789
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3790
+ #
3791
+ # @overload list_google_api_sources(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
3792
+ # Pass arguments to `list_google_api_sources` via keyword arguments. Note that at
3793
+ # least one keyword argument is required. To specify no parameters, or to keep all
3794
+ # the default parameter values, pass an empty Hash as a request object (see above).
3795
+ #
3796
+ # @param parent [::String]
3797
+ # Required. The parent collection to list GoogleApiSources on.
3798
+ # @param page_size [::Integer]
3799
+ # Optional. The maximum number of results to return on each page.
3800
+ #
3801
+ # Note: The service may send fewer.
3802
+ # @param page_token [::String]
3803
+ # Optional. The page token; provide the value from the `next_page_token`
3804
+ # field in a previous call to retrieve the subsequent page.
3805
+ #
3806
+ # When paginating, all other parameters provided must match
3807
+ # the previous call that provided the page token.
3808
+ # @param order_by [::String]
3809
+ # Optional. The sorting order of the resources returned. Value should be a
3810
+ # comma-separated list of fields. The default sorting order is ascending. To
3811
+ # specify descending order for a field, append a `desc` suffix; for example:
3812
+ # `name desc, update_time`.
3813
+ # @param filter [::String]
3814
+ # Optional. The filter field that the list request will filter on.
3815
+ # Possible filtersare described in https://google.aip.dev/160.
3816
+ #
3817
+ # @yield [response, operation] Access the result along with the RPC operation
3818
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::GoogleApiSource>]
3819
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3820
+ #
3821
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::GoogleApiSource>]
3822
+ #
3823
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3824
+ #
3825
+ # @example Basic example
3826
+ # require "google/cloud/eventarc/v1"
3827
+ #
3828
+ # # Create a client object. The client can be reused for multiple calls.
3829
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
3830
+ #
3831
+ # # Create a request. To set request fields, pass in keyword arguments.
3832
+ # request = Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest.new
3833
+ #
3834
+ # # Call the list_google_api_sources method.
3835
+ # result = client.list_google_api_sources request
3836
+ #
3837
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3838
+ # # over elements, and API calls will be issued to fetch pages as needed.
3839
+ # result.each do |item|
3840
+ # # Each element is of type ::Google::Cloud::Eventarc::V1::GoogleApiSource.
3841
+ # p item
3842
+ # end
3843
+ #
3844
+ def list_google_api_sources request, options = nil
3845
+ raise ::ArgumentError, "request must be provided" if request.nil?
3846
+
3847
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest
3848
+
3849
+ # Converts hash and nil to an options object
3850
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3851
+
3852
+ # Customize the options with defaults
3853
+ metadata = @config.rpcs.list_google_api_sources.metadata.to_h
3854
+
3855
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3856
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3857
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3858
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
3859
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3860
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3861
+
3862
+ header_params = {}
3863
+ if request.parent
3864
+ header_params["parent"] = request.parent
3865
+ end
3866
+
3867
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3868
+ metadata[:"x-goog-request-params"] ||= request_params_header
3869
+
3870
+ options.apply_defaults timeout: @config.rpcs.list_google_api_sources.timeout,
3871
+ metadata: metadata,
3872
+ retry_policy: @config.rpcs.list_google_api_sources.retry_policy
3873
+
3874
+ options.apply_defaults timeout: @config.timeout,
3875
+ metadata: @config.metadata,
3876
+ retry_policy: @config.retry_policy
3877
+
3878
+ @eventarc_stub.call_rpc :list_google_api_sources, request, options: options do |response, operation|
3879
+ response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_google_api_sources, request, response, operation, options
3880
+ yield response, operation if block_given?
3881
+ return response
3882
+ end
3883
+ rescue ::GRPC::BadStatus => e
3884
+ raise ::Google::Cloud::Error.from_error(e)
3885
+ end
3886
+
3887
+ ##
3888
+ # Create a new GoogleApiSource in a particular project and location.
3889
+ #
3890
+ # @overload create_google_api_source(request, options = nil)
3891
+ # Pass arguments to `create_google_api_source` via a request object, either of type
3892
+ # {::Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest} or an equivalent Hash.
3893
+ #
3894
+ # @param request [::Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest, ::Hash]
3895
+ # A request object representing the call parameters. Required. To specify no
3896
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3897
+ # @param options [::Gapic::CallOptions, ::Hash]
3898
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3899
+ #
3900
+ # @overload create_google_api_source(parent: nil, google_api_source: nil, google_api_source_id: nil, validate_only: nil)
3901
+ # Pass arguments to `create_google_api_source` via keyword arguments. Note that at
3902
+ # least one keyword argument is required. To specify no parameters, or to keep all
3903
+ # the default parameter values, pass an empty Hash as a request object (see above).
3904
+ #
3905
+ # @param parent [::String]
3906
+ # Required. The parent collection in which to add this google api source.
3907
+ # @param google_api_source [::Google::Cloud::Eventarc::V1::GoogleApiSource, ::Hash]
3908
+ # Required. The google api source to create.
3909
+ # @param google_api_source_id [::String]
3910
+ # Required. The user-provided ID to be assigned to the GoogleApiSource. It
3911
+ # should match the format (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$).
3912
+ # @param validate_only [::Boolean]
3913
+ # Optional. If set, validate the request and preview the review, but do not
3914
+ # post it.
3915
+ #
3916
+ # @yield [response, operation] Access the result along with the RPC operation
3917
+ # @yieldparam response [::Gapic::Operation]
3918
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3919
+ #
3920
+ # @return [::Gapic::Operation]
3921
+ #
3922
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3923
+ #
3924
+ # @example Basic example
3925
+ # require "google/cloud/eventarc/v1"
3926
+ #
3927
+ # # Create a client object. The client can be reused for multiple calls.
3928
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
3929
+ #
3930
+ # # Create a request. To set request fields, pass in keyword arguments.
3931
+ # request = Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest.new
3932
+ #
3933
+ # # Call the create_google_api_source method.
3934
+ # result = client.create_google_api_source request
3935
+ #
3936
+ # # The returned object is of type Gapic::Operation. You can use it to
3937
+ # # check the status of an operation, cancel it, or wait for results.
3938
+ # # Here is how to wait for a response.
3939
+ # result.wait_until_done! timeout: 60
3940
+ # if result.response?
3941
+ # p result.response
3942
+ # else
3943
+ # puts "No response received."
3944
+ # end
3945
+ #
3946
+ def create_google_api_source request, options = nil
3947
+ raise ::ArgumentError, "request must be provided" if request.nil?
3948
+
3949
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest
3950
+
3951
+ # Converts hash and nil to an options object
3952
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3953
+
3954
+ # Customize the options with defaults
3955
+ metadata = @config.rpcs.create_google_api_source.metadata.to_h
3956
+
3957
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3958
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3959
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3960
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
3961
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3962
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3963
+
3964
+ header_params = {}
3965
+ if request.parent
3966
+ header_params["parent"] = request.parent
3967
+ end
3968
+
3969
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3970
+ metadata[:"x-goog-request-params"] ||= request_params_header
3971
+
3972
+ options.apply_defaults timeout: @config.rpcs.create_google_api_source.timeout,
3973
+ metadata: metadata,
3974
+ retry_policy: @config.rpcs.create_google_api_source.retry_policy
3975
+
3976
+ options.apply_defaults timeout: @config.timeout,
3977
+ metadata: @config.metadata,
3978
+ retry_policy: @config.retry_policy
3979
+
3980
+ @eventarc_stub.call_rpc :create_google_api_source, request, options: options do |response, operation|
3981
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3982
+ yield response, operation if block_given?
3983
+ return response
3984
+ end
3985
+ rescue ::GRPC::BadStatus => e
3986
+ raise ::Google::Cloud::Error.from_error(e)
3987
+ end
3988
+
3989
+ ##
3990
+ # Update a single GoogleApiSource.
3991
+ #
3992
+ # @overload update_google_api_source(request, options = nil)
3993
+ # Pass arguments to `update_google_api_source` via a request object, either of type
3994
+ # {::Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest} or an equivalent Hash.
3995
+ #
3996
+ # @param request [::Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest, ::Hash]
3997
+ # A request object representing the call parameters. Required. To specify no
3998
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3999
+ # @param options [::Gapic::CallOptions, ::Hash]
4000
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4001
+ #
4002
+ # @overload update_google_api_source(google_api_source: nil, update_mask: nil, allow_missing: nil, validate_only: nil)
4003
+ # Pass arguments to `update_google_api_source` via keyword arguments. Note that at
4004
+ # least one keyword argument is required. To specify no parameters, or to keep all
4005
+ # the default parameter values, pass an empty Hash as a request object (see above).
4006
+ #
4007
+ # @param google_api_source [::Google::Cloud::Eventarc::V1::GoogleApiSource, ::Hash]
4008
+ # Required. The GoogleApiSource to be updated.
4009
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
4010
+ # Optional. The fields to be updated; only fields explicitly provided are
4011
+ # updated. If no field mask is provided, all provided fields in the request
4012
+ # are updated. To update all fields, provide a field mask of "*".
4013
+ # @param allow_missing [::Boolean]
4014
+ # Optional. If set to true, and the GoogleApiSource is not found, a new
4015
+ # GoogleApiSource will be created. In this situation, `update_mask` is
4016
+ # ignored.
4017
+ # @param validate_only [::Boolean]
4018
+ # Optional. If set, validate the request and preview the review, but do not
4019
+ # post it.
4020
+ #
4021
+ # @yield [response, operation] Access the result along with the RPC operation
4022
+ # @yieldparam response [::Gapic::Operation]
4023
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4024
+ #
4025
+ # @return [::Gapic::Operation]
4026
+ #
4027
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4028
+ #
4029
+ # @example Basic example
4030
+ # require "google/cloud/eventarc/v1"
4031
+ #
4032
+ # # Create a client object. The client can be reused for multiple calls.
4033
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
4034
+ #
4035
+ # # Create a request. To set request fields, pass in keyword arguments.
4036
+ # request = Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest.new
4037
+ #
4038
+ # # Call the update_google_api_source method.
4039
+ # result = client.update_google_api_source request
4040
+ #
4041
+ # # The returned object is of type Gapic::Operation. You can use it to
4042
+ # # check the status of an operation, cancel it, or wait for results.
4043
+ # # Here is how to wait for a response.
4044
+ # result.wait_until_done! timeout: 60
4045
+ # if result.response?
4046
+ # p result.response
4047
+ # else
4048
+ # puts "No response received."
4049
+ # end
4050
+ #
4051
+ def update_google_api_source request, options = nil
4052
+ raise ::ArgumentError, "request must be provided" if request.nil?
4053
+
4054
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest
4055
+
4056
+ # Converts hash and nil to an options object
4057
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4058
+
4059
+ # Customize the options with defaults
4060
+ metadata = @config.rpcs.update_google_api_source.metadata.to_h
4061
+
4062
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4063
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4064
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4065
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
4066
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4067
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4068
+
4069
+ header_params = {}
4070
+ if request.google_api_source&.name
4071
+ header_params["google_api_source.name"] = request.google_api_source.name
4072
+ end
4073
+
4074
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4075
+ metadata[:"x-goog-request-params"] ||= request_params_header
4076
+
4077
+ options.apply_defaults timeout: @config.rpcs.update_google_api_source.timeout,
4078
+ metadata: metadata,
4079
+ retry_policy: @config.rpcs.update_google_api_source.retry_policy
4080
+
4081
+ options.apply_defaults timeout: @config.timeout,
4082
+ metadata: @config.metadata,
4083
+ retry_policy: @config.retry_policy
4084
+
4085
+ @eventarc_stub.call_rpc :update_google_api_source, request, options: options do |response, operation|
4086
+ response = ::Gapic::Operation.new response, @operations_client, options: options
4087
+ yield response, operation if block_given?
4088
+ return response
4089
+ end
4090
+ rescue ::GRPC::BadStatus => e
4091
+ raise ::Google::Cloud::Error.from_error(e)
4092
+ end
4093
+
4094
+ ##
4095
+ # Delete a single GoogleApiSource.
4096
+ #
4097
+ # @overload delete_google_api_source(request, options = nil)
4098
+ # Pass arguments to `delete_google_api_source` via a request object, either of type
4099
+ # {::Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest} or an equivalent Hash.
4100
+ #
4101
+ # @param request [::Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest, ::Hash]
4102
+ # A request object representing the call parameters. Required. To specify no
4103
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4104
+ # @param options [::Gapic::CallOptions, ::Hash]
4105
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4106
+ #
4107
+ # @overload delete_google_api_source(name: nil, etag: nil, allow_missing: nil, validate_only: nil)
4108
+ # Pass arguments to `delete_google_api_source` via keyword arguments. Note that at
4109
+ # least one keyword argument is required. To specify no parameters, or to keep all
4110
+ # the default parameter values, pass an empty Hash as a request object (see above).
4111
+ #
4112
+ # @param name [::String]
4113
+ # Required. The name of the GoogleApiSource to be deleted.
4114
+ # @param etag [::String]
4115
+ # Optional. If provided, the MessageBus will only be deleted if the etag
4116
+ # matches the current etag on the resource.
4117
+ # @param allow_missing [::Boolean]
4118
+ # Optional. If set to true, and the MessageBus is not found, the request will
4119
+ # succeed but no action will be taken on the server.
4120
+ # @param validate_only [::Boolean]
4121
+ # Optional. If set, validate the request and preview the review, but do not
4122
+ # post it.
4123
+ #
4124
+ # @yield [response, operation] Access the result along with the RPC operation
4125
+ # @yieldparam response [::Gapic::Operation]
4126
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4127
+ #
4128
+ # @return [::Gapic::Operation]
4129
+ #
4130
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4131
+ #
4132
+ # @example Basic example
4133
+ # require "google/cloud/eventarc/v1"
4134
+ #
4135
+ # # Create a client object. The client can be reused for multiple calls.
4136
+ # client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
4137
+ #
4138
+ # # Create a request. To set request fields, pass in keyword arguments.
4139
+ # request = Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest.new
4140
+ #
4141
+ # # Call the delete_google_api_source method.
4142
+ # result = client.delete_google_api_source request
4143
+ #
4144
+ # # The returned object is of type Gapic::Operation. You can use it to
4145
+ # # check the status of an operation, cancel it, or wait for results.
4146
+ # # Here is how to wait for a response.
4147
+ # result.wait_until_done! timeout: 60
4148
+ # if result.response?
4149
+ # p result.response
4150
+ # else
4151
+ # puts "No response received."
4152
+ # end
4153
+ #
4154
+ def delete_google_api_source request, options = nil
4155
+ raise ::ArgumentError, "request must be provided" if request.nil?
4156
+
4157
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest
4158
+
4159
+ # Converts hash and nil to an options object
4160
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4161
+
4162
+ # Customize the options with defaults
4163
+ metadata = @config.rpcs.delete_google_api_source.metadata.to_h
4164
+
4165
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4166
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4167
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4168
+ gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
4169
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4170
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4171
+
4172
+ header_params = {}
4173
+ if request.name
4174
+ header_params["name"] = request.name
4175
+ end
4176
+
4177
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4178
+ metadata[:"x-goog-request-params"] ||= request_params_header
4179
+
4180
+ options.apply_defaults timeout: @config.rpcs.delete_google_api_source.timeout,
4181
+ metadata: metadata,
4182
+ retry_policy: @config.rpcs.delete_google_api_source.retry_policy
4183
+
4184
+ options.apply_defaults timeout: @config.timeout,
4185
+ metadata: @config.metadata,
4186
+ retry_policy: @config.retry_policy
4187
+
4188
+ @eventarc_stub.call_rpc :delete_google_api_source, request, options: options do |response, operation|
4189
+ response = ::Gapic::Operation.new response, @operations_client, options: options
4190
+ yield response, operation if block_given?
4191
+ return response
4192
+ end
4193
+ rescue ::GRPC::BadStatus => e
4194
+ raise ::Google::Cloud::Error.from_error(e)
4195
+ end
4196
+
4197
+ ##
4198
+ # Configuration class for the Eventarc API.
4199
+ #
4200
+ # This class represents the configuration for Eventarc,
4201
+ # providing control over timeouts, retry behavior, logging, transport
4202
+ # parameters, and other low-level controls. Certain parameters can also be
4203
+ # applied individually to specific RPCs. See
4204
+ # {::Google::Cloud::Eventarc::V1::Eventarc::Client::Configuration::Rpcs}
4205
+ # for a list of RPCs that can be configured independently.
4206
+ #
4207
+ # Configuration can be applied globally to all clients, or to a single client
4208
+ # on construction.
4209
+ #
4210
+ # @example
4211
+ #
4212
+ # # Modify the global config, setting the timeout for
4213
+ # # get_trigger to 20 seconds,
4214
+ # # and all remaining timeouts to 10 seconds.
4215
+ # ::Google::Cloud::Eventarc::V1::Eventarc::Client.configure do |config|
4216
+ # config.timeout = 10.0
4217
+ # config.rpcs.get_trigger.timeout = 20.0
4218
+ # end
4219
+ #
4220
+ # # Apply the above configuration only to a new client.
4221
+ # client = ::Google::Cloud::Eventarc::V1::Eventarc::Client.new do |config|
4222
+ # config.timeout = 10.0
4223
+ # config.rpcs.get_trigger.timeout = 20.0
4224
+ # end
4225
+ #
4226
+ # @!attribute [rw] endpoint
4227
+ # A custom service endpoint, as a hostname or hostname:port. The default is
4228
+ # nil, indicating to use the default endpoint in the current universe domain.
4229
+ # @return [::String,nil]
4230
+ # @!attribute [rw] credentials
4231
+ # Credentials to send with calls. You may provide any of the following types:
4232
+ # * (`String`) The path to a service account key file in JSON format
4233
+ # * (`Hash`) A service account key as a Hash
4234
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
4235
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
4236
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
4237
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
4238
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
4239
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
4240
+ # * (`nil`) indicating no credentials
4241
+ # @return [::Object]
4242
+ # @!attribute [rw] scope
4243
+ # The OAuth scopes
4244
+ # @return [::Array<::String>]
4245
+ # @!attribute [rw] lib_name
4246
+ # The library name as recorded in instrumentation and logging
4247
+ # @return [::String]
4248
+ # @!attribute [rw] lib_version
4249
+ # The library version as recorded in instrumentation and logging
4250
+ # @return [::String]
4251
+ # @!attribute [rw] channel_args
4252
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
4253
+ # `GRPC::Core::Channel` object is provided as the credential.
4254
+ # @return [::Hash]
4255
+ # @!attribute [rw] interceptors
4256
+ # An array of interceptors that are run before calls are executed.
4257
+ # @return [::Array<::GRPC::ClientInterceptor>]
4258
+ # @!attribute [rw] timeout
4259
+ # The call timeout in seconds.
4260
+ # @return [::Numeric]
4261
+ # @!attribute [rw] metadata
4262
+ # Additional gRPC headers to be sent with the call.
4263
+ # @return [::Hash{::Symbol=>::String}]
4264
+ # @!attribute [rw] retry_policy
4265
+ # The retry policy. The value is a hash with the following keys:
4266
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
4267
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
4268
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
4269
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
4270
+ # trigger a retry.
4271
+ # @return [::Hash]
4272
+ # @!attribute [rw] quota_project
4273
+ # A separate project against which to charge quota.
4274
+ # @return [::String]
4275
+ # @!attribute [rw] universe_domain
4276
+ # The universe domain within which to make requests. This determines the
4277
+ # default endpoint URL. The default value of nil uses the environment
4278
+ # universe (usually the default "googleapis.com" universe).
4279
+ # @return [::String,nil]
4280
+ #
4281
+ class Configuration
4282
+ extend ::Gapic::Config
4283
+
4284
+ # @private
4285
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
4286
+ DEFAULT_ENDPOINT = "eventarc.googleapis.com"
4287
+
4288
+ config_attr :endpoint, nil, ::String, nil
4289
+ config_attr :credentials, nil do |value|
4290
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
4291
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
4292
+ allowed.any? { |klass| klass === value }
4293
+ end
4294
+ config_attr :scope, nil, ::String, ::Array, nil
4295
+ config_attr :lib_name, nil, ::String, nil
4296
+ config_attr :lib_version, nil, ::String, nil
4297
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
4298
+ config_attr :interceptors, nil, ::Array, nil
4299
+ config_attr :timeout, nil, ::Numeric, nil
4300
+ config_attr :metadata, nil, ::Hash, nil
4301
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
4302
+ config_attr :quota_project, nil, ::String, nil
4303
+ config_attr :universe_domain, nil, ::String, nil
4304
+
4305
+ # @private
4306
+ def initialize parent_config = nil
4307
+ @parent_config = parent_config unless parent_config.nil?
4308
+
4309
+ yield self if block_given?
4310
+ end
4311
+
4312
+ ##
4313
+ # Configurations for individual RPCs
4314
+ # @return [Rpcs]
4315
+ #
4316
+ def rpcs
4317
+ @rpcs ||= begin
4318
+ parent_rpcs = nil
4319
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
4320
+ Rpcs.new parent_rpcs
4321
+ end
4322
+ end
4323
+
4324
+ ##
4325
+ # Configuration for the channel pool
4326
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
4327
+ #
4328
+ def channel_pool
4329
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
4330
+ end
4331
+
4332
+ ##
4333
+ # Configuration RPC class for the Eventarc API.
4334
+ #
4335
+ # Includes fields providing the configuration for each RPC in this service.
4336
+ # Each configuration object is of type `Gapic::Config::Method` and includes
4337
+ # the following configuration fields:
4338
+ #
4339
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
4340
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
4341
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
4342
+ # include the following keys:
4343
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
4344
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
4345
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
4346
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
4347
+ # trigger a retry.
4348
+ #
4349
+ class Rpcs
4350
+ ##
4351
+ # RPC-specific configuration for `get_trigger`
4352
+ # @return [::Gapic::Config::Method]
4353
+ #
4354
+ attr_reader :get_trigger
4355
+ ##
4356
+ # RPC-specific configuration for `list_triggers`
4357
+ # @return [::Gapic::Config::Method]
4358
+ #
4359
+ attr_reader :list_triggers
4360
+ ##
4361
+ # RPC-specific configuration for `create_trigger`
4362
+ # @return [::Gapic::Config::Method]
4363
+ #
4364
+ attr_reader :create_trigger
4365
+ ##
4366
+ # RPC-specific configuration for `update_trigger`
4367
+ # @return [::Gapic::Config::Method]
4368
+ #
4369
+ attr_reader :update_trigger
4370
+ ##
4371
+ # RPC-specific configuration for `delete_trigger`
4372
+ # @return [::Gapic::Config::Method]
4373
+ #
4374
+ attr_reader :delete_trigger
4375
+ ##
4376
+ # RPC-specific configuration for `get_channel`
4377
+ # @return [::Gapic::Config::Method]
4378
+ #
4379
+ attr_reader :get_channel
4380
+ ##
4381
+ # RPC-specific configuration for `list_channels`
2138
4382
  # @return [::Gapic::Config::Method]
2139
4383
  #
2140
4384
  attr_reader :list_channels
@@ -2193,6 +4437,111 @@ module Google
2193
4437
  # @return [::Gapic::Config::Method]
2194
4438
  #
2195
4439
  attr_reader :update_google_channel_config
4440
+ ##
4441
+ # RPC-specific configuration for `get_message_bus`
4442
+ # @return [::Gapic::Config::Method]
4443
+ #
4444
+ attr_reader :get_message_bus
4445
+ ##
4446
+ # RPC-specific configuration for `list_message_buses`
4447
+ # @return [::Gapic::Config::Method]
4448
+ #
4449
+ attr_reader :list_message_buses
4450
+ ##
4451
+ # RPC-specific configuration for `list_message_bus_enrollments`
4452
+ # @return [::Gapic::Config::Method]
4453
+ #
4454
+ attr_reader :list_message_bus_enrollments
4455
+ ##
4456
+ # RPC-specific configuration for `create_message_bus`
4457
+ # @return [::Gapic::Config::Method]
4458
+ #
4459
+ attr_reader :create_message_bus
4460
+ ##
4461
+ # RPC-specific configuration for `update_message_bus`
4462
+ # @return [::Gapic::Config::Method]
4463
+ #
4464
+ attr_reader :update_message_bus
4465
+ ##
4466
+ # RPC-specific configuration for `delete_message_bus`
4467
+ # @return [::Gapic::Config::Method]
4468
+ #
4469
+ attr_reader :delete_message_bus
4470
+ ##
4471
+ # RPC-specific configuration for `get_enrollment`
4472
+ # @return [::Gapic::Config::Method]
4473
+ #
4474
+ attr_reader :get_enrollment
4475
+ ##
4476
+ # RPC-specific configuration for `list_enrollments`
4477
+ # @return [::Gapic::Config::Method]
4478
+ #
4479
+ attr_reader :list_enrollments
4480
+ ##
4481
+ # RPC-specific configuration for `create_enrollment`
4482
+ # @return [::Gapic::Config::Method]
4483
+ #
4484
+ attr_reader :create_enrollment
4485
+ ##
4486
+ # RPC-specific configuration for `update_enrollment`
4487
+ # @return [::Gapic::Config::Method]
4488
+ #
4489
+ attr_reader :update_enrollment
4490
+ ##
4491
+ # RPC-specific configuration for `delete_enrollment`
4492
+ # @return [::Gapic::Config::Method]
4493
+ #
4494
+ attr_reader :delete_enrollment
4495
+ ##
4496
+ # RPC-specific configuration for `get_pipeline`
4497
+ # @return [::Gapic::Config::Method]
4498
+ #
4499
+ attr_reader :get_pipeline
4500
+ ##
4501
+ # RPC-specific configuration for `list_pipelines`
4502
+ # @return [::Gapic::Config::Method]
4503
+ #
4504
+ attr_reader :list_pipelines
4505
+ ##
4506
+ # RPC-specific configuration for `create_pipeline`
4507
+ # @return [::Gapic::Config::Method]
4508
+ #
4509
+ attr_reader :create_pipeline
4510
+ ##
4511
+ # RPC-specific configuration for `update_pipeline`
4512
+ # @return [::Gapic::Config::Method]
4513
+ #
4514
+ attr_reader :update_pipeline
4515
+ ##
4516
+ # RPC-specific configuration for `delete_pipeline`
4517
+ # @return [::Gapic::Config::Method]
4518
+ #
4519
+ attr_reader :delete_pipeline
4520
+ ##
4521
+ # RPC-specific configuration for `get_google_api_source`
4522
+ # @return [::Gapic::Config::Method]
4523
+ #
4524
+ attr_reader :get_google_api_source
4525
+ ##
4526
+ # RPC-specific configuration for `list_google_api_sources`
4527
+ # @return [::Gapic::Config::Method]
4528
+ #
4529
+ attr_reader :list_google_api_sources
4530
+ ##
4531
+ # RPC-specific configuration for `create_google_api_source`
4532
+ # @return [::Gapic::Config::Method]
4533
+ #
4534
+ attr_reader :create_google_api_source
4535
+ ##
4536
+ # RPC-specific configuration for `update_google_api_source`
4537
+ # @return [::Gapic::Config::Method]
4538
+ #
4539
+ attr_reader :update_google_api_source
4540
+ ##
4541
+ # RPC-specific configuration for `delete_google_api_source`
4542
+ # @return [::Gapic::Config::Method]
4543
+ #
4544
+ attr_reader :delete_google_api_source
2196
4545
 
2197
4546
  # @private
2198
4547
  def initialize parent_rpcs = nil
@@ -2232,6 +4581,48 @@ module Google
2232
4581
  @get_google_channel_config = ::Gapic::Config::Method.new get_google_channel_config_config
2233
4582
  update_google_channel_config_config = parent_rpcs.update_google_channel_config if parent_rpcs.respond_to? :update_google_channel_config
2234
4583
  @update_google_channel_config = ::Gapic::Config::Method.new update_google_channel_config_config
4584
+ get_message_bus_config = parent_rpcs.get_message_bus if parent_rpcs.respond_to? :get_message_bus
4585
+ @get_message_bus = ::Gapic::Config::Method.new get_message_bus_config
4586
+ list_message_buses_config = parent_rpcs.list_message_buses if parent_rpcs.respond_to? :list_message_buses
4587
+ @list_message_buses = ::Gapic::Config::Method.new list_message_buses_config
4588
+ list_message_bus_enrollments_config = parent_rpcs.list_message_bus_enrollments if parent_rpcs.respond_to? :list_message_bus_enrollments
4589
+ @list_message_bus_enrollments = ::Gapic::Config::Method.new list_message_bus_enrollments_config
4590
+ create_message_bus_config = parent_rpcs.create_message_bus if parent_rpcs.respond_to? :create_message_bus
4591
+ @create_message_bus = ::Gapic::Config::Method.new create_message_bus_config
4592
+ update_message_bus_config = parent_rpcs.update_message_bus if parent_rpcs.respond_to? :update_message_bus
4593
+ @update_message_bus = ::Gapic::Config::Method.new update_message_bus_config
4594
+ delete_message_bus_config = parent_rpcs.delete_message_bus if parent_rpcs.respond_to? :delete_message_bus
4595
+ @delete_message_bus = ::Gapic::Config::Method.new delete_message_bus_config
4596
+ get_enrollment_config = parent_rpcs.get_enrollment if parent_rpcs.respond_to? :get_enrollment
4597
+ @get_enrollment = ::Gapic::Config::Method.new get_enrollment_config
4598
+ list_enrollments_config = parent_rpcs.list_enrollments if parent_rpcs.respond_to? :list_enrollments
4599
+ @list_enrollments = ::Gapic::Config::Method.new list_enrollments_config
4600
+ create_enrollment_config = parent_rpcs.create_enrollment if parent_rpcs.respond_to? :create_enrollment
4601
+ @create_enrollment = ::Gapic::Config::Method.new create_enrollment_config
4602
+ update_enrollment_config = parent_rpcs.update_enrollment if parent_rpcs.respond_to? :update_enrollment
4603
+ @update_enrollment = ::Gapic::Config::Method.new update_enrollment_config
4604
+ delete_enrollment_config = parent_rpcs.delete_enrollment if parent_rpcs.respond_to? :delete_enrollment
4605
+ @delete_enrollment = ::Gapic::Config::Method.new delete_enrollment_config
4606
+ get_pipeline_config = parent_rpcs.get_pipeline if parent_rpcs.respond_to? :get_pipeline
4607
+ @get_pipeline = ::Gapic::Config::Method.new get_pipeline_config
4608
+ list_pipelines_config = parent_rpcs.list_pipelines if parent_rpcs.respond_to? :list_pipelines
4609
+ @list_pipelines = ::Gapic::Config::Method.new list_pipelines_config
4610
+ create_pipeline_config = parent_rpcs.create_pipeline if parent_rpcs.respond_to? :create_pipeline
4611
+ @create_pipeline = ::Gapic::Config::Method.new create_pipeline_config
4612
+ update_pipeline_config = parent_rpcs.update_pipeline if parent_rpcs.respond_to? :update_pipeline
4613
+ @update_pipeline = ::Gapic::Config::Method.new update_pipeline_config
4614
+ delete_pipeline_config = parent_rpcs.delete_pipeline if parent_rpcs.respond_to? :delete_pipeline
4615
+ @delete_pipeline = ::Gapic::Config::Method.new delete_pipeline_config
4616
+ get_google_api_source_config = parent_rpcs.get_google_api_source if parent_rpcs.respond_to? :get_google_api_source
4617
+ @get_google_api_source = ::Gapic::Config::Method.new get_google_api_source_config
4618
+ list_google_api_sources_config = parent_rpcs.list_google_api_sources if parent_rpcs.respond_to? :list_google_api_sources
4619
+ @list_google_api_sources = ::Gapic::Config::Method.new list_google_api_sources_config
4620
+ create_google_api_source_config = parent_rpcs.create_google_api_source if parent_rpcs.respond_to? :create_google_api_source
4621
+ @create_google_api_source = ::Gapic::Config::Method.new create_google_api_source_config
4622
+ update_google_api_source_config = parent_rpcs.update_google_api_source if parent_rpcs.respond_to? :update_google_api_source
4623
+ @update_google_api_source = ::Gapic::Config::Method.new update_google_api_source_config
4624
+ delete_google_api_source_config = parent_rpcs.delete_google_api_source if parent_rpcs.respond_to? :delete_google_api_source
4625
+ @delete_google_api_source = ::Gapic::Config::Method.new delete_google_api_source_config
2235
4626
 
2236
4627
  yield self if block_given?
2237
4628
  end