google-apis-datamigration_v1 0.65.0 → 0.66.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fd994e64a81f54135abb2c329997aa5809c0053ca379e94cd1ddb221cfb16c4
|
4
|
+
data.tar.gz: 732afabd285e68b90f1ce7542e62174ed84089dade23c4709cacf70436fb6bed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 251a0c52a791d07878dd89261eb1697e5ce14a5078eff9538f7a5333fd1595592b6ae19e59ea756cbfb6af80834418b075368cbcd78cc816bc3d6380b4612d2e
|
7
|
+
data.tar.gz: f509a27f5cacc98b7c014ad78624b03cfeb243dd9803b2864f76d8d76613a81cc2faff20d978c33aaf4b46517c5291be617f26e546570adf29dcf41f81471d9d
|
data/CHANGELOG.md
CHANGED
@@ -2172,9 +2172,9 @@ module Google
|
|
2172
2172
|
attr_accessor :end_time
|
2173
2173
|
|
2174
2174
|
# Output only. Identifies whether the user has requested cancellation of the
|
2175
|
-
# operation. Operations that have successfully been cancelled have
|
2176
|
-
# error value with a google.rpc.Status.code of 1,
|
2177
|
-
# CANCELLED`.
|
2175
|
+
# operation. Operations that have successfully been cancelled have google.
|
2176
|
+
# longrunning.Operation.error value with a google.rpc.Status.code of 1,
|
2177
|
+
# corresponding to `Code.CANCELLED`.
|
2178
2178
|
# Corresponds to the JSON property `requestedCancellation`
|
2179
2179
|
# @return [Boolean]
|
2180
2180
|
attr_accessor :requested_cancellation
|
@@ -2500,6 +2500,31 @@ module Google
|
|
2500
2500
|
end
|
2501
2501
|
end
|
2502
2502
|
|
2503
|
+
# Response containing the objects for a migration job.
|
2504
|
+
class ListMigrationJobObjectsResponse
|
2505
|
+
include Google::Apis::Core::Hashable
|
2506
|
+
|
2507
|
+
# List of migration job objects.
|
2508
|
+
# Corresponds to the JSON property `migrationJobObjects`
|
2509
|
+
# @return [Array<Google::Apis::DatamigrationV1::MigrationJobObject>]
|
2510
|
+
attr_accessor :migration_job_objects
|
2511
|
+
|
2512
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
2513
|
+
# Corresponds to the JSON property `nextPageToken`
|
2514
|
+
# @return [String]
|
2515
|
+
attr_accessor :next_page_token
|
2516
|
+
|
2517
|
+
def initialize(**args)
|
2518
|
+
update!(**args)
|
2519
|
+
end
|
2520
|
+
|
2521
|
+
# Update properties of this object
|
2522
|
+
def update!(**args)
|
2523
|
+
@migration_job_objects = args[:migration_job_objects] if args.key?(:migration_job_objects)
|
2524
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2525
|
+
end
|
2526
|
+
end
|
2527
|
+
|
2503
2528
|
# Response message for 'ListMigrationJobs' request.
|
2504
2529
|
class ListMigrationJobsResponse
|
2505
2530
|
include Google::Apis::Core::Hashable
|
@@ -2674,6 +2699,26 @@ module Google
|
|
2674
2699
|
end
|
2675
2700
|
end
|
2676
2701
|
|
2702
|
+
# Request for looking up a specific migration job object by its source object
|
2703
|
+
# identifier.
|
2704
|
+
class LookupMigrationJobObjectRequest
|
2705
|
+
include Google::Apis::Core::Hashable
|
2706
|
+
|
2707
|
+
# An identifier for the Migration Job Object.
|
2708
|
+
# Corresponds to the JSON property `sourceObjectIdentifier`
|
2709
|
+
# @return [Google::Apis::DatamigrationV1::SourceObjectIdentifier]
|
2710
|
+
attr_accessor :source_object_identifier
|
2711
|
+
|
2712
|
+
def initialize(**args)
|
2713
|
+
update!(**args)
|
2714
|
+
end
|
2715
|
+
|
2716
|
+
# Update properties of this object
|
2717
|
+
def update!(**args)
|
2718
|
+
@source_object_identifier = args[:source_object_identifier] if args.key?(:source_object_identifier)
|
2719
|
+
end
|
2720
|
+
end
|
2721
|
+
|
2677
2722
|
# MachineConfig describes the configuration of a machine.
|
2678
2723
|
class MachineConfig
|
2679
2724
|
include Google::Apis::Core::Hashable
|
@@ -2926,6 +2971,11 @@ module Google
|
|
2926
2971
|
# @return [Hash<String,Object>]
|
2927
2972
|
attr_accessor :custom_features
|
2928
2973
|
|
2974
|
+
# View indices.
|
2975
|
+
# Corresponds to the JSON property `indices`
|
2976
|
+
# @return [Array<Google::Apis::DatamigrationV1::IndexEntity>]
|
2977
|
+
attr_accessor :indices
|
2978
|
+
|
2929
2979
|
# The SQL code which creates the view.
|
2930
2980
|
# Corresponds to the JSON property `sqlCode`
|
2931
2981
|
# @return [String]
|
@@ -2938,6 +2988,7 @@ module Google
|
|
2938
2988
|
# Update properties of this object
|
2939
2989
|
def update!(**args)
|
2940
2990
|
@custom_features = args[:custom_features] if args.key?(:custom_features)
|
2991
|
+
@indices = args[:indices] if args.key?(:indices)
|
2941
2992
|
@sql_code = args[:sql_code] if args.key?(:sql_code)
|
2942
2993
|
end
|
2943
2994
|
end
|
@@ -3046,6 +3097,11 @@ module Google
|
|
3046
3097
|
# @return [String]
|
3047
3098
|
attr_accessor :name
|
3048
3099
|
|
3100
|
+
# Configuration for the objects to be migrated.
|
3101
|
+
# Corresponds to the JSON property `objectsConfig`
|
3102
|
+
# @return [Google::Apis::DatamigrationV1::MigrationJobObjectsConfig]
|
3103
|
+
attr_accessor :objects_config
|
3104
|
+
|
3049
3105
|
# Configuration for heterogeneous **Oracle to Cloud SQL for PostgreSQL** and **
|
3050
3106
|
# Oracle to AlloyDB for PostgreSQL** migrations.
|
3051
3107
|
# Corresponds to the JSON property `oracleToPostgresConfig`
|
@@ -3140,6 +3196,7 @@ module Google
|
|
3140
3196
|
@filter = args[:filter] if args.key?(:filter)
|
3141
3197
|
@labels = args[:labels] if args.key?(:labels)
|
3142
3198
|
@name = args[:name] if args.key?(:name)
|
3199
|
+
@objects_config = args[:objects_config] if args.key?(:objects_config)
|
3143
3200
|
@oracle_to_postgres_config = args[:oracle_to_postgres_config] if args.key?(:oracle_to_postgres_config)
|
3144
3201
|
@performance_config = args[:performance_config] if args.key?(:performance_config)
|
3145
3202
|
@phase = args[:phase] if args.key?(:phase)
|
@@ -3155,6 +3212,85 @@ module Google
|
|
3155
3212
|
end
|
3156
3213
|
end
|
3157
3214
|
|
3215
|
+
# A specific Migration Job Object (e.g. a specifc DB Table)
|
3216
|
+
class MigrationJobObject
|
3217
|
+
include Google::Apis::Core::Hashable
|
3218
|
+
|
3219
|
+
# Output only. The creation time of the migration job object.
|
3220
|
+
# Corresponds to the JSON property `createTime`
|
3221
|
+
# @return [String]
|
3222
|
+
attr_accessor :create_time
|
3223
|
+
|
3224
|
+
# The `Status` type defines a logical error model that is suitable for different
|
3225
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
3226
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
3227
|
+
# data: error code, error message, and error details. You can find out more
|
3228
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
3229
|
+
# //cloud.google.com/apis/design/errors).
|
3230
|
+
# Corresponds to the JSON property `error`
|
3231
|
+
# @return [Google::Apis::DatamigrationV1::Status]
|
3232
|
+
attr_accessor :error
|
3233
|
+
|
3234
|
+
# The object's name.
|
3235
|
+
# Corresponds to the JSON property `name`
|
3236
|
+
# @return [String]
|
3237
|
+
attr_accessor :name
|
3238
|
+
|
3239
|
+
# Output only. The phase of the migration job object.
|
3240
|
+
# Corresponds to the JSON property `phase`
|
3241
|
+
# @return [String]
|
3242
|
+
attr_accessor :phase
|
3243
|
+
|
3244
|
+
# An identifier for the Migration Job Object.
|
3245
|
+
# Corresponds to the JSON property `sourceObject`
|
3246
|
+
# @return [Google::Apis::DatamigrationV1::SourceObjectIdentifier]
|
3247
|
+
attr_accessor :source_object
|
3248
|
+
|
3249
|
+
# The state of the migration job object.
|
3250
|
+
# Corresponds to the JSON property `state`
|
3251
|
+
# @return [String]
|
3252
|
+
attr_accessor :state
|
3253
|
+
|
3254
|
+
# Output only. The last update time of the migration job object.
|
3255
|
+
# Corresponds to the JSON property `updateTime`
|
3256
|
+
# @return [String]
|
3257
|
+
attr_accessor :update_time
|
3258
|
+
|
3259
|
+
def initialize(**args)
|
3260
|
+
update!(**args)
|
3261
|
+
end
|
3262
|
+
|
3263
|
+
# Update properties of this object
|
3264
|
+
def update!(**args)
|
3265
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3266
|
+
@error = args[:error] if args.key?(:error)
|
3267
|
+
@name = args[:name] if args.key?(:name)
|
3268
|
+
@phase = args[:phase] if args.key?(:phase)
|
3269
|
+
@source_object = args[:source_object] if args.key?(:source_object)
|
3270
|
+
@state = args[:state] if args.key?(:state)
|
3271
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
3272
|
+
end
|
3273
|
+
end
|
3274
|
+
|
3275
|
+
# Configuration for the objects to be migrated.
|
3276
|
+
class MigrationJobObjectsConfig
|
3277
|
+
include Google::Apis::Core::Hashable
|
3278
|
+
|
3279
|
+
# List of configurations for the source objects to be migrated.
|
3280
|
+
# Corresponds to the JSON property `sourceObjectsConfig`
|
3281
|
+
# @return [Google::Apis::DatamigrationV1::SourceObjectsConfig]
|
3282
|
+
attr_accessor :source_objects_config
|
3283
|
+
|
3284
|
+
def initialize(**args)
|
3285
|
+
update!(**args)
|
3286
|
+
end
|
3287
|
+
|
3288
|
+
# Update properties of this object
|
3289
|
+
def update!(**args)
|
3290
|
+
@source_objects_config = args[:source_objects_config] if args.key?(:source_objects_config)
|
3291
|
+
end
|
3292
|
+
end
|
3293
|
+
|
3158
3294
|
# Error message of a verification Migration job.
|
3159
3295
|
class MigrationJobVerificationError
|
3160
3296
|
include Google::Apis::Core::Hashable
|
@@ -4135,12 +4271,18 @@ module Google
|
|
4135
4271
|
class PromoteMigrationJobRequest
|
4136
4272
|
include Google::Apis::Core::Hashable
|
4137
4273
|
|
4274
|
+
# Configuration for the objects to be migrated.
|
4275
|
+
# Corresponds to the JSON property `objectsFilter`
|
4276
|
+
# @return [Google::Apis::DatamigrationV1::MigrationJobObjectsConfig]
|
4277
|
+
attr_accessor :objects_filter
|
4278
|
+
|
4138
4279
|
def initialize(**args)
|
4139
4280
|
update!(**args)
|
4140
4281
|
end
|
4141
4282
|
|
4142
4283
|
# Update properties of this object
|
4143
4284
|
def update!(**args)
|
4285
|
+
@objects_filter = args[:objects_filter] if args.key?(:objects_filter)
|
4144
4286
|
end
|
4145
4287
|
end
|
4146
4288
|
|
@@ -4148,6 +4290,11 @@ module Google
|
|
4148
4290
|
class RestartMigrationJobRequest
|
4149
4291
|
include Google::Apis::Core::Hashable
|
4150
4292
|
|
4293
|
+
# Configuration for the objects to be migrated.
|
4294
|
+
# Corresponds to the JSON property `objectsFilter`
|
4295
|
+
# @return [Google::Apis::DatamigrationV1::MigrationJobObjectsConfig]
|
4296
|
+
attr_accessor :objects_filter
|
4297
|
+
|
4151
4298
|
# Optional. Restart the migration job without running prior configuration
|
4152
4299
|
# verification. Defaults to `false`.
|
4153
4300
|
# Corresponds to the JSON property `skipValidation`
|
@@ -4161,6 +4308,7 @@ module Google
|
|
4161
4308
|
|
4162
4309
|
# Update properties of this object
|
4163
4310
|
def update!(**args)
|
4311
|
+
@objects_filter = args[:objects_filter] if args.key?(:objects_filter)
|
4164
4312
|
@skip_validation = args[:skip_validation] if args.key?(:skip_validation)
|
4165
4313
|
end
|
4166
4314
|
end
|
@@ -4738,6 +4886,76 @@ module Google
|
|
4738
4886
|
end
|
4739
4887
|
end
|
4740
4888
|
|
4889
|
+
# Config for a single migration job object.
|
4890
|
+
class SourceObjectConfig
|
4891
|
+
include Google::Apis::Core::Hashable
|
4892
|
+
|
4893
|
+
# An identifier for the Migration Job Object.
|
4894
|
+
# Corresponds to the JSON property `objectIdentifier`
|
4895
|
+
# @return [Google::Apis::DatamigrationV1::SourceObjectIdentifier]
|
4896
|
+
attr_accessor :object_identifier
|
4897
|
+
|
4898
|
+
def initialize(**args)
|
4899
|
+
update!(**args)
|
4900
|
+
end
|
4901
|
+
|
4902
|
+
# Update properties of this object
|
4903
|
+
def update!(**args)
|
4904
|
+
@object_identifier = args[:object_identifier] if args.key?(:object_identifier)
|
4905
|
+
end
|
4906
|
+
end
|
4907
|
+
|
4908
|
+
# An identifier for the Migration Job Object.
|
4909
|
+
class SourceObjectIdentifier
|
4910
|
+
include Google::Apis::Core::Hashable
|
4911
|
+
|
4912
|
+
# The database name. This will be required only if the object uses a database
|
4913
|
+
# name as part of its unique identifier.
|
4914
|
+
# Corresponds to the JSON property `database`
|
4915
|
+
# @return [String]
|
4916
|
+
attr_accessor :database
|
4917
|
+
|
4918
|
+
# Required. The type of the migration job object.
|
4919
|
+
# Corresponds to the JSON property `type`
|
4920
|
+
# @return [String]
|
4921
|
+
attr_accessor :type
|
4922
|
+
|
4923
|
+
def initialize(**args)
|
4924
|
+
update!(**args)
|
4925
|
+
end
|
4926
|
+
|
4927
|
+
# Update properties of this object
|
4928
|
+
def update!(**args)
|
4929
|
+
@database = args[:database] if args.key?(:database)
|
4930
|
+
@type = args[:type] if args.key?(:type)
|
4931
|
+
end
|
4932
|
+
end
|
4933
|
+
|
4934
|
+
# List of configurations for the source objects to be migrated.
|
4935
|
+
class SourceObjectsConfig
|
4936
|
+
include Google::Apis::Core::Hashable
|
4937
|
+
|
4938
|
+
# The list of the objects to be migrated.
|
4939
|
+
# Corresponds to the JSON property `objectConfigs`
|
4940
|
+
# @return [Array<Google::Apis::DatamigrationV1::SourceObjectConfig>]
|
4941
|
+
attr_accessor :object_configs
|
4942
|
+
|
4943
|
+
# Optional. The objects selection type of the migration job.
|
4944
|
+
# Corresponds to the JSON property `objectsSelectionType`
|
4945
|
+
# @return [String]
|
4946
|
+
attr_accessor :objects_selection_type
|
4947
|
+
|
4948
|
+
def initialize(**args)
|
4949
|
+
update!(**args)
|
4950
|
+
end
|
4951
|
+
|
4952
|
+
# Update properties of this object
|
4953
|
+
def update!(**args)
|
4954
|
+
@object_configs = args[:object_configs] if args.key?(:object_configs)
|
4955
|
+
@objects_selection_type = args[:objects_selection_type] if args.key?(:objects_selection_type)
|
4956
|
+
end
|
4957
|
+
end
|
4958
|
+
|
4741
4959
|
# Options to configure rule type SourceSqlChange. The rule is used to alter the
|
4742
4960
|
# sql code for database entities. The rule filter field can refer to one entity.
|
4743
4961
|
# The rule scope can be: StoredProcedure, Function, Trigger, View
|
@@ -5033,17 +5251,21 @@ module Google
|
|
5033
5251
|
class SqlServerEncryptionOptions
|
5034
5252
|
include Google::Apis::Core::Hashable
|
5035
5253
|
|
5036
|
-
# Required. Path to
|
5254
|
+
# Required. Path to the Certificate (.cer) in Cloud Storage, in the form `gs://
|
5255
|
+
# bucketName/fileName`. The instance must have write permissions to the bucket
|
5256
|
+
# and read access to the file.
|
5037
5257
|
# Corresponds to the JSON property `certPath`
|
5038
5258
|
# @return [String]
|
5039
5259
|
attr_accessor :cert_path
|
5040
5260
|
|
5041
|
-
# Required. Input only.
|
5261
|
+
# Required. Input only. Password that encrypts the private key.
|
5042
5262
|
# Corresponds to the JSON property `pvkPassword`
|
5043
5263
|
# @return [String]
|
5044
5264
|
attr_accessor :pvk_password
|
5045
5265
|
|
5046
|
-
# Required. Path to
|
5266
|
+
# Required. Path to the Certificate Private Key (.pvk) in Cloud Storage, in the
|
5267
|
+
# form `gs://bucketName/fileName`. The instance must have write permissions to
|
5268
|
+
# the bucket and read access to the file.
|
5047
5269
|
# Corresponds to the JSON property `pvkPath`
|
5048
5270
|
# @return [String]
|
5049
5271
|
attr_accessor :pvk_path
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DatamigrationV1
|
18
18
|
# Version of the google-apis-datamigration_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.66.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241202"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -382,6 +382,12 @@ module Google
|
|
382
382
|
include Google::Apis::Core::JsonObjectSupport
|
383
383
|
end
|
384
384
|
|
385
|
+
class ListMigrationJobObjectsResponse
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
385
391
|
class ListMigrationJobsResponse
|
386
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
393
|
|
@@ -418,6 +424,12 @@ module Google
|
|
418
424
|
include Google::Apis::Core::JsonObjectSupport
|
419
425
|
end
|
420
426
|
|
427
|
+
class LookupMigrationJobObjectRequest
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
+
|
430
|
+
include Google::Apis::Core::JsonObjectSupport
|
431
|
+
end
|
432
|
+
|
421
433
|
class MachineConfig
|
422
434
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
435
|
|
@@ -448,6 +460,18 @@ module Google
|
|
448
460
|
include Google::Apis::Core::JsonObjectSupport
|
449
461
|
end
|
450
462
|
|
463
|
+
class MigrationJobObject
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
|
+
|
466
|
+
include Google::Apis::Core::JsonObjectSupport
|
467
|
+
end
|
468
|
+
|
469
|
+
class MigrationJobObjectsConfig
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
|
+
|
472
|
+
include Google::Apis::Core::JsonObjectSupport
|
473
|
+
end
|
474
|
+
|
451
475
|
class MigrationJobVerificationError
|
452
476
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
453
477
|
|
@@ -676,6 +700,24 @@ module Google
|
|
676
700
|
include Google::Apis::Core::JsonObjectSupport
|
677
701
|
end
|
678
702
|
|
703
|
+
class SourceObjectConfig
|
704
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
705
|
+
|
706
|
+
include Google::Apis::Core::JsonObjectSupport
|
707
|
+
end
|
708
|
+
|
709
|
+
class SourceObjectIdentifier
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
715
|
+
class SourceObjectsConfig
|
716
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
717
|
+
|
718
|
+
include Google::Apis::Core::JsonObjectSupport
|
719
|
+
end
|
720
|
+
|
679
721
|
class SourceSqlChange
|
680
722
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
681
723
|
|
@@ -1525,6 +1567,15 @@ module Google
|
|
1525
1567
|
end
|
1526
1568
|
end
|
1527
1569
|
|
1570
|
+
class ListMigrationJobObjectsResponse
|
1571
|
+
# @private
|
1572
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1573
|
+
collection :migration_job_objects, as: 'migrationJobObjects', class: Google::Apis::DatamigrationV1::MigrationJobObject, decorator: Google::Apis::DatamigrationV1::MigrationJobObject::Representation
|
1574
|
+
|
1575
|
+
property :next_page_token, as: 'nextPageToken'
|
1576
|
+
end
|
1577
|
+
end
|
1578
|
+
|
1528
1579
|
class ListMigrationJobsResponse
|
1529
1580
|
# @private
|
1530
1581
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1579,6 +1630,14 @@ module Google
|
|
1579
1630
|
end
|
1580
1631
|
end
|
1581
1632
|
|
1633
|
+
class LookupMigrationJobObjectRequest
|
1634
|
+
# @private
|
1635
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1636
|
+
property :source_object_identifier, as: 'sourceObjectIdentifier', class: Google::Apis::DatamigrationV1::SourceObjectIdentifier, decorator: Google::Apis::DatamigrationV1::SourceObjectIdentifier::Representation
|
1637
|
+
|
1638
|
+
end
|
1639
|
+
end
|
1640
|
+
|
1582
1641
|
class MachineConfig
|
1583
1642
|
# @private
|
1584
1643
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1638,6 +1697,8 @@ module Google
|
|
1638
1697
|
# @private
|
1639
1698
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1640
1699
|
hash :custom_features, as: 'customFeatures'
|
1700
|
+
collection :indices, as: 'indices', class: Google::Apis::DatamigrationV1::IndexEntity, decorator: Google::Apis::DatamigrationV1::IndexEntity::Representation
|
1701
|
+
|
1641
1702
|
property :sql_code, as: 'sqlCode'
|
1642
1703
|
end
|
1643
1704
|
end
|
@@ -1664,6 +1725,8 @@ module Google
|
|
1664
1725
|
property :filter, as: 'filter'
|
1665
1726
|
hash :labels, as: 'labels'
|
1666
1727
|
property :name, as: 'name'
|
1728
|
+
property :objects_config, as: 'objectsConfig', class: Google::Apis::DatamigrationV1::MigrationJobObjectsConfig, decorator: Google::Apis::DatamigrationV1::MigrationJobObjectsConfig::Representation
|
1729
|
+
|
1667
1730
|
property :oracle_to_postgres_config, as: 'oracleToPostgresConfig', class: Google::Apis::DatamigrationV1::OracleToPostgresConfig, decorator: Google::Apis::DatamigrationV1::OracleToPostgresConfig::Representation
|
1668
1731
|
|
1669
1732
|
property :performance_config, as: 'performanceConfig', class: Google::Apis::DatamigrationV1::PerformanceConfig, decorator: Google::Apis::DatamigrationV1::PerformanceConfig::Representation
|
@@ -1686,6 +1749,29 @@ module Google
|
|
1686
1749
|
end
|
1687
1750
|
end
|
1688
1751
|
|
1752
|
+
class MigrationJobObject
|
1753
|
+
# @private
|
1754
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1755
|
+
property :create_time, as: 'createTime'
|
1756
|
+
property :error, as: 'error', class: Google::Apis::DatamigrationV1::Status, decorator: Google::Apis::DatamigrationV1::Status::Representation
|
1757
|
+
|
1758
|
+
property :name, as: 'name'
|
1759
|
+
property :phase, as: 'phase'
|
1760
|
+
property :source_object, as: 'sourceObject', class: Google::Apis::DatamigrationV1::SourceObjectIdentifier, decorator: Google::Apis::DatamigrationV1::SourceObjectIdentifier::Representation
|
1761
|
+
|
1762
|
+
property :state, as: 'state'
|
1763
|
+
property :update_time, as: 'updateTime'
|
1764
|
+
end
|
1765
|
+
end
|
1766
|
+
|
1767
|
+
class MigrationJobObjectsConfig
|
1768
|
+
# @private
|
1769
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1770
|
+
property :source_objects_config, as: 'sourceObjectsConfig', class: Google::Apis::DatamigrationV1::SourceObjectsConfig, decorator: Google::Apis::DatamigrationV1::SourceObjectsConfig::Representation
|
1771
|
+
|
1772
|
+
end
|
1773
|
+
end
|
1774
|
+
|
1689
1775
|
class MigrationJobVerificationError
|
1690
1776
|
# @private
|
1691
1777
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1927,12 +2013,16 @@ module Google
|
|
1927
2013
|
class PromoteMigrationJobRequest
|
1928
2014
|
# @private
|
1929
2015
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2016
|
+
property :objects_filter, as: 'objectsFilter', class: Google::Apis::DatamigrationV1::MigrationJobObjectsConfig, decorator: Google::Apis::DatamigrationV1::MigrationJobObjectsConfig::Representation
|
2017
|
+
|
1930
2018
|
end
|
1931
2019
|
end
|
1932
2020
|
|
1933
2021
|
class RestartMigrationJobRequest
|
1934
2022
|
# @private
|
1935
2023
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2024
|
+
property :objects_filter, as: 'objectsFilter', class: Google::Apis::DatamigrationV1::MigrationJobObjectsConfig, decorator: Google::Apis::DatamigrationV1::MigrationJobObjectsConfig::Representation
|
2025
|
+
|
1936
2026
|
property :skip_validation, as: 'skipValidation'
|
1937
2027
|
end
|
1938
2028
|
end
|
@@ -2083,6 +2173,31 @@ module Google
|
|
2083
2173
|
end
|
2084
2174
|
end
|
2085
2175
|
|
2176
|
+
class SourceObjectConfig
|
2177
|
+
# @private
|
2178
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2179
|
+
property :object_identifier, as: 'objectIdentifier', class: Google::Apis::DatamigrationV1::SourceObjectIdentifier, decorator: Google::Apis::DatamigrationV1::SourceObjectIdentifier::Representation
|
2180
|
+
|
2181
|
+
end
|
2182
|
+
end
|
2183
|
+
|
2184
|
+
class SourceObjectIdentifier
|
2185
|
+
# @private
|
2186
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2187
|
+
property :database, as: 'database'
|
2188
|
+
property :type, as: 'type'
|
2189
|
+
end
|
2190
|
+
end
|
2191
|
+
|
2192
|
+
class SourceObjectsConfig
|
2193
|
+
# @private
|
2194
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2195
|
+
collection :object_configs, as: 'objectConfigs', class: Google::Apis::DatamigrationV1::SourceObjectConfig, decorator: Google::Apis::DatamigrationV1::SourceObjectConfig::Representation
|
2196
|
+
|
2197
|
+
property :objects_selection_type, as: 'objectsSelectionType'
|
2198
|
+
end
|
2199
|
+
end
|
2200
|
+
|
2086
2201
|
class SourceSqlChange
|
2087
2202
|
# @private
|
2088
2203
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1471,6 +1471,39 @@ module Google
|
|
1471
1471
|
execute_or_queue_command(command, &block)
|
1472
1472
|
end
|
1473
1473
|
|
1474
|
+
# Retrieves objects from the source database that can be selected for data
|
1475
|
+
# migration. This is applicable for the following migrations: 1. PostgreSQL to
|
1476
|
+
# Cloud SQL for PostgreSQL 2. PostgreSQL to AlloyDB for PostgreSQL.
|
1477
|
+
# @param [String] name
|
1478
|
+
# Required. The resource name for the migration job for which source objects
|
1479
|
+
# should be returned.
|
1480
|
+
# @param [String] fields
|
1481
|
+
# Selector specifying which fields to include in a partial response.
|
1482
|
+
# @param [String] quota_user
|
1483
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1484
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1485
|
+
# @param [Google::Apis::RequestOptions] options
|
1486
|
+
# Request-specific options
|
1487
|
+
#
|
1488
|
+
# @yield [result, err] Result & error if block supplied
|
1489
|
+
# @yieldparam result [Google::Apis::DatamigrationV1::Operation] parsed result object
|
1490
|
+
# @yieldparam err [StandardError] error object if request failed
|
1491
|
+
#
|
1492
|
+
# @return [Google::Apis::DatamigrationV1::Operation]
|
1493
|
+
#
|
1494
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1495
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1496
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1497
|
+
def fetch_project_location_migration_job_source_objects(name, fields: nil, quota_user: nil, options: nil, &block)
|
1498
|
+
command = make_simple_command(:get, 'v1/{+name}:fetchSourceObjects', options)
|
1499
|
+
command.response_representation = Google::Apis::DatamigrationV1::Operation::Representation
|
1500
|
+
command.response_class = Google::Apis::DatamigrationV1::Operation
|
1501
|
+
command.params['name'] = name unless name.nil?
|
1502
|
+
command.query['fields'] = fields unless fields.nil?
|
1503
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1504
|
+
execute_or_queue_command(command, &block)
|
1505
|
+
end
|
1506
|
+
|
1474
1507
|
# Generate a SSH configuration script to configure the reverse SSH connectivity.
|
1475
1508
|
# @param [String] migration_job
|
1476
1509
|
# Name of the migration job resource to generate the SSH script.
|
@@ -1991,6 +2024,36 @@ module Google
|
|
1991
2024
|
execute_or_queue_command(command, &block)
|
1992
2025
|
end
|
1993
2026
|
|
2027
|
+
# Use this method to get details about a migration job object.
|
2028
|
+
# @param [String] name
|
2029
|
+
# Required. The name of the migration job object resource to get.
|
2030
|
+
# @param [String] fields
|
2031
|
+
# Selector specifying which fields to include in a partial response.
|
2032
|
+
# @param [String] quota_user
|
2033
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2034
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2035
|
+
# @param [Google::Apis::RequestOptions] options
|
2036
|
+
# Request-specific options
|
2037
|
+
#
|
2038
|
+
# @yield [result, err] Result & error if block supplied
|
2039
|
+
# @yieldparam result [Google::Apis::DatamigrationV1::MigrationJobObject] parsed result object
|
2040
|
+
# @yieldparam err [StandardError] error object if request failed
|
2041
|
+
#
|
2042
|
+
# @return [Google::Apis::DatamigrationV1::MigrationJobObject]
|
2043
|
+
#
|
2044
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2045
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2046
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2047
|
+
def get_project_location_migration_job_object(name, fields: nil, quota_user: nil, options: nil, &block)
|
2048
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2049
|
+
command.response_representation = Google::Apis::DatamigrationV1::MigrationJobObject::Representation
|
2050
|
+
command.response_class = Google::Apis::DatamigrationV1::MigrationJobObject
|
2051
|
+
command.params['name'] = name unless name.nil?
|
2052
|
+
command.query['fields'] = fields unless fields.nil?
|
2053
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2054
|
+
execute_or_queue_command(command, &block)
|
2055
|
+
end
|
2056
|
+
|
1994
2057
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
1995
2058
|
# resource exists and does not have a policy set.
|
1996
2059
|
# @param [String] resource
|
@@ -2036,6 +2099,80 @@ module Google
|
|
2036
2099
|
execute_or_queue_command(command, &block)
|
2037
2100
|
end
|
2038
2101
|
|
2102
|
+
# Use this method to list the objects of a specific migration job.
|
2103
|
+
# @param [String] parent
|
2104
|
+
# Required. The parent migration job that owns the collection of objects.
|
2105
|
+
# @param [Fixnum] page_size
|
2106
|
+
# Maximum number of objects to return. Default is 50. The maximum value is 1000;
|
2107
|
+
# values above 1000 will be coerced to 1000.
|
2108
|
+
# @param [String] page_token
|
2109
|
+
# Page token received from a previous `ListMigrationJObObjectsRequest` call.
|
2110
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
2111
|
+
# parameters provided to `ListMigrationJobObjectsRequest` must match the call
|
2112
|
+
# that provided the page token.
|
2113
|
+
# @param [String] fields
|
2114
|
+
# Selector specifying which fields to include in a partial response.
|
2115
|
+
# @param [String] quota_user
|
2116
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2117
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2118
|
+
# @param [Google::Apis::RequestOptions] options
|
2119
|
+
# Request-specific options
|
2120
|
+
#
|
2121
|
+
# @yield [result, err] Result & error if block supplied
|
2122
|
+
# @yieldparam result [Google::Apis::DatamigrationV1::ListMigrationJobObjectsResponse] parsed result object
|
2123
|
+
# @yieldparam err [StandardError] error object if request failed
|
2124
|
+
#
|
2125
|
+
# @return [Google::Apis::DatamigrationV1::ListMigrationJobObjectsResponse]
|
2126
|
+
#
|
2127
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2128
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2129
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2130
|
+
def list_project_location_migration_job_objects(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2131
|
+
command = make_simple_command(:get, 'v1/{+parent}/objects', options)
|
2132
|
+
command.response_representation = Google::Apis::DatamigrationV1::ListMigrationJobObjectsResponse::Representation
|
2133
|
+
command.response_class = Google::Apis::DatamigrationV1::ListMigrationJobObjectsResponse
|
2134
|
+
command.params['parent'] = parent unless parent.nil?
|
2135
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2136
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2137
|
+
command.query['fields'] = fields unless fields.nil?
|
2138
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2139
|
+
execute_or_queue_command(command, &block)
|
2140
|
+
end
|
2141
|
+
|
2142
|
+
# Use this method to look up a migration job object by its source object
|
2143
|
+
# identifier.
|
2144
|
+
# @param [String] parent
|
2145
|
+
# Required. The parent migration job that owns the collection of objects.
|
2146
|
+
# @param [Google::Apis::DatamigrationV1::LookupMigrationJobObjectRequest] lookup_migration_job_object_request_object
|
2147
|
+
# @param [String] fields
|
2148
|
+
# Selector specifying which fields to include in a partial response.
|
2149
|
+
# @param [String] quota_user
|
2150
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2151
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2152
|
+
# @param [Google::Apis::RequestOptions] options
|
2153
|
+
# Request-specific options
|
2154
|
+
#
|
2155
|
+
# @yield [result, err] Result & error if block supplied
|
2156
|
+
# @yieldparam result [Google::Apis::DatamigrationV1::MigrationJobObject] parsed result object
|
2157
|
+
# @yieldparam err [StandardError] error object if request failed
|
2158
|
+
#
|
2159
|
+
# @return [Google::Apis::DatamigrationV1::MigrationJobObject]
|
2160
|
+
#
|
2161
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2162
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2163
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2164
|
+
def lookup_migration_job_object(parent, lookup_migration_job_object_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2165
|
+
command = make_simple_command(:post, 'v1/{+parent}/objects:lookup', options)
|
2166
|
+
command.request_representation = Google::Apis::DatamigrationV1::LookupMigrationJobObjectRequest::Representation
|
2167
|
+
command.request_object = lookup_migration_job_object_request_object
|
2168
|
+
command.response_representation = Google::Apis::DatamigrationV1::MigrationJobObject::Representation
|
2169
|
+
command.response_class = Google::Apis::DatamigrationV1::MigrationJobObject
|
2170
|
+
command.params['parent'] = parent unless parent.nil?
|
2171
|
+
command.query['fields'] = fields unless fields.nil?
|
2172
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2173
|
+
execute_or_queue_command(command, &block)
|
2174
|
+
end
|
2175
|
+
|
2039
2176
|
# Sets the access control policy on the specified resource. Replaces any
|
2040
2177
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
2041
2178
|
# PERMISSION_DENIED` errors.
|
@@ -2118,8 +2255,8 @@ module Google
|
|
2118
2255
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
2119
2256
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
2120
2257
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
2121
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
2122
|
-
# corresponding to `Code.CANCELLED`.
|
2258
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
2259
|
+
# , corresponding to `Code.CANCELLED`.
|
2123
2260
|
# @param [String] name
|
2124
2261
|
# The name of the operation resource to be cancelled.
|
2125
2262
|
# @param [Google::Apis::DatamigrationV1::CancelOperationRequest] cancel_operation_request_object
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-datamigration_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.66.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: 2024-12-
|
11
|
+
date: 2024-12-08 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-datamigration_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-datamigration_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-datamigration_v1/v0.66.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datamigration_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Database Migration API V1
|