@maxim_mazurok/gapi.client.sqladmin-v1 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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240317
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -34,6 +34,16 @@ declare namespace gapi.client {
|
|
|
34
34
|
/** The allowlisted value for the access control list. */
|
|
35
35
|
value?: string;
|
|
36
36
|
}
|
|
37
|
+
interface AcquireSsrsLeaseContext {
|
|
38
|
+
/** Lease duration needed for SSRS setup. */
|
|
39
|
+
duration?: string;
|
|
40
|
+
/** The report database to be used for SSRS setup. */
|
|
41
|
+
reportDatabase?: string;
|
|
42
|
+
/** The username to be used as the service login to connect to the report database for SSRS setup. */
|
|
43
|
+
serviceLogin?: string;
|
|
44
|
+
/** The username to be used as the setup login to connect to the database server for SSRS setup. */
|
|
45
|
+
setupLogin?: string;
|
|
46
|
+
}
|
|
37
47
|
interface AdvancedMachineFeatures {
|
|
38
48
|
/** The number of threads per physical core. */
|
|
39
49
|
threadsPerCore?: number;
|
|
@@ -63,6 +73,8 @@ declare namespace gapi.client {
|
|
|
63
73
|
replicationLogArchivingEnabled?: boolean;
|
|
64
74
|
/** Start time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`. */
|
|
65
75
|
startTime?: string;
|
|
76
|
+
/** Output only. This value contains the storage location of transactional logs for the database for point-in-time recovery. */
|
|
77
|
+
transactionalLogStorageState?: string;
|
|
66
78
|
/** The number of days of transaction logs we retain for point in time restore, from 1-7. */
|
|
67
79
|
transactionLogRetentionDays?: number;
|
|
68
80
|
}
|
|
@@ -229,6 +241,8 @@ declare namespace gapi.client {
|
|
|
229
241
|
};
|
|
230
242
|
/** 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. */
|
|
231
243
|
gceZone?: string;
|
|
244
|
+
/** Gemini configuration. */
|
|
245
|
+
geminiConfig?: GeminiInstanceConfig;
|
|
232
246
|
/** The instance type. */
|
|
233
247
|
instanceType?: string;
|
|
234
248
|
/** The assigned IP addresses for the instance. */
|
|
@@ -261,6 +275,8 @@ declare namespace gapi.client {
|
|
|
261
275
|
replicaConfiguration?: ReplicaConfiguration;
|
|
262
276
|
/** The replicas of the instance. */
|
|
263
277
|
replicaNames?: string[];
|
|
278
|
+
/** Optional. 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. */
|
|
279
|
+
replicationCluster?: ReplicationCluster;
|
|
264
280
|
/** Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances. */
|
|
265
281
|
rootPassword?: string;
|
|
266
282
|
/** The status indicating if instance satisfiesPzs. Reserved for future use. */
|
|
@@ -442,6 +458,20 @@ declare namespace gapi.client {
|
|
|
442
458
|
/** This is always `sql#flagsList`. */
|
|
443
459
|
kind?: string;
|
|
444
460
|
}
|
|
461
|
+
interface GeminiInstanceConfig {
|
|
462
|
+
/** Output only. Whether active query is enabled. */
|
|
463
|
+
activeQueryEnabled?: boolean;
|
|
464
|
+
/** Output only. Whether gemini is enabled. */
|
|
465
|
+
entitled?: boolean;
|
|
466
|
+
/** Output only. Whether flag recommender is enabled. */
|
|
467
|
+
flagRecommenderEnabled?: boolean;
|
|
468
|
+
/** Output only. Whether vacuum management is enabled. */
|
|
469
|
+
googleVacuumMgmtEnabled?: boolean;
|
|
470
|
+
/** Output only. Whether index advisor is enabled. */
|
|
471
|
+
indexAdvisorEnabled?: boolean;
|
|
472
|
+
/** Output only. Whether oom session cancel is enabled. */
|
|
473
|
+
oomSessionCancelEnabled?: boolean;
|
|
474
|
+
}
|
|
445
475
|
interface GenerateEphemeralCertRequest {
|
|
446
476
|
/** Optional. Access token to include in the signed certificate. */
|
|
447
477
|
access_token?: string;
|
|
@@ -526,6 +556,10 @@ declare namespace gapi.client {
|
|
|
526
556
|
/** The region of the Cloud SQL instance being referenced. */
|
|
527
557
|
region?: string;
|
|
528
558
|
}
|
|
559
|
+
interface InstancesAcquireSsrsLeaseRequest {
|
|
560
|
+
/** Contains details about the acquire SSRS lease operation. */
|
|
561
|
+
acquireSsrsLeaseContext?: AcquireSsrsLeaseContext;
|
|
562
|
+
}
|
|
529
563
|
interface InstancesCloneRequest {
|
|
530
564
|
/** Contains details about the clone operation. */
|
|
531
565
|
cloneContext?: CloneContext;
|
|
@@ -678,6 +712,8 @@ declare namespace gapi.client {
|
|
|
678
712
|
username?: string;
|
|
679
713
|
}
|
|
680
714
|
interface Operation {
|
|
715
|
+
/** The context for acquire SSRS lease operation, if applicable. */
|
|
716
|
+
acquireSsrsLeaseContext?: AcquireSsrsLeaseContext;
|
|
681
717
|
/** An Admin API warning message. */
|
|
682
718
|
apiWarning?: ApiWarning;
|
|
683
719
|
/** The context for backup operation, if applicable. */
|
|
@@ -792,6 +828,12 @@ declare namespace gapi.client {
|
|
|
792
828
|
/** 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. */
|
|
793
829
|
mysqlReplicaConfiguration?: MySqlReplicaConfiguration;
|
|
794
830
|
}
|
|
831
|
+
interface ReplicationCluster {
|
|
832
|
+
/** Output only. read-only field that indicates if the replica is a dr_replica; not set for a primary. */
|
|
833
|
+
drReplica?: boolean;
|
|
834
|
+
/** 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. */
|
|
835
|
+
failoverDrReplicaName?: string;
|
|
836
|
+
}
|
|
795
837
|
interface Reschedule {
|
|
796
838
|
/** Required. The type of the reschedule. */
|
|
797
839
|
rescheduleType?: string;
|
|
@@ -849,6 +891,8 @@ declare namespace gapi.client {
|
|
|
849
891
|
denyMaintenancePeriods?: DenyMaintenancePeriod[];
|
|
850
892
|
/** Optional. The edition of the instance. */
|
|
851
893
|
edition?: string;
|
|
894
|
+
/** 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. */
|
|
895
|
+
enableGoogleMlIntegration?: boolean;
|
|
852
896
|
/** Insights configuration, for now relevant only for Postgres. */
|
|
853
897
|
insightsConfig?: InsightsConfig;
|
|
854
898
|
/** 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. */
|
|
@@ -894,6 +938,10 @@ declare namespace gapi.client {
|
|
|
894
938
|
/** Identifies the specific error that occurred. */
|
|
895
939
|
type?: string;
|
|
896
940
|
}
|
|
941
|
+
interface SqlInstancesAcquireSsrsLeaseResponse {
|
|
942
|
+
/** The unique identifier for this operation. */
|
|
943
|
+
operationId?: string;
|
|
944
|
+
}
|
|
897
945
|
interface SqlInstancesGetDiskShrinkConfigResponse {
|
|
898
946
|
/** This is always `sql#getDiskShrinkConfig`. */
|
|
899
947
|
kind?: string;
|
|
@@ -908,12 +956,18 @@ declare namespace gapi.client {
|
|
|
908
956
|
/** Timestamp, identifies the latest recovery time of the source instance. */
|
|
909
957
|
latestRecoveryTime?: string;
|
|
910
958
|
}
|
|
959
|
+
interface SqlInstancesReleaseSsrsLeaseResponse {
|
|
960
|
+
/** The unique identifier for this operation. */
|
|
961
|
+
operationId?: string;
|
|
962
|
+
}
|
|
911
963
|
interface SqlInstancesRescheduleMaintenanceRequestBody {
|
|
912
964
|
/** Required. The type of the reschedule the user wants. */
|
|
913
965
|
reschedule?: Reschedule;
|
|
914
966
|
}
|
|
915
967
|
interface SqlInstancesResetReplicaSizeRequest {}
|
|
916
968
|
interface SqlInstancesStartExternalSyncRequest {
|
|
969
|
+
/** Optional. MigrationType decides if the migration is a physical file based migration or logical migration. */
|
|
970
|
+
migrationType?: string;
|
|
917
971
|
/** MySQL-specific settings for start external sync. */
|
|
918
972
|
mysqlSyncConfig?: MySqlSyncConfig;
|
|
919
973
|
/** Whether to skip the verification step (VESS). */
|
|
@@ -924,10 +978,14 @@ declare namespace gapi.client {
|
|
|
924
978
|
syncParallelLevel?: string;
|
|
925
979
|
}
|
|
926
980
|
interface SqlInstancesVerifyExternalSyncSettingsRequest {
|
|
981
|
+
/** Optional. MigrationType decides if the migration is a physical file based migration or logical migration */
|
|
982
|
+
migrationType?: string;
|
|
927
983
|
/** Optional. MySQL-specific settings for start external sync. */
|
|
928
984
|
mysqlSyncConfig?: MySqlSyncConfig;
|
|
929
985
|
/** External sync mode */
|
|
930
986
|
syncMode?: string;
|
|
987
|
+
/** Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL. */
|
|
988
|
+
syncParallelLevel?: string;
|
|
931
989
|
/** Flag to enable verifying connection only */
|
|
932
990
|
verifyConnectionOnly?: boolean;
|
|
933
991
|
/** Optional. Flag to verify settings required by replication setup only */
|
|
@@ -1674,6 +1732,68 @@ declare namespace gapi.client {
|
|
|
1674
1732
|
}): Request<FlagsListResponse>;
|
|
1675
1733
|
}
|
|
1676
1734
|
interface InstancesResource {
|
|
1735
|
+
/** Acquire a lease for the setup of SQL Server Reporting Services (SSRS). */
|
|
1736
|
+
acquireSsrsLease(request: {
|
|
1737
|
+
/** V1 error format. */
|
|
1738
|
+
'$.xgafv'?: string;
|
|
1739
|
+
/** OAuth access token. */
|
|
1740
|
+
access_token?: string;
|
|
1741
|
+
/** Data format for response. */
|
|
1742
|
+
alt?: string;
|
|
1743
|
+
/** JSONP */
|
|
1744
|
+
callback?: string;
|
|
1745
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1746
|
+
fields?: string;
|
|
1747
|
+
/** 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). */
|
|
1748
|
+
instance: string;
|
|
1749
|
+
/** 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. */
|
|
1750
|
+
key?: string;
|
|
1751
|
+
/** OAuth 2.0 token for the current user. */
|
|
1752
|
+
oauth_token?: string;
|
|
1753
|
+
/** Returns response with indentations and line breaks. */
|
|
1754
|
+
prettyPrint?: boolean;
|
|
1755
|
+
/** Required. Project ID of the project that contains the instance (Example: project-id). */
|
|
1756
|
+
project: string;
|
|
1757
|
+
/** 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. */
|
|
1758
|
+
quotaUser?: string;
|
|
1759
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1760
|
+
upload_protocol?: string;
|
|
1761
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1762
|
+
uploadType?: string;
|
|
1763
|
+
/** Request body */
|
|
1764
|
+
resource: InstancesAcquireSsrsLeaseRequest;
|
|
1765
|
+
}): Request<SqlInstancesAcquireSsrsLeaseResponse>;
|
|
1766
|
+
acquireSsrsLease(
|
|
1767
|
+
request: {
|
|
1768
|
+
/** V1 error format. */
|
|
1769
|
+
'$.xgafv'?: string;
|
|
1770
|
+
/** OAuth access token. */
|
|
1771
|
+
access_token?: string;
|
|
1772
|
+
/** Data format for response. */
|
|
1773
|
+
alt?: string;
|
|
1774
|
+
/** JSONP */
|
|
1775
|
+
callback?: string;
|
|
1776
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1777
|
+
fields?: string;
|
|
1778
|
+
/** 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). */
|
|
1779
|
+
instance: string;
|
|
1780
|
+
/** 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. */
|
|
1781
|
+
key?: string;
|
|
1782
|
+
/** OAuth 2.0 token for the current user. */
|
|
1783
|
+
oauth_token?: string;
|
|
1784
|
+
/** Returns response with indentations and line breaks. */
|
|
1785
|
+
prettyPrint?: boolean;
|
|
1786
|
+
/** Required. Project ID of the project that contains the instance (Example: project-id). */
|
|
1787
|
+
project: string;
|
|
1788
|
+
/** 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. */
|
|
1789
|
+
quotaUser?: string;
|
|
1790
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1791
|
+
upload_protocol?: string;
|
|
1792
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1793
|
+
uploadType?: string;
|
|
1794
|
+
},
|
|
1795
|
+
body: InstancesAcquireSsrsLeaseRequest
|
|
1796
|
+
): Request<SqlInstancesAcquireSsrsLeaseResponse>;
|
|
1677
1797
|
/** Adds 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. */
|
|
1678
1798
|
addServerCa(request?: {
|
|
1679
1799
|
/** V1 error format. */
|
|
@@ -2408,6 +2528,35 @@ declare namespace gapi.client {
|
|
|
2408
2528
|
},
|
|
2409
2529
|
body: InstancesReencryptRequest
|
|
2410
2530
|
): Request<Operation>;
|
|
2531
|
+
/** Release a lease for the setup of SQL Server Reporting Services (SSRS). */
|
|
2532
|
+
releaseSsrsLease(request?: {
|
|
2533
|
+
/** V1 error format. */
|
|
2534
|
+
'$.xgafv'?: string;
|
|
2535
|
+
/** OAuth access token. */
|
|
2536
|
+
access_token?: string;
|
|
2537
|
+
/** Data format for response. */
|
|
2538
|
+
alt?: string;
|
|
2539
|
+
/** JSONP */
|
|
2540
|
+
callback?: string;
|
|
2541
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2542
|
+
fields?: string;
|
|
2543
|
+
/** Required. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters. */
|
|
2544
|
+
instance: string;
|
|
2545
|
+
/** 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. */
|
|
2546
|
+
key?: string;
|
|
2547
|
+
/** OAuth 2.0 token for the current user. */
|
|
2548
|
+
oauth_token?: string;
|
|
2549
|
+
/** Returns response with indentations and line breaks. */
|
|
2550
|
+
prettyPrint?: boolean;
|
|
2551
|
+
/** Required. The project ID that contains the instance. */
|
|
2552
|
+
project: string;
|
|
2553
|
+
/** 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. */
|
|
2554
|
+
quotaUser?: string;
|
|
2555
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2556
|
+
upload_protocol?: string;
|
|
2557
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2558
|
+
uploadType?: string;
|
|
2559
|
+
}): Request<SqlInstancesReleaseSsrsLeaseResponse>;
|
|
2411
2560
|
/** Deletes all client certificates and generates a new server SSL certificate for the instance. */
|
|
2412
2561
|
resetSslConfig(request?: {
|
|
2413
2562
|
/** 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
|
Adds 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
|
*/
|