@alicloud/cms20240330 3.1.0 → 3.2.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/dist/client.d.ts +36 -0
- package/dist/client.js +128 -0
- package/dist/client.js.map +1 -1
- package/dist/models/AlertRuleQuery.d.ts +34 -0
- package/dist/models/AlertRuleQuery.js +61 -1
- package/dist/models/AlertRuleQuery.js.map +1 -1
- package/dist/models/ListIntegrationPoliciesRequest.d.ts +92 -0
- package/dist/models/ListIntegrationPoliciesRequest.js +106 -0
- package/dist/models/ListIntegrationPoliciesRequest.js.map +1 -0
- package/dist/models/ListIntegrationPoliciesResponse.d.ts +19 -0
- package/dist/models/ListIntegrationPoliciesResponse.js +69 -0
- package/dist/models/ListIntegrationPoliciesResponse.js.map +1 -0
- package/dist/models/ListIntegrationPoliciesResponseBody.d.ts +362 -0
- package/dist/models/ListIntegrationPoliciesResponseBody.js +433 -0
- package/dist/models/ListIntegrationPoliciesResponseBody.js.map +1 -0
- package/dist/models/ListIntegrationPoliciesShrinkRequest.d.ts +70 -0
- package/dist/models/ListIntegrationPoliciesShrinkRequest.js +82 -0
- package/dist/models/ListIntegrationPoliciesShrinkRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyDashboardsRequest.d.ts +23 -0
- package/dist/models/ListIntegrationPolicyDashboardsRequest.js +60 -0
- package/dist/models/ListIntegrationPolicyDashboardsRequest.js.map +1 -0
- package/dist/models/ListIntegrationPolicyDashboardsResponse.d.ts +19 -0
- package/dist/models/ListIntegrationPolicyDashboardsResponse.js +69 -0
- package/dist/models/ListIntegrationPolicyDashboardsResponse.js.map +1 -0
- package/dist/models/ListIntegrationPolicyDashboardsResponseBody.d.ts +45 -0
- package/dist/models/ListIntegrationPolicyDashboardsResponseBody.js +97 -0
- package/dist/models/ListIntegrationPolicyDashboardsResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +23 -0
- package/dist/models/model.js +57 -11
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +148 -0
- package/src/models/AlertRuleQuery.ts +76 -0
- package/src/models/ListIntegrationPoliciesRequest.ts +144 -0
- package/src/models/ListIntegrationPoliciesResponse.ts +40 -0
- package/src/models/ListIntegrationPoliciesResponseBody.ts +642 -0
- package/src/models/ListIntegrationPoliciesShrinkRequest.ts +107 -0
- package/src/models/ListIntegrationPolicyDashboardsRequest.ts +38 -0
- package/src/models/ListIntegrationPolicyDashboardsResponse.ts +40 -0
- package/src/models/ListIntegrationPolicyDashboardsResponseBody.ts +88 -0
- package/src/models/model.ts +23 -0
package/src/client.ts
CHANGED
|
@@ -1781,6 +1781,105 @@ export default class Client extends OpenApi {
|
|
|
1781
1781
|
return await this.listAlertActionsWithOptions(request, headers, runtime);
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
1784
|
+
/**
|
|
1785
|
+
* 查询接入中心策略列表信息
|
|
1786
|
+
*
|
|
1787
|
+
* @param tmpReq - ListIntegrationPoliciesRequest
|
|
1788
|
+
* @param headers - map
|
|
1789
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1790
|
+
* @returns ListIntegrationPoliciesResponse
|
|
1791
|
+
*/
|
|
1792
|
+
async listIntegrationPoliciesWithOptions(tmpReq: $_model.ListIntegrationPoliciesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListIntegrationPoliciesResponse> {
|
|
1793
|
+
tmpReq.validate();
|
|
1794
|
+
let request = new $_model.ListIntegrationPoliciesShrinkRequest({ });
|
|
1795
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1796
|
+
if (!$dara.isNull(tmpReq.tag)) {
|
|
1797
|
+
request.tagShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
let query : {[key: string ]: any} = { };
|
|
1801
|
+
if (!$dara.isNull(request.addonName)) {
|
|
1802
|
+
query["addonName"] = request.addonName;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
if (!$dara.isNull(request.entityGroupIds)) {
|
|
1806
|
+
query["entityGroupIds"] = request.entityGroupIds;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
if (!$dara.isNull(request.filterRegionIds)) {
|
|
1810
|
+
query["filterRegionIds"] = request.filterRegionIds;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
1814
|
+
query["maxResults"] = request.maxResults;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
1818
|
+
query["nextToken"] = request.nextToken;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
if (!$dara.isNull(request.policyId)) {
|
|
1822
|
+
query["policyId"] = request.policyId;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
if (!$dara.isNull(request.policyName)) {
|
|
1826
|
+
query["policyName"] = request.policyName;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
if (!$dara.isNull(request.policyType)) {
|
|
1830
|
+
query["policyType"] = request.policyType;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
if (!$dara.isNull(request.prometheusInstanceId)) {
|
|
1834
|
+
query["prometheusInstanceId"] = request.prometheusInstanceId;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
if (!$dara.isNull(request.query)) {
|
|
1838
|
+
query["query"] = request.query;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
1842
|
+
query["resourceGroupId"] = request.resourceGroupId;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
if (!$dara.isNull(request.tagShrink)) {
|
|
1846
|
+
query["tag"] = request.tagShrink;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
if (!$dara.isNull(request.workspace)) {
|
|
1850
|
+
query["workspace"] = request.workspace;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1854
|
+
headers: headers,
|
|
1855
|
+
query: OpenApiUtil.query(query),
|
|
1856
|
+
});
|
|
1857
|
+
let params = new $OpenApiUtil.Params({
|
|
1858
|
+
action: "ListIntegrationPolicies",
|
|
1859
|
+
version: "2024-03-30",
|
|
1860
|
+
protocol: "HTTPS",
|
|
1861
|
+
pathname: `/integration-policies`,
|
|
1862
|
+
method: "GET",
|
|
1863
|
+
authType: "AK",
|
|
1864
|
+
style: "ROA",
|
|
1865
|
+
reqBodyType: "json",
|
|
1866
|
+
bodyType: "json",
|
|
1867
|
+
});
|
|
1868
|
+
return $dara.cast<$_model.ListIntegrationPoliciesResponse>(await this.callApi(params, req, runtime), new $_model.ListIntegrationPoliciesResponse({}));
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* 查询接入中心策略列表信息
|
|
1873
|
+
*
|
|
1874
|
+
* @param request - ListIntegrationPoliciesRequest
|
|
1875
|
+
* @returns ListIntegrationPoliciesResponse
|
|
1876
|
+
*/
|
|
1877
|
+
async listIntegrationPolicies(request: $_model.ListIntegrationPoliciesRequest): Promise<$_model.ListIntegrationPoliciesResponse> {
|
|
1878
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1879
|
+
let headers : {[key: string ]: string} = { };
|
|
1880
|
+
return await this.listIntegrationPoliciesWithOptions(request, headers, runtime);
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1784
1883
|
/**
|
|
1785
1884
|
* 获取接入中心策略的存储要求信息
|
|
1786
1885
|
*
|
|
@@ -1834,6 +1933,55 @@ export default class Client extends OpenApi {
|
|
|
1834
1933
|
return await this.listIntegrationPolicyCustomScrapeJobRulesWithOptions(policyId, request, headers, runtime);
|
|
1835
1934
|
}
|
|
1836
1935
|
|
|
1936
|
+
/**
|
|
1937
|
+
* 策略大盘列表
|
|
1938
|
+
*
|
|
1939
|
+
* @param request - ListIntegrationPolicyDashboardsRequest
|
|
1940
|
+
* @param headers - map
|
|
1941
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1942
|
+
* @returns ListIntegrationPolicyDashboardsResponse
|
|
1943
|
+
*/
|
|
1944
|
+
async listIntegrationPolicyDashboardsWithOptions(policyId: string, request: $_model.ListIntegrationPolicyDashboardsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListIntegrationPolicyDashboardsResponse> {
|
|
1945
|
+
request.validate();
|
|
1946
|
+
let query : {[key: string ]: any} = { };
|
|
1947
|
+
if (!$dara.isNull(request.addonName)) {
|
|
1948
|
+
query["addonName"] = request.addonName;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
if (!$dara.isNull(request.scene)) {
|
|
1952
|
+
query["scene"] = request.scene;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1956
|
+
headers: headers,
|
|
1957
|
+
query: OpenApiUtil.query(query),
|
|
1958
|
+
});
|
|
1959
|
+
let params = new $OpenApiUtil.Params({
|
|
1960
|
+
action: "ListIntegrationPolicyDashboards",
|
|
1961
|
+
version: "2024-03-30",
|
|
1962
|
+
protocol: "HTTPS",
|
|
1963
|
+
pathname: `/integration-policies/${$dara.URL.percentEncode(policyId)}/dashboards`,
|
|
1964
|
+
method: "GET",
|
|
1965
|
+
authType: "AK",
|
|
1966
|
+
style: "ROA",
|
|
1967
|
+
reqBodyType: "json",
|
|
1968
|
+
bodyType: "json",
|
|
1969
|
+
});
|
|
1970
|
+
return $dara.cast<$_model.ListIntegrationPolicyDashboardsResponse>(await this.callApi(params, req, runtime), new $_model.ListIntegrationPolicyDashboardsResponse({}));
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
/**
|
|
1974
|
+
* 策略大盘列表
|
|
1975
|
+
*
|
|
1976
|
+
* @param request - ListIntegrationPolicyDashboardsRequest
|
|
1977
|
+
* @returns ListIntegrationPolicyDashboardsResponse
|
|
1978
|
+
*/
|
|
1979
|
+
async listIntegrationPolicyDashboards(policyId: string, request: $_model.ListIntegrationPolicyDashboardsRequest): Promise<$_model.ListIntegrationPolicyDashboardsResponse> {
|
|
1980
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1981
|
+
let headers : {[key: string ]: string} = { };
|
|
1982
|
+
return await this.listIntegrationPolicyDashboardsWithOptions(policyId, request, headers, runtime);
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1837
1985
|
/**
|
|
1838
1986
|
* 获取接入中心策略的PodMonitor资源
|
|
1839
1987
|
*
|
|
@@ -3,6 +3,67 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
import { AlertRuleSlsQueryJoin } from "./AlertRuleSlsQueryJoin";
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
export class AlertRuleQueryEntityFilterFilters extends $dara.Model {
|
|
7
|
+
field?: string;
|
|
8
|
+
operator?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
field: 'field',
|
|
13
|
+
operator: 'operator',
|
|
14
|
+
value: 'value',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
field: 'string',
|
|
21
|
+
operator: 'string',
|
|
22
|
+
value: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class AlertRuleQueryEntityFilter extends $dara.Model {
|
|
36
|
+
domain?: string;
|
|
37
|
+
filters?: AlertRuleQueryEntityFilterFilters[];
|
|
38
|
+
type?: string;
|
|
39
|
+
static names(): { [key: string]: string } {
|
|
40
|
+
return {
|
|
41
|
+
domain: 'domain',
|
|
42
|
+
filters: 'filters',
|
|
43
|
+
type: 'type',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
domain: 'string',
|
|
50
|
+
filters: { 'type': 'array', 'itemType': AlertRuleQueryEntityFilterFilters },
|
|
51
|
+
type: 'string',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
validate() {
|
|
56
|
+
if(Array.isArray(this.filters)) {
|
|
57
|
+
$dara.Model.validateArray(this.filters);
|
|
58
|
+
}
|
|
59
|
+
super.validate();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
constructor(map?: { [key: string]: any }) {
|
|
63
|
+
super(map);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
6
67
|
export class AlertRuleQueryQueriesApmFilters extends $dara.Model {
|
|
7
68
|
dim?: string;
|
|
8
69
|
type?: string;
|
|
@@ -108,12 +169,16 @@ export class AlertRuleQueryQueries extends $dara.Model {
|
|
|
108
169
|
export class AlertRuleQuery extends $dara.Model {
|
|
109
170
|
checkAfterDataComplete?: boolean;
|
|
110
171
|
dimensions?: { [key: string]: string }[];
|
|
172
|
+
domain?: string;
|
|
111
173
|
duration?: number;
|
|
174
|
+
entityFilter?: AlertRuleQueryEntityFilter;
|
|
112
175
|
expr?: string;
|
|
113
176
|
firstJoin?: AlertRuleSlsQueryJoin;
|
|
114
177
|
groupFieldList?: string[];
|
|
115
178
|
groupId?: string;
|
|
116
179
|
groupType?: string;
|
|
180
|
+
metric?: string;
|
|
181
|
+
metricSet?: string;
|
|
117
182
|
namespace?: string;
|
|
118
183
|
queries?: AlertRuleQueryQueries[];
|
|
119
184
|
relationType?: string;
|
|
@@ -130,12 +195,16 @@ export class AlertRuleQuery extends $dara.Model {
|
|
|
130
195
|
return {
|
|
131
196
|
checkAfterDataComplete: 'checkAfterDataComplete',
|
|
132
197
|
dimensions: 'dimensions',
|
|
198
|
+
domain: 'domain',
|
|
133
199
|
duration: 'duration',
|
|
200
|
+
entityFilter: 'entityFilter',
|
|
134
201
|
expr: 'expr',
|
|
135
202
|
firstJoin: 'firstJoin',
|
|
136
203
|
groupFieldList: 'groupFieldList',
|
|
137
204
|
groupId: 'groupId',
|
|
138
205
|
groupType: 'groupType',
|
|
206
|
+
metric: 'metric',
|
|
207
|
+
metricSet: 'metricSet',
|
|
139
208
|
namespace: 'namespace',
|
|
140
209
|
queries: 'queries',
|
|
141
210
|
relationType: 'relationType',
|
|
@@ -149,12 +218,16 @@ export class AlertRuleQuery extends $dara.Model {
|
|
|
149
218
|
return {
|
|
150
219
|
checkAfterDataComplete: 'boolean',
|
|
151
220
|
dimensions: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
|
|
221
|
+
domain: 'string',
|
|
152
222
|
duration: 'number',
|
|
223
|
+
entityFilter: AlertRuleQueryEntityFilter,
|
|
153
224
|
expr: 'string',
|
|
154
225
|
firstJoin: AlertRuleSlsQueryJoin,
|
|
155
226
|
groupFieldList: { 'type': 'array', 'itemType': 'string' },
|
|
156
227
|
groupId: 'string',
|
|
157
228
|
groupType: 'string',
|
|
229
|
+
metric: 'string',
|
|
230
|
+
metricSet: 'string',
|
|
158
231
|
namespace: 'string',
|
|
159
232
|
queries: { 'type': 'array', 'itemType': AlertRuleQueryQueries },
|
|
160
233
|
relationType: 'string',
|
|
@@ -168,6 +241,9 @@ export class AlertRuleQuery extends $dara.Model {
|
|
|
168
241
|
if(Array.isArray(this.dimensions)) {
|
|
169
242
|
$dara.Model.validateArray(this.dimensions);
|
|
170
243
|
}
|
|
244
|
+
if(this.entityFilter && typeof (this.entityFilter as any).validate === 'function') {
|
|
245
|
+
(this.entityFilter as any).validate();
|
|
246
|
+
}
|
|
171
247
|
if(this.firstJoin && typeof (this.firstJoin as any).validate === 'function') {
|
|
172
248
|
(this.firstJoin as any).validate();
|
|
173
249
|
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListIntegrationPoliciesRequestTag extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* test
|
|
9
|
+
*/
|
|
10
|
+
key?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* value
|
|
14
|
+
*/
|
|
15
|
+
value?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
key: 'key',
|
|
19
|
+
value: 'value',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
key: 'string',
|
|
26
|
+
value: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class ListIntegrationPoliciesRequest extends $dara.Model {
|
|
40
|
+
/**
|
|
41
|
+
* @example
|
|
42
|
+
* cs-default
|
|
43
|
+
*/
|
|
44
|
+
addonName?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @example
|
|
47
|
+
* eg-1,eg-2,eg-3
|
|
48
|
+
*/
|
|
49
|
+
entityGroupIds?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @example
|
|
52
|
+
* cn-beijing,cn-hangzhou
|
|
53
|
+
*/
|
|
54
|
+
filterRegionIds?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @example
|
|
57
|
+
* 30
|
|
58
|
+
*/
|
|
59
|
+
maxResults?: number;
|
|
60
|
+
/**
|
|
61
|
+
* @example
|
|
62
|
+
* mvnX6zqg3P
|
|
63
|
+
*/
|
|
64
|
+
nextToken?: string;
|
|
65
|
+
/**
|
|
66
|
+
* @example
|
|
67
|
+
* policy-93817a401f78435596d745a97d2e85a1
|
|
68
|
+
*/
|
|
69
|
+
policyId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @example
|
|
72
|
+
* prod-database
|
|
73
|
+
*/
|
|
74
|
+
policyName?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @example
|
|
77
|
+
* CS
|
|
78
|
+
*/
|
|
79
|
+
policyType?: string;
|
|
80
|
+
prometheusInstanceId?: string;
|
|
81
|
+
/**
|
|
82
|
+
* @example
|
|
83
|
+
* test
|
|
84
|
+
*/
|
|
85
|
+
query?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @example
|
|
88
|
+
* rg-xxxxx
|
|
89
|
+
*/
|
|
90
|
+
resourceGroupId?: string;
|
|
91
|
+
tag?: ListIntegrationPoliciesRequestTag[];
|
|
92
|
+
/**
|
|
93
|
+
* @example
|
|
94
|
+
* demo
|
|
95
|
+
*/
|
|
96
|
+
workspace?: string;
|
|
97
|
+
static names(): { [key: string]: string } {
|
|
98
|
+
return {
|
|
99
|
+
addonName: 'addonName',
|
|
100
|
+
entityGroupIds: 'entityGroupIds',
|
|
101
|
+
filterRegionIds: 'filterRegionIds',
|
|
102
|
+
maxResults: 'maxResults',
|
|
103
|
+
nextToken: 'nextToken',
|
|
104
|
+
policyId: 'policyId',
|
|
105
|
+
policyName: 'policyName',
|
|
106
|
+
policyType: 'policyType',
|
|
107
|
+
prometheusInstanceId: 'prometheusInstanceId',
|
|
108
|
+
query: 'query',
|
|
109
|
+
resourceGroupId: 'resourceGroupId',
|
|
110
|
+
tag: 'tag',
|
|
111
|
+
workspace: 'workspace',
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static types(): { [key: string]: any } {
|
|
116
|
+
return {
|
|
117
|
+
addonName: 'string',
|
|
118
|
+
entityGroupIds: 'string',
|
|
119
|
+
filterRegionIds: 'string',
|
|
120
|
+
maxResults: 'number',
|
|
121
|
+
nextToken: 'string',
|
|
122
|
+
policyId: 'string',
|
|
123
|
+
policyName: 'string',
|
|
124
|
+
policyType: 'string',
|
|
125
|
+
prometheusInstanceId: 'string',
|
|
126
|
+
query: 'string',
|
|
127
|
+
resourceGroupId: 'string',
|
|
128
|
+
tag: { 'type': 'array', 'itemType': ListIntegrationPoliciesRequestTag },
|
|
129
|
+
workspace: 'string',
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
validate() {
|
|
134
|
+
if(Array.isArray(this.tag)) {
|
|
135
|
+
$dara.Model.validateArray(this.tag);
|
|
136
|
+
}
|
|
137
|
+
super.validate();
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
constructor(map?: { [key: string]: any }) {
|
|
141
|
+
super(map);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListIntegrationPoliciesResponseBody } from "./ListIntegrationPoliciesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListIntegrationPoliciesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListIntegrationPoliciesResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ListIntegrationPoliciesResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|