@alicloud/alidns20150109 4.1.1 → 4.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 +15 -0
- package/dist/client.js +48 -0
- package/dist/client.js.map +1 -1
- package/dist/models/SetCloudGtmInstanceConfigLogSwitchRequest.d.ts +40 -0
- package/dist/models/SetCloudGtmInstanceConfigLogSwitchRequest.js +64 -0
- package/dist/models/SetCloudGtmInstanceConfigLogSwitchRequest.js.map +1 -0
- package/dist/models/SetCloudGtmInstanceConfigLogSwitchResponse.d.ts +19 -0
- package/dist/models/SetCloudGtmInstanceConfigLogSwitchResponse.js +69 -0
- package/dist/models/SetCloudGtmInstanceConfigLogSwitchResponse.js.map +1 -0
- package/dist/models/SetCloudGtmInstanceConfigLogSwitchResponseBody.d.ts +23 -0
- package/dist/models/SetCloudGtmInstanceConfigLogSwitchResponseBody.js +60 -0
- package/dist/models/SetCloudGtmInstanceConfigLogSwitchResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +3 -0
- package/dist/models/model.js +11 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +54 -0
- package/src/models/SetCloudGtmInstanceConfigLogSwitchRequest.ts +59 -0
- package/src/models/SetCloudGtmInstanceConfigLogSwitchResponse.ts +40 -0
- package/src/models/SetCloudGtmInstanceConfigLogSwitchResponseBody.ts +38 -0
- package/src/models/model.ts +3 -0
package/src/client.ts
CHANGED
|
@@ -9896,6 +9896,60 @@ export default class Client extends OpenApi {
|
|
|
9896
9896
|
return await this.searchRecursionZonesWithOptions(request, runtime);
|
|
9897
9897
|
}
|
|
9898
9898
|
|
|
9899
|
+
/**
|
|
9900
|
+
* 设置全局流量管理实例配置日志开关
|
|
9901
|
+
*
|
|
9902
|
+
* @param request - SetCloudGtmInstanceConfigLogSwitchRequest
|
|
9903
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
9904
|
+
* @returns SetCloudGtmInstanceConfigLogSwitchResponse
|
|
9905
|
+
*/
|
|
9906
|
+
async setCloudGtmInstanceConfigLogSwitchWithOptions(request: $_model.SetCloudGtmInstanceConfigLogSwitchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SetCloudGtmInstanceConfigLogSwitchResponse> {
|
|
9907
|
+
request.validate();
|
|
9908
|
+
let query = { };
|
|
9909
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
9910
|
+
query["ClientToken"] = request.clientToken;
|
|
9911
|
+
}
|
|
9912
|
+
|
|
9913
|
+
if (!$dara.isNull(request.configId)) {
|
|
9914
|
+
query["ConfigId"] = request.configId;
|
|
9915
|
+
}
|
|
9916
|
+
|
|
9917
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
9918
|
+
query["InstanceId"] = request.instanceId;
|
|
9919
|
+
}
|
|
9920
|
+
|
|
9921
|
+
if (!$dara.isNull(request.status)) {
|
|
9922
|
+
query["Status"] = request.status;
|
|
9923
|
+
}
|
|
9924
|
+
|
|
9925
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
9926
|
+
query: OpenApiUtil.query(query),
|
|
9927
|
+
});
|
|
9928
|
+
let params = new $OpenApiUtil.Params({
|
|
9929
|
+
action: "SetCloudGtmInstanceConfigLogSwitch",
|
|
9930
|
+
version: "2015-01-09",
|
|
9931
|
+
protocol: "HTTPS",
|
|
9932
|
+
pathname: "/",
|
|
9933
|
+
method: "POST",
|
|
9934
|
+
authType: "AK",
|
|
9935
|
+
style: "RPC",
|
|
9936
|
+
reqBodyType: "formData",
|
|
9937
|
+
bodyType: "json",
|
|
9938
|
+
});
|
|
9939
|
+
return $dara.cast<$_model.SetCloudGtmInstanceConfigLogSwitchResponse>(await this.callApi(params, req, runtime), new $_model.SetCloudGtmInstanceConfigLogSwitchResponse({}));
|
|
9940
|
+
}
|
|
9941
|
+
|
|
9942
|
+
/**
|
|
9943
|
+
* 设置全局流量管理实例配置日志开关
|
|
9944
|
+
*
|
|
9945
|
+
* @param request - SetCloudGtmInstanceConfigLogSwitchRequest
|
|
9946
|
+
* @returns SetCloudGtmInstanceConfigLogSwitchResponse
|
|
9947
|
+
*/
|
|
9948
|
+
async setCloudGtmInstanceConfigLogSwitch(request: $_model.SetCloudGtmInstanceConfigLogSwitchRequest): Promise<$_model.SetCloudGtmInstanceConfigLogSwitchResponse> {
|
|
9949
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
9950
|
+
return await this.setCloudGtmInstanceConfigLogSwitchWithOptions(request, runtime);
|
|
9951
|
+
}
|
|
9952
|
+
|
|
9899
9953
|
/**
|
|
9900
9954
|
* Enables or disables weighted round-robin based on the specified parameters.
|
|
9901
9955
|
*
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SetCloudGtmInstanceConfigLogSwitchRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* F4D7C841-A1C9-50B4-88B7-F5****
|
|
9
|
+
*/
|
|
10
|
+
clientToken?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* Config-000****
|
|
17
|
+
*/
|
|
18
|
+
configId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* gtm-cn-wwo3a3h****
|
|
22
|
+
*/
|
|
23
|
+
instanceId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* enable
|
|
30
|
+
* disable
|
|
31
|
+
*/
|
|
32
|
+
status?: string;
|
|
33
|
+
static names(): { [key: string]: string } {
|
|
34
|
+
return {
|
|
35
|
+
clientToken: 'ClientToken',
|
|
36
|
+
configId: 'ConfigId',
|
|
37
|
+
instanceId: 'InstanceId',
|
|
38
|
+
status: 'Status',
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
static types(): { [key: string]: any } {
|
|
43
|
+
return {
|
|
44
|
+
clientToken: 'string',
|
|
45
|
+
configId: 'string',
|
|
46
|
+
instanceId: 'string',
|
|
47
|
+
status: 'string',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
validate() {
|
|
52
|
+
super.validate();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
constructor(map?: { [key: string]: any }) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { SetCloudGtmInstanceConfigLogSwitchResponseBody } from "./SetCloudGtmInstanceConfigLogSwitchResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class SetCloudGtmInstanceConfigLogSwitchResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: SetCloudGtmInstanceConfigLogSwitchResponseBody;
|
|
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: SetCloudGtmInstanceConfigLogSwitchResponseBody,
|
|
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
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SetCloudGtmInstanceConfigLogSwitchResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 536E9CAD-DB30-4647-AC87-AA5CC38C5382
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* true
|
|
14
|
+
*/
|
|
15
|
+
success?: boolean;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
requestId: 'RequestId',
|
|
19
|
+
success: 'Success',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
requestId: 'string',
|
|
26
|
+
success: 'boolean',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -829,6 +829,9 @@ export { SearchRecursionZonesRequest } from './SearchRecursionZonesRequest';
|
|
|
829
829
|
export { SearchRecursionZonesShrinkRequest } from './SearchRecursionZonesShrinkRequest';
|
|
830
830
|
export { SearchRecursionZonesResponseBody } from './SearchRecursionZonesResponseBody';
|
|
831
831
|
export { SearchRecursionZonesResponse } from './SearchRecursionZonesResponse';
|
|
832
|
+
export { SetCloudGtmInstanceConfigLogSwitchRequest } from './SetCloudGtmInstanceConfigLogSwitchRequest';
|
|
833
|
+
export { SetCloudGtmInstanceConfigLogSwitchResponseBody } from './SetCloudGtmInstanceConfigLogSwitchResponseBody';
|
|
834
|
+
export { SetCloudGtmInstanceConfigLogSwitchResponse } from './SetCloudGtmInstanceConfigLogSwitchResponse';
|
|
832
835
|
export { SetDNSSLBStatusRequest } from './SetDnsslbstatusRequest';
|
|
833
836
|
export { SetDNSSLBStatusResponseBody } from './SetDnsslbstatusResponseBody';
|
|
834
837
|
export { SetDNSSLBStatusResponse } from './SetDnsslbstatusResponse';
|