Skip to content

Commit d9ae04f

Browse files
committed
Support API ReadSchedulerxDesignateInfo.
1 parent fc49a34 commit d9ae04f

10 files changed

+564
-1
lines changed

schedulerx2-20190430/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/schedulerx220190430",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

schedulerx2-20190430/src/client.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,6 +2107,64 @@ export default class Client extends OpenApi {
21072107
return await this.readSchedulerxDesignateDetailWithOptions(request, runtime);
21082108
}
21092109

2110+
/**
2111+
* 获取指定机器基本信息
2112+
*
2113+
* @param request - ReadSchedulerxDesignateInfoRequest
2114+
* @param runtime - runtime options for this request RuntimeOptions
2115+
* @returns ReadSchedulerxDesignateInfoResponse
2116+
*/
2117+
async readSchedulerxDesignateInfoWithOptions(request: $_model.ReadSchedulerxDesignateInfoRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ReadSchedulerxDesignateInfoResponse> {
2118+
request.validate();
2119+
let query = { };
2120+
if (!$dara.isNull(request.groupId)) {
2121+
query["GroupId"] = request.groupId;
2122+
}
2123+
2124+
if (!$dara.isNull(request.jobId)) {
2125+
query["JobId"] = request.jobId;
2126+
}
2127+
2128+
if (!$dara.isNull(request.namespace)) {
2129+
query["Namespace"] = request.namespace;
2130+
}
2131+
2132+
if (!$dara.isNull(request.namespaceSource)) {
2133+
query["NamespaceSource"] = request.namespaceSource;
2134+
}
2135+
2136+
if (!$dara.isNull(request.regionId)) {
2137+
query["RegionId"] = request.regionId;
2138+
}
2139+
2140+
let req = new $OpenApiUtil.OpenApiRequest({
2141+
query: OpenApiUtil.query(query),
2142+
});
2143+
let params = new $OpenApiUtil.Params({
2144+
action: "ReadSchedulerxDesignateInfo",
2145+
version: "2019-04-30",
2146+
protocol: "HTTPS",
2147+
pathname: "/",
2148+
method: "POST",
2149+
authType: "AK",
2150+
style: "RPC",
2151+
reqBodyType: "formData",
2152+
bodyType: "json",
2153+
});
2154+
return $dara.cast<$_model.ReadSchedulerxDesignateInfoResponse>(await this.callApi(params, req, runtime), new $_model.ReadSchedulerxDesignateInfoResponse({}));
2155+
}
2156+
2157+
/**
2158+
* 获取指定机器基本信息
2159+
*
2160+
* @param request - ReadSchedulerxDesignateInfoRequest
2161+
* @returns ReadSchedulerxDesignateInfoResponse
2162+
*/
2163+
async readSchedulerxDesignateInfo(request: $_model.ReadSchedulerxDesignateInfoRequest): Promise<$_model.ReadSchedulerxDesignateInfoResponse> {
2164+
let runtime = new $dara.RuntimeOptions({ });
2165+
return await this.readSchedulerxDesignateInfoWithOptions(request, runtime);
2166+
}
2167+
21102168
/**
21112169
* Reruns a job to obtain the historical data of the job. You can call this operation only in the professional edition.
21122170
*
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class ReadSchedulerxDesignateInfoRequest extends $dara.Model {
6+
/**
7+
* @remarks
8+
* This parameter is required.
9+
*
10+
* @example
11+
* test.defalutGroup
12+
*/
13+
groupId?: string;
14+
/**
15+
* @remarks
16+
* This parameter is required.
17+
*
18+
* @example
19+
* 368
20+
*/
21+
jobId?: number;
22+
/**
23+
* @remarks
24+
* This parameter is required.
25+
*
26+
* @example
27+
* adcfc35d-e2fe-4fe9-bbaa-20e90ffc****
28+
*/
29+
namespace?: string;
30+
/**
31+
* @example
32+
* schedulerx
33+
*/
34+
namespaceSource?: string;
35+
/**
36+
* @remarks
37+
* This parameter is required.
38+
*
39+
* @example
40+
* cn-hangzhou
41+
*/
42+
regionId?: string;
43+
static names(): { [key: string]: string } {
44+
return {
45+
groupId: 'GroupId',
46+
jobId: 'JobId',
47+
namespace: 'Namespace',
48+
namespaceSource: 'NamespaceSource',
49+
regionId: 'RegionId',
50+
};
51+
}
52+
53+
static types(): { [key: string]: any } {
54+
return {
55+
groupId: 'string',
56+
jobId: 'number',
57+
namespace: 'string',
58+
namespaceSource: 'string',
59+
regionId: 'string',
60+
};
61+
}
62+
63+
validate() {
64+
super.validate();
65+
}
66+
67+
constructor(map?: { [key: string]: any }) {
68+
super(map);
69+
}
70+
}
71+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
import { ReadSchedulerxDesignateInfoResponseBody } from "./ReadSchedulerxDesignateInfoResponseBody";
4+
5+
6+
export class ReadSchedulerxDesignateInfoResponse extends $dara.Model {
7+
headers?: { [key: string]: string };
8+
statusCode?: number;
9+
body?: ReadSchedulerxDesignateInfoResponseBody;
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: ReadSchedulerxDesignateInfoResponseBody,
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+
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
import { ReadSchedulerxDesignateInfoResponseBodyAccessDeniedDetail } from "./ReadSchedulerxDesignateInfoResponseBodyAccessDeniedDetail";
4+
import { ReadSchedulerxDesignateInfoResponseBodyData } from "./ReadSchedulerxDesignateInfoResponseBodyData";
5+
6+
7+
export class ReadSchedulerxDesignateInfoResponseBody extends $dara.Model {
8+
accessDeniedDetail?: ReadSchedulerxDesignateInfoResponseBodyAccessDeniedDetail;
9+
/**
10+
* @example
11+
* 200
12+
*/
13+
code?: number;
14+
/**
15+
* @remarks
16+
* -
17+
*/
18+
data?: ReadSchedulerxDesignateInfoResponseBodyData;
19+
/**
20+
* @example
21+
* jobId=xxx is not existed
22+
*/
23+
message?: string;
24+
/**
25+
* @example
26+
* 4F68ABED-AC31-4412-9297-D9A8F0401108
27+
*/
28+
requestId?: string;
29+
/**
30+
* @example
31+
* true
32+
*/
33+
success?: boolean;
34+
static names(): { [key: string]: string } {
35+
return {
36+
accessDeniedDetail: 'AccessDeniedDetail',
37+
code: 'Code',
38+
data: 'Data',
39+
message: 'Message',
40+
requestId: 'RequestId',
41+
success: 'Success',
42+
};
43+
}
44+
45+
static types(): { [key: string]: any } {
46+
return {
47+
accessDeniedDetail: ReadSchedulerxDesignateInfoResponseBodyAccessDeniedDetail,
48+
code: 'number',
49+
data: ReadSchedulerxDesignateInfoResponseBodyData,
50+
message: 'string',
51+
requestId: 'string',
52+
success: 'boolean',
53+
};
54+
}
55+
56+
validate() {
57+
if(this.accessDeniedDetail && typeof (this.accessDeniedDetail as any).validate === 'function') {
58+
(this.accessDeniedDetail as any).validate();
59+
}
60+
if(this.data && typeof (this.data as any).validate === 'function') {
61+
(this.data as any).validate();
62+
}
63+
super.validate();
64+
}
65+
66+
constructor(map?: { [key: string]: any }) {
67+
super(map);
68+
}
69+
}
70+
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
4+
5+
export class ReadSchedulerxDesignateInfoResponseBodyAccessDeniedDetail extends $dara.Model {
6+
/**
7+
* @example
8+
* edas:ReadSchedulerxDesignateInfo
9+
*/
10+
authAction?: string;
11+
/**
12+
* @example
13+
* 209312833131416xxx
14+
*/
15+
authPrincipalDisplayName?: string;
16+
/**
17+
* @example
18+
* 1827811800526xxx
19+
*/
20+
authPrincipalOwnerId?: string;
21+
/**
22+
* @example
23+
* SubUser
24+
*/
25+
authPrincipalType?: string;
26+
/**
27+
* @example
28+
* AQFn/cLPZ/3Cz0YxQkZBMjVGLTY0REUtNTlGNS05NzUwLTgyMUE4M0MwMTFDRQ==
29+
*/
30+
encodedDiagnosticMessage?: string;
31+
/**
32+
* @example
33+
* ImplicitDeny
34+
*/
35+
noPermissionType?: string;
36+
/**
37+
* @example
38+
* AccountLevelIdentityBasedPolicy
39+
*/
40+
policyType?: string;
41+
static names(): { [key: string]: string } {
42+
return {
43+
authAction: 'AuthAction',
44+
authPrincipalDisplayName: 'AuthPrincipalDisplayName',
45+
authPrincipalOwnerId: 'AuthPrincipalOwnerId',
46+
authPrincipalType: 'AuthPrincipalType',
47+
encodedDiagnosticMessage: 'EncodedDiagnosticMessage',
48+
noPermissionType: 'NoPermissionType',
49+
policyType: 'PolicyType',
50+
};
51+
}
52+
53+
static types(): { [key: string]: any } {
54+
return {
55+
authAction: 'string',
56+
authPrincipalDisplayName: 'string',
57+
authPrincipalOwnerId: 'string',
58+
authPrincipalType: 'string',
59+
encodedDiagnosticMessage: 'string',
60+
noPermissionType: 'string',
61+
policyType: 'string',
62+
};
63+
}
64+
65+
validate() {
66+
super.validate();
67+
}
68+
69+
constructor(map?: { [key: string]: any }) {
70+
super(map);
71+
}
72+
}
73+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// This file is auto-generated, don't edit it
2+
import * as $dara from '@darabonba/typescript';
3+
import { ReadSchedulerxDesignateInfoResponseBodyDataDesignateDetailVos } from "./ReadSchedulerxDesignateInfoResponseBodyDataDesignateDetailVos";
4+
5+
6+
export class ReadSchedulerxDesignateInfoResponseBodyData extends $dara.Model {
7+
/**
8+
* @remarks
9+
* -
10+
*/
11+
designateDetailVos?: ReadSchedulerxDesignateInfoResponseBodyDataDesignateDetailVos[];
12+
/**
13+
* @example
14+
* 1
15+
*/
16+
designateType?: number;
17+
/**
18+
* @example
19+
* true
20+
*/
21+
transferable?: boolean;
22+
static names(): { [key: string]: string } {
23+
return {
24+
designateDetailVos: 'DesignateDetailVos',
25+
designateType: 'DesignateType',
26+
transferable: 'Transferable',
27+
};
28+
}
29+
30+
static types(): { [key: string]: any } {
31+
return {
32+
designateDetailVos: { 'type': 'array', 'itemType': ReadSchedulerxDesignateInfoResponseBodyDataDesignateDetailVos },
33+
designateType: 'number',
34+
transferable: 'boolean',
35+
};
36+
}
37+
38+
validate() {
39+
if(Array.isArray(this.designateDetailVos)) {
40+
$dara.Model.validateArray(this.designateDetailVos);
41+
}
42+
super.validate();
43+
}
44+
45+
constructor(map?: { [key: string]: any }) {
46+
super(map);
47+
}
48+
}
49+

0 commit comments

Comments
 (0)