@maxim_mazurok/gapi.client.metastore-v1alpha 0.0.20240305 → 0.0.20240325

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 +318 -2
  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://metastore.googleapis.com/$discovery/rest?version=v1alpha
12
- // Revision: 20240305
12
+ // Revision: 20240325
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -93,7 +93,57 @@ declare namespace gapi.client {
93
93
  /** Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles and permissions, see the IAM documentation (https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see here (https://cloud.google.com/iam/docs/understanding-roles). */
94
94
  role?: string;
95
95
  }
96
+ interface CancelMigrationRequest {}
97
+ interface CancelMigrationResponse {
98
+ /** The relative resource name of the migration execution, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. */
99
+ migrationExecution?: string;
100
+ }
96
101
  interface CancelOperationRequest {}
102
+ interface CdcConfig {
103
+ /** Optional. The bucket to write the intermediate stream event data in. The bucket name must be without any prefix like "gs://". See the bucket naming requirements (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the Artifacts Cloud Storage bucket will be used. */
104
+ bucket?: string;
105
+ /** Required. Input only. The password for the user that Datastream service should use for the MySQL connection. This field is not returned on request. */
106
+ password?: string;
107
+ /** Required. The URL of the subnetwork resource to create the VM instance hosting the reverse proxy in. More context in https://cloud.google.com/datastream/docs/private-connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the request that Datastream will peer to and should be in the same region as Datastream, in the following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} */
108
+ reverseProxySubnet?: string;
109
+ /** Optional. The root path inside the Cloud Storage bucket. The stream event data will be written to this path. The default value is /migration. */
110
+ rootPath?: string;
111
+ /** Required. A /29 CIDR IP range for peering with datastream. */
112
+ subnetIpRange?: string;
113
+ /** Required. The username that the Datastream service should use for the MySQL connection. */
114
+ username?: string;
115
+ /** Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC network that Datastream will peer to, in the following format: projects/{project_id}/locations/global/networks/{network_id}. More context in https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity */
116
+ vpcNetwork?: string;
117
+ }
118
+ interface CloudSQLConnectionConfig {
119
+ /** Required. The hive database name. */
120
+ hiveDatabaseName?: string;
121
+ /** Required. Cloud SQL database connection name (project_id:region:instance_name) */
122
+ instanceConnectionName?: string;
123
+ /** Required. The private IP address of the Cloud SQL instance. */
124
+ ipAddress?: string;
125
+ /** Required. The relative resource name of the subnetwork to be used for Private Service Connect. Note that this cannot be a regular subnet and is used only for NAT. (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside in a network through which the Cloud SQL instance is accessible. The resource name should be in the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} */
126
+ natSubnet?: string;
127
+ /** Required. Input only. The password for the user that Dataproc Metastore service will be using to connect to the database. This field is not returned on request. */
128
+ password?: string;
129
+ /** Required. The network port of the database. */
130
+ port?: number;
131
+ /** Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. The subnetwork should reside in a network through which the Cloud SQL instance is accessible. The resource name should be in the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} */
132
+ proxySubnet?: string;
133
+ /** Required. The username that Dataproc Metastore service will use to connect to the database. */
134
+ username?: string;
135
+ }
136
+ interface CloudSQLMigrationConfig {
137
+ /** Required. Configuration information to start the Change Data Capture (CDC) streams from customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to using its backend database after the cutover phase of migration. */
138
+ cdcConfig?: CdcConfig;
139
+ /** Required. Configuration information to establish customer database connection before the cutover phase of migration */
140
+ cloudSqlConnectionConfig?: CloudSQLConnectionConfig;
141
+ }
142
+ interface CompleteMigrationRequest {}
143
+ interface CompleteMigrationResponse {
144
+ /** The relative resource name of the migration execution, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. */
145
+ migrationExecution?: string;
146
+ }
97
147
  interface Consumer {
98
148
  /** Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}. */
99
149
  endpointLocation?: string;
@@ -122,7 +172,7 @@ declare namespace gapi.client {
122
172
  }
123
173
  interface Empty {}
124
174
  interface EncryptionConfig {
125
- /** The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following form:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}. */
175
+ /** The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}. */
126
176
  kmsKey?: string;
127
177
  }
128
178
  interface ErrorDetails {
@@ -239,6 +289,14 @@ declare namespace gapi.client {
239
289
  /** Locations that could not be reached. */
240
290
  unreachable?: string[];
241
291
  }
292
+ interface ListMigrationExecutionsResponse {
293
+ /** The migration executions on the specified service. */
294
+ migrationExecutions?: MigrationExecution[];
295
+ /** A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
296
+ nextPageToken?: string;
297
+ /** Locations that could not be reached. */
298
+ unreachable?: string[];
299
+ }
242
300
  interface ListOperationsResponse {
243
301
  /** The standard List next-page token. */
244
302
  nextPageToken?: string;
@@ -317,6 +375,22 @@ declare namespace gapi.client {
317
375
  /** Output only. The latest restores of the metastore service. */
318
376
  restores?: Restore[];
319
377
  }
378
+ interface MigrationExecution {
379
+ /** Configuration information specific to migrating from self-managed hive metastore on GCP using Cloud SQL as the backend database to DPMS. */
380
+ cloudSqlMigrationConfig?: CloudSQLMigrationConfig;
381
+ /** Output only. The time when the migration execution was started. */
382
+ createTime?: string;
383
+ /** Output only. The time when the migration execution finished. */
384
+ endTime?: string;
385
+ /** Output only. The relative resource name of the migration execution, in the following form: projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id} */
386
+ name?: string;
387
+ /** Output only. The current phase of the migration execution. */
388
+ phase?: string;
389
+ /** Output only. The current state of the migration execution. */
390
+ state?: string;
391
+ /** Output only. Additional information about the current state of the migration execution. */
392
+ stateMessage?: string;
393
+ }
320
394
  interface MoveTableToDatabaseRequest {
321
395
  /** Required. The name of the database where the table resides. */
322
396
  dbName?: string;
@@ -494,6 +568,12 @@ declare namespace gapi.client {
494
568
  /** OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used:paths: "bindings, etag" */
495
569
  updateMask?: string;
496
570
  }
571
+ interface StartMigrationRequest {
572
+ /** Required. The configuration details for the migration. */
573
+ migrationExecution?: MigrationExecution;
574
+ /** Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. */
575
+ requestId?: string;
576
+ }
497
577
  interface Status {
498
578
  /** The status code, which should be an enum value of google.rpc.Code. */
499
579
  code?: number;
@@ -1632,6 +1712,68 @@ declare namespace gapi.client {
1632
1712
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1633
1713
  uploadType?: string;
1634
1714
  }): Request<Operation>;
1715
+ /** Gets details of a single migration execution. */
1716
+ get(request?: {
1717
+ /** V1 error format. */
1718
+ '$.xgafv'?: string;
1719
+ /** OAuth access token. */
1720
+ access_token?: string;
1721
+ /** Data format for response. */
1722
+ alt?: string;
1723
+ /** JSONP */
1724
+ callback?: string;
1725
+ /** Selector specifying which fields to include in a partial response. */
1726
+ fields?: string;
1727
+ /** 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. */
1728
+ key?: string;
1729
+ /** Required. The relative resource name of the migration execution to retrieve, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. */
1730
+ name: string;
1731
+ /** OAuth 2.0 token for the current user. */
1732
+ oauth_token?: string;
1733
+ /** Returns response with indentations and line breaks. */
1734
+ prettyPrint?: boolean;
1735
+ /** 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. */
1736
+ quotaUser?: string;
1737
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1738
+ upload_protocol?: string;
1739
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1740
+ uploadType?: string;
1741
+ }): Request<MigrationExecution>;
1742
+ /** Lists migration executions on a service. */
1743
+ list(request?: {
1744
+ /** V1 error format. */
1745
+ '$.xgafv'?: string;
1746
+ /** OAuth access token. */
1747
+ access_token?: string;
1748
+ /** Data format for response. */
1749
+ alt?: string;
1750
+ /** JSONP */
1751
+ callback?: string;
1752
+ /** Selector specifying which fields to include in a partial response. */
1753
+ fields?: string;
1754
+ /** Optional. The filter to apply to list results. */
1755
+ filter?: string;
1756
+ /** 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. */
1757
+ key?: string;
1758
+ /** OAuth 2.0 token for the current user. */
1759
+ oauth_token?: string;
1760
+ /** Optional. Specify the ordering of results as described in Sorting Order (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will be sorted in the default order. */
1761
+ orderBy?: string;
1762
+ /** Optional. The maximum number of migration executions to return. The response may contain less than the maximum number. If unspecified, no more than 500 migration executions are returned. The maximum value is 1000; values above 1000 are changed to 1000. */
1763
+ pageSize?: number;
1764
+ /** Optional. A page token, received from a previous DataprocMetastore.ListMigrationExecutions call. Provide this token to retrieve the subsequent page.To retrieve the first page, supply an empty page token.When paginating, other parameters provided to DataprocMetastore.ListMigrationExecutions must match the call that provided the page token. */
1765
+ pageToken?: string;
1766
+ /** Required. The relative resource name of the service whose migration executions to list, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions. */
1767
+ parent: string;
1768
+ /** Returns response with indentations and line breaks. */
1769
+ prettyPrint?: boolean;
1770
+ /** 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. */
1771
+ quotaUser?: string;
1772
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1773
+ upload_protocol?: string;
1774
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1775
+ uploadType?: string;
1776
+ }): Request<ListMigrationExecutionsResponse>;
1635
1777
  }
1636
1778
  interface ServicesResource {
1637
1779
  /** Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location. */
@@ -1750,6 +1892,122 @@ declare namespace gapi.client {
1750
1892
  },
1751
1893
  body: AlterTablePropertiesRequest
1752
1894
  ): Request<Operation>;
1895
+ /** Cancels the ongoing Managed Migration process. */
1896
+ cancelMigration(request: {
1897
+ /** V1 error format. */
1898
+ '$.xgafv'?: string;
1899
+ /** OAuth access token. */
1900
+ access_token?: string;
1901
+ /** Data format for response. */
1902
+ alt?: string;
1903
+ /** JSONP */
1904
+ callback?: string;
1905
+ /** Selector specifying which fields to include in a partial response. */
1906
+ fields?: string;
1907
+ /** 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. */
1908
+ key?: string;
1909
+ /** OAuth 2.0 token for the current user. */
1910
+ oauth_token?: string;
1911
+ /** Returns response with indentations and line breaks. */
1912
+ prettyPrint?: boolean;
1913
+ /** 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. */
1914
+ quotaUser?: string;
1915
+ /** Required. The relative resource name of the metastore service to cancel the ongoing migration to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
1916
+ service: string;
1917
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1918
+ upload_protocol?: string;
1919
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1920
+ uploadType?: string;
1921
+ /** Request body */
1922
+ resource: CancelMigrationRequest;
1923
+ }): Request<Operation>;
1924
+ cancelMigration(
1925
+ request: {
1926
+ /** V1 error format. */
1927
+ '$.xgafv'?: string;
1928
+ /** OAuth access token. */
1929
+ access_token?: string;
1930
+ /** Data format for response. */
1931
+ alt?: string;
1932
+ /** JSONP */
1933
+ callback?: string;
1934
+ /** Selector specifying which fields to include in a partial response. */
1935
+ fields?: string;
1936
+ /** 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. */
1937
+ key?: string;
1938
+ /** OAuth 2.0 token for the current user. */
1939
+ oauth_token?: string;
1940
+ /** Returns response with indentations and line breaks. */
1941
+ prettyPrint?: boolean;
1942
+ /** 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. */
1943
+ quotaUser?: string;
1944
+ /** Required. The relative resource name of the metastore service to cancel the ongoing migration to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
1945
+ service: string;
1946
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1947
+ upload_protocol?: string;
1948
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1949
+ uploadType?: string;
1950
+ },
1951
+ body: CancelMigrationRequest
1952
+ ): Request<Operation>;
1953
+ /** Completes the managed migration process. The Dataproc Metastore service will switch to using its own backend database after successful migration. */
1954
+ completeMigration(request: {
1955
+ /** V1 error format. */
1956
+ '$.xgafv'?: string;
1957
+ /** OAuth access token. */
1958
+ access_token?: string;
1959
+ /** Data format for response. */
1960
+ alt?: string;
1961
+ /** JSONP */
1962
+ callback?: string;
1963
+ /** Selector specifying which fields to include in a partial response. */
1964
+ fields?: string;
1965
+ /** 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. */
1966
+ key?: string;
1967
+ /** OAuth 2.0 token for the current user. */
1968
+ oauth_token?: string;
1969
+ /** Returns response with indentations and line breaks. */
1970
+ prettyPrint?: boolean;
1971
+ /** 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. */
1972
+ quotaUser?: string;
1973
+ /** Required. The relative resource name of the metastore service to complete the migration to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
1974
+ service: string;
1975
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1976
+ upload_protocol?: string;
1977
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1978
+ uploadType?: string;
1979
+ /** Request body */
1980
+ resource: CompleteMigrationRequest;
1981
+ }): Request<Operation>;
1982
+ completeMigration(
1983
+ request: {
1984
+ /** V1 error format. */
1985
+ '$.xgafv'?: string;
1986
+ /** OAuth access token. */
1987
+ access_token?: string;
1988
+ /** Data format for response. */
1989
+ alt?: string;
1990
+ /** JSONP */
1991
+ callback?: string;
1992
+ /** Selector specifying which fields to include in a partial response. */
1993
+ fields?: string;
1994
+ /** 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. */
1995
+ key?: string;
1996
+ /** OAuth 2.0 token for the current user. */
1997
+ oauth_token?: string;
1998
+ /** Returns response with indentations and line breaks. */
1999
+ prettyPrint?: boolean;
2000
+ /** 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. */
2001
+ quotaUser?: string;
2002
+ /** Required. The relative resource name of the metastore service to complete the migration to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
2003
+ service: string;
2004
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2005
+ upload_protocol?: string;
2006
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2007
+ uploadType?: string;
2008
+ },
2009
+ body: CompleteMigrationRequest
2010
+ ): Request<Operation>;
1753
2011
  /** Creates a metastore service in a project and location. */
1754
2012
  create(request: {
1755
2013
  /** V1 error format. */
@@ -2294,6 +2552,64 @@ declare namespace gapi.client {
2294
2552
  },
2295
2553
  body: SetIamPolicyRequest
2296
2554
  ): Request<Policy>;
2555
+ /** Starts the Managed Migration process. */
2556
+ startMigration(request: {
2557
+ /** V1 error format. */
2558
+ '$.xgafv'?: string;
2559
+ /** OAuth access token. */
2560
+ access_token?: string;
2561
+ /** Data format for response. */
2562
+ alt?: string;
2563
+ /** JSONP */
2564
+ callback?: string;
2565
+ /** Selector specifying which fields to include in a partial response. */
2566
+ fields?: string;
2567
+ /** 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. */
2568
+ key?: string;
2569
+ /** OAuth 2.0 token for the current user. */
2570
+ oauth_token?: string;
2571
+ /** Returns response with indentations and line breaks. */
2572
+ prettyPrint?: boolean;
2573
+ /** 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. */
2574
+ quotaUser?: string;
2575
+ /** Required. The relative resource name of the metastore service to start migrating to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
2576
+ service: string;
2577
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2578
+ upload_protocol?: string;
2579
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2580
+ uploadType?: string;
2581
+ /** Request body */
2582
+ resource: StartMigrationRequest;
2583
+ }): Request<Operation>;
2584
+ startMigration(
2585
+ request: {
2586
+ /** V1 error format. */
2587
+ '$.xgafv'?: string;
2588
+ /** OAuth access token. */
2589
+ access_token?: string;
2590
+ /** Data format for response. */
2591
+ alt?: string;
2592
+ /** JSONP */
2593
+ callback?: string;
2594
+ /** Selector specifying which fields to include in a partial response. */
2595
+ fields?: string;
2596
+ /** 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. */
2597
+ key?: string;
2598
+ /** OAuth 2.0 token for the current user. */
2599
+ oauth_token?: string;
2600
+ /** Returns response with indentations and line breaks. */
2601
+ prettyPrint?: boolean;
2602
+ /** 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. */
2603
+ quotaUser?: string;
2604
+ /** Required. The relative resource name of the metastore service to start migrating to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. */
2605
+ service: string;
2606
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2607
+ upload_protocol?: string;
2608
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2609
+ uploadType?: string;
2610
+ },
2611
+ body: StartMigrationRequest
2612
+ ): Request<Operation>;
2297
2613
  /** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
2298
2614
  testIamPermissions(
2299
2615
  request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.metastore-v1alpha",
3
- "version": "0.0.20240305",
3
+ "version": "0.0.20240325",
4
4
  "description": "TypeScript typings for Dataproc Metastore API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",