@googleapis/sqladmin 9.0.0 → 10.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
@@ -408,6 +408,10 @@ export namespace sqladmin_v1beta4 {
408
408
  * Timestamp, if specified, identifies the time to which the source instance is cloned.
409
409
  */
410
410
  pointInTime?: string | null;
411
+ /**
412
+ * Optional. (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.
413
+ */
414
+ preferredZone?: string | null;
411
415
  }
412
416
  /**
413
417
  * Connect settings retrieval response.
@@ -655,6 +659,15 @@ export namespace sqladmin_v1beta4 {
655
659
  */
656
660
  kind?: string | null;
657
661
  }
662
+ /**
663
+ * Data cache configurations.
664
+ */
665
+ export interface Schema$DataCacheConfig {
666
+ /**
667
+ * Whether data cache is enabled for the instance.
668
+ */
669
+ dataCacheEnabled?: boolean | null;
670
+ }
658
671
  /**
659
672
  * Read-replica configuration for connecting to the on-premises primary instance.
660
673
  */
@@ -1624,6 +1637,10 @@ export namespace sqladmin_v1beta4 {
1624
1637
  * Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
1625
1638
  */
1626
1639
  databaseReplicationEnabled?: boolean | null;
1640
+ /**
1641
+ * Configuration for data cache.
1642
+ */
1643
+ dataCacheConfig?: Schema$DataCacheConfig;
1627
1644
  /**
1628
1645
  * The size of data disk, in GB. The data disk size minimum is 10GB.
1629
1646
  */
@@ -1640,6 +1657,10 @@ export namespace sqladmin_v1beta4 {
1640
1657
  * Deny maintenance periods
1641
1658
  */
1642
1659
  denyMaintenancePeriods?: Schema$DenyMaintenancePeriod[];
1660
+ /**
1661
+ * Optional. The edition of the instance.
1662
+ */
1663
+ edition?: string | null;
1643
1664
  /**
1644
1665
  * Insights configuration, for now relevant only for Postgres.
1645
1666
  */
@@ -1748,6 +1769,19 @@ export namespace sqladmin_v1beta4 {
1748
1769
  */
1749
1770
  minimalTargetSizeGb?: string | null;
1750
1771
  }
1772
+ /**
1773
+ * Instance get latest recovery time response.
1774
+ */
1775
+ export interface Schema$SqlInstancesGetLatestRecoveryTimeResponse {
1776
+ /**
1777
+ * This is always `sql#getLatestRecoveryTime`.
1778
+ */
1779
+ kind?: string | null;
1780
+ /**
1781
+ * Timestamp, identifies the latest recovery time of the source instance.
1782
+ */
1783
+ latestRecoveryTime?: string | null;
1784
+ }
1751
1785
  /**
1752
1786
  * Reschedule options for maintenance windows.
1753
1787
  */
@@ -8754,6 +8788,150 @@ export namespace sqladmin_v1beta4 {
8754
8788
  }
8755
8789
  }
8756
8790
 
8791
+ /**
8792
+ * Get Latest Recovery Time for a given instance.
8793
+ * @example
8794
+ * ```js
8795
+ * // Before running the sample:
8796
+ * // - Enable the API at:
8797
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
8798
+ * // - Login into gcloud by running:
8799
+ * // `$ gcloud auth application-default login`
8800
+ * // - Install the npm module by running:
8801
+ * // `$ npm install googleapis`
8802
+ *
8803
+ * const {google} = require('googleapis');
8804
+ * const sqladmin = google.sqladmin('v1beta4');
8805
+ *
8806
+ * async function main() {
8807
+ * const auth = new google.auth.GoogleAuth({
8808
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8809
+ * scopes: [
8810
+ * 'https://www.googleapis.com/auth/cloud-platform',
8811
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
8812
+ * ],
8813
+ * });
8814
+ *
8815
+ * // Acquire an auth client, and bind it to all future calls
8816
+ * const authClient = await auth.getClient();
8817
+ * google.options({auth: authClient});
8818
+ *
8819
+ * // Do the magic
8820
+ * const res = await sql.projects.instances.getLatestRecoveryTime({
8821
+ * // Cloud SQL instance ID. This does not include the project ID.
8822
+ * instance: 'placeholder-value',
8823
+ * // Project ID of the project that contains the instance.
8824
+ * project: 'placeholder-value',
8825
+ * });
8826
+ * console.log(res.data);
8827
+ *
8828
+ * // Example response
8829
+ * // {
8830
+ * // "kind": "my_kind",
8831
+ * // "latestRecoveryTime": "my_latestRecoveryTime"
8832
+ * // }
8833
+ * }
8834
+ *
8835
+ * main().catch(e => {
8836
+ * console.error(e);
8837
+ * throw e;
8838
+ * });
8839
+ *
8840
+ * ```
8841
+ *
8842
+ * @param params - Parameters for request
8843
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8844
+ * @param callback - Optional callback that handles the response.
8845
+ * @returns A promise if used with async/await, or void if used with a callback.
8846
+ */
8847
+ getLatestRecoveryTime(
8848
+ params: Params$Resource$Projects$Instances$Getlatestrecoverytime,
8849
+ options: StreamMethodOptions
8850
+ ): GaxiosPromise<Readable>;
8851
+ getLatestRecoveryTime(
8852
+ params?: Params$Resource$Projects$Instances$Getlatestrecoverytime,
8853
+ options?: MethodOptions
8854
+ ): GaxiosPromise<Schema$SqlInstancesGetLatestRecoveryTimeResponse>;
8855
+ getLatestRecoveryTime(
8856
+ params: Params$Resource$Projects$Instances$Getlatestrecoverytime,
8857
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8858
+ callback: BodyResponseCallback<Readable>
8859
+ ): void;
8860
+ getLatestRecoveryTime(
8861
+ params: Params$Resource$Projects$Instances$Getlatestrecoverytime,
8862
+ options:
8863
+ | MethodOptions
8864
+ | BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>,
8865
+ callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8866
+ ): void;
8867
+ getLatestRecoveryTime(
8868
+ params: Params$Resource$Projects$Instances$Getlatestrecoverytime,
8869
+ callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8870
+ ): void;
8871
+ getLatestRecoveryTime(
8872
+ callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8873
+ ): void;
8874
+ getLatestRecoveryTime(
8875
+ paramsOrCallback?:
8876
+ | Params$Resource$Projects$Instances$Getlatestrecoverytime
8877
+ | BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8878
+ | BodyResponseCallback<Readable>,
8879
+ optionsOrCallback?:
8880
+ | MethodOptions
8881
+ | StreamMethodOptions
8882
+ | BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8883
+ | BodyResponseCallback<Readable>,
8884
+ callback?:
8885
+ | BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8886
+ | BodyResponseCallback<Readable>
8887
+ ):
8888
+ | void
8889
+ | GaxiosPromise<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8890
+ | GaxiosPromise<Readable> {
8891
+ let params = (paramsOrCallback ||
8892
+ {}) as Params$Resource$Projects$Instances$Getlatestrecoverytime;
8893
+ let options = (optionsOrCallback || {}) as MethodOptions;
8894
+
8895
+ if (typeof paramsOrCallback === 'function') {
8896
+ callback = paramsOrCallback;
8897
+ params = {} as Params$Resource$Projects$Instances$Getlatestrecoverytime;
8898
+ options = {};
8899
+ }
8900
+
8901
+ if (typeof optionsOrCallback === 'function') {
8902
+ callback = optionsOrCallback;
8903
+ options = {};
8904
+ }
8905
+
8906
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
8907
+ const parameters = {
8908
+ options: Object.assign(
8909
+ {
8910
+ url: (
8911
+ rootUrl +
8912
+ '/sql/v1beta4/projects/{project}/instances/{instance}/getLatestRecoveryTime'
8913
+ ).replace(/([^:]\/)\/+/g, '$1'),
8914
+ method: 'GET',
8915
+ },
8916
+ options
8917
+ ),
8918
+ params,
8919
+ requiredParams: ['project', 'instance'],
8920
+ pathParams: ['instance', 'project'],
8921
+ context: this.context,
8922
+ };
8923
+ if (callback) {
8924
+ createAPIRequest<Schema$SqlInstancesGetLatestRecoveryTimeResponse>(
8925
+ parameters,
8926
+ callback as BodyResponseCallback<unknown>
8927
+ );
8928
+ } else {
8929
+ return createAPIRequest<Schema$SqlInstancesGetLatestRecoveryTimeResponse>(
8930
+ parameters
8931
+ );
8932
+ }
8933
+ }
8934
+
8757
8935
  /**
8758
8936
  * Perform Disk Shrink on primary instance.
8759
8937
  * @example
@@ -9554,6 +9732,17 @@ export namespace sqladmin_v1beta4 {
9554
9732
  */
9555
9733
  project?: string;
9556
9734
  }
9735
+ export interface Params$Resource$Projects$Instances$Getlatestrecoverytime
9736
+ extends StandardParameters {
9737
+ /**
9738
+ * Cloud SQL instance ID. This does not include the project ID.
9739
+ */
9740
+ instance?: string;
9741
+ /**
9742
+ * Project ID of the project that contains the instance.
9743
+ */
9744
+ project?: string;
9745
+ }
9557
9746
  export interface Params$Resource$Projects$Instances$Performdiskshrink
9558
9747
  extends StandardParameters {
9559
9748
  /**