@alicloud/polardb20170801 6.1.1 → 6.1.2

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
@@ -4007,11 +4007,11 @@ export default class Client extends OpenApi {
4007
4007
  /**
4008
4008
  * Modifies the retention policy of the log backups in a PolarDB cluster.
4009
4009
  *
4010
- * @param request - ModifyLogBackupPolicyRequest
4010
+ * @param tmpReq - ModifyLogBackupPolicyRequest
4011
4011
  * @param runtime - runtime options for this request RuntimeOptions
4012
4012
  * @returns ModifyLogBackupPolicyResponse
4013
4013
  */
4014
- modifyLogBackupPolicyWithOptions(request: $_model.ModifyLogBackupPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyLogBackupPolicyResponse>;
4014
+ modifyLogBackupPolicyWithOptions(tmpReq: $_model.ModifyLogBackupPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyLogBackupPolicyResponse>;
4015
4015
  /**
4016
4016
  * Modifies the retention policy of the log backups in a PolarDB cluster.
4017
4017
  *
package/dist/client.js CHANGED
@@ -15489,13 +15489,21 @@ class Client extends openapi_core_1.default {
15489
15489
  /**
15490
15490
  * Modifies the retention policy of the log backups in a PolarDB cluster.
15491
15491
  *
15492
- * @param request - ModifyLogBackupPolicyRequest
15492
+ * @param tmpReq - ModifyLogBackupPolicyRequest
15493
15493
  * @param runtime - runtime options for this request RuntimeOptions
15494
15494
  * @returns ModifyLogBackupPolicyResponse
15495
15495
  */
15496
- async modifyLogBackupPolicyWithOptions(request, runtime) {
15497
- request.validate();
15496
+ async modifyLogBackupPolicyWithOptions(tmpReq, runtime) {
15497
+ tmpReq.validate();
15498
+ let request = new $_model.ModifyLogBackupPolicyShrinkRequest({});
15499
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
15500
+ if (!$dara.isNull(tmpReq.advancedLogPolicies)) {
15501
+ request.advancedLogPoliciesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.advancedLogPolicies, "AdvancedLogPolicies", "json");
15502
+ }
15498
15503
  let query = {};
15504
+ if (!$dara.isNull(request.advancedLogPoliciesShrink)) {
15505
+ query["AdvancedLogPolicies"] = request.advancedLogPoliciesShrink;
15506
+ }
15499
15507
  if (!$dara.isNull(request.DBClusterId)) {
15500
15508
  query["DBClusterId"] = request.DBClusterId;
15501
15509
  }