google-apis-datastream_v1 0.26.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b43a9df4db31e1c91a8df4272c64c3046fd343c1e24f95e8605047d9b627e8a6
4
- data.tar.gz: 109d3a9f8334ff7f3f06a9ef10d1a6e419d01d6c7506833f1c8791ef2e021438
3
+ metadata.gz: 3119f9d8d60fc7ce2f08bcd35c0f7a32ff315396e9230b034cfb429be80ad355
4
+ data.tar.gz: eb32c51c1e272eec57aa62679fca19c380f7c333317e2d9779f6445685612959
5
5
  SHA512:
6
- metadata.gz: 2a884029ebf8e46ed53a2c5fc9da775507b56eec96b4009ef01d858853f3192a5037e4237306d2af50a2eae3e2d8f68eb69302102afa3919db427a75eb22caaa
7
- data.tar.gz: 0a0864bca9977df56d4894713d23e1da8ae028cedd4d93d96041b2197c4c68e519251d19b2651a049de542a1def2f052880361929ed67464e4182e56ae45611c
6
+ metadata.gz: 2c8cfa1657373861688067de493161abdcee3e604b3cff092c39fd2309b0a5a6cfd7c1070200e62d9539d7a6b029eaa4a8b00e2c900ac5c94f8585afd0d4ec4e
7
+ data.tar.gz: c4661cd48e430990192c05d704dd64121cb3acbcc548bda8762f1f9e9fb6b48aa24e884ae8c82f8fbbacfbf2788d80626e1596be94fb0bff7abe11f0c32d0f22
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-datastream_v1
2
2
 
3
+ ### v0.28.0 (2023-08-03)
4
+
5
+ * Regenerated from discovery document revision 20230719
6
+
7
+ ### v0.27.0 (2023-07-23)
8
+
9
+ * Regenerated from discovery document revision 20230630
10
+
3
11
  ### v0.26.0 (2023-06-25)
4
12
 
5
13
  * Regenerated from discovery document revision 20230611
@@ -184,6 +184,38 @@ module Google
184
184
  end
185
185
  end
186
186
 
187
+ # The strategy that the stream uses for CDC replication.
188
+ class CdcStrategy
189
+ include Google::Apis::Core::Hashable
190
+
191
+ # CDC strategy to start replicating from the most recent position in the source.
192
+ # Corresponds to the JSON property `mostRecentStartPosition`
193
+ # @return [Google::Apis::DatastreamV1::MostRecentStartPosition]
194
+ attr_accessor :most_recent_start_position
195
+
196
+ # CDC strategy to resume replication from the next available position in the
197
+ # source.
198
+ # Corresponds to the JSON property `nextAvailableStartPosition`
199
+ # @return [Google::Apis::DatastreamV1::NextAvailableStartPosition]
200
+ attr_accessor :next_available_start_position
201
+
202
+ # CDC strategy to start replicating from a specific position in the source.
203
+ # Corresponds to the JSON property `specificStartPosition`
204
+ # @return [Google::Apis::DatastreamV1::SpecificStartPosition]
205
+ attr_accessor :specific_start_position
206
+
207
+ def initialize(**args)
208
+ update!(**args)
209
+ end
210
+
211
+ # Update properties of this object
212
+ def update!(**args)
213
+ @most_recent_start_position = args[:most_recent_start_position] if args.key?(:most_recent_start_position)
214
+ @next_available_start_position = args[:next_available_start_position] if args.key?(:next_available_start_position)
215
+ @specific_start_position = args[:specific_start_position] if args.key?(:specific_start_position)
216
+ end
217
+ end
218
+
187
219
  # A set of reusable connection configurations to be used as a source or
188
220
  # destination for a stream.
189
221
  class ConnectionProfile
@@ -944,6 +976,19 @@ module Google
944
976
  end
945
977
  end
946
978
 
979
+ # CDC strategy to start replicating from the most recent position in the source.
980
+ class MostRecentStartPosition
981
+ include Google::Apis::Core::Hashable
982
+
983
+ def initialize(**args)
984
+ update!(**args)
985
+ end
986
+
987
+ # Update properties of this object
988
+ def update!(**args)
989
+ end
990
+ end
991
+
947
992
  # MySQL Column.
948
993
  class MysqlColumn
949
994
  include Google::Apis::Core::Hashable
@@ -980,12 +1025,22 @@ module Google
980
1025
  # @return [Fixnum]
981
1026
  attr_accessor :ordinal_position
982
1027
 
1028
+ # Column precision.
1029
+ # Corresponds to the JSON property `precision`
1030
+ # @return [Fixnum]
1031
+ attr_accessor :precision
1032
+
983
1033
  # Whether or not the column represents a primary key.
984
1034
  # Corresponds to the JSON property `primaryKey`
985
1035
  # @return [Boolean]
986
1036
  attr_accessor :primary_key
987
1037
  alias_method :primary_key?, :primary_key
988
1038
 
1039
+ # Column scale.
1040
+ # Corresponds to the JSON property `scale`
1041
+ # @return [Fixnum]
1042
+ attr_accessor :scale
1043
+
989
1044
  def initialize(**args)
990
1045
  update!(**args)
991
1046
  end
@@ -998,7 +1053,9 @@ module Google
998
1053
  @length = args[:length] if args.key?(:length)
999
1054
  @nullable = args[:nullable] if args.key?(:nullable)
1000
1055
  @ordinal_position = args[:ordinal_position] if args.key?(:ordinal_position)
1056
+ @precision = args[:precision] if args.key?(:precision)
1001
1057
  @primary_key = args[:primary_key] if args.key?(:primary_key)
1058
+ @scale = args[:scale] if args.key?(:scale)
1002
1059
  end
1003
1060
  end
1004
1061
 
@@ -1027,6 +1084,31 @@ module Google
1027
1084
  end
1028
1085
  end
1029
1086
 
1087
+ # MySQL log position
1088
+ class MysqlLogPosition
1089
+ include Google::Apis::Core::Hashable
1090
+
1091
+ # The binary log file name.
1092
+ # Corresponds to the JSON property `logFile`
1093
+ # @return [String]
1094
+ attr_accessor :log_file
1095
+
1096
+ # The position within the binary log file. Default is head of file.
1097
+ # Corresponds to the JSON property `logPosition`
1098
+ # @return [Fixnum]
1099
+ attr_accessor :log_position
1100
+
1101
+ def initialize(**args)
1102
+ update!(**args)
1103
+ end
1104
+
1105
+ # Update properties of this object
1106
+ def update!(**args)
1107
+ @log_file = args[:log_file] if args.key?(:log_file)
1108
+ @log_position = args[:log_position] if args.key?(:log_position)
1109
+ end
1110
+ end
1111
+
1030
1112
  # Mysql data source object identifier.
1031
1113
  class MysqlObjectIdentifier
1032
1114
  include Google::Apis::Core::Hashable
@@ -1236,6 +1318,20 @@ module Google
1236
1318
  end
1237
1319
  end
1238
1320
 
1321
+ # CDC strategy to resume replication from the next available position in the
1322
+ # source.
1323
+ class NextAvailableStartPosition
1324
+ include Google::Apis::Core::Hashable
1325
+
1326
+ def initialize(**args)
1327
+ update!(**args)
1328
+ end
1329
+
1330
+ # Update properties of this object
1331
+ def update!(**args)
1332
+ end
1333
+ end
1334
+
1239
1335
  # This resource represents a long-running operation that is the result of a
1240
1336
  # network API call.
1241
1337
  class Operation
@@ -2013,6 +2109,25 @@ module Google
2013
2109
  end
2014
2110
  end
2015
2111
 
2112
+ # Request message for running a stream.
2113
+ class RunStreamRequest
2114
+ include Google::Apis::Core::Hashable
2115
+
2116
+ # The strategy that the stream uses for CDC replication.
2117
+ # Corresponds to the JSON property `cdcStrategy`
2118
+ # @return [Google::Apis::DatastreamV1::CdcStrategy]
2119
+ attr_accessor :cdc_strategy
2120
+
2121
+ def initialize(**args)
2122
+ update!(**args)
2123
+ end
2124
+
2125
+ # Update properties of this object
2126
+ def update!(**args)
2127
+ @cdc_strategy = args[:cdc_strategy] if args.key?(:cdc_strategy)
2128
+ end
2129
+ end
2130
+
2016
2131
  # A single target dataset to which all data will be streamed.
2017
2132
  class SingleTargetDataset
2018
2133
  include Google::Apis::Core::Hashable
@@ -2122,6 +2237,25 @@ module Google
2122
2237
  end
2123
2238
  end
2124
2239
 
2240
+ # CDC strategy to start replicating from a specific position in the source.
2241
+ class SpecificStartPosition
2242
+ include Google::Apis::Core::Hashable
2243
+
2244
+ # MySQL log position
2245
+ # Corresponds to the JSON property `mysqlLogPosition`
2246
+ # @return [Google::Apis::DatastreamV1::MysqlLogPosition]
2247
+ attr_accessor :mysql_log_position
2248
+
2249
+ def initialize(**args)
2250
+ update!(**args)
2251
+ end
2252
+
2253
+ # Update properties of this object
2254
+ def update!(**args)
2255
+ @mysql_log_position = args[:mysql_log_position] if args.key?(:mysql_log_position)
2256
+ end
2257
+ end
2258
+
2125
2259
  # Request for manually initiating a backfill job for a specific stream object.
2126
2260
  class StartBackfillJobRequest
2127
2261
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DatastreamV1
18
18
  # Version of the google-apis-datastream_v1 gem
19
- GEM_VERSION = "0.26.0"
19
+ GEM_VERSION = "0.28.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230611"
25
+ REVISION = "20230719"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class CdcStrategy
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class ConnectionProfile
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -196,6 +202,12 @@ module Google
196
202
  include Google::Apis::Core::JsonObjectSupport
197
203
  end
198
204
 
205
+ class MostRecentStartPosition
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
199
211
  class MysqlColumn
200
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
213
 
@@ -208,6 +220,12 @@ module Google
208
220
  include Google::Apis::Core::JsonObjectSupport
209
221
  end
210
222
 
223
+ class MysqlLogPosition
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
211
229
  class MysqlObjectIdentifier
212
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
231
 
@@ -244,6 +262,12 @@ module Google
244
262
  include Google::Apis::Core::JsonObjectSupport
245
263
  end
246
264
 
265
+ class NextAvailableStartPosition
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
247
271
  class Operation
248
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
273
 
@@ -358,6 +382,12 @@ module Google
358
382
  include Google::Apis::Core::JsonObjectSupport
359
383
  end
360
384
 
385
+ class RunStreamRequest
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
361
391
  class SingleTargetDataset
362
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
393
 
@@ -382,6 +412,12 @@ module Google
382
412
  include Google::Apis::Core::JsonObjectSupport
383
413
  end
384
414
 
415
+ class SpecificStartPosition
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
385
421
  class StartBackfillJobRequest
386
422
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
423
 
@@ -519,6 +555,18 @@ module Google
519
555
  end
520
556
  end
521
557
 
558
+ class CdcStrategy
559
+ # @private
560
+ class Representation < Google::Apis::Core::JsonRepresentation
561
+ property :most_recent_start_position, as: 'mostRecentStartPosition', class: Google::Apis::DatastreamV1::MostRecentStartPosition, decorator: Google::Apis::DatastreamV1::MostRecentStartPosition::Representation
562
+
563
+ property :next_available_start_position, as: 'nextAvailableStartPosition', class: Google::Apis::DatastreamV1::NextAvailableStartPosition, decorator: Google::Apis::DatastreamV1::NextAvailableStartPosition::Representation
564
+
565
+ property :specific_start_position, as: 'specificStartPosition', class: Google::Apis::DatastreamV1::SpecificStartPosition, decorator: Google::Apis::DatastreamV1::SpecificStartPosition::Representation
566
+
567
+ end
568
+ end
569
+
522
570
  class ConnectionProfile
523
571
  # @private
524
572
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -752,6 +800,12 @@ module Google
752
800
  end
753
801
  end
754
802
 
803
+ class MostRecentStartPosition
804
+ # @private
805
+ class Representation < Google::Apis::Core::JsonRepresentation
806
+ end
807
+ end
808
+
755
809
  class MysqlColumn
756
810
  # @private
757
811
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -761,7 +815,9 @@ module Google
761
815
  property :length, as: 'length'
762
816
  property :nullable, as: 'nullable'
763
817
  property :ordinal_position, as: 'ordinalPosition'
818
+ property :precision, as: 'precision'
764
819
  property :primary_key, as: 'primaryKey'
820
+ property :scale, as: 'scale'
765
821
  end
766
822
  end
767
823
 
@@ -774,6 +830,14 @@ module Google
774
830
  end
775
831
  end
776
832
 
833
+ class MysqlLogPosition
834
+ # @private
835
+ class Representation < Google::Apis::Core::JsonRepresentation
836
+ property :log_file, as: 'logFile'
837
+ property :log_position, as: 'logPosition'
838
+ end
839
+ end
840
+
777
841
  class MysqlObjectIdentifier
778
842
  # @private
779
843
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -835,6 +899,12 @@ module Google
835
899
  end
836
900
  end
837
901
 
902
+ class NextAvailableStartPosition
903
+ # @private
904
+ class Representation < Google::Apis::Core::JsonRepresentation
905
+ end
906
+ end
907
+
838
908
  class Operation
839
909
  # @private
840
910
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1047,6 +1117,14 @@ module Google
1047
1117
  end
1048
1118
  end
1049
1119
 
1120
+ class RunStreamRequest
1121
+ # @private
1122
+ class Representation < Google::Apis::Core::JsonRepresentation
1123
+ property :cdc_strategy, as: 'cdcStrategy', class: Google::Apis::DatastreamV1::CdcStrategy, decorator: Google::Apis::DatastreamV1::CdcStrategy::Representation
1124
+
1125
+ end
1126
+ end
1127
+
1050
1128
  class SingleTargetDataset
1051
1129
  # @private
1052
1130
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1087,6 +1165,14 @@ module Google
1087
1165
  end
1088
1166
  end
1089
1167
 
1168
+ class SpecificStartPosition
1169
+ # @private
1170
+ class Representation < Google::Apis::Core::JsonRepresentation
1171
+ property :mysql_log_position, as: 'mysqlLogPosition', class: Google::Apis::DatastreamV1::MysqlLogPosition, decorator: Google::Apis::DatastreamV1::MysqlLogPosition::Representation
1172
+
1173
+ end
1174
+ end
1175
+
1090
1176
  class StartBackfillJobRequest
1091
1177
  # @private
1092
1178
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1156,6 +1156,41 @@ module Google
1156
1156
  execute_or_queue_command(command, &block)
1157
1157
  end
1158
1158
 
1159
+ # Use this method to start, resume or recover a stream with a non default CDC
1160
+ # strategy.
1161
+ # @param [String] name
1162
+ # Required. Name of the stream resource to start, in the format: projects/`
1163
+ # project_id`/locations/`location`/streams/`stream_name`
1164
+ # @param [Google::Apis::DatastreamV1::RunStreamRequest] run_stream_request_object
1165
+ # @param [String] fields
1166
+ # Selector specifying which fields to include in a partial response.
1167
+ # @param [String] quota_user
1168
+ # Available to use for quota purposes for server-side applications. Can be any
1169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1170
+ # @param [Google::Apis::RequestOptions] options
1171
+ # Request-specific options
1172
+ #
1173
+ # @yield [result, err] Result & error if block supplied
1174
+ # @yieldparam result [Google::Apis::DatastreamV1::Operation] parsed result object
1175
+ # @yieldparam err [StandardError] error object if request failed
1176
+ #
1177
+ # @return [Google::Apis::DatastreamV1::Operation]
1178
+ #
1179
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1180
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1181
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1182
+ def run_stream(name, run_stream_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1183
+ command = make_simple_command(:post, 'v1/{+name}:run', options)
1184
+ command.request_representation = Google::Apis::DatastreamV1::RunStreamRequest::Representation
1185
+ command.request_object = run_stream_request_object
1186
+ command.response_representation = Google::Apis::DatastreamV1::Operation::Representation
1187
+ command.response_class = Google::Apis::DatastreamV1::Operation
1188
+ command.params['name'] = name unless name.nil?
1189
+ command.query['fields'] = fields unless fields.nil?
1190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1191
+ execute_or_queue_command(command, &block)
1192
+ end
1193
+
1159
1194
  # Use this method to get details about a stream object.
1160
1195
  # @param [String] name
1161
1196
  # Required. The name of the stream object resource to get.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-datastream_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.28.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: 2023-06-25 00:00:00.000000000 Z
11
+ date: 2023-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastream_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-datastream_v1/v0.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datastream_v1/v0.28.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datastream_v1
63
63
  post_install_message:
64
64
  rdoc_options: []