google-cloud-datastream-v1alpha1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +167 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/datastream/v1alpha1/datastream/client.rb +2192 -0
  7. data/lib/google/cloud/datastream/v1alpha1/datastream/credentials.rb +47 -0
  8. data/lib/google/cloud/datastream/v1alpha1/datastream/operations.rb +664 -0
  9. data/lib/google/cloud/datastream/v1alpha1/datastream/paths.rb +128 -0
  10. data/lib/google/cloud/datastream/v1alpha1/datastream.rb +50 -0
  11. data/lib/google/cloud/datastream/v1alpha1/datastream_pb.rb +216 -0
  12. data/lib/google/cloud/datastream/v1alpha1/datastream_resources_pb.rb +314 -0
  13. data/lib/google/cloud/datastream/v1alpha1/datastream_services_pb.rb +94 -0
  14. data/lib/google/cloud/datastream/v1alpha1/version.rb +28 -0
  15. data/lib/google/cloud/datastream/v1alpha1.rb +38 -0
  16. data/lib/google-cloud-datastream-v1alpha1.rb +21 -0
  17. data/proto_docs/README.md +4 -0
  18. data/proto_docs/google/api/field_behavior.rb +71 -0
  19. data/proto_docs/google/api/resource.rb +283 -0
  20. data/proto_docs/google/cloud/datastream/v1alpha1/datastream.rb +638 -0
  21. data/proto_docs/google/cloud/datastream/v1alpha1/datastream_resources.rb +788 -0
  22. data/proto_docs/google/longrunning/operations.rb +164 -0
  23. data/proto_docs/google/protobuf/any.rb +141 -0
  24. data/proto_docs/google/protobuf/duration.rb +98 -0
  25. data/proto_docs/google/protobuf/empty.rb +36 -0
  26. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  27. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  28. data/proto_docs/google/rpc/status.rb +46 -0
  29. metadata +220 -0
@@ -0,0 +1,128 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 V1alpha1
24
+ module Datastream
25
+ # Path helper methods for the Datastream API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified ConnectionProfile resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/connectionProfiles/{connection_profile}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param connection_profile [String]
37
+ #
38
+ # @return [::String]
39
+ def connection_profile_path project:, location:, connection_profile:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/connectionProfiles/#{connection_profile}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified Location resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ #
56
+ # @return [::String]
57
+ def location_path project:, location:
58
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
59
+
60
+ "projects/#{project}/locations/#{location}"
61
+ end
62
+
63
+ ##
64
+ # Create a fully-qualified PrivateConnection resource string.
65
+ #
66
+ # The resource will be in the following format:
67
+ #
68
+ # `projects/{project}/locations/{location}/privateConnections/{private_connection}`
69
+ #
70
+ # @param project [String]
71
+ # @param location [String]
72
+ # @param private_connection [String]
73
+ #
74
+ # @return [::String]
75
+ def private_connection_path project:, location:, private_connection:
76
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
77
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
78
+
79
+ "projects/#{project}/locations/#{location}/privateConnections/#{private_connection}"
80
+ end
81
+
82
+ ##
83
+ # Create a fully-qualified Route resource string.
84
+ #
85
+ # The resource will be in the following format:
86
+ #
87
+ # `projects/{project}/locations/{location}/privateConnections/{private_connection}/routes/{route}`
88
+ #
89
+ # @param project [String]
90
+ # @param location [String]
91
+ # @param private_connection [String]
92
+ # @param route [String]
93
+ #
94
+ # @return [::String]
95
+ def route_path project:, location:, private_connection:, route:
96
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
97
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
98
+ raise ::ArgumentError, "private_connection cannot contain /" if private_connection.to_s.include? "/"
99
+
100
+ "projects/#{project}/locations/#{location}/privateConnections/#{private_connection}/routes/#{route}"
101
+ end
102
+
103
+ ##
104
+ # Create a fully-qualified Stream resource string.
105
+ #
106
+ # The resource will be in the following format:
107
+ #
108
+ # `projects/{project}/locations/{location}/streams/{stream}`
109
+ #
110
+ # @param project [String]
111
+ # @param location [String]
112
+ # @param stream [String]
113
+ #
114
+ # @return [::String]
115
+ def stream_path project:, location:, stream:
116
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
117
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
118
+
119
+ "projects/#{project}/locations/#{location}/streams/#{stream}"
120
+ end
121
+
122
+ extend self
123
+ end
124
+ end
125
+ end
126
+ end
127
+ end
128
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/datastream/v1alpha1/version"
24
+
25
+ require "google/cloud/datastream/v1alpha1/datastream/credentials"
26
+ require "google/cloud/datastream/v1alpha1/datastream/paths"
27
+ require "google/cloud/datastream/v1alpha1/datastream/operations"
28
+ require "google/cloud/datastream/v1alpha1/datastream/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Datastream
33
+ module V1alpha1
34
+ ##
35
+ # Datastream service
36
+ #
37
+ # To load this service and instantiate a client:
38
+ #
39
+ # require "google/cloud/datastream/v1alpha1/datastream"
40
+ # client = ::Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
41
+ #
42
+ module Datastream
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "datastream", "helpers.rb"
50
+ require "google/cloud/datastream/v1alpha1/datastream/helpers" if ::File.file? helper_path
@@ -0,0 +1,216 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/datastream/v1alpha1/datastream.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/datastream/v1alpha1/datastream_resources_pb'
11
+ require 'google/longrunning/operations_pb'
12
+ require 'google/protobuf/field_mask_pb'
13
+ require 'google/protobuf/timestamp_pb'
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_file("google/cloud/datastream/v1alpha1/datastream.proto", :syntax => :proto3) do
16
+ add_message "google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest" do
17
+ optional :parent, :string, 1
18
+ oneof :target do
19
+ optional :connection_profile, :message, 200, "google.cloud.datastream.v1alpha1.ConnectionProfile"
20
+ optional :connection_profile_name, :string, 201
21
+ end
22
+ oneof :depth do
23
+ optional :recursive, :bool, 3
24
+ optional :recursion_depth, :int32, 4
25
+ end
26
+ oneof :data_object do
27
+ optional :oracle_rdbms, :message, 100, "google.cloud.datastream.v1alpha1.OracleRdbms"
28
+ optional :mysql_rdbms, :message, 101, "google.cloud.datastream.v1alpha1.MysqlRdbms"
29
+ end
30
+ end
31
+ add_message "google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse" do
32
+ oneof :data_object do
33
+ optional :oracle_rdbms, :message, 100, "google.cloud.datastream.v1alpha1.OracleRdbms"
34
+ optional :mysql_rdbms, :message, 101, "google.cloud.datastream.v1alpha1.MysqlRdbms"
35
+ end
36
+ end
37
+ add_message "google.cloud.datastream.v1alpha1.FetchStaticIpsRequest" do
38
+ optional :name, :string, 1
39
+ optional :page_size, :int32, 2
40
+ optional :page_token, :string, 3
41
+ end
42
+ add_message "google.cloud.datastream.v1alpha1.FetchStaticIpsResponse" do
43
+ repeated :static_ips, :string, 1
44
+ optional :next_page_token, :string, 2
45
+ end
46
+ add_message "google.cloud.datastream.v1alpha1.FetchErrorsRequest" do
47
+ optional :stream, :string, 1
48
+ end
49
+ add_message "google.cloud.datastream.v1alpha1.FetchErrorsResponse" do
50
+ repeated :errors, :message, 1, "google.cloud.datastream.v1alpha1.Error"
51
+ end
52
+ add_message "google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest" do
53
+ optional :parent, :string, 1
54
+ optional :page_size, :int32, 2
55
+ optional :page_token, :string, 3
56
+ optional :filter, :string, 4
57
+ optional :order_by, :string, 5
58
+ end
59
+ add_message "google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse" do
60
+ repeated :connection_profiles, :message, 1, "google.cloud.datastream.v1alpha1.ConnectionProfile"
61
+ optional :next_page_token, :string, 2
62
+ repeated :unreachable, :string, 3
63
+ end
64
+ add_message "google.cloud.datastream.v1alpha1.GetConnectionProfileRequest" do
65
+ optional :name, :string, 1
66
+ end
67
+ add_message "google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest" do
68
+ optional :parent, :string, 1
69
+ optional :connection_profile_id, :string, 2
70
+ optional :connection_profile, :message, 3, "google.cloud.datastream.v1alpha1.ConnectionProfile"
71
+ optional :request_id, :string, 4
72
+ end
73
+ add_message "google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest" do
74
+ optional :update_mask, :message, 1, "google.protobuf.FieldMask"
75
+ optional :connection_profile, :message, 2, "google.cloud.datastream.v1alpha1.ConnectionProfile"
76
+ optional :request_id, :string, 3
77
+ end
78
+ add_message "google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest" do
79
+ optional :name, :string, 1
80
+ optional :request_id, :string, 2
81
+ end
82
+ add_message "google.cloud.datastream.v1alpha1.ListStreamsRequest" do
83
+ optional :parent, :string, 1
84
+ optional :page_size, :int32, 2
85
+ optional :page_token, :string, 3
86
+ optional :filter, :string, 4
87
+ optional :order_by, :string, 5
88
+ end
89
+ add_message "google.cloud.datastream.v1alpha1.ListStreamsResponse" do
90
+ repeated :streams, :message, 1, "google.cloud.datastream.v1alpha1.Stream"
91
+ optional :next_page_token, :string, 2
92
+ repeated :unreachable, :string, 3
93
+ end
94
+ add_message "google.cloud.datastream.v1alpha1.GetStreamRequest" do
95
+ optional :name, :string, 1
96
+ end
97
+ add_message "google.cloud.datastream.v1alpha1.CreateStreamRequest" do
98
+ optional :parent, :string, 1
99
+ optional :stream_id, :string, 2
100
+ optional :stream, :message, 3, "google.cloud.datastream.v1alpha1.Stream"
101
+ optional :request_id, :string, 4
102
+ optional :validate_only, :bool, 5
103
+ optional :force, :bool, 6
104
+ end
105
+ add_message "google.cloud.datastream.v1alpha1.UpdateStreamRequest" do
106
+ optional :update_mask, :message, 1, "google.protobuf.FieldMask"
107
+ optional :stream, :message, 2, "google.cloud.datastream.v1alpha1.Stream"
108
+ optional :request_id, :string, 3
109
+ optional :validate_only, :bool, 4
110
+ optional :force, :bool, 5
111
+ end
112
+ add_message "google.cloud.datastream.v1alpha1.DeleteStreamRequest" do
113
+ optional :name, :string, 1
114
+ optional :request_id, :string, 2
115
+ end
116
+ add_message "google.cloud.datastream.v1alpha1.OperationMetadata" do
117
+ optional :create_time, :message, 1, "google.protobuf.Timestamp"
118
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
119
+ optional :target, :string, 3
120
+ optional :verb, :string, 4
121
+ optional :status_message, :string, 5
122
+ optional :requested_cancellation, :bool, 6
123
+ optional :api_version, :string, 7
124
+ optional :validation_result, :message, 8, "google.cloud.datastream.v1alpha1.ValidationResult"
125
+ end
126
+ add_message "google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest" do
127
+ optional :parent, :string, 1
128
+ optional :private_connection_id, :string, 2
129
+ optional :private_connection, :message, 3, "google.cloud.datastream.v1alpha1.PrivateConnection"
130
+ optional :request_id, :string, 4
131
+ end
132
+ add_message "google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest" do
133
+ optional :parent, :string, 1
134
+ optional :page_size, :int32, 2
135
+ optional :page_token, :string, 3
136
+ optional :filter, :string, 4
137
+ optional :order_by, :string, 5
138
+ end
139
+ add_message "google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse" do
140
+ repeated :private_connections, :message, 1, "google.cloud.datastream.v1alpha1.PrivateConnection"
141
+ optional :next_page_token, :string, 2
142
+ repeated :unreachable, :string, 3
143
+ end
144
+ add_message "google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest" do
145
+ optional :name, :string, 1
146
+ optional :request_id, :string, 2
147
+ optional :force, :bool, 3
148
+ end
149
+ add_message "google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest" do
150
+ optional :name, :string, 1
151
+ end
152
+ add_message "google.cloud.datastream.v1alpha1.CreateRouteRequest" do
153
+ optional :parent, :string, 1
154
+ optional :route_id, :string, 2
155
+ optional :route, :message, 3, "google.cloud.datastream.v1alpha1.Route"
156
+ optional :request_id, :string, 4
157
+ end
158
+ add_message "google.cloud.datastream.v1alpha1.ListRoutesRequest" do
159
+ optional :parent, :string, 1
160
+ optional :page_size, :int32, 2
161
+ optional :page_token, :string, 3
162
+ optional :filter, :string, 4
163
+ optional :order_by, :string, 5
164
+ end
165
+ add_message "google.cloud.datastream.v1alpha1.ListRoutesResponse" do
166
+ repeated :routes, :message, 1, "google.cloud.datastream.v1alpha1.Route"
167
+ optional :next_page_token, :string, 2
168
+ repeated :unreachable, :string, 3
169
+ end
170
+ add_message "google.cloud.datastream.v1alpha1.DeleteRouteRequest" do
171
+ optional :name, :string, 1
172
+ optional :request_id, :string, 2
173
+ end
174
+ add_message "google.cloud.datastream.v1alpha1.GetRouteRequest" do
175
+ optional :name, :string, 1
176
+ end
177
+ end
178
+ end
179
+
180
+ module Google
181
+ module Cloud
182
+ module Datastream
183
+ module V1alpha1
184
+ DiscoverConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest").msgclass
185
+ DiscoverConnectionProfileResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse").msgclass
186
+ FetchStaticIpsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.FetchStaticIpsRequest").msgclass
187
+ FetchStaticIpsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.FetchStaticIpsResponse").msgclass
188
+ FetchErrorsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.FetchErrorsRequest").msgclass
189
+ FetchErrorsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.FetchErrorsResponse").msgclass
190
+ ListConnectionProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest").msgclass
191
+ ListConnectionProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse").msgclass
192
+ GetConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.GetConnectionProfileRequest").msgclass
193
+ CreateConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest").msgclass
194
+ UpdateConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest").msgclass
195
+ DeleteConnectionProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest").msgclass
196
+ ListStreamsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ListStreamsRequest").msgclass
197
+ ListStreamsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ListStreamsResponse").msgclass
198
+ GetStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.GetStreamRequest").msgclass
199
+ CreateStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.CreateStreamRequest").msgclass
200
+ UpdateStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.UpdateStreamRequest").msgclass
201
+ DeleteStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.DeleteStreamRequest").msgclass
202
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.OperationMetadata").msgclass
203
+ CreatePrivateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest").msgclass
204
+ ListPrivateConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest").msgclass
205
+ ListPrivateConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse").msgclass
206
+ DeletePrivateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest").msgclass
207
+ GetPrivateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest").msgclass
208
+ CreateRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.CreateRouteRequest").msgclass
209
+ ListRoutesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ListRoutesRequest").msgclass
210
+ ListRoutesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ListRoutesResponse").msgclass
211
+ DeleteRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.DeleteRouteRequest").msgclass
212
+ GetRouteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.GetRouteRequest").msgclass
213
+ end
214
+ end
215
+ end
216
+ end
@@ -0,0 +1,314 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/datastream/v1alpha1/datastream_resources.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/protobuf/duration_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ require 'google/api/annotations_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_file("google/cloud/datastream/v1alpha1/datastream_resources.proto", :syntax => :proto3) do
13
+ add_message "google.cloud.datastream.v1alpha1.OracleProfile" do
14
+ optional :hostname, :string, 1
15
+ optional :port, :int32, 2
16
+ optional :username, :string, 3
17
+ optional :password, :string, 4
18
+ optional :database_service, :string, 5
19
+ map :connection_attributes, :string, :string, 6
20
+ end
21
+ add_message "google.cloud.datastream.v1alpha1.MysqlProfile" do
22
+ optional :hostname, :string, 1
23
+ optional :port, :int32, 2
24
+ optional :username, :string, 3
25
+ optional :password, :string, 4
26
+ optional :ssl_config, :message, 5, "google.cloud.datastream.v1alpha1.MysqlSslConfig"
27
+ end
28
+ add_message "google.cloud.datastream.v1alpha1.GcsProfile" do
29
+ optional :bucket_name, :string, 1
30
+ optional :root_path, :string, 2
31
+ end
32
+ add_message "google.cloud.datastream.v1alpha1.NoConnectivitySettings" do
33
+ end
34
+ add_message "google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity" do
35
+ end
36
+ add_message "google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity" do
37
+ optional :hostname, :string, 1
38
+ optional :username, :string, 2
39
+ optional :port, :int32, 3
40
+ oneof :authentication_method do
41
+ optional :password, :string, 100
42
+ optional :private_key, :string, 101
43
+ end
44
+ end
45
+ add_message "google.cloud.datastream.v1alpha1.VpcPeeringConfig" do
46
+ optional :vpc_name, :string, 1
47
+ optional :subnet, :string, 2
48
+ end
49
+ add_message "google.cloud.datastream.v1alpha1.PrivateConnection" do
50
+ optional :name, :string, 1
51
+ optional :create_time, :message, 2, "google.protobuf.Timestamp"
52
+ optional :update_time, :message, 3, "google.protobuf.Timestamp"
53
+ map :labels, :string, :string, 4
54
+ optional :display_name, :string, 5
55
+ optional :state, :enum, 6, "google.cloud.datastream.v1alpha1.PrivateConnection.State"
56
+ optional :error, :message, 7, "google.cloud.datastream.v1alpha1.Error"
57
+ optional :vpc_peering_config, :message, 100, "google.cloud.datastream.v1alpha1.VpcPeeringConfig"
58
+ end
59
+ add_enum "google.cloud.datastream.v1alpha1.PrivateConnection.State" do
60
+ value :STATE_UNSPECIFIED, 0
61
+ value :CREATING, 1
62
+ value :CREATED, 2
63
+ value :FAILED, 3
64
+ end
65
+ add_message "google.cloud.datastream.v1alpha1.PrivateConnectivity" do
66
+ optional :private_connection_name, :string, 1
67
+ end
68
+ add_message "google.cloud.datastream.v1alpha1.Route" do
69
+ optional :name, :string, 1
70
+ optional :create_time, :message, 2, "google.protobuf.Timestamp"
71
+ optional :update_time, :message, 3, "google.protobuf.Timestamp"
72
+ map :labels, :string, :string, 4
73
+ optional :display_name, :string, 5
74
+ optional :destination_address, :string, 6
75
+ optional :destination_port, :int32, 7
76
+ end
77
+ add_message "google.cloud.datastream.v1alpha1.MysqlSslConfig" do
78
+ optional :client_key, :string, 11
79
+ optional :client_key_set, :bool, 12
80
+ optional :client_certificate, :string, 13
81
+ optional :client_certificate_set, :bool, 14
82
+ optional :ca_certificate, :string, 15
83
+ optional :ca_certificate_set, :bool, 16
84
+ end
85
+ add_message "google.cloud.datastream.v1alpha1.ConnectionProfile" do
86
+ optional :name, :string, 1
87
+ optional :create_time, :message, 2, "google.protobuf.Timestamp"
88
+ optional :update_time, :message, 3, "google.protobuf.Timestamp"
89
+ map :labels, :string, :string, 4
90
+ optional :display_name, :string, 5
91
+ oneof :profile do
92
+ optional :oracle_profile, :message, 100, "google.cloud.datastream.v1alpha1.OracleProfile"
93
+ optional :gcs_profile, :message, 101, "google.cloud.datastream.v1alpha1.GcsProfile"
94
+ optional :mysql_profile, :message, 102, "google.cloud.datastream.v1alpha1.MysqlProfile"
95
+ end
96
+ oneof :connectivity do
97
+ optional :no_connectivity, :message, 200, "google.cloud.datastream.v1alpha1.NoConnectivitySettings"
98
+ optional :static_service_ip_connectivity, :message, 201, "google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity"
99
+ optional :forward_ssh_connectivity, :message, 202, "google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity"
100
+ optional :private_connectivity, :message, 203, "google.cloud.datastream.v1alpha1.PrivateConnectivity"
101
+ end
102
+ end
103
+ add_message "google.cloud.datastream.v1alpha1.OracleColumn" do
104
+ optional :column_name, :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.v1alpha1.OracleTable" do
115
+ optional :table_name, :string, 1
116
+ repeated :oracle_columns, :message, 2, "google.cloud.datastream.v1alpha1.OracleColumn"
117
+ end
118
+ add_message "google.cloud.datastream.v1alpha1.OracleSchema" do
119
+ optional :schema_name, :string, 1
120
+ repeated :oracle_tables, :message, 2, "google.cloud.datastream.v1alpha1.OracleTable"
121
+ end
122
+ add_message "google.cloud.datastream.v1alpha1.OracleRdbms" do
123
+ repeated :oracle_schemas, :message, 1, "google.cloud.datastream.v1alpha1.OracleSchema"
124
+ end
125
+ add_message "google.cloud.datastream.v1alpha1.OracleSourceConfig" do
126
+ optional :allowlist, :message, 1, "google.cloud.datastream.v1alpha1.OracleRdbms"
127
+ optional :rejectlist, :message, 2, "google.cloud.datastream.v1alpha1.OracleRdbms"
128
+ end
129
+ add_message "google.cloud.datastream.v1alpha1.MysqlColumn" do
130
+ optional :column_name, :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.v1alpha1.MysqlTable" do
139
+ optional :table_name, :string, 1
140
+ repeated :mysql_columns, :message, 2, "google.cloud.datastream.v1alpha1.MysqlColumn"
141
+ end
142
+ add_message "google.cloud.datastream.v1alpha1.MysqlDatabase" do
143
+ optional :database_name, :string, 1
144
+ repeated :mysql_tables, :message, 2, "google.cloud.datastream.v1alpha1.MysqlTable"
145
+ end
146
+ add_message "google.cloud.datastream.v1alpha1.MysqlRdbms" do
147
+ repeated :mysql_databases, :message, 1, "google.cloud.datastream.v1alpha1.MysqlDatabase"
148
+ end
149
+ add_message "google.cloud.datastream.v1alpha1.MysqlSourceConfig" do
150
+ optional :allowlist, :message, 1, "google.cloud.datastream.v1alpha1.MysqlRdbms"
151
+ optional :rejectlist, :message, 2, "google.cloud.datastream.v1alpha1.MysqlRdbms"
152
+ end
153
+ add_message "google.cloud.datastream.v1alpha1.SourceConfig" do
154
+ optional :source_connection_profile_name, :string, 1
155
+ oneof :source_stream_config do
156
+ optional :oracle_source_config, :message, 100, "google.cloud.datastream.v1alpha1.OracleSourceConfig"
157
+ optional :mysql_source_config, :message, 101, "google.cloud.datastream.v1alpha1.MysqlSourceConfig"
158
+ end
159
+ end
160
+ add_message "google.cloud.datastream.v1alpha1.AvroFileFormat" do
161
+ end
162
+ add_message "google.cloud.datastream.v1alpha1.JsonFileFormat" do
163
+ optional :schema_file_format, :enum, 1, "google.cloud.datastream.v1alpha1.SchemaFileFormat"
164
+ optional :compression, :enum, 2, "google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression"
165
+ end
166
+ add_enum "google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression" do
167
+ value :JSON_COMPRESSION_UNSPECIFIED, 0
168
+ value :NO_COMPRESSION, 1
169
+ value :GZIP, 2
170
+ end
171
+ add_message "google.cloud.datastream.v1alpha1.GcsDestinationConfig" do
172
+ optional :path, :string, 1
173
+ optional :gcs_file_format, :enum, 2, "google.cloud.datastream.v1alpha1.GcsFileFormat"
174
+ optional :file_rotation_mb, :int32, 3
175
+ optional :file_rotation_interval, :message, 4, "google.protobuf.Duration"
176
+ oneof :file_format do
177
+ optional :avro_file_format, :message, 100, "google.cloud.datastream.v1alpha1.AvroFileFormat"
178
+ optional :json_file_format, :message, 101, "google.cloud.datastream.v1alpha1.JsonFileFormat"
179
+ end
180
+ end
181
+ add_message "google.cloud.datastream.v1alpha1.DestinationConfig" do
182
+ optional :destination_connection_profile_name, :string, 1
183
+ oneof :destination_stream_config do
184
+ optional :gcs_destination_config, :message, 100, "google.cloud.datastream.v1alpha1.GcsDestinationConfig"
185
+ end
186
+ end
187
+ add_message "google.cloud.datastream.v1alpha1.Stream" do
188
+ optional :name, :string, 1
189
+ optional :create_time, :message, 2, "google.protobuf.Timestamp"
190
+ optional :update_time, :message, 3, "google.protobuf.Timestamp"
191
+ map :labels, :string, :string, 4
192
+ optional :display_name, :string, 5
193
+ optional :source_config, :message, 6, "google.cloud.datastream.v1alpha1.SourceConfig"
194
+ optional :destination_config, :message, 7, "google.cloud.datastream.v1alpha1.DestinationConfig"
195
+ optional :state, :enum, 8, "google.cloud.datastream.v1alpha1.Stream.State"
196
+ repeated :errors, :message, 9, "google.cloud.datastream.v1alpha1.Error"
197
+ oneof :backfill_strategy do
198
+ optional :backfill_all, :message, 101, "google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy"
199
+ optional :backfill_none, :message, 102, "google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy"
200
+ end
201
+ end
202
+ add_message "google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy" do
203
+ oneof :excluded_objects do
204
+ optional :oracle_excluded_objects, :message, 1, "google.cloud.datastream.v1alpha1.OracleRdbms"
205
+ optional :mysql_excluded_objects, :message, 2, "google.cloud.datastream.v1alpha1.MysqlRdbms"
206
+ end
207
+ end
208
+ add_message "google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy" do
209
+ end
210
+ add_enum "google.cloud.datastream.v1alpha1.Stream.State" do
211
+ value :STATE_UNSPECIFIED, 0
212
+ value :CREATED, 1
213
+ value :RUNNING, 2
214
+ value :PAUSED, 3
215
+ value :MAINTENANCE, 4
216
+ value :FAILED, 5
217
+ value :FAILED_PERMANENTLY, 6
218
+ value :STARTING, 7
219
+ value :DRAINING, 8
220
+ end
221
+ add_message "google.cloud.datastream.v1alpha1.Error" do
222
+ optional :reason, :string, 1
223
+ optional :error_uuid, :string, 2
224
+ optional :message, :string, 3
225
+ optional :error_time, :message, 4, "google.protobuf.Timestamp"
226
+ map :details, :string, :string, 5
227
+ end
228
+ add_message "google.cloud.datastream.v1alpha1.ValidationResult" do
229
+ repeated :validations, :message, 1, "google.cloud.datastream.v1alpha1.Validation"
230
+ end
231
+ add_message "google.cloud.datastream.v1alpha1.Validation" do
232
+ optional :description, :string, 1
233
+ optional :status, :enum, 2, "google.cloud.datastream.v1alpha1.Validation.Status"
234
+ repeated :message, :message, 3, "google.cloud.datastream.v1alpha1.ValidationMessage"
235
+ optional :code, :string, 4
236
+ end
237
+ add_enum "google.cloud.datastream.v1alpha1.Validation.Status" do
238
+ value :STATUS_UNSPECIFIED, 0
239
+ value :NOT_EXECUTED, 1
240
+ value :FAILED, 2
241
+ value :PASSED, 3
242
+ end
243
+ add_message "google.cloud.datastream.v1alpha1.ValidationMessage" do
244
+ optional :message, :string, 1
245
+ optional :level, :enum, 2, "google.cloud.datastream.v1alpha1.ValidationMessage.Level"
246
+ map :metadata, :string, :string, 3
247
+ optional :code, :string, 4
248
+ end
249
+ add_enum "google.cloud.datastream.v1alpha1.ValidationMessage.Level" do
250
+ value :LEVEL_UNSPECIFIED, 0
251
+ value :WARNING, 1
252
+ value :ERROR, 2
253
+ end
254
+ add_enum "google.cloud.datastream.v1alpha1.GcsFileFormat" do
255
+ value :GCS_FILE_FORMAT_UNSPECIFIED, 0
256
+ value :AVRO, 1
257
+ end
258
+ add_enum "google.cloud.datastream.v1alpha1.SchemaFileFormat" do
259
+ value :SCHEMA_FILE_FORMAT_UNSPECIFIED, 0
260
+ value :NO_SCHEMA_FILE, 1
261
+ value :AVRO_SCHEMA_FILE, 2
262
+ end
263
+ end
264
+ end
265
+
266
+ module Google
267
+ module Cloud
268
+ module Datastream
269
+ module V1alpha1
270
+ OracleProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.OracleProfile").msgclass
271
+ MysqlProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.MysqlProfile").msgclass
272
+ GcsProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.GcsProfile").msgclass
273
+ NoConnectivitySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.NoConnectivitySettings").msgclass
274
+ StaticServiceIpConnectivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity").msgclass
275
+ ForwardSshTunnelConnectivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity").msgclass
276
+ VpcPeeringConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.VpcPeeringConfig").msgclass
277
+ PrivateConnection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.PrivateConnection").msgclass
278
+ PrivateConnection::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.PrivateConnection.State").enummodule
279
+ PrivateConnectivity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.PrivateConnectivity").msgclass
280
+ Route = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.Route").msgclass
281
+ MysqlSslConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.MysqlSslConfig").msgclass
282
+ ConnectionProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ConnectionProfile").msgclass
283
+ OracleColumn = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.OracleColumn").msgclass
284
+ OracleTable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.OracleTable").msgclass
285
+ OracleSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.OracleSchema").msgclass
286
+ OracleRdbms = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.OracleRdbms").msgclass
287
+ OracleSourceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.OracleSourceConfig").msgclass
288
+ MysqlColumn = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.MysqlColumn").msgclass
289
+ MysqlTable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.MysqlTable").msgclass
290
+ MysqlDatabase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.MysqlDatabase").msgclass
291
+ MysqlRdbms = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.MysqlRdbms").msgclass
292
+ MysqlSourceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.MysqlSourceConfig").msgclass
293
+ SourceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.SourceConfig").msgclass
294
+ AvroFileFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.AvroFileFormat").msgclass
295
+ JsonFileFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.JsonFileFormat").msgclass
296
+ JsonFileFormat::JsonCompression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression").enummodule
297
+ GcsDestinationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.GcsDestinationConfig").msgclass
298
+ DestinationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.DestinationConfig").msgclass
299
+ Stream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.Stream").msgclass
300
+ Stream::BackfillAllStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy").msgclass
301
+ Stream::BackfillNoneStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy").msgclass
302
+ Stream::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.Stream.State").enummodule
303
+ Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.Error").msgclass
304
+ ValidationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ValidationResult").msgclass
305
+ Validation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.Validation").msgclass
306
+ Validation::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.Validation.Status").enummodule
307
+ ValidationMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ValidationMessage").msgclass
308
+ ValidationMessage::Level = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.ValidationMessage.Level").enummodule
309
+ GcsFileFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.GcsFileFormat").enummodule
310
+ SchemaFileFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datastream.v1alpha1.SchemaFileFormat").enummodule
311
+ end
312
+ end
313
+ end
314
+ end