@alicloud/polardb20170801 5.1.11 → 5.1.13

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/dist/client.d.ts CHANGED
@@ -2173,12 +2173,13 @@ export declare class CreateDatabaseRequest extends $tea.Model {
2173
2173
  characterSetName?: string;
2174
2174
  /**
2175
2175
  * @remarks
2176
- * The language that indicates the collation of the databases that are created.
2176
+ * The language that defines the collation rules in the database.
2177
2177
  *
2178
- * > * The language must be compatible with the character set that is specified by **CharacterSetName**.
2179
- * >* This parameter is required for PolarDB for PostgreSQL (Compatible with Oracle) clusters or PolarDB for PostgreSQL clusters. This parameter is not supported by PolarDB for MySQL clusters.
2178
+ * >
2180
2179
  *
2181
- * To view the valid values for this parameter, perform the following steps: Log on to the PolarDB console and click the ID of a cluster. In the left-side navigation pane, choose **Settings and Management** > **Databases**. Then, click **Create Database**.
2180
+ * * The language must be compatible with the character set that is specified by **CharacterSetName**.
2181
+ *
2182
+ * * This parameter is required for a PolarDB for PostgreSQL (Compatible with Oracle) or PolarDB for PostgreSQL cluster. This parameter is optional for a PolarDB for MySQL cluster. To view the valid values of this parameter, perform the following steps: Log on to the PolarDB console and click the ID of the cluster. In the left-side navigation pane, choose **Settings and Management** > **Databases**. Then, click **Create Database**.
2182
2183
  *
2183
2184
  * @example
2184
2185
  * C
@@ -2296,6 +2297,7 @@ export declare class CreateGlobalDatabaseNetworkRequest extends $tea.Model {
2296
2297
  * pc-bp1q76364ird*****
2297
2298
  */
2298
2299
  DBClusterId?: string;
2300
+ enableGlobalDomainName?: boolean;
2299
2301
  /**
2300
2302
  * @remarks
2301
2303
  * The description of the GDN. The description must meet the following requirements:
@@ -7416,10 +7418,11 @@ export declare class DescribeDBInitializeVariableRequest extends $tea.Model {
7416
7418
  export declare class DescribeDBInitializeVariableResponseBody extends $tea.Model {
7417
7419
  /**
7418
7420
  * @remarks
7419
- * The type of the database engine. Valid values:
7421
+ * The database type. Valid values:
7420
7422
  *
7421
7423
  * * Oracle
7422
7424
  * * PostgreSQL
7425
+ * * MySQL
7423
7426
  *
7424
7427
  * @example
7425
7428
  * PostgreSQL
@@ -8455,6 +8458,7 @@ export declare class DescribeGlobalDatabaseNetworkResponseBody extends $tea.Mode
8455
8458
  * active
8456
8459
  */
8457
8460
  GDNStatus?: string;
8461
+ globalDomainName?: string;
8458
8462
  /**
8459
8463
  * @remarks
8460
8464
  * The ID of the request.
@@ -14446,6 +14450,7 @@ export declare class ModifyDBNodeClassRequest extends $tea.Model {
14446
14450
  * 2021-01-14T09:30:00Z
14447
14451
  */
14448
14452
  plannedEndTime?: string;
14453
+ plannedFlashingOffTime?: string;
14449
14454
  /**
14450
14455
  * @remarks
14451
14456
  * The earliest start time to upgrade the specifications within the scheduled time period. Specify the time in the ISO 8601 standard in the `YYYY-MM-DDThh:mm:ssZ` format. The time must be in UTC.
@@ -14687,6 +14692,7 @@ export declare class ModifyDBNodesClassRequest extends $tea.Model {
14687
14692
  * 2021-01-14T09:30:00Z
14688
14693
  */
14689
14694
  plannedEndTime?: string;
14695
+ plannedFlashingOffTime?: string;
14690
14696
  /**
14691
14697
  * @remarks
14692
14698
  * The earliest start time to upgrade the specifications within the scheduled time period. Specify the time in the ISO 8601 standard in the `YYYY-MM-DDThh:mm:ssZ` format. The time must be in UTC.
@@ -14884,6 +14890,7 @@ export declare class ModifyDBNodesParametersResponse extends $tea.Model {
14884
14890
  });
14885
14891
  }
14886
14892
  export declare class ModifyGlobalDatabaseNetworkRequest extends $tea.Model {
14893
+ enableGlobalDomainName?: boolean;
14887
14894
  /**
14888
14895
  * @remarks
14889
14896
  * The description of the GDN. The description must meet the following requirements:
@@ -14893,8 +14900,6 @@ export declare class ModifyGlobalDatabaseNetworkRequest extends $tea.Model {
14893
14900
  * * It can contain letters, digits, underscores (_), and hyphens (-).
14894
14901
  * * It must be 2 to 126 characters in length.
14895
14902
  *
14896
- * This parameter is required.
14897
- *
14898
14903
  * @example
14899
14904
  * GDN-fortest
14900
14905
  */
@@ -16968,12 +16973,19 @@ export declare class UpgradeDBClusterVersionRequest extends $tea.Model {
16968
16973
  resourceOwnerId?: number;
16969
16974
  /**
16970
16975
  * @remarks
16971
- * The code of the version to which you want to upgrade the cluster. You can call the [DescribeDBClusterVersion](https://help.aliyun.com/document_detail/2319145.html) operation to query the version code.
16976
+ * The code of the db version to which you want to upgrade the cluster. You can call the [DescribeDBClusterVersion](https://help.aliyun.com/document_detail/2319145.html) operation to query the version code.
16972
16977
  *
16973
16978
  * @example
16974
16979
  * 20230707
16975
16980
  */
16976
16981
  targetDBRevisionVersionCode?: string;
16982
+ /**
16983
+ * @remarks
16984
+ * The code of the proxy version to which you want to upgrade the cluster. You can call the [DescribeDBClusterVersion](https://help.aliyun.com/document_detail/2319145.html) operation to query the version code.
16985
+ *
16986
+ * @example
16987
+ * 20240702
16988
+ */
16977
16989
  targetProxyRevisionVersionCode?: string;
16978
16990
  /**
16979
16991
  * @remarks
@@ -16988,10 +17000,10 @@ export declare class UpgradeDBClusterVersionRequest extends $tea.Model {
16988
17000
  upgradeLabel?: string;
16989
17001
  /**
16990
17002
  * @remarks
16991
- * The upgrade policy. Valid values:
17003
+ * The engine version upgrade policy. Valid values:
16992
17004
  *
16993
17005
  * * **HOT**: hot upgrade.
16994
- * * **COLD**: cold upgrade. Only PolarDB for MySQL Cluster Edition that runs MySQL 8.0 supports this upgrade method.
17006
+ * * **COLD**: cold upgrade. Only PolarDB for MySQL 8.0 Cluster Edition supports this upgrade method.
16995
17007
  *
16996
17008
  * @example
16997
17009
  * HOT
@@ -20047,12 +20059,15 @@ export declare class DescribeDBInitializeVariableResponseBodyVariablesVariable e
20047
20059
  * @remarks
20048
20060
  * The language that indicates the character type of the database.
20049
20061
  *
20050
- * >- The language must be compatible with the character set that is specified by **CharacterSetName**.
20051
- * >- The specified value must be the same as the value of **Collate**.
20052
- * >- This parameter is required for PolarDB for PostgreSQL (Compatible with Oracle) clusters or PolarDB for PostgreSQL clusters.
20053
- * >- This parameter is optional for PolarDB for MySQL clusters.
20062
+ * >
20054
20063
  *
20055
- * To view the valid values for this parameter, perform the following steps: Log on to the PolarDB console and click the ID of a cluster. In the left-side navigation pane, choose **Settings and Management** > **Databases**. Then, click **Create Database**.
20064
+ * * The language must be compatible with the character set that is specified by **CharacterSetName**.
20065
+ *
20066
+ * * The specified parameter value must be the same as the value of **Collate**.
20067
+ *
20068
+ * * If the PolarDB cluster runs PolarDB for PostgreSQL (Compatible with Oracle) or PolarDB for PostgreSQL, this parameter is required. If the cluster runs PolarDB for MySQL, this parameter is not supported.
20069
+ *
20070
+ * To view the valid values of this parameter, perform the following steps: First, log on to the PolarDB console and click the ID of a cluster. Then, in the left-side navigation pane, choose **Settings and Management** > **Databases**. Finally, click **Create Database**.
20056
20071
  *
20057
20072
  * @example
20058
20073
  * C
@@ -20897,6 +20912,7 @@ export declare class DescribeGlobalDatabaseNetworkResponseBodyDBClustersDBNodes
20897
20912
  });
20898
20913
  }
20899
20914
  export declare class DescribeGlobalDatabaseNetworkResponseBodyDBClusters extends $tea.Model {
20915
+ category?: string;
20900
20916
  /**
20901
20917
  * @remarks
20902
20918
  * The description of the cluster.
@@ -21930,6 +21946,7 @@ export declare class DescribeScheduleTasksResponseBodyDataTimerInfos extends $te
21930
21946
  * 2021-01-28T12:30Z
21931
21947
  */
21932
21948
  plannedEndTime?: string;
21949
+ plannedFlashingOffTime?: string;
21933
21950
  /**
21934
21951
  * @remarks
21935
21952
  * The earliest start time of the task that you specified when you created the scheduled task. The time is displayed in UTC.
@@ -22104,6 +22121,7 @@ export declare class DescribeSlowLogRecordsResponseBodyItemsSQLSlowRecord extend
22104
22121
  * 0
22105
22122
  */
22106
22123
  returnRowCounts?: number;
22124
+ SQLHash?: string;
22107
22125
  /**
22108
22126
  * @remarks
22109
22127
  * The SQL statement that is executed in the query.
@@ -23845,7 +23863,7 @@ export default class Client extends OpenApi {
23845
23863
  */
23846
23864
  describeDBClustersWithBackups(request: DescribeDBClustersWithBackupsRequest): Promise<DescribeDBClustersWithBackupsResponse>;
23847
23865
  /**
23848
- * Queries the attributes that are supported by a PolarDB for PostgreSQL (Compatible with Oracle) cluster or a PolarDB for PostgreSQL cluster, such as the character sets and collations.
23866
+ * Queries attributes such as character sets and collations supported by a database in a PolarDB cluster.
23849
23867
  *
23850
23868
  * @param request - DescribeDBInitializeVariableRequest
23851
23869
  * @param runtime - runtime options for this request RuntimeOptions
@@ -23853,7 +23871,7 @@ export default class Client extends OpenApi {
23853
23871
  */
23854
23872
  describeDBInitializeVariableWithOptions(request: DescribeDBInitializeVariableRequest, runtime: $Util.RuntimeOptions): Promise<DescribeDBInitializeVariableResponse>;
23855
23873
  /**
23856
- * Queries the attributes that are supported by a PolarDB for PostgreSQL (Compatible with Oracle) cluster or a PolarDB for PostgreSQL cluster, such as the character sets and collations.
23874
+ * Queries attributes such as character sets and collations supported by a database in a PolarDB cluster.
23857
23875
  *
23858
23876
  * @param request - DescribeDBInitializeVariableRequest
23859
23877
  * @returns DescribeDBInitializeVariableResponse
package/dist/client.js CHANGED
@@ -1261,6 +1261,7 @@ class CreateGlobalDatabaseNetworkRequest extends $tea.Model {
1261
1261
  static names() {
1262
1262
  return {
1263
1263
  DBClusterId: 'DBClusterId',
1264
+ enableGlobalDomainName: 'EnableGlobalDomainName',
1264
1265
  GDNDescription: 'GDNDescription',
1265
1266
  ownerAccount: 'OwnerAccount',
1266
1267
  ownerId: 'OwnerId',
@@ -1273,6 +1274,7 @@ class CreateGlobalDatabaseNetworkRequest extends $tea.Model {
1273
1274
  static types() {
1274
1275
  return {
1275
1276
  DBClusterId: 'string',
1277
+ enableGlobalDomainName: 'boolean',
1276
1278
  GDNDescription: 'string',
1277
1279
  ownerAccount: 'string',
1278
1280
  ownerId: 'number',
@@ -4959,6 +4961,7 @@ class DescribeGlobalDatabaseNetworkResponseBody extends $tea.Model {
4959
4961
  GDNDescription: 'GDNDescription',
4960
4962
  GDNId: 'GDNId',
4961
4963
  GDNStatus: 'GDNStatus',
4964
+ globalDomainName: 'GlobalDomainName',
4962
4965
  requestId: 'RequestId',
4963
4966
  resourceGroupId: 'ResourceGroupId',
4964
4967
  };
@@ -4974,6 +4977,7 @@ class DescribeGlobalDatabaseNetworkResponseBody extends $tea.Model {
4974
4977
  GDNDescription: 'string',
4975
4978
  GDNId: 'string',
4976
4979
  GDNStatus: 'string',
4980
+ globalDomainName: 'string',
4977
4981
  requestId: 'string',
4978
4982
  resourceGroupId: 'string',
4979
4983
  };
@@ -8598,6 +8602,7 @@ class ModifyDBNodeClassRequest extends $tea.Model {
8598
8602
  ownerAccount: 'OwnerAccount',
8599
8603
  ownerId: 'OwnerId',
8600
8604
  plannedEndTime: 'PlannedEndTime',
8605
+ plannedFlashingOffTime: 'PlannedFlashingOffTime',
8601
8606
  plannedStartTime: 'PlannedStartTime',
8602
8607
  resourceOwnerAccount: 'ResourceOwnerAccount',
8603
8608
  resourceOwnerId: 'ResourceOwnerId',
@@ -8614,6 +8619,7 @@ class ModifyDBNodeClassRequest extends $tea.Model {
8614
8619
  ownerAccount: 'string',
8615
8620
  ownerId: 'number',
8616
8621
  plannedEndTime: 'string',
8622
+ plannedFlashingOffTime: 'string',
8617
8623
  plannedStartTime: 'string',
8618
8624
  resourceOwnerAccount: 'string',
8619
8625
  resourceOwnerId: 'number',
@@ -8743,6 +8749,7 @@ class ModifyDBNodesClassRequest extends $tea.Model {
8743
8749
  ownerAccount: 'OwnerAccount',
8744
8750
  ownerId: 'OwnerId',
8745
8751
  plannedEndTime: 'PlannedEndTime',
8752
+ plannedFlashingOffTime: 'PlannedFlashingOffTime',
8746
8753
  plannedStartTime: 'PlannedStartTime',
8747
8754
  resourceOwnerAccount: 'ResourceOwnerAccount',
8748
8755
  resourceOwnerId: 'ResourceOwnerId',
@@ -8758,6 +8765,7 @@ class ModifyDBNodesClassRequest extends $tea.Model {
8758
8765
  ownerAccount: 'string',
8759
8766
  ownerId: 'number',
8760
8767
  plannedEndTime: 'string',
8768
+ plannedFlashingOffTime: 'string',
8761
8769
  plannedStartTime: 'string',
8762
8770
  resourceOwnerAccount: 'string',
8763
8771
  resourceOwnerId: 'number',
@@ -8884,6 +8892,7 @@ exports.ModifyDBNodesParametersResponse = ModifyDBNodesParametersResponse;
8884
8892
  class ModifyGlobalDatabaseNetworkRequest extends $tea.Model {
8885
8893
  static names() {
8886
8894
  return {
8895
+ enableGlobalDomainName: 'EnableGlobalDomainName',
8887
8896
  GDNDescription: 'GDNDescription',
8888
8897
  GDNId: 'GDNId',
8889
8898
  ownerAccount: 'OwnerAccount',
@@ -8896,6 +8905,7 @@ class ModifyGlobalDatabaseNetworkRequest extends $tea.Model {
8896
8905
  }
8897
8906
  static types() {
8898
8907
  return {
8908
+ enableGlobalDomainName: 'boolean',
8899
8909
  GDNDescription: 'string',
8900
8910
  GDNId: 'string',
8901
8911
  ownerAccount: 'string',
@@ -12132,6 +12142,7 @@ exports.DescribeGlobalDatabaseNetworkResponseBodyDBClustersDBNodes = DescribeGlo
12132
12142
  class DescribeGlobalDatabaseNetworkResponseBodyDBClusters extends $tea.Model {
12133
12143
  static names() {
12134
12144
  return {
12145
+ category: 'Category',
12135
12146
  DBClusterDescription: 'DBClusterDescription',
12136
12147
  DBClusterId: 'DBClusterId',
12137
12148
  DBClusterStatus: 'DBClusterStatus',
@@ -12151,6 +12162,7 @@ class DescribeGlobalDatabaseNetworkResponseBodyDBClusters extends $tea.Model {
12151
12162
  }
12152
12163
  static types() {
12153
12164
  return {
12165
+ category: 'string',
12154
12166
  DBClusterDescription: 'string',
12155
12167
  DBClusterId: 'string',
12156
12168
  DBClusterStatus: 'string',
@@ -12570,6 +12582,7 @@ class DescribeScheduleTasksResponseBodyDataTimerInfos extends $tea.Model {
12570
12582
  dbClusterStatus: 'DbClusterStatus',
12571
12583
  orderId: 'OrderId',
12572
12584
  plannedEndTime: 'PlannedEndTime',
12585
+ plannedFlashingOffTime: 'PlannedFlashingOffTime',
12573
12586
  plannedStartTime: 'PlannedStartTime',
12574
12587
  plannedTime: 'PlannedTime',
12575
12588
  region: 'Region',
@@ -12586,6 +12599,7 @@ class DescribeScheduleTasksResponseBodyDataTimerInfos extends $tea.Model {
12586
12599
  dbClusterStatus: 'string',
12587
12600
  orderId: 'string',
12588
12601
  plannedEndTime: 'string',
12602
+ plannedFlashingOffTime: 'string',
12589
12603
  plannedStartTime: 'string',
12590
12604
  plannedTime: 'string',
12591
12605
  region: 'string',
@@ -12633,6 +12647,7 @@ class DescribeSlowLogRecordsResponseBodyItemsSQLSlowRecord extends $tea.Model {
12633
12647
  queryTimeMS: 'QueryTimeMS',
12634
12648
  queryTimes: 'QueryTimes',
12635
12649
  returnRowCounts: 'ReturnRowCounts',
12650
+ SQLHash: 'SQLHash',
12636
12651
  SQLText: 'SQLText',
12637
12652
  };
12638
12653
  }
@@ -12647,6 +12662,7 @@ class DescribeSlowLogRecordsResponseBodyItemsSQLSlowRecord extends $tea.Model {
12647
12662
  queryTimeMS: 'number',
12648
12663
  queryTimes: 'number',
12649
12664
  returnRowCounts: 'number',
12665
+ SQLHash: 'string',
12650
12666
  SQLText: 'string',
12651
12667
  };
12652
12668
  }
@@ -14272,6 +14288,9 @@ class Client extends openapi_client_1.default {
14272
14288
  if (!tea_util_1.default.isUnset(request.DBClusterId)) {
14273
14289
  query["DBClusterId"] = request.DBClusterId;
14274
14290
  }
14291
+ if (!tea_util_1.default.isUnset(request.enableGlobalDomainName)) {
14292
+ query["EnableGlobalDomainName"] = request.enableGlobalDomainName;
14293
+ }
14275
14294
  if (!tea_util_1.default.isUnset(request.GDNDescription)) {
14276
14295
  query["GDNDescription"] = request.GDNDescription;
14277
14296
  }
@@ -16775,7 +16794,7 @@ class Client extends openapi_client_1.default {
16775
16794
  return await this.describeDBClustersWithBackupsWithOptions(request, runtime);
16776
16795
  }
16777
16796
  /**
16778
- * Queries the attributes that are supported by a PolarDB for PostgreSQL (Compatible with Oracle) cluster or a PolarDB for PostgreSQL cluster, such as the character sets and collations.
16797
+ * Queries attributes such as character sets and collations supported by a database in a PolarDB cluster.
16779
16798
  *
16780
16799
  * @param request - DescribeDBInitializeVariableRequest
16781
16800
  * @param runtime - runtime options for this request RuntimeOptions
@@ -16816,7 +16835,7 @@ class Client extends openapi_client_1.default {
16816
16835
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeDBInitializeVariableResponse({}));
16817
16836
  }
16818
16837
  /**
16819
- * Queries the attributes that are supported by a PolarDB for PostgreSQL (Compatible with Oracle) cluster or a PolarDB for PostgreSQL cluster, such as the character sets and collations.
16838
+ * Queries attributes such as character sets and collations supported by a database in a PolarDB cluster.
16820
16839
  *
16821
16840
  * @param request - DescribeDBInitializeVariableRequest
16822
16841
  * @returns DescribeDBInitializeVariableResponse
@@ -20658,6 +20677,9 @@ class Client extends openapi_client_1.default {
20658
20677
  if (!tea_util_1.default.isUnset(request.plannedEndTime)) {
20659
20678
  query["PlannedEndTime"] = request.plannedEndTime;
20660
20679
  }
20680
+ if (!tea_util_1.default.isUnset(request.plannedFlashingOffTime)) {
20681
+ query["PlannedFlashingOffTime"] = request.plannedFlashingOffTime;
20682
+ }
20661
20683
  if (!tea_util_1.default.isUnset(request.plannedStartTime)) {
20662
20684
  query["PlannedStartTime"] = request.plannedStartTime;
20663
20685
  }
@@ -20784,6 +20806,9 @@ class Client extends openapi_client_1.default {
20784
20806
  if (!tea_util_1.default.isUnset(request.plannedEndTime)) {
20785
20807
  query["PlannedEndTime"] = request.plannedEndTime;
20786
20808
  }
20809
+ if (!tea_util_1.default.isUnset(request.plannedFlashingOffTime)) {
20810
+ query["PlannedFlashingOffTime"] = request.plannedFlashingOffTime;
20811
+ }
20787
20812
  if (!tea_util_1.default.isUnset(request.plannedStartTime)) {
20788
20813
  query["PlannedStartTime"] = request.plannedStartTime;
20789
20814
  }
@@ -20901,6 +20926,9 @@ class Client extends openapi_client_1.default {
20901
20926
  async modifyGlobalDatabaseNetworkWithOptions(request, runtime) {
20902
20927
  tea_util_1.default.validateModel(request);
20903
20928
  let query = {};
20929
+ if (!tea_util_1.default.isUnset(request.enableGlobalDomainName)) {
20930
+ query["EnableGlobalDomainName"] = request.enableGlobalDomainName;
20931
+ }
20904
20932
  if (!tea_util_1.default.isUnset(request.GDNDescription)) {
20905
20933
  query["GDNDescription"] = request.GDNDescription;
20906
20934
  }