google-cloud-eventarc-v1 0.4.0 → 0.6.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/README.md +2 -2
- data/lib/google/cloud/eventarc/v1/bindings_override.rb +183 -0
- data/lib/google/cloud/eventarc/v1/channel_pb.rb +1 -0
- data/lib/google/cloud/eventarc/v1/eventarc/client.rb +272 -57
- data/lib/google/cloud/eventarc/v1/eventarc/operations.rb +12 -14
- data/lib/google/cloud/eventarc/v1/eventarc/paths.rb +57 -0
- data/lib/google/cloud/eventarc/v1/eventarc/rest/client.rb +1686 -0
- data/lib/google/cloud/eventarc/v1/eventarc/rest/operations.rb +793 -0
- data/lib/google/cloud/eventarc/v1/eventarc/rest/service_stub.rb +1116 -0
- data/lib/google/cloud/eventarc/v1/eventarc/rest.rb +55 -0
- data/lib/google/cloud/eventarc/v1/eventarc.rb +7 -1
- 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/rest.rb +38 -0
- data/lib/google/cloud/eventarc/v1/trigger_pb.rb +8 -0
- data/lib/google/cloud/eventarc/v1/version.rb +1 -1
- data/lib/google/cloud/eventarc/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- 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 +4 -2
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +60 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d8c660cf082d67fd5fc272e1dd41aa8798a76dae7ecd6a61e2ff1bc218800b7
|
4
|
+
data.tar.gz: bc327699d5ec7e2a280594c75f35c5ec5c7c9aa6c67d7cee8ba148513fb8f605
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e3af1e9e1875d529744179ae503c5b2149b4b075663da9611f694f81ecbef4029677a3569488be82f662d897295d974396bf88471dcd0ed97afdd3d7bf15263
|
7
|
+
data.tar.gz: 9dfb55e6c87a28c6f16f6972f8c93071c5ae36d6af9b5185ecda432694e9804de1d424e3b59795337512278aa2616cc067d6a9a04c2e66adecb27dd416d8114e
|
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
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Eventarc V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Build event-driven applications on Google Cloud Platform.
|
4
4
|
|
5
5
|
Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. Eventarc requires no infrastructure management — you can optimize productivity and costs while building a modern, event-driven solution.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -0,0 +1,183 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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
|
+
require "gapic/config"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Eventarc
|
24
|
+
##
|
25
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
26
|
+
#
|
27
|
+
# require "google/cloud/eventarc/v1/rest"
|
28
|
+
# client = ::Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
29
|
+
#
|
30
|
+
module V1
|
31
|
+
##
|
32
|
+
# @private
|
33
|
+
# Initialize the mixin bindings configuration
|
34
|
+
#
|
35
|
+
def self.configure
|
36
|
+
@configure ||= begin
|
37
|
+
namespace = ["Google", "Cloud", "Eventarc"]
|
38
|
+
parent_config = while namespace.any?
|
39
|
+
parent_name = namespace.join "::"
|
40
|
+
parent_const = const_get parent_name
|
41
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
42
|
+
namespace.pop
|
43
|
+
end
|
44
|
+
|
45
|
+
default_config = Configuration.new parent_config
|
46
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
47
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
48
|
+
uri_method: :get,
|
49
|
+
uri_template: "/v1/{name}",
|
50
|
+
matches: [
|
51
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
52
|
+
],
|
53
|
+
body: nil
|
54
|
+
)
|
55
|
+
]
|
56
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
57
|
+
|
58
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
59
|
+
uri_method: :get,
|
60
|
+
uri_template: "/v1/{name}/locations",
|
61
|
+
matches: [
|
62
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
63
|
+
],
|
64
|
+
body: nil
|
65
|
+
)
|
66
|
+
]
|
67
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
|
68
|
+
|
69
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
70
|
+
uri_method: :get,
|
71
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
72
|
+
matches: [
|
73
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
|
74
|
+
],
|
75
|
+
body: nil
|
76
|
+
),
|
77
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
78
|
+
uri_method: :get,
|
79
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
80
|
+
matches: [
|
81
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
|
82
|
+
],
|
83
|
+
body: nil
|
84
|
+
),
|
85
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
86
|
+
uri_method: :get,
|
87
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
88
|
+
matches: [
|
89
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
|
90
|
+
],
|
91
|
+
body: nil
|
92
|
+
)
|
93
|
+
]
|
94
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
|
95
|
+
|
96
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
97
|
+
uri_method: :post,
|
98
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
99
|
+
matches: [
|
100
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
|
101
|
+
],
|
102
|
+
body: "*"
|
103
|
+
),
|
104
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
105
|
+
uri_method: :post,
|
106
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
107
|
+
matches: [
|
108
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
|
109
|
+
],
|
110
|
+
body: "*"
|
111
|
+
),
|
112
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
113
|
+
uri_method: :post,
|
114
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
115
|
+
matches: [
|
116
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
|
117
|
+
],
|
118
|
+
body: "*"
|
119
|
+
)
|
120
|
+
]
|
121
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
|
122
|
+
|
123
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
124
|
+
uri_method: :post,
|
125
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
126
|
+
matches: [
|
127
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
|
128
|
+
],
|
129
|
+
body: "*"
|
130
|
+
),
|
131
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
132
|
+
uri_method: :post,
|
133
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
134
|
+
matches: [
|
135
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
|
136
|
+
],
|
137
|
+
body: "*"
|
138
|
+
),
|
139
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
140
|
+
uri_method: :post,
|
141
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
142
|
+
matches: [
|
143
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
|
144
|
+
],
|
145
|
+
body: "*"
|
146
|
+
)
|
147
|
+
]
|
148
|
+
default_config
|
149
|
+
end
|
150
|
+
yield @configure if block_given?
|
151
|
+
@configure
|
152
|
+
end
|
153
|
+
|
154
|
+
##
|
155
|
+
# @private
|
156
|
+
# Configuration class for the google.cloud.eventarc.v1 package.
|
157
|
+
#
|
158
|
+
# This class contains common configuration for all services
|
159
|
+
# of the google.cloud.eventarc.v1 package.
|
160
|
+
#
|
161
|
+
# This configuration is for internal use of the client library classes,
|
162
|
+
# and it is not intended that the end-users will read or change it.
|
163
|
+
#
|
164
|
+
class Configuration
|
165
|
+
extend ::Gapic::Config
|
166
|
+
|
167
|
+
# @private
|
168
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
169
|
+
# Services in this package should use these when creating clients for the mixin services.
|
170
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
171
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
172
|
+
|
173
|
+
# @private
|
174
|
+
def initialize parent_config = nil
|
175
|
+
@parent_config = parent_config unless parent_config.nil?
|
176
|
+
|
177
|
+
yield self if block_given?
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
@@ -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
|