@alicloud/apig20240327 11.3.1 → 11.3.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.
@@ -2,7 +2,15 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class DeleteHttpApiRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * Specifies whether to perform only a dry run. If set to true, all synchronous validations identical to an actual deletion are executed (including admission checks such as whether a published API cannot be deleted), but the API is not deleted, no associated configurations are cleaned up, and no side effects are produced. If this parameter is not specified or is set to false, the behavior is the same as the existing version.
5
+ * The idempotence token. If you call this operation multiple times for the same HTTP API by using the same clientToken value and the same delete request parameters, the result of the first successful call is returned.
6
+ *
7
+ * @example
8
+ * delete-http-api-client-token-001
9
+ */
10
+ clientToken?: string;
11
+ /**
12
+ * @remarks
13
+ * Specifies whether to perform only a dry run. If set to true, all synchronous validations identical to an actual deletion are executed (including admission checks such as whether a published API can be deleted), but the API is not deleted, no associated configurations are cleaned up, and no side effects are produced. If this parameter is not specified or is set to false, the behavior is the same as the existing version.
6
14
  */
7
15
  dryRun?: boolean;
8
16
  static names(): {
@@ -39,11 +39,13 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class DeleteHttpApiRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ clientToken: 'clientToken',
42
43
  dryRun: 'dryRun',
43
44
  };
44
45
  }
45
46
  static types() {
46
47
  return {
48
+ clientToken: 'string',
47
49
  dryRun: 'boolean',
48
50
  };
49
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteHttpApiRequest.js","sourceRoot":"","sources":["../../src/models/DeleteHttpApiRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IAMnD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,SAAS;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzBD,oDAyBC"}
1
+ {"version":3,"file":"DeleteHttpApiRequest.js","sourceRoot":"","sources":["../../src/models/DeleteHttpApiRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IAcnD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,MAAM,EAAE,SAAS;SAClB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnCD,oDAmCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/apig20240327",
3
- "version": "11.3.1",
3
+ "version": "11.3.2",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -2773,6 +2773,10 @@ export default class Client extends OpenApi {
2773
2773
  async deleteHttpApiWithOptions(httpApiId: string, request: $_model.DeleteHttpApiRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteHttpApiResponse> {
2774
2774
  request.validate();
2775
2775
  let query : {[key: string ]: any} = { };
2776
+ if (!$dara.isNull(request.clientToken)) {
2777
+ query["clientToken"] = request.clientToken;
2778
+ }
2779
+
2776
2780
  if (!$dara.isNull(request.dryRun)) {
2777
2781
  query["dryRun"] = request.dryRun;
2778
2782
  }
@@ -5,17 +5,27 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DeleteHttpApiRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to perform only a dry run. If set to true, all synchronous validations identical to an actual deletion are executed (including admission checks such as whether a published API cannot be deleted), but the API is not deleted, no associated configurations are cleaned up, and no side effects are produced. If this parameter is not specified or is set to false, the behavior is the same as the existing version.
8
+ * The idempotence token. If you call this operation multiple times for the same HTTP API by using the same clientToken value and the same delete request parameters, the result of the first successful call is returned.
9
+ *
10
+ * @example
11
+ * delete-http-api-client-token-001
12
+ */
13
+ clientToken?: string;
14
+ /**
15
+ * @remarks
16
+ * Specifies whether to perform only a dry run. If set to true, all synchronous validations identical to an actual deletion are executed (including admission checks such as whether a published API can be deleted), but the API is not deleted, no associated configurations are cleaned up, and no side effects are produced. If this parameter is not specified or is set to false, the behavior is the same as the existing version.
9
17
  */
10
18
  dryRun?: boolean;
11
19
  static names(): { [key: string]: string } {
12
20
  return {
21
+ clientToken: 'clientToken',
13
22
  dryRun: 'dryRun',
14
23
  };
15
24
  }
16
25
 
17
26
  static types(): { [key: string]: any } {
18
27
  return {
28
+ clientToken: 'string',
19
29
  dryRun: 'boolean',
20
30
  };
21
31
  }