google-cloud-datastream-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/datastream/v1/datastream/client.rb +3039 -0
- data/lib/google/cloud/datastream/v1/datastream/credentials.rb +47 -0
- data/lib/google/cloud/datastream/v1/datastream/operations.rb +767 -0
- data/lib/google/cloud/datastream/v1/datastream/paths.rb +166 -0
- data/lib/google/cloud/datastream/v1/datastream.rb +50 -0
- data/lib/google/cloud/datastream/v1/datastream_pb.rb +249 -0
- data/lib/google/cloud/datastream/v1/datastream_resources_pb.rb +360 -0
- data/lib/google/cloud/datastream/v1/datastream_services_pb.rb +101 -0
- data/lib/google/cloud/datastream/v1/version.rb +28 -0
- data/lib/google/cloud/datastream/v1.rb +40 -0
- data/lib/google-cloud-datastream-v1.rb +22 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/datastream/v1/datastream.rb +744 -0
- data/proto_docs/google/cloud/datastream/v1/datastream_resources.rb +916 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +220 -0
@@ -0,0 +1,360 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datastream/v1/datastream_resources.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
require 'google/protobuf/duration_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/datastream/v1/datastream_resources.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.cloud.datastream.v1.OracleProfile" do
|
15
|
+
optional :hostname, :string, 1
|
16
|
+
optional :port, :int32, 2
|
17
|
+
optional :username, :string, 3
|
18
|
+
optional :password, :string, 4
|
19
|
+
optional :database_service, :string, 5
|
20
|
+
map :connection_attributes, :string, :string, 6
|
21
|
+
end
|
22
|
+
add_message "google.cloud.datastream.v1.MysqlProfile" do
|
23
|
+
optional :hostname, :string, 1
|
24
|
+
optional :port, :int32, 2
|
25
|
+
optional :username, :string, 3
|
26
|
+
optional :password, :string, 4
|
27
|
+
optional :ssl_config, :message, 5, "google.cloud.datastream.v1.MysqlSslConfig"
|
28
|
+
end
|
29
|
+
add_message "google.cloud.datastream.v1.GcsProfile" do
|
30
|
+
optional :bucket, :string, 1
|
31
|
+
optional :root_path, :string, 2
|
32
|
+
end
|
33
|
+
add_message "google.cloud.datastream.v1.StaticServiceIpConnectivity" do
|
34
|
+
end
|
35
|
+
add_message "google.cloud.datastream.v1.ForwardSshTunnelConnectivity" do
|
36
|
+
optional :hostname, :string, 1
|
37
|
+
optional :username, :string, 2
|
38
|
+
optional :port, :int32, 3
|
39
|
+
oneof :authentication_method do
|
40
|
+
optional :password, :string, 100
|
41
|
+
optional :private_key, :string, 101
|
42
|
+
end
|
43
|
+
end
|
44
|
+
add_message "google.cloud.datastream.v1.VpcPeeringConfig" do
|
45
|
+
optional :vpc, :string, 1
|
46
|
+
optional :subnet, :string, 2
|
47
|
+
end
|
48
|
+
add_message "google.cloud.datastream.v1.PrivateConnection" do
|
49
|
+
optional :name, :string, 1
|
50
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
51
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
52
|
+
map :labels, :string, :string, 4
|
53
|
+
optional :display_name, :string, 5
|
54
|
+
optional :state, :enum, 6, "google.cloud.datastream.v1.PrivateConnection.State"
|
55
|
+
optional :error, :message, 7, "google.cloud.datastream.v1.Error"
|
56
|
+
optional :vpc_peering_config, :message, 100, "google.cloud.datastream.v1.VpcPeeringConfig"
|
57
|
+
end
|
58
|
+
add_enum "google.cloud.datastream.v1.PrivateConnection.State" do
|
59
|
+
value :STATE_UNSPECIFIED, 0
|
60
|
+
value :CREATING, 1
|
61
|
+
value :CREATED, 2
|
62
|
+
value :FAILED, 3
|
63
|
+
value :DELETING, 4
|
64
|
+
value :FAILED_TO_DELETE, 5
|
65
|
+
end
|
66
|
+
add_message "google.cloud.datastream.v1.PrivateConnectivity" do
|
67
|
+
optional :private_connection, :string, 1
|
68
|
+
end
|
69
|
+
add_message "google.cloud.datastream.v1.Route" do
|
70
|
+
optional :name, :string, 1
|
71
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
72
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
73
|
+
map :labels, :string, :string, 4
|
74
|
+
optional :display_name, :string, 5
|
75
|
+
optional :destination_address, :string, 6
|
76
|
+
optional :destination_port, :int32, 7
|
77
|
+
end
|
78
|
+
add_message "google.cloud.datastream.v1.MysqlSslConfig" do
|
79
|
+
optional :client_key, :string, 1
|
80
|
+
optional :client_key_set, :bool, 2
|
81
|
+
optional :client_certificate, :string, 3
|
82
|
+
optional :client_certificate_set, :bool, 4
|
83
|
+
optional :ca_certificate, :string, 5
|
84
|
+
optional :ca_certificate_set, :bool, 6
|
85
|
+
end
|
86
|
+
add_message "google.cloud.datastream.v1.ConnectionProfile" do
|
87
|
+
optional :name, :string, 1
|
88
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
89
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
90
|
+
map :labels, :string, :string, 4
|
91
|
+
optional :display_name, :string, 5
|
92
|
+
oneof :profile do
|
93
|
+
optional :oracle_profile, :message, 100, "google.cloud.datastream.v1.OracleProfile"
|
94
|
+
optional :gcs_profile, :message, 101, "google.cloud.datastream.v1.GcsProfile"
|
95
|
+
optional :mysql_profile, :message, 102, "google.cloud.datastream.v1.MysqlProfile"
|
96
|
+
end
|
97
|
+
oneof :connectivity do
|
98
|
+
optional :static_service_ip_connectivity, :message, 200, "google.cloud.datastream.v1.StaticServiceIpConnectivity"
|
99
|
+
optional :forward_ssh_connectivity, :message, 201, "google.cloud.datastream.v1.ForwardSshTunnelConnectivity"
|
100
|
+
optional :private_connectivity, :message, 202, "google.cloud.datastream.v1.PrivateConnectivity"
|
101
|
+
end
|
102
|
+
end
|
103
|
+
add_message "google.cloud.datastream.v1.OracleColumn" do
|
104
|
+
optional :column, :string, 1
|
105
|
+
optional :data_type, :string, 2
|
106
|
+
optional :length, :int32, 3
|
107
|
+
optional :precision, :int32, 4
|
108
|
+
optional :scale, :int32, 5
|
109
|
+
optional :encoding, :string, 6
|
110
|
+
optional :primary_key, :bool, 7
|
111
|
+
optional :nullable, :bool, 8
|
112
|
+
optional :ordinal_position, :int32, 9
|
113
|
+
end
|
114
|
+
add_message "google.cloud.datastream.v1.OracleTable" do
|
115
|
+
optional :table, :string, 1
|
116
|
+
repeated :oracle_columns, :message, 2, "google.cloud.datastream.v1.OracleColumn"
|
117
|
+
end
|
118
|
+
add_message "google.cloud.datastream.v1.OracleSchema" do
|
119
|
+
optional :schema, :string, 1
|
120
|
+
repeated :oracle_tables, :message, 2, "google.cloud.datastream.v1.OracleTable"
|
121
|
+
end
|
122
|
+
add_message "google.cloud.datastream.v1.OracleRdbms" do
|
123
|
+
repeated :oracle_schemas, :message, 1, "google.cloud.datastream.v1.OracleSchema"
|
124
|
+
end
|
125
|
+
add_message "google.cloud.datastream.v1.OracleSourceConfig" do
|
126
|
+
optional :include_objects, :message, 1, "google.cloud.datastream.v1.OracleRdbms"
|
127
|
+
optional :exclude_objects, :message, 2, "google.cloud.datastream.v1.OracleRdbms"
|
128
|
+
end
|
129
|
+
add_message "google.cloud.datastream.v1.MysqlColumn" do
|
130
|
+
optional :column, :string, 1
|
131
|
+
optional :data_type, :string, 2
|
132
|
+
optional :length, :int32, 3
|
133
|
+
optional :collation, :string, 4
|
134
|
+
optional :primary_key, :bool, 5
|
135
|
+
optional :nullable, :bool, 6
|
136
|
+
optional :ordinal_position, :int32, 7
|
137
|
+
end
|
138
|
+
add_message "google.cloud.datastream.v1.MysqlTable" do
|
139
|
+
optional :table, :string, 1
|
140
|
+
repeated :mysql_columns, :message, 2, "google.cloud.datastream.v1.MysqlColumn"
|
141
|
+
end
|
142
|
+
add_message "google.cloud.datastream.v1.MysqlDatabase" do
|
143
|
+
optional :database, :string, 1
|
144
|
+
repeated :mysql_tables, :message, 2, "google.cloud.datastream.v1.MysqlTable"
|
145
|
+
end
|
146
|
+
add_message "google.cloud.datastream.v1.MysqlRdbms" do
|
147
|
+
repeated :mysql_databases, :message, 1, "google.cloud.datastream.v1.MysqlDatabase"
|
148
|
+
end
|
149
|
+
add_message "google.cloud.datastream.v1.MysqlSourceConfig" do
|
150
|
+
optional :include_objects, :message, 1, "google.cloud.datastream.v1.MysqlRdbms"
|
151
|
+
optional :exclude_objects, :message, 2, "google.cloud.datastream.v1.MysqlRdbms"
|
152
|
+
end
|
153
|
+
add_message "google.cloud.datastream.v1.SourceConfig" do
|
154
|
+
optional :source_connection_profile, :string, 1
|
155
|
+
oneof :source_stream_config do
|
156
|
+
optional :oracle_source_config, :message, 100, "google.cloud.datastream.v1.OracleSourceConfig"
|
157
|
+
optional :mysql_source_config, :message, 101, "google.cloud.datastream.v1.MysqlSourceConfig"
|
158
|
+
end
|
159
|
+
end
|
160
|
+
add_message "google.cloud.datastream.v1.AvroFileFormat" do
|
161
|
+
end
|
162
|
+
add_message "google.cloud.datastream.v1.JsonFileFormat" do
|
163
|
+
optional :schema_file_format, :enum, 1, "google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat"
|
164
|
+
optional :compression, :enum, 2, "google.cloud.datastream.v1.JsonFileFormat.JsonCompression"
|
165
|
+
end
|
166
|
+
add_enum "google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat" do
|
167
|
+
value :SCHEMA_FILE_FORMAT_UNSPECIFIED, 0
|
168
|
+
value :NO_SCHEMA_FILE, 1
|
169
|
+
value :AVRO_SCHEMA_FILE, 2
|
170
|
+
end
|
171
|
+
add_enum "google.cloud.datastream.v1.JsonFileFormat.JsonCompression" do
|
172
|
+
value :JSON_COMPRESSION_UNSPECIFIED, 0
|
173
|
+
value :NO_COMPRESSION, 1
|
174
|
+
value :GZIP, 2
|
175
|
+
end
|
176
|
+
add_message "google.cloud.datastream.v1.GcsDestinationConfig" do
|
177
|
+
optional :path, :string, 1
|
178
|
+
optional :file_rotation_mb, :int32, 2
|
179
|
+
optional :file_rotation_interval, :message, 3, "google.protobuf.Duration"
|
180
|
+
oneof :file_format do
|
181
|
+
optional :avro_file_format, :message, 100, "google.cloud.datastream.v1.AvroFileFormat"
|
182
|
+
optional :json_file_format, :message, 101, "google.cloud.datastream.v1.JsonFileFormat"
|
183
|
+
end
|
184
|
+
end
|
185
|
+
add_message "google.cloud.datastream.v1.DestinationConfig" do
|
186
|
+
optional :destination_connection_profile, :string, 1
|
187
|
+
oneof :destination_stream_config do
|
188
|
+
optional :gcs_destination_config, :message, 100, "google.cloud.datastream.v1.GcsDestinationConfig"
|
189
|
+
end
|
190
|
+
end
|
191
|
+
add_message "google.cloud.datastream.v1.Stream" do
|
192
|
+
optional :name, :string, 1
|
193
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
194
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
195
|
+
map :labels, :string, :string, 4
|
196
|
+
optional :display_name, :string, 5
|
197
|
+
optional :source_config, :message, 6, "google.cloud.datastream.v1.SourceConfig"
|
198
|
+
optional :destination_config, :message, 7, "google.cloud.datastream.v1.DestinationConfig"
|
199
|
+
optional :state, :enum, 8, "google.cloud.datastream.v1.Stream.State"
|
200
|
+
repeated :errors, :message, 9, "google.cloud.datastream.v1.Error"
|
201
|
+
proto3_optional :customer_managed_encryption_key, :string, 10
|
202
|
+
oneof :backfill_strategy do
|
203
|
+
optional :backfill_all, :message, 101, "google.cloud.datastream.v1.Stream.BackfillAllStrategy"
|
204
|
+
optional :backfill_none, :message, 102, "google.cloud.datastream.v1.Stream.BackfillNoneStrategy"
|
205
|
+
end
|
206
|
+
end
|
207
|
+
add_message "google.cloud.datastream.v1.Stream.BackfillAllStrategy" do
|
208
|
+
oneof :excluded_objects do
|
209
|
+
optional :oracle_excluded_objects, :message, 1, "google.cloud.datastream.v1.OracleRdbms"
|
210
|
+
optional :mysql_excluded_objects, :message, 2, "google.cloud.datastream.v1.MysqlRdbms"
|
211
|
+
end
|
212
|
+
end
|
213
|
+
add_message "google.cloud.datastream.v1.Stream.BackfillNoneStrategy" do
|
214
|
+
end
|
215
|
+
add_enum "google.cloud.datastream.v1.Stream.State" do
|
216
|
+
value :STATE_UNSPECIFIED, 0
|
217
|
+
value :NOT_STARTED, 1
|
218
|
+
value :RUNNING, 2
|
219
|
+
value :PAUSED, 3
|
220
|
+
value :MAINTENANCE, 4
|
221
|
+
value :FAILED, 5
|
222
|
+
value :FAILED_PERMANENTLY, 6
|
223
|
+
value :STARTING, 7
|
224
|
+
value :DRAINING, 8
|
225
|
+
end
|
226
|
+
add_message "google.cloud.datastream.v1.StreamObject" do
|
227
|
+
optional :name, :string, 1
|
228
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
229
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
230
|
+
optional :display_name, :string, 5
|
231
|
+
repeated :errors, :message, 6, "google.cloud.datastream.v1.Error"
|
232
|
+
optional :backfill_job, :message, 7, "google.cloud.datastream.v1.BackfillJob"
|
233
|
+
optional :source_object, :message, 8, "google.cloud.datastream.v1.SourceObjectIdentifier"
|
234
|
+
end
|
235
|
+
add_message "google.cloud.datastream.v1.SourceObjectIdentifier" do
|
236
|
+
oneof :source_identifier do
|
237
|
+
optional :oracle_identifier, :message, 1, "google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier"
|
238
|
+
optional :mysql_identifier, :message, 2, "google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier"
|
239
|
+
end
|
240
|
+
end
|
241
|
+
add_message "google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier" do
|
242
|
+
optional :schema, :string, 1
|
243
|
+
optional :table, :string, 2
|
244
|
+
end
|
245
|
+
add_message "google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier" do
|
246
|
+
optional :database, :string, 1
|
247
|
+
optional :table, :string, 2
|
248
|
+
end
|
249
|
+
add_message "google.cloud.datastream.v1.BackfillJob" do
|
250
|
+
optional :state, :enum, 1, "google.cloud.datastream.v1.BackfillJob.State"
|
251
|
+
optional :trigger, :enum, 2, "google.cloud.datastream.v1.BackfillJob.Trigger"
|
252
|
+
optional :last_start_time, :message, 3, "google.protobuf.Timestamp"
|
253
|
+
optional :last_end_time, :message, 4, "google.protobuf.Timestamp"
|
254
|
+
repeated :errors, :message, 5, "google.cloud.datastream.v1.Error"
|
255
|
+
end
|
256
|
+
add_enum "google.cloud.datastream.v1.BackfillJob.State" do
|
257
|
+
value :STATE_UNSPECIFIED, 0
|
258
|
+
value :NOT_STARTED, 1
|
259
|
+
value :PENDING, 2
|
260
|
+
value :ACTIVE, 3
|
261
|
+
value :STOPPED, 4
|
262
|
+
value :FAILED, 5
|
263
|
+
value :COMPLETED, 6
|
264
|
+
value :UNSUPPORTED, 7
|
265
|
+
end
|
266
|
+
add_enum "google.cloud.datastream.v1.BackfillJob.Trigger" do
|
267
|
+
value :TRIGGER_UNSPECIFIED, 0
|
268
|
+
value :AUTOMATIC, 1
|
269
|
+
value :MANUAL, 2
|
270
|
+
end
|
271
|
+
add_message "google.cloud.datastream.v1.Error" do
|
272
|
+
optional :reason, :string, 1
|
273
|
+
optional :error_uuid, :string, 2
|
274
|
+
optional :message, :string, 3
|
275
|
+
optional :error_time, :message, 4, "google.protobuf.Timestamp"
|
276
|
+
map :details, :string, :string, 5
|
277
|
+
end
|
278
|
+
add_message "google.cloud.datastream.v1.ValidationResult" do
|
279
|
+
repeated :validations, :message, 1, "google.cloud.datastream.v1.Validation"
|
280
|
+
end
|
281
|
+
add_message "google.cloud.datastream.v1.Validation" do
|
282
|
+
optional :description, :string, 1
|
283
|
+
optional :state, :enum, 2, "google.cloud.datastream.v1.Validation.State"
|
284
|
+
repeated :message, :message, 3, "google.cloud.datastream.v1.ValidationMessage"
|
285
|
+
optional :code, :string, 4
|
286
|
+
end
|
287
|
+
add_enum "google.cloud.datastream.v1.Validation.State" do
|
288
|
+
value :STATE_UNSPECIFIED, 0
|
289
|
+
value :NOT_EXECUTED, 1
|
290
|
+
value :FAILED, 2
|
291
|
+
value :PASSED, 3
|
292
|
+
end
|
293
|
+
add_message "google.cloud.datastream.v1.ValidationMessage" do
|
294
|
+
optional :message, :string, 1
|
295
|
+
optional :level, :enum, 2, "google.cloud.datastream.v1.ValidationMessage.Level"
|
296
|
+
map :metadata, :string, :string, 3
|
297
|
+
optional :code, :string, 4
|
298
|
+
end
|
299
|
+
add_enum "google.cloud.datastream.v1.ValidationMessage.Level" do
|
300
|
+
value :LEVEL_UNSPECIFIED, 0
|
301
|
+
value :WARNING, 1
|
302
|
+
value :ERROR, 2
|
303
|
+
end
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
module Google
|
308
|
+
module Cloud
|
309
|
+
module Datastream
|
310
|
+
module V1
|
311
|
+
OracleProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.OracleProfile").msgclass
|
312
|
+
MysqlProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.MysqlProfile").msgclass
|
313
|
+
GcsProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.GcsProfile").msgclass
|
314
|
+
StaticServiceIpConnectivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.StaticServiceIpConnectivity").msgclass
|
315
|
+
ForwardSshTunnelConnectivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.ForwardSshTunnelConnectivity").msgclass
|
316
|
+
VpcPeeringConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.VpcPeeringConfig").msgclass
|
317
|
+
PrivateConnection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.PrivateConnection").msgclass
|
318
|
+
PrivateConnection::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.PrivateConnection.State").enummodule
|
319
|
+
PrivateConnectivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.PrivateConnectivity").msgclass
|
320
|
+
Route = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.Route").msgclass
|
321
|
+
MysqlSslConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.MysqlSslConfig").msgclass
|
322
|
+
ConnectionProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.ConnectionProfile").msgclass
|
323
|
+
OracleColumn = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.OracleColumn").msgclass
|
324
|
+
OracleTable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.OracleTable").msgclass
|
325
|
+
OracleSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.OracleSchema").msgclass
|
326
|
+
OracleRdbms = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.OracleRdbms").msgclass
|
327
|
+
OracleSourceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.OracleSourceConfig").msgclass
|
328
|
+
MysqlColumn = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.MysqlColumn").msgclass
|
329
|
+
MysqlTable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.MysqlTable").msgclass
|
330
|
+
MysqlDatabase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.MysqlDatabase").msgclass
|
331
|
+
MysqlRdbms = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.MysqlRdbms").msgclass
|
332
|
+
MysqlSourceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.MysqlSourceConfig").msgclass
|
333
|
+
SourceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.SourceConfig").msgclass
|
334
|
+
AvroFileFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.AvroFileFormat").msgclass
|
335
|
+
JsonFileFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.JsonFileFormat").msgclass
|
336
|
+
JsonFileFormat::SchemaFileFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat").enummodule
|
337
|
+
JsonFileFormat::JsonCompression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.JsonFileFormat.JsonCompression").enummodule
|
338
|
+
GcsDestinationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.GcsDestinationConfig").msgclass
|
339
|
+
DestinationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.DestinationConfig").msgclass
|
340
|
+
Stream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.Stream").msgclass
|
341
|
+
Stream::BackfillAllStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.Stream.BackfillAllStrategy").msgclass
|
342
|
+
Stream::BackfillNoneStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.Stream.BackfillNoneStrategy").msgclass
|
343
|
+
Stream::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.Stream.State").enummodule
|
344
|
+
StreamObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.StreamObject").msgclass
|
345
|
+
SourceObjectIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.SourceObjectIdentifier").msgclass
|
346
|
+
SourceObjectIdentifier::OracleObjectIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier").msgclass
|
347
|
+
SourceObjectIdentifier::MysqlObjectIdentifier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier").msgclass
|
348
|
+
BackfillJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.BackfillJob").msgclass
|
349
|
+
BackfillJob::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.BackfillJob.State").enummodule
|
350
|
+
BackfillJob::Trigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.BackfillJob.Trigger").enummodule
|
351
|
+
Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.Error").msgclass
|
352
|
+
ValidationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.ValidationResult").msgclass
|
353
|
+
Validation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.Validation").msgclass
|
354
|
+
Validation::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.Validation.State").enummodule
|
355
|
+
ValidationMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.ValidationMessage").msgclass
|
356
|
+
ValidationMessage::Level = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1.ValidationMessage.Level").enummodule
|
357
|
+
end
|
358
|
+
end
|
359
|
+
end
|
360
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/datastream/v1/datastream.proto for package 'Google.Cloud.Datastream.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/datastream/v1/datastream_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Datastream
|
25
|
+
module V1
|
26
|
+
module Datastream
|
27
|
+
# Datastream service
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.datastream.v1.Datastream'
|
35
|
+
|
36
|
+
# Use this method to list connection profiles created in a project and
|
37
|
+
# location.
|
38
|
+
rpc :ListConnectionProfiles, ::Google::Cloud::Datastream::V1::ListConnectionProfilesRequest, ::Google::Cloud::Datastream::V1::ListConnectionProfilesResponse
|
39
|
+
# Use this method to get details about a connection profile.
|
40
|
+
rpc :GetConnectionProfile, ::Google::Cloud::Datastream::V1::GetConnectionProfileRequest, ::Google::Cloud::Datastream::V1::ConnectionProfile
|
41
|
+
# Use this method to create a connection profile in a project and location.
|
42
|
+
rpc :CreateConnectionProfile, ::Google::Cloud::Datastream::V1::CreateConnectionProfileRequest, ::Google::Longrunning::Operation
|
43
|
+
# Use this method to update the parameters of a connection profile.
|
44
|
+
rpc :UpdateConnectionProfile, ::Google::Cloud::Datastream::V1::UpdateConnectionProfileRequest, ::Google::Longrunning::Operation
|
45
|
+
# Use this method to delete a connection profile.
|
46
|
+
rpc :DeleteConnectionProfile, ::Google::Cloud::Datastream::V1::DeleteConnectionProfileRequest, ::Google::Longrunning::Operation
|
47
|
+
# Use this method to discover a connection profile.
|
48
|
+
# The discover API call exposes the data objects and metadata belonging to
|
49
|
+
# the profile. Typically, a request returns children data objects of a
|
50
|
+
# parent data object that's optionally supplied in the request.
|
51
|
+
rpc :DiscoverConnectionProfile, ::Google::Cloud::Datastream::V1::DiscoverConnectionProfileRequest, ::Google::Cloud::Datastream::V1::DiscoverConnectionProfileResponse
|
52
|
+
# Use this method to list streams in a project and location.
|
53
|
+
rpc :ListStreams, ::Google::Cloud::Datastream::V1::ListStreamsRequest, ::Google::Cloud::Datastream::V1::ListStreamsResponse
|
54
|
+
# Use this method to get details about a stream.
|
55
|
+
rpc :GetStream, ::Google::Cloud::Datastream::V1::GetStreamRequest, ::Google::Cloud::Datastream::V1::Stream
|
56
|
+
# Use this method to create a stream.
|
57
|
+
rpc :CreateStream, ::Google::Cloud::Datastream::V1::CreateStreamRequest, ::Google::Longrunning::Operation
|
58
|
+
# Use this method to update the configuration of a stream.
|
59
|
+
rpc :UpdateStream, ::Google::Cloud::Datastream::V1::UpdateStreamRequest, ::Google::Longrunning::Operation
|
60
|
+
# Use this method to delete a stream.
|
61
|
+
rpc :DeleteStream, ::Google::Cloud::Datastream::V1::DeleteStreamRequest, ::Google::Longrunning::Operation
|
62
|
+
# Use this method to get details about a stream object.
|
63
|
+
rpc :GetStreamObject, ::Google::Cloud::Datastream::V1::GetStreamObjectRequest, ::Google::Cloud::Datastream::V1::StreamObject
|
64
|
+
# Use this method to look up a stream object by its source object identifier.
|
65
|
+
rpc :LookupStreamObject, ::Google::Cloud::Datastream::V1::LookupStreamObjectRequest, ::Google::Cloud::Datastream::V1::StreamObject
|
66
|
+
# Use this method to list the objects of a specific stream.
|
67
|
+
rpc :ListStreamObjects, ::Google::Cloud::Datastream::V1::ListStreamObjectsRequest, ::Google::Cloud::Datastream::V1::ListStreamObjectsResponse
|
68
|
+
# Use this method to start a backfill job for the specified stream object.
|
69
|
+
rpc :StartBackfillJob, ::Google::Cloud::Datastream::V1::StartBackfillJobRequest, ::Google::Cloud::Datastream::V1::StartBackfillJobResponse
|
70
|
+
# Use this method to stop a backfill job for the specified stream object.
|
71
|
+
rpc :StopBackfillJob, ::Google::Cloud::Datastream::V1::StopBackfillJobRequest, ::Google::Cloud::Datastream::V1::StopBackfillJobResponse
|
72
|
+
# The FetchStaticIps API call exposes the static IP addresses used by
|
73
|
+
# Datastream.
|
74
|
+
rpc :FetchStaticIps, ::Google::Cloud::Datastream::V1::FetchStaticIpsRequest, ::Google::Cloud::Datastream::V1::FetchStaticIpsResponse
|
75
|
+
# Use this method to create a private connectivity configuration.
|
76
|
+
rpc :CreatePrivateConnection, ::Google::Cloud::Datastream::V1::CreatePrivateConnectionRequest, ::Google::Longrunning::Operation
|
77
|
+
# Use this method to get details about a private connectivity configuration.
|
78
|
+
rpc :GetPrivateConnection, ::Google::Cloud::Datastream::V1::GetPrivateConnectionRequest, ::Google::Cloud::Datastream::V1::PrivateConnection
|
79
|
+
# Use this method to list private connectivity configurations in a project
|
80
|
+
# and location.
|
81
|
+
rpc :ListPrivateConnections, ::Google::Cloud::Datastream::V1::ListPrivateConnectionsRequest, ::Google::Cloud::Datastream::V1::ListPrivateConnectionsResponse
|
82
|
+
# Use this method to delete a private connectivity configuration.
|
83
|
+
rpc :DeletePrivateConnection, ::Google::Cloud::Datastream::V1::DeletePrivateConnectionRequest, ::Google::Longrunning::Operation
|
84
|
+
# Use this method to create a route for a private connectivity configuration
|
85
|
+
# in a project and location.
|
86
|
+
rpc :CreateRoute, ::Google::Cloud::Datastream::V1::CreateRouteRequest, ::Google::Longrunning::Operation
|
87
|
+
# Use this method to get details about a route.
|
88
|
+
rpc :GetRoute, ::Google::Cloud::Datastream::V1::GetRouteRequest, ::Google::Cloud::Datastream::V1::Route
|
89
|
+
# Use this method to list routes created for a private connectivity
|
90
|
+
# configuration in a project and location.
|
91
|
+
rpc :ListRoutes, ::Google::Cloud::Datastream::V1::ListRoutesRequest, ::Google::Cloud::Datastream::V1::ListRoutesResponse
|
92
|
+
# Use this method to delete a route.
|
93
|
+
rpc :DeleteRoute, ::Google::Cloud::Datastream::V1::DeleteRouteRequest, ::Google::Longrunning::Operation
|
94
|
+
end
|
95
|
+
|
96
|
+
Stub = Service.rpc_stub_class
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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 Datastream
|
23
|
+
module V1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,40 @@
|
|
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
|
+
require "google/cloud/datastream/v1/datastream"
|
20
|
+
require "google/cloud/datastream/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Datastream
|
25
|
+
##
|
26
|
+
# To load this package, including all its services, and instantiate a client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/datastream/v1"
|
31
|
+
# client = ::Google::Cloud::Datastream::V1::Datastream::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
40
|
+
require "google/cloud/datastream/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,22 @@
|
|
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
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/datastream/v1"
|
22
|
+
# require "google/cloud/location"
|
@@ -0,0 +1,71 @@
|
|
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 Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|