@alicloud/waf-openapi20211001 6.7.0 → 6.7.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,6 +2,40 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class ModifyResourceLogStatusRequestTraceConfig extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 0
9
+ */
10
+ ratePerMille?: number;
11
+ /**
12
+ * @example
13
+ * cms-test
14
+ */
15
+ workspace?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ ratePerMille: 'RatePerMille',
19
+ workspace: 'Workspace',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ ratePerMille: 'number',
26
+ workspace: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
5
39
  export class ModifyResourceLogStatusRequest extends $dara.Model {
6
40
  /**
7
41
  * @remarks
@@ -57,6 +91,8 @@ export class ModifyResourceLogStatusRequest extends $dara.Model {
57
91
  * true
58
92
  */
59
93
  status?: boolean;
94
+ traceConfig?: ModifyResourceLogStatusRequestTraceConfig;
95
+ traceStatus?: boolean;
60
96
  static names(): { [key: string]: string } {
61
97
  return {
62
98
  instanceId: 'InstanceId',
@@ -64,6 +100,8 @@ export class ModifyResourceLogStatusRequest extends $dara.Model {
64
100
  resource: 'Resource',
65
101
  resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
66
102
  status: 'Status',
103
+ traceConfig: 'TraceConfig',
104
+ traceStatus: 'TraceStatus',
67
105
  };
68
106
  }
69
107
 
@@ -74,10 +112,15 @@ export class ModifyResourceLogStatusRequest extends $dara.Model {
74
112
  resource: 'string',
75
113
  resourceManagerResourceGroupId: 'string',
76
114
  status: 'boolean',
115
+ traceConfig: ModifyResourceLogStatusRequestTraceConfig,
116
+ traceStatus: 'boolean',
77
117
  };
78
118
  }
79
119
 
80
120
  validate() {
121
+ if(this.traceConfig && typeof (this.traceConfig as any).validate === 'function') {
122
+ (this.traceConfig as any).validate();
123
+ }
81
124
  super.validate();
82
125
  }
83
126
 
@@ -0,0 +1,94 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ModifyResourceLogStatusShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the Web Application Firewall (WAF) instance.
9
+ *
10
+ * > You can call the [DescribeInstance](https://help.aliyun.com/document_detail/433756.html) operation to obtain the ID of the WAF instance.
11
+ *
12
+ * This parameter is required.
13
+ *
14
+ * @example
15
+ * waf-cn-zz11zcl****
16
+ */
17
+ instanceId?: string;
18
+ /**
19
+ * @remarks
20
+ * The region where the WAF instance resides. Valid values:
21
+ *
22
+ * * **cn-hangzhou:** the Chinese mainland.
23
+ * * **ap-southeast-1:** outside the Chinese mainland.
24
+ *
25
+ * @example
26
+ * cn-hangzhou
27
+ */
28
+ regionId?: string;
29
+ /**
30
+ * @remarks
31
+ * The protected object on which you want to manage the log collection feature.
32
+ *
33
+ * This parameter is required.
34
+ *
35
+ * @example
36
+ * alb-wewbb23dfsetetcic1242-0****
37
+ */
38
+ resource?: string;
39
+ /**
40
+ * @remarks
41
+ * The ID of the resource group.
42
+ *
43
+ * @example
44
+ * rg-acfm***q
45
+ */
46
+ resourceManagerResourceGroupId?: string;
47
+ /**
48
+ * @remarks
49
+ * Specifies whether to enable the log collection feature for the protected object. Valid values:
50
+ *
51
+ * * **true:** enables the log collection feature.
52
+ * * **false:** disables the log collection feature.
53
+ *
54
+ * This parameter is required.
55
+ *
56
+ * @example
57
+ * true
58
+ */
59
+ status?: boolean;
60
+ traceConfigShrink?: string;
61
+ traceStatus?: boolean;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ instanceId: 'InstanceId',
65
+ regionId: 'RegionId',
66
+ resource: 'Resource',
67
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
68
+ status: 'Status',
69
+ traceConfigShrink: 'TraceConfig',
70
+ traceStatus: 'TraceStatus',
71
+ };
72
+ }
73
+
74
+ static types(): { [key: string]: any } {
75
+ return {
76
+ instanceId: 'string',
77
+ regionId: 'string',
78
+ resource: 'string',
79
+ resourceManagerResourceGroupId: 'string',
80
+ status: 'boolean',
81
+ traceConfigShrink: 'string',
82
+ traceStatus: 'boolean',
83
+ };
84
+ }
85
+
86
+ validate() {
87
+ super.validate();
88
+ }
89
+
90
+ constructor(map?: { [key: string]: any }) {
91
+ super(map);
92
+ }
93
+ }
94
+
@@ -139,6 +139,7 @@ export { DescribeProductInstancesResponseBodyProductInstances } from './Describe
139
139
  export { DescribeRelatedDefenseRulesResponseBodyRules } from './DescribeRelatedDefenseRulesResponseBody';
140
140
  export { DescribeResourceInstanceCertsResponseBodyCerts } from './DescribeResourceInstanceCertsResponseBody';
141
141
  export { DescribeResourceLogDeliveryStatusResponseBodyLogConfigs } from './DescribeResourceLogDeliveryStatusResponseBody';
142
+ export { DescribeResourceLogStatusResponseBodyResultTraceConfig } from './DescribeResourceLogStatusResponseBody';
142
143
  export { DescribeResourceLogStatusResponseBodyResult } from './DescribeResourceLogStatusResponseBody';
143
144
  export { DescribeResponseCodeTrendGraphResponseBodyResponseCodes } from './DescribeResponseCodeTrendGraphResponseBody';
144
145
  export { DescribeRuleGroupsResponseBodyRuleGroups } from './DescribeRuleGroupsResponseBody';
@@ -208,6 +209,7 @@ export { ModifyDomainRequestRedirectBackendPorts } from './ModifyDomainRequest';
208
209
  export { ModifyDomainRequestRedirectRequestHeaders } from './ModifyDomainRequest';
209
210
  export { ModifyDomainRequestRedirect } from './ModifyDomainRequest';
210
211
  export { ModifyDomainResponseBodyDomainInfo } from './ModifyDomainResponseBody';
212
+ export { ModifyResourceLogStatusRequestTraceConfig } from './ModifyResourceLogStatusRequest';
211
213
  export { TagResourcesRequestTag } from './TagResourcesRequest';
212
214
  export { VerifyDomainOwnerResponseBodyVerifyResult } from './VerifyDomainOwnerResponseBody';
213
215
  export { AddAddressRequest } from './AddAddressRequest';
@@ -912,6 +914,7 @@ export { ModifyResourceLogFieldConfigRequest } from './ModifyResourceLogFieldCon
912
914
  export { ModifyResourceLogFieldConfigResponseBody } from './ModifyResourceLogFieldConfigResponseBody';
913
915
  export { ModifyResourceLogFieldConfigResponse } from './ModifyResourceLogFieldConfigResponse';
914
916
  export { ModifyResourceLogStatusRequest } from './ModifyResourceLogStatusRequest';
917
+ export { ModifyResourceLogStatusShrinkRequest } from './ModifyResourceLogStatusShrinkRequest';
915
918
  export { ModifyResourceLogStatusResponseBody } from './ModifyResourceLogStatusResponseBody';
916
919
  export { ModifyResourceLogStatusResponse } from './ModifyResourceLogStatusResponse';
917
920
  export { ModifyTemplateResourcesRequest } from './ModifyTemplateResourcesRequest';