@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20240216 → 0.0.20240304

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 (3) hide show
  1. package/index.d.ts +120 -1
  2. package/package.json +1 -1
  3. 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: 20240216
12
+ // Revision: 20240304
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;
@@ -526,6 +536,10 @@ declare namespace gapi.client {
526
536
  /** The region of the Cloud SQL instance being referenced. */
527
537
  region?: string;
528
538
  }
539
+ interface InstancesAcquireSsrsLeaseRequest {
540
+ /** Contains details about the acquire SSRS lease operation. */
541
+ acquireSsrsLeaseContext?: AcquireSsrsLeaseContext;
542
+ }
529
543
  interface InstancesCloneRequest {
530
544
  /** Contains details about the clone operation. */
531
545
  cloneContext?: CloneContext;
@@ -678,6 +692,8 @@ declare namespace gapi.client {
678
692
  username?: string;
679
693
  }
680
694
  interface Operation {
695
+ /** The context for acquire SSRS lease operation, if applicable. */
696
+ acquireSsrsLeaseContext?: AcquireSsrsLeaseContext;
681
697
  /** An Admin API warning message. */
682
698
  apiWarning?: ApiWarning;
683
699
  /** The context for backup operation, if applicable. */
@@ -849,6 +865,8 @@ declare namespace gapi.client {
849
865
  denyMaintenancePeriods?: DenyMaintenancePeriod[];
850
866
  /** Optional. The edition of the instance. */
851
867
  edition?: string;
868
+ /** Optional. Configuration to enable Cloud SQL Vertex AI Integration */
869
+ enableGoogleMlIntegration?: boolean;
852
870
  /** Insights configuration, for now relevant only for Postgres. */
853
871
  insightsConfig?: InsightsConfig;
854
872
  /** 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 +912,10 @@ declare namespace gapi.client {
894
912
  /** Identifies the specific error that occurred. */
895
913
  type?: string;
896
914
  }
915
+ interface SqlInstancesAcquireSsrsLeaseResponse {
916
+ /** The unique identifier for this operation. */
917
+ operationId?: string;
918
+ }
897
919
  interface SqlInstancesGetDiskShrinkConfigResponse {
898
920
  /** This is always `sql#getDiskShrinkConfig`. */
899
921
  kind?: string;
@@ -908,6 +930,10 @@ declare namespace gapi.client {
908
930
  /** Timestamp, identifies the latest recovery time of the source instance. */
909
931
  latestRecoveryTime?: string;
910
932
  }
933
+ interface SqlInstancesReleaseSsrsLeaseResponse {
934
+ /** The unique identifier for this operation. */
935
+ operationId?: string;
936
+ }
911
937
  interface SqlInstancesRescheduleMaintenanceRequestBody {
912
938
  /** Required. The type of the reschedule the user wants. */
913
939
  reschedule?: Reschedule;
@@ -928,6 +954,8 @@ declare namespace gapi.client {
928
954
  mysqlSyncConfig?: MySqlSyncConfig;
929
955
  /** External sync mode */
930
956
  syncMode?: string;
957
+ /** Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL. */
958
+ syncParallelLevel?: string;
931
959
  /** Flag to enable verifying connection only */
932
960
  verifyConnectionOnly?: boolean;
933
961
  /** Optional. Flag to verify settings required by replication setup only */
@@ -1674,6 +1702,68 @@ declare namespace gapi.client {
1674
1702
  }): Request<FlagsListResponse>;
1675
1703
  }
1676
1704
  interface InstancesResource {
1705
+ /** Acquire a lease for the setup of SQL Server Reporting Services (SSRS). */
1706
+ acquireSsrsLease(request: {
1707
+ /** V1 error format. */
1708
+ '$.xgafv'?: string;
1709
+ /** OAuth access token. */
1710
+ access_token?: string;
1711
+ /** Data format for response. */
1712
+ alt?: string;
1713
+ /** JSONP */
1714
+ callback?: string;
1715
+ /** Selector specifying which fields to include in a partial response. */
1716
+ fields?: string;
1717
+ /** 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). */
1718
+ instance: string;
1719
+ /** 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. */
1720
+ key?: string;
1721
+ /** OAuth 2.0 token for the current user. */
1722
+ oauth_token?: string;
1723
+ /** Returns response with indentations and line breaks. */
1724
+ prettyPrint?: boolean;
1725
+ /** Required. Project ID of the project that contains the instance (Example: project-id). */
1726
+ project: string;
1727
+ /** 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. */
1728
+ quotaUser?: string;
1729
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1730
+ upload_protocol?: string;
1731
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1732
+ uploadType?: string;
1733
+ /** Request body */
1734
+ resource: InstancesAcquireSsrsLeaseRequest;
1735
+ }): Request<SqlInstancesAcquireSsrsLeaseResponse>;
1736
+ acquireSsrsLease(
1737
+ request: {
1738
+ /** V1 error format. */
1739
+ '$.xgafv'?: string;
1740
+ /** OAuth access token. */
1741
+ access_token?: string;
1742
+ /** Data format for response. */
1743
+ alt?: string;
1744
+ /** JSONP */
1745
+ callback?: string;
1746
+ /** Selector specifying which fields to include in a partial response. */
1747
+ fields?: string;
1748
+ /** 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). */
1749
+ instance: string;
1750
+ /** 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. */
1751
+ key?: string;
1752
+ /** OAuth 2.0 token for the current user. */
1753
+ oauth_token?: string;
1754
+ /** Returns response with indentations and line breaks. */
1755
+ prettyPrint?: boolean;
1756
+ /** Required. Project ID of the project that contains the instance (Example: project-id). */
1757
+ project: string;
1758
+ /** 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. */
1759
+ quotaUser?: string;
1760
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1761
+ upload_protocol?: string;
1762
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1763
+ uploadType?: string;
1764
+ },
1765
+ body: InstancesAcquireSsrsLeaseRequest
1766
+ ): Request<SqlInstancesAcquireSsrsLeaseResponse>;
1677
1767
  /** 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
1768
  addServerCa(request?: {
1679
1769
  /** V1 error format. */
@@ -2408,6 +2498,35 @@ declare namespace gapi.client {
2408
2498
  },
2409
2499
  body: InstancesReencryptRequest
2410
2500
  ): Request<Operation>;
2501
+ /** Release a lease for the setup of SQL Server Reporting Services (SSRS). */
2502
+ releaseSsrsLease(request?: {
2503
+ /** V1 error format. */
2504
+ '$.xgafv'?: string;
2505
+ /** OAuth access token. */
2506
+ access_token?: string;
2507
+ /** Data format for response. */
2508
+ alt?: string;
2509
+ /** JSONP */
2510
+ callback?: string;
2511
+ /** Selector specifying which fields to include in a partial response. */
2512
+ fields?: string;
2513
+ /** 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. */
2514
+ instance: string;
2515
+ /** 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. */
2516
+ key?: string;
2517
+ /** OAuth 2.0 token for the current user. */
2518
+ oauth_token?: string;
2519
+ /** Returns response with indentations and line breaks. */
2520
+ prettyPrint?: boolean;
2521
+ /** Required. The project ID that contains the instance. */
2522
+ project: string;
2523
+ /** 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. */
2524
+ quotaUser?: string;
2525
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2526
+ upload_protocol?: string;
2527
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2528
+ uploadType?: string;
2529
+ }): Request<SqlInstancesReleaseSsrsLeaseResponse>;
2411
2530
  /** Deletes all client certificates and generates a new server SSL certificate for the instance. */
2412
2531
  resetSslConfig(request?: {
2413
2532
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1",
3
- "version": "0.0.20240216",
3
+ "version": "0.0.20240304",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1",
5
5
  "repository": {
6
6
  "type": "git",
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
  */