@maxim_mazurok/gapi.client.datamigration-v1 0.0.20241109 → 0.0.20241202

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.
Files changed (2) hide show
  1. package/index.d.ts +205 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://datamigration.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20241109
12
+ // Revision: 20241202
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -537,7 +537,7 @@ declare namespace gapi.client {
537
537
  createTime?: string;
538
538
  /** Output only. The time the operation finished running. */
539
539
  endTime?: string;
540
- /** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
540
+ /** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
541
541
  requestedCancellation?: boolean;
542
542
  /** Output only. Human-readable status of the operation, if any. */
543
543
  statusMessage?: string;
@@ -616,6 +616,12 @@ declare namespace gapi.client {
616
616
  /** A token which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
617
617
  nextPageToken?: string;
618
618
  }
619
+ interface ListMigrationJobObjectsResponse {
620
+ /** List of migration job objects. */
621
+ migrationJobObjects?: MigrationJobObject[];
622
+ /** A token, which can be sent as `page_token` to retrieve the next page. */
623
+ nextPageToken?: string;
624
+ }
619
625
  interface ListMigrationJobsResponse {
620
626
  /** The list of migration jobs objects. */
621
627
  migrationJobs?: MigrationJob[];
@@ -657,6 +663,10 @@ declare namespace gapi.client {
657
663
  onlineLogDirectory?: string;
658
664
  }
659
665
  interface LogMiner {}
666
+ interface LookupMigrationJobObjectRequest {
667
+ /** Required. The source object identifier which maps to the migration job object. */
668
+ sourceObjectIdentifier?: SourceObjectIdentifier;
669
+ }
660
670
  interface MachineConfig {
661
671
  /** The number of CPU's in the VM instance. */
662
672
  cpuCount?: number;
@@ -716,6 +726,8 @@ declare namespace gapi.client {
716
726
  interface MaterializedViewEntity {
717
727
  /** Custom engine specific features. */
718
728
  customFeatures?: {[P in string]: any};
729
+ /** View indices. */
730
+ indices?: IndexEntity[];
719
731
  /** The SQL code which creates the view. */
720
732
  sqlCode?: string;
721
733
  }
@@ -750,6 +762,8 @@ declare namespace gapi.client {
750
762
  labels?: {[P in string]: string};
751
763
  /** The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}. */
752
764
  name?: string;
765
+ /** Optional. The objects that need to be migrated. */
766
+ objectsConfig?: MigrationJobObjectsConfig;
753
767
  /** Configuration for heterogeneous **Oracle to Cloud SQL for PostgreSQL** and **Oracle to AlloyDB for PostgreSQL** migrations. */
754
768
  oracleToPostgresConfig?: OracleToPostgresConfig;
755
769
  /** Optional. Data dump parallelism settings used by the migration. */
@@ -775,6 +789,26 @@ declare namespace gapi.client {
775
789
  /** The details of the VPC network that the source database is located in. */
776
790
  vpcPeeringConnectivity?: VpcPeeringConnectivity;
777
791
  }
792
+ interface MigrationJobObject {
793
+ /** Output only. The creation time of the migration job object. */
794
+ createTime?: string;
795
+ /** Output only. The error details in case of failure. */
796
+ error?: Status;
797
+ /** The object's name. */
798
+ name?: string;
799
+ /** Output only. The phase of the migration job object. */
800
+ phase?: string;
801
+ /** The object identifier in the data source. */
802
+ sourceObject?: SourceObjectIdentifier;
803
+ /** The state of the migration job object. */
804
+ state?: string;
805
+ /** Output only. The last update time of the migration job object. */
806
+ updateTime?: string;
807
+ }
808
+ interface MigrationJobObjectsConfig {
809
+ /** The list of the migration job objects. */
810
+ sourceObjectsConfig?: SourceObjectsConfig;
811
+ }
778
812
  interface MigrationJobVerificationError {
779
813
  /** Output only. An instance of ErrorCode specifying the error that occurred. */
780
814
  errorCode?: string;
@@ -1004,8 +1038,13 @@ declare namespace gapi.client {
1004
1038
  /** Required. A service attachment that exposes a database, and has the following format: projects/{project}/regions/{region}/serviceAttachments/{service_attachment_name} */
1005
1039
  serviceAttachment?: string;
1006
1040
  }
1007
- interface PromoteMigrationJobRequest {}
1041
+ interface PromoteMigrationJobRequest {
1042
+ /** Optional. The object filter to apply to the migration job. */
1043
+ objectsFilter?: MigrationJobObjectsConfig;
1044
+ }
1008
1045
  interface RestartMigrationJobRequest {
1046
+ /** Optional. The object filter to apply to the migration job. */
1047
+ objectsFilter?: MigrationJobObjectsConfig;
1009
1048
  /** Optional. Restart the migration job without running prior configuration verification. Defaults to `false`. */
1010
1049
  skipValidation?: boolean;
1011
1050
  }
@@ -1136,6 +1175,22 @@ declare namespace gapi.client {
1136
1175
  /** Optional. The filter will match columns with scale greater than or equal to this number. */
1137
1176
  sourceMinScaleFilter?: number;
1138
1177
  }
1178
+ interface SourceObjectConfig {
1179
+ /** The object identifier. */
1180
+ objectIdentifier?: SourceObjectIdentifier;
1181
+ }
1182
+ interface SourceObjectIdentifier {
1183
+ /** The database name. This will be required only if the object uses a database name as part of its unique identifier. */
1184
+ database?: string;
1185
+ /** Required. The type of the migration job object. */
1186
+ type?: string;
1187
+ }
1188
+ interface SourceObjectsConfig {
1189
+ /** The list of the objects to be migrated. */
1190
+ objectConfigs?: SourceObjectConfig[];
1191
+ /** Optional. The objects selection type of the migration job. */
1192
+ objectsSelectionType?: string;
1193
+ }
1139
1194
  interface SourceSqlChange {
1140
1195
  /** Required. Sql code for source (stored procedure, function, trigger or view) */
1141
1196
  sqlCode?: string;
@@ -1207,11 +1262,11 @@ declare namespace gapi.client {
1207
1262
  encryptionOptions?: SqlServerEncryptionOptions;
1208
1263
  }
1209
1264
  interface SqlServerEncryptionOptions {
1210
- /** Required. Path to certificate. */
1265
+ /** Required. Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file. */
1211
1266
  certPath?: string;
1212
- /** Required. Input only. Private key password. */
1267
+ /** Required. Input only. Password that encrypts the private key. */
1213
1268
  pvkPassword?: string;
1214
- /** Required. Path to certificate private key. */
1269
+ /** Required. Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file. */
1215
1270
  pvkPath?: string;
1216
1271
  }
1217
1272
  interface SqlServerHomogeneousMigrationJobConfig {
@@ -2641,6 +2696,33 @@ declare namespace gapi.client {
2641
2696
  mappingRules: MappingRulesResource;
2642
2697
  }
2643
2698
  interface ObjectsResource {
2699
+ /** Use this method to get details about a migration job object. */
2700
+ get(request?: {
2701
+ /** V1 error format. */
2702
+ '$.xgafv'?: string;
2703
+ /** OAuth access token. */
2704
+ access_token?: string;
2705
+ /** Data format for response. */
2706
+ alt?: string;
2707
+ /** JSONP */
2708
+ callback?: string;
2709
+ /** Selector specifying which fields to include in a partial response. */
2710
+ fields?: string;
2711
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2712
+ key?: string;
2713
+ /** Required. The name of the migration job object resource to get. */
2714
+ name: string;
2715
+ /** OAuth 2.0 token for the current user. */
2716
+ oauth_token?: string;
2717
+ /** Returns response with indentations and line breaks. */
2718
+ prettyPrint?: boolean;
2719
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2720
+ quotaUser?: string;
2721
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2722
+ upload_protocol?: string;
2723
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2724
+ uploadType?: string;
2725
+ }): Request<MigrationJobObject>;
2644
2726
  /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
2645
2727
  getIamPolicy(request?: {
2646
2728
  /** V1 error format. */
@@ -2670,6 +2752,95 @@ declare namespace gapi.client {
2670
2752
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2671
2753
  uploadType?: string;
2672
2754
  }): Request<Policy>;
2755
+ /** Use this method to list the objects of a specific migration job. */
2756
+ list(request?: {
2757
+ /** V1 error format. */
2758
+ '$.xgafv'?: string;
2759
+ /** OAuth access token. */
2760
+ access_token?: string;
2761
+ /** Data format for response. */
2762
+ alt?: string;
2763
+ /** JSONP */
2764
+ callback?: string;
2765
+ /** Selector specifying which fields to include in a partial response. */
2766
+ fields?: string;
2767
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2768
+ key?: string;
2769
+ /** OAuth 2.0 token for the current user. */
2770
+ oauth_token?: string;
2771
+ /** Maximum number of objects to return. Default is 50. The maximum value is 1000; values above 1000 will be coerced to 1000. */
2772
+ pageSize?: number;
2773
+ /** Page token received from a previous `ListMigrationJObObjectsRequest` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMigrationJobObjectsRequest` must match the call that provided the page token. */
2774
+ pageToken?: string;
2775
+ /** Required. The parent migration job that owns the collection of objects. */
2776
+ parent: string;
2777
+ /** Returns response with indentations and line breaks. */
2778
+ prettyPrint?: boolean;
2779
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2780
+ quotaUser?: string;
2781
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2782
+ upload_protocol?: string;
2783
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2784
+ uploadType?: string;
2785
+ }): Request<ListMigrationJobObjectsResponse>;
2786
+ /** Use this method to look up a migration job object by its source object identifier. */
2787
+ lookup(request: {
2788
+ /** V1 error format. */
2789
+ '$.xgafv'?: string;
2790
+ /** OAuth access token. */
2791
+ access_token?: string;
2792
+ /** Data format for response. */
2793
+ alt?: string;
2794
+ /** JSONP */
2795
+ callback?: string;
2796
+ /** Selector specifying which fields to include in a partial response. */
2797
+ fields?: string;
2798
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2799
+ key?: string;
2800
+ /** OAuth 2.0 token for the current user. */
2801
+ oauth_token?: string;
2802
+ /** Required. The parent migration job that owns the collection of objects. */
2803
+ parent: string;
2804
+ /** Returns response with indentations and line breaks. */
2805
+ prettyPrint?: boolean;
2806
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2807
+ quotaUser?: string;
2808
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2809
+ upload_protocol?: string;
2810
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2811
+ uploadType?: string;
2812
+ /** Request body */
2813
+ resource: LookupMigrationJobObjectRequest;
2814
+ }): Request<MigrationJobObject>;
2815
+ lookup(
2816
+ request: {
2817
+ /** V1 error format. */
2818
+ '$.xgafv'?: string;
2819
+ /** OAuth access token. */
2820
+ access_token?: string;
2821
+ /** Data format for response. */
2822
+ alt?: string;
2823
+ /** JSONP */
2824
+ callback?: string;
2825
+ /** Selector specifying which fields to include in a partial response. */
2826
+ fields?: string;
2827
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2828
+ key?: string;
2829
+ /** OAuth 2.0 token for the current user. */
2830
+ oauth_token?: string;
2831
+ /** Required. The parent migration job that owns the collection of objects. */
2832
+ parent: string;
2833
+ /** Returns response with indentations and line breaks. */
2834
+ prettyPrint?: boolean;
2835
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2836
+ quotaUser?: string;
2837
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2838
+ upload_protocol?: string;
2839
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2840
+ uploadType?: string;
2841
+ },
2842
+ body: LookupMigrationJobObjectRequest
2843
+ ): Request<MigrationJobObject>;
2673
2844
  /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
2674
2845
  setIamPolicy(
2675
2846
  request: {
@@ -2887,6 +3058,33 @@ declare namespace gapi.client {
2887
3058
  },
2888
3059
  body: DemoteDestinationRequest
2889
3060
  ): Request<Operation>;
3061
+ /** Retrieves objects from the source database that can be selected for data migration. This is applicable for the following migrations: 1. PostgreSQL to Cloud SQL for PostgreSQL 2. PostgreSQL to AlloyDB for PostgreSQL. */
3062
+ fetchSourceObjects(request?: {
3063
+ /** V1 error format. */
3064
+ '$.xgafv'?: string;
3065
+ /** OAuth access token. */
3066
+ access_token?: string;
3067
+ /** Data format for response. */
3068
+ alt?: string;
3069
+ /** JSONP */
3070
+ callback?: string;
3071
+ /** Selector specifying which fields to include in a partial response. */
3072
+ fields?: string;
3073
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3074
+ key?: string;
3075
+ /** Required. The resource name for the migration job for which source objects should be returned. */
3076
+ name: string;
3077
+ /** OAuth 2.0 token for the current user. */
3078
+ oauth_token?: string;
3079
+ /** Returns response with indentations and line breaks. */
3080
+ prettyPrint?: boolean;
3081
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3082
+ quotaUser?: string;
3083
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3084
+ upload_protocol?: string;
3085
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3086
+ uploadType?: string;
3087
+ }): Request<Operation>;
2890
3088
  /** Generate a SSH configuration script to configure the reverse SSH connectivity. */
2891
3089
  generateSshScript(request: {
2892
3090
  /** V1 error format. */
@@ -3571,7 +3769,7 @@ declare namespace gapi.client {
3571
3769
  objects: ObjectsResource;
3572
3770
  }
3573
3771
  interface OperationsResource {
3574
- /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
3772
+ /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
3575
3773
  cancel(request: {
3576
3774
  /** V1 error format. */
3577
3775
  '$.xgafv'?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.datamigration-v1",
3
- "version": "0.0.20241109",
3
+ "version": "0.0.20241202",
4
4
  "description": "TypeScript typings for Database Migration API v1",
5
5
  "repository": {
6
6
  "type": "git",