@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20240219 → 0.0.20240317
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.
- package/index.d.ts +150 -1
- package/package.json +1 -1
- package/readme.md +16 -0
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://sqladmin.googleapis.com/$discovery/rest?version=v1beta4
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240317
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -38,6 +38,16 @@ declare namespace gapi.client {
|
|
|
38
38
|
/** The allowlisted value for the access control list. */
|
|
39
39
|
value?: string;
|
|
40
40
|
}
|
|
41
|
+
interface AcquireSsrsLeaseContext {
|
|
42
|
+
/** Lease duration needed for the SSRS setup. */
|
|
43
|
+
duration?: string;
|
|
44
|
+
/** The report database to be used for the SSRS setup. */
|
|
45
|
+
reportDatabase?: string;
|
|
46
|
+
/** The username to be used as the service login to connect to the report database for SSRS setup. */
|
|
47
|
+
serviceLogin?: string;
|
|
48
|
+
/** The username to be used as the setup login to connect to the database server for SSRS setup. */
|
|
49
|
+
setupLogin?: string;
|
|
50
|
+
}
|
|
41
51
|
interface AdvancedMachineFeatures {
|
|
42
52
|
/** The number of threads per physical core. */
|
|
43
53
|
threadsPerCore?: number;
|
|
@@ -67,6 +77,8 @@ declare namespace gapi.client {
|
|
|
67
77
|
replicationLogArchivingEnabled?: boolean;
|
|
68
78
|
/** Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`. */
|
|
69
79
|
startTime?: string;
|
|
80
|
+
/** Output only. This value contains the storage location of transactional logs for the database for point-in-time recovery. */
|
|
81
|
+
transactionalLogStorageState?: string;
|
|
70
82
|
/** The number of days of transaction logs we retain for point in time restore, from 1-7. */
|
|
71
83
|
transactionLogRetentionDays?: number;
|
|
72
84
|
}
|
|
@@ -233,6 +245,8 @@ declare namespace gapi.client {
|
|
|
233
245
|
};
|
|
234
246
|
/** The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance. */
|
|
235
247
|
gceZone?: string;
|
|
248
|
+
/** Gemini instance configuration. */
|
|
249
|
+
geminiConfig?: GeminiInstanceConfig;
|
|
236
250
|
/** The instance type. */
|
|
237
251
|
instanceType?: string;
|
|
238
252
|
/** The assigned IP addresses for the instance. */
|
|
@@ -265,6 +279,8 @@ declare namespace gapi.client {
|
|
|
265
279
|
replicaConfiguration?: ReplicaConfiguration;
|
|
266
280
|
/** The replicas of the instance. */
|
|
267
281
|
replicaNames?: string[];
|
|
282
|
+
/** The pair of a primary instance and disaster recovery (DR) replica. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance has regional failure. */
|
|
283
|
+
replicationCluster?: ReplicationCluster;
|
|
268
284
|
/** Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances. */
|
|
269
285
|
rootPassword?: string;
|
|
270
286
|
/** The status indicating if instance satisfiesPzs. Reserved for future use. */
|
|
@@ -447,6 +463,20 @@ declare namespace gapi.client {
|
|
|
447
463
|
/** This is always `sql#flagsList`. */
|
|
448
464
|
kind?: string;
|
|
449
465
|
}
|
|
466
|
+
interface GeminiInstanceConfig {
|
|
467
|
+
/** Output only. Whether active query is enabled. */
|
|
468
|
+
activeQueryEnabled?: boolean;
|
|
469
|
+
/** Output only. Whether Gemini is enabled. */
|
|
470
|
+
entitled?: boolean;
|
|
471
|
+
/** Output only. Whether flag recommender is enabled. */
|
|
472
|
+
flagRecommenderEnabled?: boolean;
|
|
473
|
+
/** Output only. Whether vacuum management is enabled. */
|
|
474
|
+
googleVacuumMgmtEnabled?: boolean;
|
|
475
|
+
/** Output only. Whether index advisor is enabled. */
|
|
476
|
+
indexAdvisorEnabled?: boolean;
|
|
477
|
+
/** Output only. Whether oom session cancel is enabled. */
|
|
478
|
+
oomSessionCancelEnabled?: boolean;
|
|
479
|
+
}
|
|
450
480
|
interface GenerateEphemeralCertRequest {
|
|
451
481
|
/** Optional. Access token to include in the signed certificate. */
|
|
452
482
|
access_token?: string;
|
|
@@ -531,6 +561,10 @@ declare namespace gapi.client {
|
|
|
531
561
|
/** The region of the Cloud SQL instance being referenced. */
|
|
532
562
|
region?: string;
|
|
533
563
|
}
|
|
564
|
+
interface InstancesAcquireSsrsLeaseRequest {
|
|
565
|
+
/** Contains details about the acquire SSRS lease operation. */
|
|
566
|
+
acquireSsrsLeaseContext?: AcquireSsrsLeaseContext;
|
|
567
|
+
}
|
|
534
568
|
interface InstancesCloneRequest {
|
|
535
569
|
/** Contains details about the clone operation. */
|
|
536
570
|
cloneContext?: CloneContext;
|
|
@@ -683,6 +717,8 @@ declare namespace gapi.client {
|
|
|
683
717
|
username?: string;
|
|
684
718
|
}
|
|
685
719
|
interface Operation {
|
|
720
|
+
/** The context for acquire SSRS lease operation, if applicable. */
|
|
721
|
+
acquireSsrsLeaseContext?: AcquireSsrsLeaseContext;
|
|
686
722
|
/** An Admin API warning message. */
|
|
687
723
|
apiWarning?: ApiWarning;
|
|
688
724
|
/** The context for backup operation, if applicable. */
|
|
@@ -797,6 +833,12 @@ declare namespace gapi.client {
|
|
|
797
833
|
/** MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory. */
|
|
798
834
|
mysqlReplicaConfiguration?: MySqlReplicaConfiguration;
|
|
799
835
|
}
|
|
836
|
+
interface ReplicationCluster {
|
|
837
|
+
/** Output only. read-only field that indicates if the replica is a dr_replica; not set for a primary. */
|
|
838
|
+
drReplica?: boolean;
|
|
839
|
+
/** Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Users can set this field to set a designated DR replica for a primary. Removing this field removes the DR replica. */
|
|
840
|
+
failoverDrReplicaName?: string;
|
|
841
|
+
}
|
|
800
842
|
interface Reschedule {
|
|
801
843
|
/** Required. The type of the reschedule. */
|
|
802
844
|
rescheduleType?: string;
|
|
@@ -854,6 +896,8 @@ declare namespace gapi.client {
|
|
|
854
896
|
denyMaintenancePeriods?: DenyMaintenancePeriod[];
|
|
855
897
|
/** Optional. The edition of the instance. */
|
|
856
898
|
edition?: string;
|
|
899
|
+
/** Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for PostgreSQL instances. */
|
|
900
|
+
enableGoogleMlIntegration?: boolean;
|
|
857
901
|
/** Insights configuration, for now relevant only for Postgres. */
|
|
858
902
|
insightsConfig?: InsightsConfig;
|
|
859
903
|
/** The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances. */
|
|
@@ -899,6 +943,10 @@ declare namespace gapi.client {
|
|
|
899
943
|
/** Identifies the specific error that occurred. */
|
|
900
944
|
type?: string;
|
|
901
945
|
}
|
|
946
|
+
interface SqlInstancesAcquireSsrsLeaseResponse {
|
|
947
|
+
/** The unique identifier for this operation. */
|
|
948
|
+
operationId?: string;
|
|
949
|
+
}
|
|
902
950
|
interface SqlInstancesGetDiskShrinkConfigResponse {
|
|
903
951
|
/** This is always `sql#getDiskShrinkConfig`. */
|
|
904
952
|
kind?: string;
|
|
@@ -913,12 +961,18 @@ declare namespace gapi.client {
|
|
|
913
961
|
/** Timestamp, identifies the latest recovery time of the source instance. */
|
|
914
962
|
latestRecoveryTime?: string;
|
|
915
963
|
}
|
|
964
|
+
interface SqlInstancesReleaseSsrsLeaseResponse {
|
|
965
|
+
/** The operation ID. */
|
|
966
|
+
operationId?: string;
|
|
967
|
+
}
|
|
916
968
|
interface SqlInstancesRescheduleMaintenanceRequestBody {
|
|
917
969
|
/** Required. The type of the reschedule the user wants. */
|
|
918
970
|
reschedule?: Reschedule;
|
|
919
971
|
}
|
|
920
972
|
interface SqlInstancesResetReplicaSizeRequest {}
|
|
921
973
|
interface SqlInstancesStartExternalSyncRequest {
|
|
974
|
+
/** Optional. MigrationType decides if the migration is a physical file based migration or logical migration. */
|
|
975
|
+
migrationType?: string;
|
|
922
976
|
/** MySQL-specific settings for start external sync. */
|
|
923
977
|
mysqlSyncConfig?: MySqlSyncConfig;
|
|
924
978
|
/** Whether to skip the verification step (VESS). */
|
|
@@ -929,10 +983,14 @@ declare namespace gapi.client {
|
|
|
929
983
|
syncParallelLevel?: string;
|
|
930
984
|
}
|
|
931
985
|
interface SqlInstancesVerifyExternalSyncSettingsRequest {
|
|
986
|
+
/** Optional. MigrationType field decides if the migration is a physical file based migration or logical migration */
|
|
987
|
+
migrationType?: string;
|
|
932
988
|
/** Optional. MySQL-specific settings for start external sync. */
|
|
933
989
|
mysqlSyncConfig?: MySqlSyncConfig;
|
|
934
990
|
/** External sync mode */
|
|
935
991
|
syncMode?: string;
|
|
992
|
+
/** Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL. */
|
|
993
|
+
syncParallelLevel?: string;
|
|
936
994
|
/** Flag to enable verifying connection only */
|
|
937
995
|
verifyConnectionOnly?: boolean;
|
|
938
996
|
/** Optional. Flag to verify settings required by replication setup only */
|
|
@@ -1679,6 +1737,68 @@ declare namespace gapi.client {
|
|
|
1679
1737
|
}): Request<FlagsListResponse>;
|
|
1680
1738
|
}
|
|
1681
1739
|
interface InstancesResource {
|
|
1740
|
+
/** Acquire a lease for the setup of SQL Server Reporting Services (SSRS). */
|
|
1741
|
+
acquireSsrsLease(request: {
|
|
1742
|
+
/** V1 error format. */
|
|
1743
|
+
'$.xgafv'?: string;
|
|
1744
|
+
/** OAuth access token. */
|
|
1745
|
+
access_token?: string;
|
|
1746
|
+
/** Data format for response. */
|
|
1747
|
+
alt?: string;
|
|
1748
|
+
/** JSONP */
|
|
1749
|
+
callback?: string;
|
|
1750
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1751
|
+
fields?: string;
|
|
1752
|
+
/** Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id). */
|
|
1753
|
+
instance: string;
|
|
1754
|
+
/** 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. */
|
|
1755
|
+
key?: string;
|
|
1756
|
+
/** OAuth 2.0 token for the current user. */
|
|
1757
|
+
oauth_token?: string;
|
|
1758
|
+
/** Returns response with indentations and line breaks. */
|
|
1759
|
+
prettyPrint?: boolean;
|
|
1760
|
+
/** Required. ID of the project that contains the instance (Example: project-id). */
|
|
1761
|
+
project: string;
|
|
1762
|
+
/** 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. */
|
|
1763
|
+
quotaUser?: string;
|
|
1764
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1765
|
+
upload_protocol?: string;
|
|
1766
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1767
|
+
uploadType?: string;
|
|
1768
|
+
/** Request body */
|
|
1769
|
+
resource: InstancesAcquireSsrsLeaseRequest;
|
|
1770
|
+
}): Request<SqlInstancesAcquireSsrsLeaseResponse>;
|
|
1771
|
+
acquireSsrsLease(
|
|
1772
|
+
request: {
|
|
1773
|
+
/** V1 error format. */
|
|
1774
|
+
'$.xgafv'?: string;
|
|
1775
|
+
/** OAuth access token. */
|
|
1776
|
+
access_token?: string;
|
|
1777
|
+
/** Data format for response. */
|
|
1778
|
+
alt?: string;
|
|
1779
|
+
/** JSONP */
|
|
1780
|
+
callback?: string;
|
|
1781
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1782
|
+
fields?: string;
|
|
1783
|
+
/** Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id). */
|
|
1784
|
+
instance: string;
|
|
1785
|
+
/** 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. */
|
|
1786
|
+
key?: string;
|
|
1787
|
+
/** OAuth 2.0 token for the current user. */
|
|
1788
|
+
oauth_token?: string;
|
|
1789
|
+
/** Returns response with indentations and line breaks. */
|
|
1790
|
+
prettyPrint?: boolean;
|
|
1791
|
+
/** Required. ID of the project that contains the instance (Example: project-id). */
|
|
1792
|
+
project: string;
|
|
1793
|
+
/** 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. */
|
|
1794
|
+
quotaUser?: string;
|
|
1795
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1796
|
+
upload_protocol?: string;
|
|
1797
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1798
|
+
uploadType?: string;
|
|
1799
|
+
},
|
|
1800
|
+
body: InstancesAcquireSsrsLeaseRequest
|
|
1801
|
+
): Request<SqlInstancesAcquireSsrsLeaseResponse>;
|
|
1682
1802
|
/** Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. */
|
|
1683
1803
|
addServerCa(request?: {
|
|
1684
1804
|
/** V1 error format. */
|
|
@@ -2413,6 +2533,35 @@ declare namespace gapi.client {
|
|
|
2413
2533
|
},
|
|
2414
2534
|
body: InstancesReencryptRequest
|
|
2415
2535
|
): Request<Operation>;
|
|
2536
|
+
/** Release a lease for the setup of SQL Server Reporting Services (SSRS). */
|
|
2537
|
+
releaseSsrsLease(request?: {
|
|
2538
|
+
/** V1 error format. */
|
|
2539
|
+
'$.xgafv'?: string;
|
|
2540
|
+
/** OAuth access token. */
|
|
2541
|
+
access_token?: string;
|
|
2542
|
+
/** Data format for response. */
|
|
2543
|
+
alt?: string;
|
|
2544
|
+
/** JSONP */
|
|
2545
|
+
callback?: string;
|
|
2546
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2547
|
+
fields?: string;
|
|
2548
|
+
/** Required. The Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id). */
|
|
2549
|
+
instance: string;
|
|
2550
|
+
/** 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. */
|
|
2551
|
+
key?: string;
|
|
2552
|
+
/** OAuth 2.0 token for the current user. */
|
|
2553
|
+
oauth_token?: string;
|
|
2554
|
+
/** Returns response with indentations and line breaks. */
|
|
2555
|
+
prettyPrint?: boolean;
|
|
2556
|
+
/** Required. The ID of the project that contains the instance (Example: project-id). */
|
|
2557
|
+
project: string;
|
|
2558
|
+
/** 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. */
|
|
2559
|
+
quotaUser?: string;
|
|
2560
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2561
|
+
upload_protocol?: string;
|
|
2562
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2563
|
+
uploadType?: string;
|
|
2564
|
+
}): Request<SqlInstancesReleaseSsrsLeaseResponse>;
|
|
2416
2565
|
/** Deletes all client certificates and generates a new server SSL certificate for the instance. */
|
|
2417
2566
|
resetSslConfig(request?: {
|
|
2418
2567
|
/** V1 error format. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -176,6 +176,14 @@ Lists all available database flags for Cloud SQL instances.
|
|
|
176
176
|
*/
|
|
177
177
|
await gapi.client.sql.flags.list({});
|
|
178
178
|
|
|
179
|
+
/*
|
|
180
|
+
Acquire a lease for the setup of SQL Server Reporting Services (SSRS).
|
|
181
|
+
*/
|
|
182
|
+
await gapi.client.sql.instances.acquireSsrsLease({
|
|
183
|
+
instance: 'instance',
|
|
184
|
+
project: 'project',
|
|
185
|
+
});
|
|
186
|
+
|
|
179
187
|
/*
|
|
180
188
|
Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in.
|
|
181
189
|
*/
|
|
@@ -287,6 +295,14 @@ await gapi.client.sql.instances.reencrypt({
|
|
|
287
295
|
project: 'project',
|
|
288
296
|
});
|
|
289
297
|
|
|
298
|
+
/*
|
|
299
|
+
Release a lease for the setup of SQL Server Reporting Services (SSRS).
|
|
300
|
+
*/
|
|
301
|
+
await gapi.client.sql.instances.releaseSsrsLease({
|
|
302
|
+
instance: 'instance',
|
|
303
|
+
project: 'project',
|
|
304
|
+
});
|
|
305
|
+
|
|
290
306
|
/*
|
|
291
307
|
Deletes all client certificates and generates a new server SSL certificate for the instance.
|
|
292
308
|
*/
|