@googleapis/sqladmin 10.1.1 → 11.0.0

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/v1beta4.ts CHANGED
@@ -597,6 +597,10 @@ export namespace sqladmin_v1beta4 {
597
597
  * This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
598
598
  */
599
599
  outOfDiskReport?: Schema$SqlOutOfDiskReport;
600
+ /**
601
+ * Output only. DEPRECATED: please use write_endpoint instead.
602
+ */
603
+ primaryDnsName?: string | null;
600
604
  /**
601
605
  * The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
602
606
  */
@@ -657,6 +661,10 @@ export namespace sqladmin_v1beta4 {
657
661
  * If the instance state is SUSPENDED, the reason for the suspension.
658
662
  */
659
663
  suspensionReason?: string[] | null;
664
+ /**
665
+ * Output only. The dns name of the primary instance in a replication group.
666
+ */
667
+ writeEndpoint?: string | null;
660
668
  }
661
669
  /**
662
670
  * Database list response.
@@ -1187,12 +1195,16 @@ export namespace sqladmin_v1beta4 {
1187
1195
  */
1188
1196
  pscConfig?: Schema$PscConfig;
1189
1197
  /**
1190
- * Whether SSL connections over IP are enforced or not.
1198
+ * LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS connections over IP are enforced or not. If set to false, allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate will not be verified. If set to true, only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. LINT.ThenChange(//depot/google3/java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:update_api_temp_fix)
1191
1199
  */
1192
1200
  requireSsl?: boolean | null;
1201
+ /**
1202
+ * Specify how SSL/TLS will be enforced in database connections. This flag is only supported for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, it is recommended to use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; ssl_mode=ENCRYPTED_ONLY, require_ssl=false; ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while the `require_ssl=false` means "both non-SSL and SSL connections are allowed". The database will respect `ssl_mode` in this case and only accept SSL connections.
1203
+ */
1204
+ sslMode?: string | null;
1193
1205
  }
1194
1206
  /**
1195
- * Database instance IP Mapping.
1207
+ * Database instance IP mapping
1196
1208
  */
1197
1209
  export interface Schema$IpMapping {
1198
1210
  /**
@@ -1221,7 +1233,7 @@ export namespace sqladmin_v1beta4 {
1221
1233
  */
1222
1234
  kind?: string | null;
1223
1235
  /**
1224
- * The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.).
1236
+ * The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to 'no_secondary_zone'.
1225
1237
  */
1226
1238
  secondaryZone?: string | null;
1227
1239
  /**
@@ -1516,6 +1528,10 @@ export namespace sqladmin_v1beta4 {
1516
1528
  * The complexity of the password.
1517
1529
  */
1518
1530
  complexity?: string | null;
1531
+ /**
1532
+ * Disallow credentials that have been previously compromised by a public data breach.
1533
+ */
1534
+ disallowCompromisedCredentials?: boolean | null;
1519
1535
  /**
1520
1536
  * Disallow username as a part of the password.
1521
1537
  */
@@ -1551,7 +1567,7 @@ export namespace sqladmin_v1beta4 {
1551
1567
  */
1552
1568
  export interface Schema$PscConfig {
1553
1569
  /**
1554
- * List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
1570
+ * Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
1555
1571
  */
1556
1572
  allowedConsumerProjects?: string[] | null;
1557
1573
  /**
@@ -1563,6 +1579,10 @@ export namespace sqladmin_v1beta4 {
1563
1579
  * Read-replica configuration for connecting to the primary instance.
1564
1580
  */
1565
1581
  export interface Schema$ReplicaConfiguration {
1582
+ /**
1583
+ * Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
1584
+ */
1585
+ cascadableReplica?: boolean | null;
1566
1586
  /**
1567
1587
  * Specifies if the replica is the failover target. If the field is set to `true` the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
1568
1588
  */
@@ -5329,6 +5349,93 @@ export namespace sqladmin_v1beta4 {
5329
5349
  }
5330
5350
  }
5331
5351
 
5352
+ /**
5353
+ * Switches over from the primary instance to a replica instance.
5354
+ *
5355
+ * @param params - Parameters for request
5356
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5357
+ * @param callback - Optional callback that handles the response.
5358
+ * @returns A promise if used with async/await, or void if used with a callback.
5359
+ */
5360
+ switchover(
5361
+ params: Params$Resource$Instances$Switchover,
5362
+ options: StreamMethodOptions
5363
+ ): GaxiosPromise<Readable>;
5364
+ switchover(
5365
+ params?: Params$Resource$Instances$Switchover,
5366
+ options?: MethodOptions
5367
+ ): GaxiosPromise<Schema$Operation>;
5368
+ switchover(
5369
+ params: Params$Resource$Instances$Switchover,
5370
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5371
+ callback: BodyResponseCallback<Readable>
5372
+ ): void;
5373
+ switchover(
5374
+ params: Params$Resource$Instances$Switchover,
5375
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
5376
+ callback: BodyResponseCallback<Schema$Operation>
5377
+ ): void;
5378
+ switchover(
5379
+ params: Params$Resource$Instances$Switchover,
5380
+ callback: BodyResponseCallback<Schema$Operation>
5381
+ ): void;
5382
+ switchover(callback: BodyResponseCallback<Schema$Operation>): void;
5383
+ switchover(
5384
+ paramsOrCallback?:
5385
+ | Params$Resource$Instances$Switchover
5386
+ | BodyResponseCallback<Schema$Operation>
5387
+ | BodyResponseCallback<Readable>,
5388
+ optionsOrCallback?:
5389
+ | MethodOptions
5390
+ | StreamMethodOptions
5391
+ | BodyResponseCallback<Schema$Operation>
5392
+ | BodyResponseCallback<Readable>,
5393
+ callback?:
5394
+ | BodyResponseCallback<Schema$Operation>
5395
+ | BodyResponseCallback<Readable>
5396
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
5397
+ let params = (paramsOrCallback ||
5398
+ {}) as Params$Resource$Instances$Switchover;
5399
+ let options = (optionsOrCallback || {}) as MethodOptions;
5400
+
5401
+ if (typeof paramsOrCallback === 'function') {
5402
+ callback = paramsOrCallback;
5403
+ params = {} as Params$Resource$Instances$Switchover;
5404
+ options = {};
5405
+ }
5406
+
5407
+ if (typeof optionsOrCallback === 'function') {
5408
+ callback = optionsOrCallback;
5409
+ options = {};
5410
+ }
5411
+
5412
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5413
+ const parameters = {
5414
+ options: Object.assign(
5415
+ {
5416
+ url: (
5417
+ rootUrl +
5418
+ '/sql/v1beta4/projects/{project}/instances/{instance}/switchover'
5419
+ ).replace(/([^:]\/)\/+/g, '$1'),
5420
+ method: 'POST',
5421
+ },
5422
+ options
5423
+ ),
5424
+ params,
5425
+ requiredParams: ['project', 'instance'],
5426
+ pathParams: ['instance', 'project'],
5427
+ context: this.context,
5428
+ };
5429
+ if (callback) {
5430
+ createAPIRequest<Schema$Operation>(
5431
+ parameters,
5432
+ callback as BodyResponseCallback<unknown>
5433
+ );
5434
+ } else {
5435
+ return createAPIRequest<Schema$Operation>(parameters);
5436
+ }
5437
+ }
5438
+
5332
5439
  /**
5333
5440
  * Truncate MySQL general and slow query log tables MySQL only.
5334
5441
  *
@@ -5556,7 +5663,7 @@ export namespace sqladmin_v1beta4 {
5556
5663
  }
5557
5664
  export interface Params$Resource$Instances$Export extends StandardParameters {
5558
5665
  /**
5559
- * Cloud SQL instance ID. This does not include the project ID.
5666
+ * The Cloud SQL instance ID. This doesn't include the project ID.
5560
5667
  */
5561
5668
  instance?: string;
5562
5669
  /**
@@ -5667,6 +5774,10 @@ export namespace sqladmin_v1beta4 {
5667
5774
  }
5668
5775
  export interface Params$Resource$Instances$Promotereplica
5669
5776
  extends StandardParameters {
5777
+ /**
5778
+ * Set to true if the promote operation should attempt to re-add the original primary as a replica when it comes back online. Otherwise, if this value is false or not set, the original primary will be a standalone instance.
5779
+ */
5780
+ failover?: boolean;
5670
5781
  /**
5671
5782
  * Cloud SQL read replica instance name.
5672
5783
  */
@@ -5768,6 +5879,21 @@ export namespace sqladmin_v1beta4 {
5768
5879
  */
5769
5880
  project?: string;
5770
5881
  }
5882
+ export interface Params$Resource$Instances$Switchover
5883
+ extends StandardParameters {
5884
+ /**
5885
+ * Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours.
5886
+ */
5887
+ dbTimeout?: string;
5888
+ /**
5889
+ * Cloud SQL read replica instance name.
5890
+ */
5891
+ instance?: string;
5892
+ /**
5893
+ * ID of the project that contains the replica.
5894
+ */
5895
+ project?: string;
5896
+ }
5771
5897
  export interface Params$Resource$Instances$Truncatelog
5772
5898
  extends StandardParameters {
5773
5899
  /**