@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20240219 → 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=v1beta4
12
- // Revision: 20240219
12
+ // Revision: 20240304
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;
@@ -531,6 +541,10 @@ declare namespace gapi.client {
531
541
  /** The region of the Cloud SQL instance being referenced. */
532
542
  region?: string;
533
543
  }
544
+ interface InstancesAcquireSsrsLeaseRequest {
545
+ /** Contains details about the acquire SSRS lease operation. */
546
+ acquireSsrsLeaseContext?: AcquireSsrsLeaseContext;
547
+ }
534
548
  interface InstancesCloneRequest {
535
549
  /** Contains details about the clone operation. */
536
550
  cloneContext?: CloneContext;
@@ -683,6 +697,8 @@ declare namespace gapi.client {
683
697
  username?: string;
684
698
  }
685
699
  interface Operation {
700
+ /** The context for acquire SSRS lease operation, if applicable. */
701
+ acquireSsrsLeaseContext?: AcquireSsrsLeaseContext;
686
702
  /** An Admin API warning message. */
687
703
  apiWarning?: ApiWarning;
688
704
  /** The context for backup operation, if applicable. */
@@ -854,6 +870,8 @@ declare namespace gapi.client {
854
870
  denyMaintenancePeriods?: DenyMaintenancePeriod[];
855
871
  /** Optional. The edition of the instance. */
856
872
  edition?: string;
873
+ /** Optional. Configuration to enable Cloud SQL Vertex AI Integration */
874
+ enableGoogleMlIntegration?: boolean;
857
875
  /** Insights configuration, for now relevant only for Postgres. */
858
876
  insightsConfig?: InsightsConfig;
859
877
  /** 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 +917,10 @@ declare namespace gapi.client {
899
917
  /** Identifies the specific error that occurred. */
900
918
  type?: string;
901
919
  }
920
+ interface SqlInstancesAcquireSsrsLeaseResponse {
921
+ /** The unique identifier for this operation. */
922
+ operationId?: string;
923
+ }
902
924
  interface SqlInstancesGetDiskShrinkConfigResponse {
903
925
  /** This is always `sql#getDiskShrinkConfig`. */
904
926
  kind?: string;
@@ -913,6 +935,10 @@ declare namespace gapi.client {
913
935
  /** Timestamp, identifies the latest recovery time of the source instance. */
914
936
  latestRecoveryTime?: string;
915
937
  }
938
+ interface SqlInstancesReleaseSsrsLeaseResponse {
939
+ /** The operation ID. */
940
+ operationId?: string;
941
+ }
916
942
  interface SqlInstancesRescheduleMaintenanceRequestBody {
917
943
  /** Required. The type of the reschedule the user wants. */
918
944
  reschedule?: Reschedule;
@@ -933,6 +959,8 @@ declare namespace gapi.client {
933
959
  mysqlSyncConfig?: MySqlSyncConfig;
934
960
  /** External sync mode */
935
961
  syncMode?: string;
962
+ /** Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL. */
963
+ syncParallelLevel?: string;
936
964
  /** Flag to enable verifying connection only */
937
965
  verifyConnectionOnly?: boolean;
938
966
  /** Optional. Flag to verify settings required by replication setup only */
@@ -1679,6 +1707,68 @@ declare namespace gapi.client {
1679
1707
  }): Request<FlagsListResponse>;
1680
1708
  }
1681
1709
  interface InstancesResource {
1710
+ /** Acquire a lease for the setup of SQL Server Reporting Services (SSRS). */
1711
+ acquireSsrsLease(request: {
1712
+ /** V1 error format. */
1713
+ '$.xgafv'?: string;
1714
+ /** OAuth access token. */
1715
+ access_token?: string;
1716
+ /** Data format for response. */
1717
+ alt?: string;
1718
+ /** JSONP */
1719
+ callback?: string;
1720
+ /** Selector specifying which fields to include in a partial response. */
1721
+ fields?: string;
1722
+ /** 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). */
1723
+ instance: string;
1724
+ /** 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. */
1725
+ key?: string;
1726
+ /** OAuth 2.0 token for the current user. */
1727
+ oauth_token?: string;
1728
+ /** Returns response with indentations and line breaks. */
1729
+ prettyPrint?: boolean;
1730
+ /** Required. ID of the project that contains the instance (Example: project-id). */
1731
+ project: string;
1732
+ /** 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. */
1733
+ quotaUser?: string;
1734
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1735
+ upload_protocol?: string;
1736
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1737
+ uploadType?: string;
1738
+ /** Request body */
1739
+ resource: InstancesAcquireSsrsLeaseRequest;
1740
+ }): Request<SqlInstancesAcquireSsrsLeaseResponse>;
1741
+ acquireSsrsLease(
1742
+ request: {
1743
+ /** V1 error format. */
1744
+ '$.xgafv'?: string;
1745
+ /** OAuth access token. */
1746
+ access_token?: string;
1747
+ /** Data format for response. */
1748
+ alt?: string;
1749
+ /** JSONP */
1750
+ callback?: string;
1751
+ /** Selector specifying which fields to include in a partial response. */
1752
+ fields?: string;
1753
+ /** 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). */
1754
+ instance: string;
1755
+ /** 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. */
1756
+ key?: string;
1757
+ /** OAuth 2.0 token for the current user. */
1758
+ oauth_token?: string;
1759
+ /** Returns response with indentations and line breaks. */
1760
+ prettyPrint?: boolean;
1761
+ /** Required. ID of the project that contains the instance (Example: project-id). */
1762
+ project: string;
1763
+ /** 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. */
1764
+ quotaUser?: string;
1765
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1766
+ upload_protocol?: string;
1767
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1768
+ uploadType?: string;
1769
+ },
1770
+ body: InstancesAcquireSsrsLeaseRequest
1771
+ ): Request<SqlInstancesAcquireSsrsLeaseResponse>;
1682
1772
  /** 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
1773
  addServerCa(request?: {
1684
1774
  /** V1 error format. */
@@ -2413,6 +2503,35 @@ declare namespace gapi.client {
2413
2503
  },
2414
2504
  body: InstancesReencryptRequest
2415
2505
  ): Request<Operation>;
2506
+ /** Release a lease for the setup of SQL Server Reporting Services (SSRS). */
2507
+ releaseSsrsLease(request?: {
2508
+ /** V1 error format. */
2509
+ '$.xgafv'?: string;
2510
+ /** OAuth access token. */
2511
+ access_token?: string;
2512
+ /** Data format for response. */
2513
+ alt?: string;
2514
+ /** JSONP */
2515
+ callback?: string;
2516
+ /** Selector specifying which fields to include in a partial response. */
2517
+ fields?: string;
2518
+ /** 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). */
2519
+ instance: string;
2520
+ /** 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. */
2521
+ key?: string;
2522
+ /** OAuth 2.0 token for the current user. */
2523
+ oauth_token?: string;
2524
+ /** Returns response with indentations and line breaks. */
2525
+ prettyPrint?: boolean;
2526
+ /** Required. The ID of the project that contains the instance (Example: project-id). */
2527
+ project: string;
2528
+ /** 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. */
2529
+ quotaUser?: string;
2530
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2531
+ upload_protocol?: string;
2532
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2533
+ uploadType?: string;
2534
+ }): Request<SqlInstancesReleaseSsrsLeaseResponse>;
2416
2535
  /** Deletes all client certificates and generates a new server SSL certificate for the instance. */
2417
2536
  resetSslConfig(request?: {
2418
2537
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1beta4",
3
- "version": "0.0.20240219",
3
+ "version": "0.0.20240304",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1beta4",
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
  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
  */