google-cloud-eventarc-v1 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/cloud/eventarc/v1/channel_pb.rb +1 -0
- data/lib/google/cloud/eventarc/v1/eventarc/client.rb +224 -1
- data/lib/google/cloud/eventarc/v1/eventarc/paths.rb +57 -0
- data/lib/google/cloud/eventarc/v1/eventarc_pb.rb +11 -0
- data/lib/google/cloud/eventarc/v1/eventarc_services_pb.rb +4 -0
- data/lib/google/cloud/eventarc/v1/google_channel_config_pb.rb +28 -0
- data/lib/google/cloud/eventarc/v1/trigger_pb.rb +8 -0
- data/lib/google/cloud/eventarc/v1/version.rb +1 -1
- data/proto_docs/google/cloud/eventarc/v1/channel.rb +20 -10
- data/proto_docs/google/cloud/eventarc/v1/eventarc.rb +35 -4
- data/proto_docs/google/cloud/eventarc/v1/google_channel_config.rb +50 -0
- data/proto_docs/google/cloud/eventarc/v1/trigger.rb +31 -1
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/code.rb +185 -0
- data/proto_docs/google/rpc/status.rb +1 -1
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +48 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f6205c69d371af141f001c1023f78c0c94ff3f6df0873ad185510b046fc0681
|
4
|
+
data.tar.gz: 1a13d45409741574d6369c5dbd0e2569fa16b00b360858abb27d79e29d33a134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a2932d746d531e00382afea439302bb43c7e65ec7266f4e37837de1fb43d9b900f680019e38f0cbc46fe77f44befbe503663f2a46f69c1a0e371e7d74127603
|
7
|
+
data.tar.gz: d3a5b9c519c999347b72dbaa0fb2a536eea3cd623ef012c989b6836066a1e72e690fea2856685cfb01b7aac9d18714b58cbd674e7c4dfaada0f288ca414e5fef
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
@@ -17,6 +17,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
17
|
optional :provider, :string, 7
|
18
18
|
optional :state, :enum, 9, "google.cloud.eventarc.v1.Channel.State"
|
19
19
|
optional :activation_token, :string, 10
|
20
|
+
optional :crypto_key_name, :string, 11
|
20
21
|
oneof :transport do
|
21
22
|
optional :pubsub_topic, :string, 8
|
22
23
|
end
|
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/eventarc/v1/eventarc_pb"
|
21
|
+
require "google/cloud/location"
|
22
|
+
require "google/iam/v1"
|
21
23
|
|
22
24
|
module Google
|
23
25
|
module Cloud
|
@@ -140,6 +142,18 @@ module Google
|
|
140
142
|
config.endpoint = @config.endpoint
|
141
143
|
end
|
142
144
|
|
145
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
146
|
+
config.credentials = credentials
|
147
|
+
config.quota_project = @quota_project_id
|
148
|
+
config.endpoint = @config.endpoint
|
149
|
+
end
|
150
|
+
|
151
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
152
|
+
config.credentials = credentials
|
153
|
+
config.quota_project = @quota_project_id
|
154
|
+
config.endpoint = @config.endpoint
|
155
|
+
end
|
156
|
+
|
143
157
|
@eventarc_stub = ::Gapic::ServiceStub.new(
|
144
158
|
::Google::Cloud::Eventarc::V1::Eventarc::Stub,
|
145
159
|
credentials: credentials,
|
@@ -156,6 +170,20 @@ module Google
|
|
156
170
|
#
|
157
171
|
attr_reader :operations_client
|
158
172
|
|
173
|
+
##
|
174
|
+
# Get the associated client for mix-in of the Locations.
|
175
|
+
#
|
176
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
177
|
+
#
|
178
|
+
attr_reader :location_client
|
179
|
+
|
180
|
+
##
|
181
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
182
|
+
#
|
183
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
184
|
+
#
|
185
|
+
attr_reader :iam_policy_client
|
186
|
+
|
159
187
|
# Service calls
|
160
188
|
|
161
189
|
##
|
@@ -256,7 +284,7 @@ module Google
|
|
256
284
|
# @param options [::Gapic::CallOptions, ::Hash]
|
257
285
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
258
286
|
#
|
259
|
-
# @overload list_triggers(parent: nil, page_size: nil, page_token: nil, order_by: nil)
|
287
|
+
# @overload list_triggers(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
260
288
|
# Pass arguments to `list_triggers` via keyword arguments. Note that at
|
261
289
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
262
290
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -265,6 +293,7 @@ module Google
|
|
265
293
|
# Required. The parent collection to list triggers on.
|
266
294
|
# @param page_size [::Integer]
|
267
295
|
# The maximum number of triggers to return on each page.
|
296
|
+
#
|
268
297
|
# Note: The service may send fewer.
|
269
298
|
# @param page_token [::String]
|
270
299
|
# The page token; provide the value from the `next_page_token` field in a
|
@@ -277,6 +306,10 @@ module Google
|
|
277
306
|
# comma-separated list of fields. The default sorting order is ascending. To
|
278
307
|
# specify descending order for a field, append a `desc` suffix; for example:
|
279
308
|
# `name desc, trigger_id`.
|
309
|
+
# @param filter [::String]
|
310
|
+
# Filter field. Used to filter the Triggers to be listed. Possible filters
|
311
|
+
# are described in https://google.aip.dev/160. For example, using
|
312
|
+
# "?filter=destination:gke" would list only Triggers with a gke destination.
|
280
313
|
#
|
281
314
|
# @yield [response, operation] Access the result along with the RPC operation
|
282
315
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Eventarc::V1::Trigger>]
|
@@ -761,6 +794,7 @@ module Google
|
|
761
794
|
# Required. The parent collection to list channels on.
|
762
795
|
# @param page_size [::Integer]
|
763
796
|
# The maximum number of channels to return on each page.
|
797
|
+
#
|
764
798
|
# Note: The service may send fewer.
|
765
799
|
# @param page_token [::String]
|
766
800
|
# The page token; provide the value from the `next_page_token` field in a
|
@@ -1440,6 +1474,7 @@ module Google
|
|
1440
1474
|
# Required. The parent collection from which to list channel connections.
|
1441
1475
|
# @param page_size [::Integer]
|
1442
1476
|
# The maximum number of channel connections to return on each page.
|
1477
|
+
#
|
1443
1478
|
# Note: The service may send fewer responses.
|
1444
1479
|
# @param page_token [::String]
|
1445
1480
|
# The page token; provide the value from the `next_page_token` field in a
|
@@ -1709,6 +1744,180 @@ module Google
|
|
1709
1744
|
raise ::Google::Cloud::Error.from_error(e)
|
1710
1745
|
end
|
1711
1746
|
|
1747
|
+
##
|
1748
|
+
# Get a GoogleChannelConfig
|
1749
|
+
#
|
1750
|
+
# @overload get_google_channel_config(request, options = nil)
|
1751
|
+
# Pass arguments to `get_google_channel_config` via a request object, either of type
|
1752
|
+
# {::Google::Cloud::Eventarc::V1::GetGoogleChannelConfigRequest} or an equivalent Hash.
|
1753
|
+
#
|
1754
|
+
# @param request [::Google::Cloud::Eventarc::V1::GetGoogleChannelConfigRequest, ::Hash]
|
1755
|
+
# A request object representing the call parameters. Required. To specify no
|
1756
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1757
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1758
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1759
|
+
#
|
1760
|
+
# @overload get_google_channel_config(name: nil)
|
1761
|
+
# Pass arguments to `get_google_channel_config` via keyword arguments. Note that at
|
1762
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1763
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1764
|
+
#
|
1765
|
+
# @param name [::String]
|
1766
|
+
# Required. The name of the config to get.
|
1767
|
+
#
|
1768
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1769
|
+
# @yieldparam response [::Google::Cloud::Eventarc::V1::GoogleChannelConfig]
|
1770
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1771
|
+
#
|
1772
|
+
# @return [::Google::Cloud::Eventarc::V1::GoogleChannelConfig]
|
1773
|
+
#
|
1774
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1775
|
+
#
|
1776
|
+
# @example Basic example
|
1777
|
+
# require "google/cloud/eventarc/v1"
|
1778
|
+
#
|
1779
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1780
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
|
1781
|
+
#
|
1782
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1783
|
+
# request = Google::Cloud::Eventarc::V1::GetGoogleChannelConfigRequest.new
|
1784
|
+
#
|
1785
|
+
# # Call the get_google_channel_config method.
|
1786
|
+
# result = client.get_google_channel_config request
|
1787
|
+
#
|
1788
|
+
# # The returned object is of type Google::Cloud::Eventarc::V1::GoogleChannelConfig.
|
1789
|
+
# p result
|
1790
|
+
#
|
1791
|
+
def get_google_channel_config request, options = nil
|
1792
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1793
|
+
|
1794
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetGoogleChannelConfigRequest
|
1795
|
+
|
1796
|
+
# Converts hash and nil to an options object
|
1797
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1798
|
+
|
1799
|
+
# Customize the options with defaults
|
1800
|
+
metadata = @config.rpcs.get_google_channel_config.metadata.to_h
|
1801
|
+
|
1802
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1803
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1804
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1805
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
|
1806
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1807
|
+
|
1808
|
+
header_params = {}
|
1809
|
+
if request.name
|
1810
|
+
header_params["name"] = request.name
|
1811
|
+
end
|
1812
|
+
|
1813
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1814
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1815
|
+
|
1816
|
+
options.apply_defaults timeout: @config.rpcs.get_google_channel_config.timeout,
|
1817
|
+
metadata: metadata,
|
1818
|
+
retry_policy: @config.rpcs.get_google_channel_config.retry_policy
|
1819
|
+
|
1820
|
+
options.apply_defaults timeout: @config.timeout,
|
1821
|
+
metadata: @config.metadata,
|
1822
|
+
retry_policy: @config.retry_policy
|
1823
|
+
|
1824
|
+
@eventarc_stub.call_rpc :get_google_channel_config, request, options: options do |response, operation|
|
1825
|
+
yield response, operation if block_given?
|
1826
|
+
return response
|
1827
|
+
end
|
1828
|
+
rescue ::GRPC::BadStatus => e
|
1829
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1830
|
+
end
|
1831
|
+
|
1832
|
+
##
|
1833
|
+
# Update a single GoogleChannelConfig
|
1834
|
+
#
|
1835
|
+
# @overload update_google_channel_config(request, options = nil)
|
1836
|
+
# Pass arguments to `update_google_channel_config` via a request object, either of type
|
1837
|
+
# {::Google::Cloud::Eventarc::V1::UpdateGoogleChannelConfigRequest} or an equivalent Hash.
|
1838
|
+
#
|
1839
|
+
# @param request [::Google::Cloud::Eventarc::V1::UpdateGoogleChannelConfigRequest, ::Hash]
|
1840
|
+
# A request object representing the call parameters. Required. To specify no
|
1841
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1842
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1843
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1844
|
+
#
|
1845
|
+
# @overload update_google_channel_config(google_channel_config: nil, update_mask: nil)
|
1846
|
+
# Pass arguments to `update_google_channel_config` via keyword arguments. Note that at
|
1847
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1848
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1849
|
+
#
|
1850
|
+
# @param google_channel_config [::Google::Cloud::Eventarc::V1::GoogleChannelConfig, ::Hash]
|
1851
|
+
# Required. The config to be updated.
|
1852
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1853
|
+
# The fields to be updated; only fields explicitly provided are updated.
|
1854
|
+
# If no field mask is provided, all provided fields in the request are
|
1855
|
+
# updated. To update all fields, provide a field mask of "*".
|
1856
|
+
#
|
1857
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1858
|
+
# @yieldparam response [::Google::Cloud::Eventarc::V1::GoogleChannelConfig]
|
1859
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1860
|
+
#
|
1861
|
+
# @return [::Google::Cloud::Eventarc::V1::GoogleChannelConfig]
|
1862
|
+
#
|
1863
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1864
|
+
#
|
1865
|
+
# @example Basic example
|
1866
|
+
# require "google/cloud/eventarc/v1"
|
1867
|
+
#
|
1868
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1869
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Client.new
|
1870
|
+
#
|
1871
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1872
|
+
# request = Google::Cloud::Eventarc::V1::UpdateGoogleChannelConfigRequest.new
|
1873
|
+
#
|
1874
|
+
# # Call the update_google_channel_config method.
|
1875
|
+
# result = client.update_google_channel_config request
|
1876
|
+
#
|
1877
|
+
# # The returned object is of type Google::Cloud::Eventarc::V1::GoogleChannelConfig.
|
1878
|
+
# p result
|
1879
|
+
#
|
1880
|
+
def update_google_channel_config request, options = nil
|
1881
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1882
|
+
|
1883
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::UpdateGoogleChannelConfigRequest
|
1884
|
+
|
1885
|
+
# Converts hash and nil to an options object
|
1886
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1887
|
+
|
1888
|
+
# Customize the options with defaults
|
1889
|
+
metadata = @config.rpcs.update_google_channel_config.metadata.to_h
|
1890
|
+
|
1891
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1892
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1893
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1894
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION
|
1895
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1896
|
+
|
1897
|
+
header_params = {}
|
1898
|
+
if request.google_channel_config&.name
|
1899
|
+
header_params["google_channel_config.name"] = request.google_channel_config.name
|
1900
|
+
end
|
1901
|
+
|
1902
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1903
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1904
|
+
|
1905
|
+
options.apply_defaults timeout: @config.rpcs.update_google_channel_config.timeout,
|
1906
|
+
metadata: metadata,
|
1907
|
+
retry_policy: @config.rpcs.update_google_channel_config.retry_policy
|
1908
|
+
|
1909
|
+
options.apply_defaults timeout: @config.timeout,
|
1910
|
+
metadata: @config.metadata,
|
1911
|
+
retry_policy: @config.retry_policy
|
1912
|
+
|
1913
|
+
@eventarc_stub.call_rpc :update_google_channel_config, request, options: options do |response, operation|
|
1914
|
+
yield response, operation if block_given?
|
1915
|
+
return response
|
1916
|
+
end
|
1917
|
+
rescue ::GRPC::BadStatus => e
|
1918
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1919
|
+
end
|
1920
|
+
|
1712
1921
|
##
|
1713
1922
|
# Configuration class for the Eventarc API.
|
1714
1923
|
#
|
@@ -1924,6 +2133,16 @@ module Google
|
|
1924
2133
|
# @return [::Gapic::Config::Method]
|
1925
2134
|
#
|
1926
2135
|
attr_reader :delete_channel_connection
|
2136
|
+
##
|
2137
|
+
# RPC-specific configuration for `get_google_channel_config`
|
2138
|
+
# @return [::Gapic::Config::Method]
|
2139
|
+
#
|
2140
|
+
attr_reader :get_google_channel_config
|
2141
|
+
##
|
2142
|
+
# RPC-specific configuration for `update_google_channel_config`
|
2143
|
+
# @return [::Gapic::Config::Method]
|
2144
|
+
#
|
2145
|
+
attr_reader :update_google_channel_config
|
1927
2146
|
|
1928
2147
|
# @private
|
1929
2148
|
def initialize parent_rpcs = nil
|
@@ -1959,6 +2178,10 @@ module Google
|
|
1959
2178
|
@create_channel_connection = ::Gapic::Config::Method.new create_channel_connection_config
|
1960
2179
|
delete_channel_connection_config = parent_rpcs.delete_channel_connection if parent_rpcs.respond_to? :delete_channel_connection
|
1961
2180
|
@delete_channel_connection = ::Gapic::Config::Method.new delete_channel_connection_config
|
2181
|
+
get_google_channel_config_config = parent_rpcs.get_google_channel_config if parent_rpcs.respond_to? :get_google_channel_config
|
2182
|
+
@get_google_channel_config = ::Gapic::Config::Method.new get_google_channel_config_config
|
2183
|
+
update_google_channel_config_config = parent_rpcs.update_google_channel_config if parent_rpcs.respond_to? :update_google_channel_config
|
2184
|
+
@update_google_channel_config = ::Gapic::Config::Method.new update_google_channel_config_config
|
1962
2185
|
|
1963
2186
|
yield self if block_given?
|
1964
2187
|
end
|
@@ -81,6 +81,44 @@ module Google
|
|
81
81
|
"projects/#{project}/locations/#{location}/functions/#{function}"
|
82
82
|
end
|
83
83
|
|
84
|
+
##
|
85
|
+
# Create a fully-qualified CryptoKey resource string.
|
86
|
+
#
|
87
|
+
# The resource will be in the following format:
|
88
|
+
#
|
89
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
90
|
+
#
|
91
|
+
# @param project [String]
|
92
|
+
# @param location [String]
|
93
|
+
# @param key_ring [String]
|
94
|
+
# @param crypto_key [String]
|
95
|
+
#
|
96
|
+
# @return [::String]
|
97
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
98
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
99
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
100
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
101
|
+
|
102
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
103
|
+
end
|
104
|
+
|
105
|
+
##
|
106
|
+
# Create a fully-qualified GoogleChannelConfig resource string.
|
107
|
+
#
|
108
|
+
# The resource will be in the following format:
|
109
|
+
#
|
110
|
+
# `projects/{project}/locations/{location}/googleChannelConfig`
|
111
|
+
#
|
112
|
+
# @param project [String]
|
113
|
+
# @param location [String]
|
114
|
+
#
|
115
|
+
# @return [::String]
|
116
|
+
def google_channel_config_path project:, location:
|
117
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
118
|
+
|
119
|
+
"projects/#{project}/locations/#{location}/googleChannelConfig"
|
120
|
+
end
|
121
|
+
|
84
122
|
##
|
85
123
|
# Create a fully-qualified Location resource string.
|
86
124
|
#
|
@@ -153,6 +191,25 @@ module Google
|
|
153
191
|
"projects/#{project}/locations/#{location}/triggers/#{trigger}"
|
154
192
|
end
|
155
193
|
|
194
|
+
##
|
195
|
+
# Create a fully-qualified Workflow resource string.
|
196
|
+
#
|
197
|
+
# The resource will be in the following format:
|
198
|
+
#
|
199
|
+
# `projects/{project}/locations/{location}/workflows/{workflow}`
|
200
|
+
#
|
201
|
+
# @param project [String]
|
202
|
+
# @param location [String]
|
203
|
+
# @param workflow [String]
|
204
|
+
#
|
205
|
+
# @return [::String]
|
206
|
+
def workflow_path project:, location:, workflow:
|
207
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
208
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
209
|
+
|
210
|
+
"projects/#{project}/locations/#{location}/workflows/#{workflow}"
|
211
|
+
end
|
212
|
+
|
156
213
|
extend self
|
157
214
|
end
|
158
215
|
end
|
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
|
|
10
10
|
require 'google/cloud/eventarc/v1/channel_pb'
|
11
11
|
require 'google/cloud/eventarc/v1/channel_connection_pb'
|
12
12
|
require 'google/cloud/eventarc/v1/discovery_pb'
|
13
|
+
require 'google/cloud/eventarc/v1/google_channel_config_pb'
|
13
14
|
require 'google/cloud/eventarc/v1/trigger_pb'
|
14
15
|
require 'google/longrunning/operations_pb'
|
15
16
|
require 'google/protobuf/field_mask_pb'
|
@@ -25,6 +26,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
25
26
|
optional :page_size, :int32, 2
|
26
27
|
optional :page_token, :string, 3
|
27
28
|
optional :order_by, :string, 4
|
29
|
+
optional :filter, :string, 5
|
28
30
|
end
|
29
31
|
add_message "google.cloud.eventarc.v1.ListTriggersResponse" do
|
30
32
|
repeated :triggers, :message, 1, "google.cloud.eventarc.v1.Trigger"
|
@@ -114,6 +116,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
114
116
|
add_message "google.cloud.eventarc.v1.DeleteChannelConnectionRequest" do
|
115
117
|
optional :name, :string, 1
|
116
118
|
end
|
119
|
+
add_message "google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest" do
|
120
|
+
optional :google_channel_config, :message, 1, "google.cloud.eventarc.v1.GoogleChannelConfig"
|
121
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
122
|
+
end
|
123
|
+
add_message "google.cloud.eventarc.v1.GetGoogleChannelConfigRequest" do
|
124
|
+
optional :name, :string, 1
|
125
|
+
end
|
117
126
|
add_message "google.cloud.eventarc.v1.OperationMetadata" do
|
118
127
|
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
119
128
|
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
@@ -150,6 +159,8 @@ module Google
|
|
150
159
|
ListChannelConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.ListChannelConnectionsResponse").msgclass
|
151
160
|
CreateChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CreateChannelConnectionRequest").msgclass
|
152
161
|
DeleteChannelConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.DeleteChannelConnectionRequest").msgclass
|
162
|
+
UpdateGoogleChannelConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest").msgclass
|
163
|
+
GetGoogleChannelConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GetGoogleChannelConfigRequest").msgclass
|
153
164
|
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.OperationMetadata").msgclass
|
154
165
|
end
|
155
166
|
end
|
@@ -66,6 +66,10 @@ module Google
|
|
66
66
|
rpc :CreateChannelConnection, ::Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest, ::Google::Longrunning::Operation
|
67
67
|
# Delete a single ChannelConnection.
|
68
68
|
rpc :DeleteChannelConnection, ::Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest, ::Google::Longrunning::Operation
|
69
|
+
# Get a GoogleChannelConfig
|
70
|
+
rpc :GetGoogleChannelConfig, ::Google::Cloud::Eventarc::V1::GetGoogleChannelConfigRequest, ::Google::Cloud::Eventarc::V1::GoogleChannelConfig
|
71
|
+
# Update a single GoogleChannelConfig
|
72
|
+
rpc :UpdateGoogleChannelConfig, ::Google::Cloud::Eventarc::V1::UpdateGoogleChannelConfigRequest, ::Google::Cloud::Eventarc::V1::GoogleChannelConfig
|
69
73
|
end
|
70
74
|
|
71
75
|
Stub = Service.rpc_stub_class
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/eventarc/v1/google_channel_config.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_file("google/cloud/eventarc/v1/google_channel_config.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.cloud.eventarc.v1.GoogleChannelConfig" do
|
13
|
+
optional :name, :string, 1
|
14
|
+
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
15
|
+
optional :crypto_key_name, :string, 7
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Eventarc
|
23
|
+
module V1
|
24
|
+
GoogleChannelConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.GoogleChannelConfig").msgclass
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/api/resource_pb'
|
8
8
|
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/rpc/code_pb'
|
9
10
|
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_file("google/cloud/eventarc/v1/trigger.proto", :syntax => :proto3) do
|
@@ -20,6 +21,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
20
21
|
optional :transport, :message, 11, "google.cloud.eventarc.v1.Transport"
|
21
22
|
map :labels, :string, :string, 12
|
22
23
|
optional :channel, :string, 13
|
24
|
+
map :conditions, :string, :message, 15, "google.cloud.eventarc.v1.StateCondition"
|
23
25
|
optional :etag, :string, 99
|
24
26
|
end
|
25
27
|
add_message "google.cloud.eventarc.v1.EventFilter" do
|
@@ -27,11 +29,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
27
29
|
optional :value, :string, 2
|
28
30
|
optional :operator, :string, 3
|
29
31
|
end
|
32
|
+
add_message "google.cloud.eventarc.v1.StateCondition" do
|
33
|
+
optional :code, :enum, 1, "google.rpc.Code"
|
34
|
+
optional :message, :string, 2
|
35
|
+
end
|
30
36
|
add_message "google.cloud.eventarc.v1.Destination" do
|
31
37
|
oneof :descriptor do
|
32
38
|
optional :cloud_run, :message, 1, "google.cloud.eventarc.v1.CloudRun"
|
33
39
|
optional :cloud_function, :string, 2
|
34
40
|
optional :gke, :message, 3, "google.cloud.eventarc.v1.GKE"
|
41
|
+
optional :workflow, :string, 4
|
35
42
|
end
|
36
43
|
end
|
37
44
|
add_message "google.cloud.eventarc.v1.Transport" do
|
@@ -64,6 +71,7 @@ module Google
|
|
64
71
|
module V1
|
65
72
|
Trigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.Trigger").msgclass
|
66
73
|
EventFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.EventFilter").msgclass
|
74
|
+
StateCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.StateCondition").msgclass
|
67
75
|
Destination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.Destination").msgclass
|
68
76
|
Transport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.Transport").msgclass
|
69
77
|
CloudRun = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.eventarc.v1.CloudRun").msgclass
|
@@ -27,13 +27,14 @@ module Google
|
|
27
27
|
# channel. Note that a channel is associated with exactly one event provider.
|
28
28
|
# @!attribute [rw] name
|
29
29
|
# @return [::String]
|
30
|
-
# Required. The resource name of the channel. Must be unique within the
|
31
|
-
# on the project and must be in
|
30
|
+
# Required. The resource name of the channel. Must be unique within the
|
31
|
+
# location on the project and must be in
|
32
32
|
# `projects/{project}/locations/{location}/channels/{channel_id}` format.
|
33
33
|
# @!attribute [r] uid
|
34
34
|
# @return [::String]
|
35
|
-
# Output only. Server assigned unique identifier for the channel. The value
|
36
|
-
# string and guaranteed to remain unchanged until the resource is
|
35
|
+
# Output only. Server assigned unique identifier for the channel. The value
|
36
|
+
# is a UUID4 string and guaranteed to remain unchanged until the resource is
|
37
|
+
# deleted.
|
37
38
|
# @!attribute [r] create_time
|
38
39
|
# @return [::Google::Protobuf::Timestamp]
|
39
40
|
# Output only. The creation time.
|
@@ -42,22 +43,29 @@ module Google
|
|
42
43
|
# Output only. The last-modified time.
|
43
44
|
# @!attribute [rw] provider
|
44
45
|
# @return [::String]
|
45
|
-
#
|
46
|
+
# The name of the event provider (e.g. Eventarc SaaS partner) associated
|
46
47
|
# with the channel. This provider will be granted permissions to publish
|
47
48
|
# events to the channel. Format:
|
48
49
|
# `projects/{project}/locations/{location}/providers/{provider_id}`.
|
49
50
|
# @!attribute [r] pubsub_topic
|
50
51
|
# @return [::String]
|
51
|
-
# Output only. The name of the Pub/Sub topic created and managed by
|
52
|
-
# a transport for the event delivery. Format:
|
52
|
+
# Output only. The name of the Pub/Sub topic created and managed by
|
53
|
+
# Eventarc system as a transport for the event delivery. Format:
|
53
54
|
# `projects/{project}/topics/{topic_id}`.
|
54
55
|
# @!attribute [r] state
|
55
56
|
# @return [::Google::Cloud::Eventarc::V1::Channel::State]
|
56
57
|
# Output only. The state of a Channel.
|
57
58
|
# @!attribute [r] activation_token
|
58
59
|
# @return [::String]
|
59
|
-
# Output only. The activation token for the channel. The token must be used
|
60
|
-
# provider to register the channel for publishing.
|
60
|
+
# Output only. The activation token for the channel. The token must be used
|
61
|
+
# by the provider to register the channel for publishing.
|
62
|
+
# @!attribute [rw] crypto_key_name
|
63
|
+
# @return [::String]
|
64
|
+
# Optional. Resource name of a KMS crypto key (managed by the user) used to
|
65
|
+
# encrypt/decrypt their event data.
|
66
|
+
#
|
67
|
+
# It must match the pattern
|
68
|
+
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
61
69
|
class Channel
|
62
70
|
include ::Google::Protobuf::MessageExts
|
63
71
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -78,11 +86,13 @@ module Google
|
|
78
86
|
# event provider.
|
79
87
|
ACTIVE = 2
|
80
88
|
|
81
|
-
# The INACTIVE state
|
89
|
+
# The INACTIVE state indicates that the Channel cannot receive events
|
82
90
|
# permanently. There are two possible cases this state can happen:
|
91
|
+
#
|
83
92
|
# 1. The SaaS provider disconnected from this Channel.
|
84
93
|
# 2. The Channel activation token has expired but the SaaS provider
|
85
94
|
# wasn't connected.
|
95
|
+
#
|
86
96
|
# To re-establish a Connection with a provider, the subscriber
|
87
97
|
# should create a new Channel and give it to the provider.
|
88
98
|
INACTIVE = 3
|
@@ -37,6 +37,7 @@ module Google
|
|
37
37
|
# @!attribute [rw] page_size
|
38
38
|
# @return [::Integer]
|
39
39
|
# The maximum number of triggers to return on each page.
|
40
|
+
#
|
40
41
|
# Note: The service may send fewer.
|
41
42
|
# @!attribute [rw] page_token
|
42
43
|
# @return [::String]
|
@@ -51,6 +52,11 @@ module Google
|
|
51
52
|
# comma-separated list of fields. The default sorting order is ascending. To
|
52
53
|
# specify descending order for a field, append a `desc` suffix; for example:
|
53
54
|
# `name desc, trigger_id`.
|
55
|
+
# @!attribute [rw] filter
|
56
|
+
# @return [::String]
|
57
|
+
# Filter field. Used to filter the Triggers to be listed. Possible filters
|
58
|
+
# are described in https://google.aip.dev/160. For example, using
|
59
|
+
# "?filter=destination:gke" would list only Triggers with a gke destination.
|
54
60
|
class ListTriggersRequest
|
55
61
|
include ::Google::Protobuf::MessageExts
|
56
62
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -62,7 +68,7 @@ module Google
|
|
62
68
|
# The requested triggers, up to the number specified in `page_size`.
|
63
69
|
# @!attribute [rw] next_page_token
|
64
70
|
# @return [::String]
|
65
|
-
# A page token that can be sent to ListTriggers to request the next page.
|
71
|
+
# A page token that can be sent to `ListTriggers` to request the next page.
|
66
72
|
# If this is empty, then there are no more pages.
|
67
73
|
# @!attribute [rw] unreachable
|
68
74
|
# @return [::Array<::String>]
|
@@ -150,6 +156,7 @@ module Google
|
|
150
156
|
# @!attribute [rw] page_size
|
151
157
|
# @return [::Integer]
|
152
158
|
# The maximum number of channels to return on each page.
|
159
|
+
#
|
153
160
|
# Note: The service may send fewer.
|
154
161
|
# @!attribute [rw] page_token
|
155
162
|
# @return [::String]
|
@@ -175,7 +182,7 @@ module Google
|
|
175
182
|
# The requested channels, up to the number specified in `page_size`.
|
176
183
|
# @!attribute [rw] next_page_token
|
177
184
|
# @return [::String]
|
178
|
-
# A page token that can be sent to ListChannels to request the next page.
|
185
|
+
# A page token that can be sent to `ListChannels` to request the next page.
|
179
186
|
# If this is empty, then there are no more pages.
|
180
187
|
# @!attribute [rw] unreachable
|
181
188
|
# @return [::Array<::String>]
|
@@ -278,7 +285,7 @@ module Google
|
|
278
285
|
# The requested providers, up to the number specified in `page_size`.
|
279
286
|
# @!attribute [rw] next_page_token
|
280
287
|
# @return [::String]
|
281
|
-
# A page token that can be sent to ListProviders to request the next page.
|
288
|
+
# A page token that can be sent to `ListProviders` to request the next page.
|
282
289
|
# If this is empty, then there are no more pages.
|
283
290
|
# @!attribute [rw] unreachable
|
284
291
|
# @return [::Array<::String>]
|
@@ -304,6 +311,7 @@ module Google
|
|
304
311
|
# @!attribute [rw] page_size
|
305
312
|
# @return [::Integer]
|
306
313
|
# The maximum number of channel connections to return on each page.
|
314
|
+
#
|
307
315
|
# Note: The service may send fewer responses.
|
308
316
|
# @!attribute [rw] page_token
|
309
317
|
# @return [::String]
|
@@ -324,7 +332,7 @@ module Google
|
|
324
332
|
# `page_size`.
|
325
333
|
# @!attribute [rw] next_page_token
|
326
334
|
# @return [::String]
|
327
|
-
# A page token that can be sent to ListChannelConnections to request the
|
335
|
+
# A page token that can be sent to `ListChannelConnections` to request the
|
328
336
|
# next page.
|
329
337
|
# If this is empty, then there are no more pages.
|
330
338
|
# @!attribute [rw] unreachable
|
@@ -359,6 +367,29 @@ module Google
|
|
359
367
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
360
368
|
end
|
361
369
|
|
370
|
+
# The request message for the UpdateGoogleChannelConfig method.
|
371
|
+
# @!attribute [rw] google_channel_config
|
372
|
+
# @return [::Google::Cloud::Eventarc::V1::GoogleChannelConfig]
|
373
|
+
# Required. The config to be updated.
|
374
|
+
# @!attribute [rw] update_mask
|
375
|
+
# @return [::Google::Protobuf::FieldMask]
|
376
|
+
# The fields to be updated; only fields explicitly provided are updated.
|
377
|
+
# If no field mask is provided, all provided fields in the request are
|
378
|
+
# updated. To update all fields, provide a field mask of "*".
|
379
|
+
class UpdateGoogleChannelConfigRequest
|
380
|
+
include ::Google::Protobuf::MessageExts
|
381
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
382
|
+
end
|
383
|
+
|
384
|
+
# The request message for the GetGoogleChannelConfig method.
|
385
|
+
# @!attribute [rw] name
|
386
|
+
# @return [::String]
|
387
|
+
# Required. The name of the config to get.
|
388
|
+
class GetGoogleChannelConfigRequest
|
389
|
+
include ::Google::Protobuf::MessageExts
|
390
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
391
|
+
end
|
392
|
+
|
362
393
|
# Represents the metadata of the long-running operation.
|
363
394
|
# @!attribute [r] create_time
|
364
395
|
# @return [::Google::Protobuf::Timestamp]
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Eventarc
|
23
|
+
module V1
|
24
|
+
# A GoogleChannelConfig is a resource that stores the custom settings
|
25
|
+
# respected by Eventarc first-party triggers in the matching region.
|
26
|
+
# Once configured, first-party event data will be protected
|
27
|
+
# using the specified custom managed encryption key instead of Google-managed
|
28
|
+
# encryption keys.
|
29
|
+
# @!attribute [rw] name
|
30
|
+
# @return [::String]
|
31
|
+
# Required. The resource name of the config. Must be in the format of,
|
32
|
+
# `projects/{project}/locations/{location}/googleChannelConfig`.
|
33
|
+
# @!attribute [r] update_time
|
34
|
+
# @return [::Google::Protobuf::Timestamp]
|
35
|
+
# Output only. The last-modified time.
|
36
|
+
# @!attribute [rw] crypto_key_name
|
37
|
+
# @return [::String]
|
38
|
+
# Optional. Resource name of a KMS crypto key (managed by the user) used to
|
39
|
+
# encrypt/decrypt their event data.
|
40
|
+
#
|
41
|
+
# It must match the pattern
|
42
|
+
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
43
|
+
class GoogleChannelConfig
|
44
|
+
include ::Google::Protobuf::MessageExts
|
45
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -39,7 +39,7 @@ module Google
|
|
39
39
|
# Output only. The last-modified time.
|
40
40
|
# @!attribute [rw] event_filters
|
41
41
|
# @return [::Array<::Google::Cloud::Eventarc::V1::EventFilter>]
|
42
|
-
# Required.
|
42
|
+
# Required. Unordered list. The list of filters that applies to event attributes. Only events that
|
43
43
|
# match all the provided filters are sent to the destination.
|
44
44
|
# @!attribute [rw] service_account
|
45
45
|
# @return [::String]
|
@@ -74,6 +74,9 @@ module Google
|
|
74
74
|
# Optional. The name of the channel associated with the trigger in
|
75
75
|
# `projects/{project}/locations/{location}/channels/{channel}` format.
|
76
76
|
# You must provide a channel to receive events from Eventarc SaaS partners.
|
77
|
+
# @!attribute [r] conditions
|
78
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Eventarc::V1::StateCondition}]
|
79
|
+
# Output only. The reason(s) why a trigger is in FAILED state.
|
77
80
|
# @!attribute [r] etag
|
78
81
|
# @return [::String]
|
79
82
|
# Output only. This checksum is computed by the server based on the value of other
|
@@ -91,6 +94,15 @@ module Google
|
|
91
94
|
include ::Google::Protobuf::MessageExts
|
92
95
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
93
96
|
end
|
97
|
+
|
98
|
+
# @!attribute [rw] key
|
99
|
+
# @return [::String]
|
100
|
+
# @!attribute [rw] value
|
101
|
+
# @return [::Google::Cloud::Eventarc::V1::StateCondition]
|
102
|
+
class ConditionsEntry
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
end
|
94
106
|
end
|
95
107
|
|
96
108
|
# Filters events based on exact matches on the CloudEvents attributes.
|
@@ -114,6 +126,18 @@ module Google
|
|
114
126
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
115
127
|
end
|
116
128
|
|
129
|
+
# A condition that is part of the trigger state computation.
|
130
|
+
# @!attribute [rw] code
|
131
|
+
# @return [::Google::Rpc::Code]
|
132
|
+
# The canonical code of the condition.
|
133
|
+
# @!attribute [rw] message
|
134
|
+
# @return [::String]
|
135
|
+
# Human-readable message.
|
136
|
+
class StateCondition
|
137
|
+
include ::Google::Protobuf::MessageExts
|
138
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
139
|
+
end
|
140
|
+
|
117
141
|
# Represents a target of an invocation over HTTP.
|
118
142
|
# @!attribute [rw] cloud_run
|
119
143
|
# @return [::Google::Cloud::Eventarc::V1::CloudRun]
|
@@ -127,6 +151,12 @@ module Google
|
|
127
151
|
# @return [::Google::Cloud::Eventarc::V1::GKE]
|
128
152
|
# A GKE service capable of receiving events. The service should be running
|
129
153
|
# in the same project as the trigger.
|
154
|
+
# @!attribute [rw] workflow
|
155
|
+
# @return [::String]
|
156
|
+
# The resource name of the Workflow whose Executions are triggered by
|
157
|
+
# the events. The Workflow resource should be deployed in the same project
|
158
|
+
# as the trigger.
|
159
|
+
# Format: `projects/{project}/locations/{location}/workflows/{workflow}`
|
130
160
|
class Destination
|
131
161
|
include ::Google::Protobuf::MessageExts
|
132
162
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,185 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Rpc
|
22
|
+
# The canonical error codes for gRPC APIs.
|
23
|
+
#
|
24
|
+
#
|
25
|
+
# Sometimes multiple error codes may apply. Services should return
|
26
|
+
# the most specific error code that applies. For example, prefer
|
27
|
+
# `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
|
28
|
+
# Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
|
29
|
+
module Code
|
30
|
+
# Not an error; returned on success
|
31
|
+
#
|
32
|
+
# HTTP Mapping: 200 OK
|
33
|
+
OK = 0
|
34
|
+
|
35
|
+
# The operation was cancelled, typically by the caller.
|
36
|
+
#
|
37
|
+
# HTTP Mapping: 499 Client Closed Request
|
38
|
+
CANCELLED = 1
|
39
|
+
|
40
|
+
# Unknown error. For example, this error may be returned when
|
41
|
+
# a `Status` value received from another address space belongs to
|
42
|
+
# an error space that is not known in this address space. Also
|
43
|
+
# errors raised by APIs that do not return enough error information
|
44
|
+
# may be converted to this error.
|
45
|
+
#
|
46
|
+
# HTTP Mapping: 500 Internal Server Error
|
47
|
+
UNKNOWN = 2
|
48
|
+
|
49
|
+
# The client specified an invalid argument. Note that this differs
|
50
|
+
# from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
|
51
|
+
# that are problematic regardless of the state of the system
|
52
|
+
# (e.g., a malformed file name).
|
53
|
+
#
|
54
|
+
# HTTP Mapping: 400 Bad Request
|
55
|
+
INVALID_ARGUMENT = 3
|
56
|
+
|
57
|
+
# The deadline expired before the operation could complete. For operations
|
58
|
+
# that change the state of the system, this error may be returned
|
59
|
+
# even if the operation has completed successfully. For example, a
|
60
|
+
# successful response from a server could have been delayed long
|
61
|
+
# enough for the deadline to expire.
|
62
|
+
#
|
63
|
+
# HTTP Mapping: 504 Gateway Timeout
|
64
|
+
DEADLINE_EXCEEDED = 4
|
65
|
+
|
66
|
+
# Some requested entity (e.g., file or directory) was not found.
|
67
|
+
#
|
68
|
+
# Note to server developers: if a request is denied for an entire class
|
69
|
+
# of users, such as gradual feature rollout or undocumented whitelist,
|
70
|
+
# `NOT_FOUND` may be used. If a request is denied for some users within
|
71
|
+
# a class of users, such as user-based access control, `PERMISSION_DENIED`
|
72
|
+
# must be used.
|
73
|
+
#
|
74
|
+
# HTTP Mapping: 404 Not Found
|
75
|
+
NOT_FOUND = 5
|
76
|
+
|
77
|
+
# The entity that a client attempted to create (e.g., file or directory)
|
78
|
+
# already exists.
|
79
|
+
#
|
80
|
+
# HTTP Mapping: 409 Conflict
|
81
|
+
ALREADY_EXISTS = 6
|
82
|
+
|
83
|
+
# The caller does not have permission to execute the specified
|
84
|
+
# operation. `PERMISSION_DENIED` must not be used for rejections
|
85
|
+
# caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
|
86
|
+
# instead for those errors). `PERMISSION_DENIED` must not be
|
87
|
+
# used if the caller can not be identified (use `UNAUTHENTICATED`
|
88
|
+
# instead for those errors). This error code does not imply the
|
89
|
+
# request is valid or the requested entity exists or satisfies
|
90
|
+
# other pre-conditions.
|
91
|
+
#
|
92
|
+
# HTTP Mapping: 403 Forbidden
|
93
|
+
PERMISSION_DENIED = 7
|
94
|
+
|
95
|
+
# The request does not have valid authentication credentials for the
|
96
|
+
# operation.
|
97
|
+
#
|
98
|
+
# HTTP Mapping: 401 Unauthorized
|
99
|
+
UNAUTHENTICATED = 16
|
100
|
+
|
101
|
+
# Some resource has been exhausted, perhaps a per-user quota, or
|
102
|
+
# perhaps the entire file system is out of space.
|
103
|
+
#
|
104
|
+
# HTTP Mapping: 429 Too Many Requests
|
105
|
+
RESOURCE_EXHAUSTED = 8
|
106
|
+
|
107
|
+
# The operation was rejected because the system is not in a state
|
108
|
+
# required for the operation's execution. For example, the directory
|
109
|
+
# to be deleted is non-empty, an rmdir operation is applied to
|
110
|
+
# a non-directory, etc.
|
111
|
+
#
|
112
|
+
# Service implementors can use the following guidelines to decide
|
113
|
+
# between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
|
114
|
+
# (a) Use `UNAVAILABLE` if the client can retry just the failing call.
|
115
|
+
# (b) Use `ABORTED` if the client should retry at a higher level
|
116
|
+
# (e.g., when a client-specified test-and-set fails, indicating the
|
117
|
+
# client should restart a read-modify-write sequence).
|
118
|
+
# (c) Use `FAILED_PRECONDITION` if the client should not retry until
|
119
|
+
# the system state has been explicitly fixed. E.g., if an "rmdir"
|
120
|
+
# fails because the directory is non-empty, `FAILED_PRECONDITION`
|
121
|
+
# should be returned since the client should not retry unless
|
122
|
+
# the files are deleted from the directory.
|
123
|
+
#
|
124
|
+
# HTTP Mapping: 400 Bad Request
|
125
|
+
FAILED_PRECONDITION = 9
|
126
|
+
|
127
|
+
# The operation was aborted, typically due to a concurrency issue such as
|
128
|
+
# a sequencer check failure or transaction abort.
|
129
|
+
#
|
130
|
+
# See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
131
|
+
# `ABORTED`, and `UNAVAILABLE`.
|
132
|
+
#
|
133
|
+
# HTTP Mapping: 409 Conflict
|
134
|
+
ABORTED = 10
|
135
|
+
|
136
|
+
# The operation was attempted past the valid range. E.g., seeking or
|
137
|
+
# reading past end-of-file.
|
138
|
+
#
|
139
|
+
# Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
|
140
|
+
# be fixed if the system state changes. For example, a 32-bit file
|
141
|
+
# system will generate `INVALID_ARGUMENT` if asked to read at an
|
142
|
+
# offset that is not in the range [0,2^32-1], but it will generate
|
143
|
+
# `OUT_OF_RANGE` if asked to read from an offset past the current
|
144
|
+
# file size.
|
145
|
+
#
|
146
|
+
# There is a fair bit of overlap between `FAILED_PRECONDITION` and
|
147
|
+
# `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
|
148
|
+
# error) when it applies so that callers who are iterating through
|
149
|
+
# a space can easily look for an `OUT_OF_RANGE` error to detect when
|
150
|
+
# they are done.
|
151
|
+
#
|
152
|
+
# HTTP Mapping: 400 Bad Request
|
153
|
+
OUT_OF_RANGE = 11
|
154
|
+
|
155
|
+
# The operation is not implemented or is not supported/enabled in this
|
156
|
+
# service.
|
157
|
+
#
|
158
|
+
# HTTP Mapping: 501 Not Implemented
|
159
|
+
UNIMPLEMENTED = 12
|
160
|
+
|
161
|
+
# Internal errors. This means that some invariants expected by the
|
162
|
+
# underlying system have been broken. This error code is reserved
|
163
|
+
# for serious errors.
|
164
|
+
#
|
165
|
+
# HTTP Mapping: 500 Internal Server Error
|
166
|
+
INTERNAL = 13
|
167
|
+
|
168
|
+
# The service is currently unavailable. This is most likely a
|
169
|
+
# transient condition, which can be corrected by retrying with
|
170
|
+
# a backoff. Note that it is not always safe to retry
|
171
|
+
# non-idempotent operations.
|
172
|
+
#
|
173
|
+
# See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
174
|
+
# `ABORTED`, and `UNAVAILABLE`.
|
175
|
+
#
|
176
|
+
# HTTP Mapping: 503 Service Unavailable
|
177
|
+
UNAVAILABLE = 14
|
178
|
+
|
179
|
+
# Unrecoverable data loss or corruption.
|
180
|
+
#
|
181
|
+
# HTTP Mapping: 500 Internal Server Error
|
182
|
+
DATA_LOSS = 15
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of {::Google::Rpc::Code google.rpc.Code}.
|
32
32
|
# @!attribute [rw] message
|
33
33
|
# @return [::String]
|
34
34
|
# A developer-facing error message, which should be in English. Any
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Type
|
22
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
23
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
24
|
+
# are documented at https://github.com/google/cel-spec.
|
25
|
+
#
|
26
|
+
# Example (Comparison):
|
27
|
+
#
|
28
|
+
# title: "Summary size limit"
|
29
|
+
# description: "Determines if a summary is less than 100 chars"
|
30
|
+
# expression: "document.summary.size() < 100"
|
31
|
+
#
|
32
|
+
# Example (Equality):
|
33
|
+
#
|
34
|
+
# title: "Requestor is owner"
|
35
|
+
# description: "Determines if requestor is the document owner"
|
36
|
+
# expression: "document.owner == request.auth.claims.email"
|
37
|
+
#
|
38
|
+
# Example (Logic):
|
39
|
+
#
|
40
|
+
# title: "Public documents"
|
41
|
+
# description: "Determine whether the document should be publicly visible"
|
42
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
43
|
+
#
|
44
|
+
# Example (Data Manipulation):
|
45
|
+
#
|
46
|
+
# title: "Notification string"
|
47
|
+
# description: "Create a notification string with a timestamp."
|
48
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
49
|
+
#
|
50
|
+
# The exact variables and functions that may be referenced within an expression
|
51
|
+
# are determined by the service that evaluates it. See the service
|
52
|
+
# documentation for additional information.
|
53
|
+
# @!attribute [rw] expression
|
54
|
+
# @return [::String]
|
55
|
+
# Textual representation of an expression in Common Expression Language
|
56
|
+
# syntax.
|
57
|
+
# @!attribute [rw] title
|
58
|
+
# @return [::String]
|
59
|
+
# Optional. Title for the expression, i.e. a short string describing
|
60
|
+
# its purpose. This can be used e.g. in UIs which allow to enter the
|
61
|
+
# expression.
|
62
|
+
# @!attribute [rw] description
|
63
|
+
# @return [::String]
|
64
|
+
# Optional. Description of the expression. This is a longer text which
|
65
|
+
# describes the expression, e.g. when hovered over it in a UI.
|
66
|
+
# @!attribute [rw] location
|
67
|
+
# @return [::String]
|
68
|
+
# Optional. String indicating the location of the expression for error
|
69
|
+
# reporting, e.g. a file name and a position in the file.
|
70
|
+
class Expr
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-eventarc-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.12'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -44,6 +44,46 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: google-cloud-location
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.0'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.a
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.0'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.a
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: google-iam-v1
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0.0'
|
74
|
+
- - "<"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.a
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0.0'
|
84
|
+
- - "<"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.a
|
47
87
|
- !ruby/object:Gem::Dependency
|
48
88
|
name: google-style
|
49
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,6 +223,7 @@ files:
|
|
183
223
|
- lib/google/cloud/eventarc/v1/eventarc/paths.rb
|
184
224
|
- lib/google/cloud/eventarc/v1/eventarc_pb.rb
|
185
225
|
- lib/google/cloud/eventarc/v1/eventarc_services_pb.rb
|
226
|
+
- lib/google/cloud/eventarc/v1/google_channel_config_pb.rb
|
186
227
|
- lib/google/cloud/eventarc/v1/trigger_pb.rb
|
187
228
|
- lib/google/cloud/eventarc/v1/version.rb
|
188
229
|
- proto_docs/README.md
|
@@ -192,6 +233,7 @@ files:
|
|
192
233
|
- proto_docs/google/cloud/eventarc/v1/channel_connection.rb
|
193
234
|
- proto_docs/google/cloud/eventarc/v1/discovery.rb
|
194
235
|
- proto_docs/google/cloud/eventarc/v1/eventarc.rb
|
236
|
+
- proto_docs/google/cloud/eventarc/v1/google_channel_config.rb
|
195
237
|
- proto_docs/google/cloud/eventarc/v1/trigger.rb
|
196
238
|
- proto_docs/google/longrunning/operations.rb
|
197
239
|
- proto_docs/google/protobuf/any.rb
|
@@ -199,7 +241,9 @@ files:
|
|
199
241
|
- proto_docs/google/protobuf/empty.rb
|
200
242
|
- proto_docs/google/protobuf/field_mask.rb
|
201
243
|
- proto_docs/google/protobuf/timestamp.rb
|
244
|
+
- proto_docs/google/rpc/code.rb
|
202
245
|
- proto_docs/google/rpc/status.rb
|
246
|
+
- proto_docs/google/type/expr.rb
|
203
247
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
204
248
|
licenses:
|
205
249
|
- Apache-2.0
|