gs2 1.4.24 → 1.4.26
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/guard/index.d.ts +5 -0
- package/guard/index.js +28 -0
- package/guard/index.js.map +1 -0
- package/guard/index.ts +27 -0
- package/guard/model/BlockingPolicyModel.d.ts +65 -0
- package/guard/model/BlockingPolicyModel.js +248 -0
- package/guard/model/BlockingPolicyModel.js.map +1 -0
- package/guard/model/BlockingPolicyModel.ts +252 -0
- package/guard/model/Namespace.d.ts +43 -0
- package/guard/model/Namespace.js +184 -0
- package/guard/model/Namespace.js.map +1 -0
- package/guard/model/Namespace.ts +192 -0
- package/guard/model/index.d.ts +3 -0
- package/guard/model/index.js +24 -0
- package/guard/model/index.js.map +1 -0
- package/guard/model/index.ts +22 -0
- package/guard/request/CreateNamespaceRequest.d.ts +30 -0
- package/guard/request/CreateNamespaceRequest.js +100 -0
- package/guard/request/CreateNamespaceRequest.js.map +1 -0
- package/guard/request/CreateNamespaceRequest.ts +104 -0
- package/guard/request/DeleteNamespaceRequest.d.ts +21 -0
- package/guard/request/DeleteNamespaceRequest.js +69 -0
- package/guard/request/DeleteNamespaceRequest.js.map +1 -0
- package/guard/request/DeleteNamespaceRequest.ts +76 -0
- package/guard/request/DescribeNamespacesRequest.d.ts +25 -0
- package/guard/request/DescribeNamespacesRequest.js +83 -0
- package/guard/request/DescribeNamespacesRequest.js.map +1 -0
- package/guard/request/DescribeNamespacesRequest.ts +90 -0
- package/guard/request/GetNamespaceRequest.d.ts +21 -0
- package/guard/request/GetNamespaceRequest.js +69 -0
- package/guard/request/GetNamespaceRequest.js.map +1 -0
- package/guard/request/GetNamespaceRequest.ts +76 -0
- package/guard/request/GetNamespaceStatusRequest.d.ts +21 -0
- package/guard/request/GetNamespaceStatusRequest.js +69 -0
- package/guard/request/GetNamespaceStatusRequest.js.map +1 -0
- package/guard/request/GetNamespaceStatusRequest.ts +76 -0
- package/guard/request/UpdateNamespaceRequest.d.ts +30 -0
- package/guard/request/UpdateNamespaceRequest.js +100 -0
- package/guard/request/UpdateNamespaceRequest.js.map +1 -0
- package/guard/request/UpdateNamespaceRequest.ts +104 -0
- package/guard/request/index.d.ts +7 -0
- package/guard/request/index.js +32 -0
- package/guard/request/index.js.map +1 -0
- package/guard/request/index.ts +30 -0
- package/guard/rest.d.ts +13 -0
- package/guard/rest.js +176 -0
- package/guard/rest.js.map +1 -0
- package/guard/rest.ts +198 -0
- package/guard/result/CreateNamespaceResult.d.ts +14 -0
- package/guard/result/CreateNamespaceResult.js +48 -0
- package/guard/result/CreateNamespaceResult.js.map +1 -0
- package/guard/result/CreateNamespaceResult.ts +47 -0
- package/guard/result/DeleteNamespaceResult.d.ts +14 -0
- package/guard/result/DeleteNamespaceResult.js +48 -0
- package/guard/result/DeleteNamespaceResult.js.map +1 -0
- package/guard/result/DeleteNamespaceResult.ts +47 -0
- package/guard/result/DescribeNamespacesResult.d.ts +18 -0
- package/guard/result/DescribeNamespacesResult.js +67 -0
- package/guard/result/DescribeNamespacesResult.js.map +1 -0
- package/guard/result/DescribeNamespacesResult.ts +72 -0
- package/guard/result/GetNamespaceResult.d.ts +14 -0
- package/guard/result/GetNamespaceResult.js +48 -0
- package/guard/result/GetNamespaceResult.js.map +1 -0
- package/guard/result/GetNamespaceResult.ts +47 -0
- package/guard/result/GetNamespaceStatusResult.d.ts +13 -0
- package/guard/result/GetNamespaceStatusResult.js +45 -0
- package/guard/result/GetNamespaceStatusResult.js.map +1 -0
- package/guard/result/GetNamespaceStatusResult.ts +46 -0
- package/guard/result/UpdateNamespaceResult.d.ts +14 -0
- package/guard/result/UpdateNamespaceResult.js +48 -0
- package/guard/result/UpdateNamespaceResult.js.map +1 -0
- package/guard/result/UpdateNamespaceResult.ts +47 -0
- package/guard/result/index.d.ts +7 -0
- package/guard/result/index.js +32 -0
- package/guard/result/index.js.map +1 -0
- package/guard/result/index.ts +30 -0
- package/identifier/request/AttachGuardRequest.d.ts +29 -0
- package/identifier/request/AttachGuardRequest.js +97 -0
- package/identifier/request/AttachGuardRequest.js.map +1 -0
- package/identifier/request/AttachGuardRequest.ts +104 -0
- package/identifier/request/DescribeAttachedGuardsRequest.d.ts +25 -0
- package/identifier/request/DescribeAttachedGuardsRequest.js +83 -0
- package/identifier/request/DescribeAttachedGuardsRequest.js.map +1 -0
- package/identifier/request/DescribeAttachedGuardsRequest.ts +90 -0
- package/identifier/request/DetachGuardRequest.d.ts +29 -0
- package/identifier/request/DetachGuardRequest.js +97 -0
- package/identifier/request/DetachGuardRequest.js.map +1 -0
- package/identifier/request/DetachGuardRequest.ts +104 -0
- package/identifier/request/index.d.ts +4 -1
- package/identifier/request/index.js +7 -1
- package/identifier/request/index.js.map +1 -1
- package/identifier/request/index.ts +6 -0
- package/identifier/rest.d.ts +3 -0
- package/identifier/rest.js +75 -0
- package/identifier/rest.js.map +1 -1
- package/identifier/rest.ts +87 -0
- package/identifier/result/AttachGuardResult.d.ts +13 -0
- package/identifier/result/AttachGuardResult.js +51 -0
- package/identifier/result/AttachGuardResult.js.map +1 -0
- package/identifier/result/AttachGuardResult.ts +54 -0
- package/identifier/result/DescribeAttachedGuardsResult.d.ts +13 -0
- package/identifier/result/DescribeAttachedGuardsResult.js +51 -0
- package/identifier/result/DescribeAttachedGuardsResult.js.map +1 -0
- package/identifier/result/DescribeAttachedGuardsResult.ts +54 -0
- package/identifier/result/DetachGuardResult.d.ts +13 -0
- package/identifier/result/DetachGuardResult.js +51 -0
- package/identifier/result/DetachGuardResult.js.map +1 -0
- package/identifier/result/DetachGuardResult.ts +54 -0
- package/identifier/result/index.d.ts +4 -1
- package/identifier/result/index.js +7 -1
- package/identifier/result/index.js.map +1 -1
- package/identifier/result/index.ts +6 -0
- package/index.d.ts +2 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/index.ts +2 -0
- package/lock/request/index.d.ts +1 -3
- package/lock/request/index.js +1 -5
- package/lock/request/index.js.map +1 -1
- package/lock/request/index.ts +0 -4
- package/lock/rest.d.ts +0 -2
- package/lock/rest.js +0 -55
- package/lock/rest.js.map +1 -1
- package/lock/rest.ts +0 -63
- package/lock/result/index.d.ts +1 -3
- package/lock/result/index.js +1 -5
- package/lock/result/index.js.map +1 -1
- package/lock/result/index.ts +0 -4
- package/package.json +1 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var DescribeAttachedGuardsRequest = /** @class */ (function () {
|
|
19
|
+
function DescribeAttachedGuardsRequest() {
|
|
20
|
+
this.requestId = null;
|
|
21
|
+
this.contextStack = null;
|
|
22
|
+
this.clientId = null;
|
|
23
|
+
this.userName = null;
|
|
24
|
+
}
|
|
25
|
+
DescribeAttachedGuardsRequest.prototype.getRequestId = function () {
|
|
26
|
+
return this.requestId;
|
|
27
|
+
};
|
|
28
|
+
DescribeAttachedGuardsRequest.prototype.setRequestId = function (requestId) {
|
|
29
|
+
this.requestId = requestId;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
DescribeAttachedGuardsRequest.prototype.withRequestId = function (requestId) {
|
|
33
|
+
this.requestId = requestId;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
DescribeAttachedGuardsRequest.prototype.getContextStack = function () {
|
|
37
|
+
return this.contextStack;
|
|
38
|
+
};
|
|
39
|
+
DescribeAttachedGuardsRequest.prototype.setContextStack = function (contextStack) {
|
|
40
|
+
this.contextStack = contextStack;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
DescribeAttachedGuardsRequest.prototype.withContextStack = function (contextStack) {
|
|
44
|
+
this.contextStack = contextStack;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
DescribeAttachedGuardsRequest.prototype.getClientId = function () {
|
|
48
|
+
return this.clientId;
|
|
49
|
+
};
|
|
50
|
+
DescribeAttachedGuardsRequest.prototype.setClientId = function (clientId) {
|
|
51
|
+
this.clientId = clientId;
|
|
52
|
+
return this;
|
|
53
|
+
};
|
|
54
|
+
DescribeAttachedGuardsRequest.prototype.withClientId = function (clientId) {
|
|
55
|
+
this.clientId = clientId;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
DescribeAttachedGuardsRequest.prototype.getUserName = function () {
|
|
59
|
+
return this.userName;
|
|
60
|
+
};
|
|
61
|
+
DescribeAttachedGuardsRequest.prototype.setUserName = function (userName) {
|
|
62
|
+
this.userName = userName;
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
DescribeAttachedGuardsRequest.prototype.withUserName = function (userName) {
|
|
66
|
+
this.userName = userName;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
DescribeAttachedGuardsRequest.fromDict = function (data) {
|
|
70
|
+
return new DescribeAttachedGuardsRequest()
|
|
71
|
+
.withClientId(data["clientId"])
|
|
72
|
+
.withUserName(data["userName"]);
|
|
73
|
+
};
|
|
74
|
+
DescribeAttachedGuardsRequest.prototype.toDict = function () {
|
|
75
|
+
return {
|
|
76
|
+
"clientId": this.getClientId(),
|
|
77
|
+
"userName": this.getUserName(),
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
return DescribeAttachedGuardsRequest;
|
|
81
|
+
}());
|
|
82
|
+
exports.default = DescribeAttachedGuardsRequest;
|
|
83
|
+
//# sourceMappingURL=DescribeAttachedGuardsRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescribeAttachedGuardsRequest.js","sourceRoot":"","sources":["DescribeAttachedGuardsRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,aAAQ,GAAgB,IAAI,CAAC;IAgEzC,CAAC;IA9DU,oDAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,oDAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,qDAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,uDAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,uDAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,wDAAgB,GAAvB,UAAwB,YAAyB;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mDAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,mDAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,oDAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mDAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,mDAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,oDAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,sCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,6BAA6B,EAAE;aACrC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACxC,CAAC;IAEM,8CAAM,GAAb;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;SACjC,CAAC;IACN,CAAC;IACL,oCAAC;AAAD,CAAC,AArED,IAqEC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Identifier from '../model'
|
|
20
|
+
|
|
21
|
+
export default class DescribeAttachedGuardsRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private clientId: string|null = null;
|
|
26
|
+
private userName: string|null = null;
|
|
27
|
+
|
|
28
|
+
public getRequestId(): string|null {
|
|
29
|
+
return this.requestId;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public setRequestId(requestId: string|null) {
|
|
33
|
+
this.requestId = requestId;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public withRequestId(requestId: string|null): this {
|
|
38
|
+
this.requestId = requestId;
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public getContextStack(): string|null {
|
|
43
|
+
return this.contextStack;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public setContextStack(contextStack: string|null) {
|
|
47
|
+
this.contextStack = contextStack;
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public withContextStack(contextStack: string|null): this {
|
|
52
|
+
this.contextStack = contextStack;
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
public getClientId(): string|null {
|
|
56
|
+
return this.clientId;
|
|
57
|
+
}
|
|
58
|
+
public setClientId(clientId: string|null) {
|
|
59
|
+
this.clientId = clientId;
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
public withClientId(clientId: string|null): this {
|
|
63
|
+
this.clientId = clientId;
|
|
64
|
+
return this;
|
|
65
|
+
}
|
|
66
|
+
public getUserName(): string|null {
|
|
67
|
+
return this.userName;
|
|
68
|
+
}
|
|
69
|
+
public setUserName(userName: string|null) {
|
|
70
|
+
this.userName = userName;
|
|
71
|
+
return this;
|
|
72
|
+
}
|
|
73
|
+
public withUserName(userName: string|null): this {
|
|
74
|
+
this.userName = userName;
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
public static fromDict(data: {[key: string]: any}): DescribeAttachedGuardsRequest {
|
|
79
|
+
return new DescribeAttachedGuardsRequest()
|
|
80
|
+
.withClientId(data["clientId"])
|
|
81
|
+
.withUserName(data["userName"]);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
public toDict(): {[key: string]: any} {
|
|
85
|
+
return {
|
|
86
|
+
"clientId": this.getClientId(),
|
|
87
|
+
"userName": this.getUserName(),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class DetachGuardRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private userName;
|
|
6
|
+
private clientId;
|
|
7
|
+
private guardNamespaceId;
|
|
8
|
+
getRequestId(): string | null;
|
|
9
|
+
setRequestId(requestId: string | null): this;
|
|
10
|
+
withRequestId(requestId: string | null): this;
|
|
11
|
+
getContextStack(): string | null;
|
|
12
|
+
setContextStack(contextStack: string | null): this;
|
|
13
|
+
withContextStack(contextStack: string | null): this;
|
|
14
|
+
getUserName(): string | null;
|
|
15
|
+
setUserName(userName: string | null): this;
|
|
16
|
+
withUserName(userName: string | null): this;
|
|
17
|
+
getClientId(): string | null;
|
|
18
|
+
setClientId(clientId: string | null): this;
|
|
19
|
+
withClientId(clientId: string | null): this;
|
|
20
|
+
getGuardNamespaceId(): string | null;
|
|
21
|
+
setGuardNamespaceId(guardNamespaceId: string | null): this;
|
|
22
|
+
withGuardNamespaceId(guardNamespaceId: string | null): this;
|
|
23
|
+
static fromDict(data: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}): DetachGuardRequest;
|
|
26
|
+
toDict(): {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var DetachGuardRequest = /** @class */ (function () {
|
|
19
|
+
function DetachGuardRequest() {
|
|
20
|
+
this.requestId = null;
|
|
21
|
+
this.contextStack = null;
|
|
22
|
+
this.userName = null;
|
|
23
|
+
this.clientId = null;
|
|
24
|
+
this.guardNamespaceId = null;
|
|
25
|
+
}
|
|
26
|
+
DetachGuardRequest.prototype.getRequestId = function () {
|
|
27
|
+
return this.requestId;
|
|
28
|
+
};
|
|
29
|
+
DetachGuardRequest.prototype.setRequestId = function (requestId) {
|
|
30
|
+
this.requestId = requestId;
|
|
31
|
+
return this;
|
|
32
|
+
};
|
|
33
|
+
DetachGuardRequest.prototype.withRequestId = function (requestId) {
|
|
34
|
+
this.requestId = requestId;
|
|
35
|
+
return this;
|
|
36
|
+
};
|
|
37
|
+
DetachGuardRequest.prototype.getContextStack = function () {
|
|
38
|
+
return this.contextStack;
|
|
39
|
+
};
|
|
40
|
+
DetachGuardRequest.prototype.setContextStack = function (contextStack) {
|
|
41
|
+
this.contextStack = contextStack;
|
|
42
|
+
return this;
|
|
43
|
+
};
|
|
44
|
+
DetachGuardRequest.prototype.withContextStack = function (contextStack) {
|
|
45
|
+
this.contextStack = contextStack;
|
|
46
|
+
return this;
|
|
47
|
+
};
|
|
48
|
+
DetachGuardRequest.prototype.getUserName = function () {
|
|
49
|
+
return this.userName;
|
|
50
|
+
};
|
|
51
|
+
DetachGuardRequest.prototype.setUserName = function (userName) {
|
|
52
|
+
this.userName = userName;
|
|
53
|
+
return this;
|
|
54
|
+
};
|
|
55
|
+
DetachGuardRequest.prototype.withUserName = function (userName) {
|
|
56
|
+
this.userName = userName;
|
|
57
|
+
return this;
|
|
58
|
+
};
|
|
59
|
+
DetachGuardRequest.prototype.getClientId = function () {
|
|
60
|
+
return this.clientId;
|
|
61
|
+
};
|
|
62
|
+
DetachGuardRequest.prototype.setClientId = function (clientId) {
|
|
63
|
+
this.clientId = clientId;
|
|
64
|
+
return this;
|
|
65
|
+
};
|
|
66
|
+
DetachGuardRequest.prototype.withClientId = function (clientId) {
|
|
67
|
+
this.clientId = clientId;
|
|
68
|
+
return this;
|
|
69
|
+
};
|
|
70
|
+
DetachGuardRequest.prototype.getGuardNamespaceId = function () {
|
|
71
|
+
return this.guardNamespaceId;
|
|
72
|
+
};
|
|
73
|
+
DetachGuardRequest.prototype.setGuardNamespaceId = function (guardNamespaceId) {
|
|
74
|
+
this.guardNamespaceId = guardNamespaceId;
|
|
75
|
+
return this;
|
|
76
|
+
};
|
|
77
|
+
DetachGuardRequest.prototype.withGuardNamespaceId = function (guardNamespaceId) {
|
|
78
|
+
this.guardNamespaceId = guardNamespaceId;
|
|
79
|
+
return this;
|
|
80
|
+
};
|
|
81
|
+
DetachGuardRequest.fromDict = function (data) {
|
|
82
|
+
return new DetachGuardRequest()
|
|
83
|
+
.withUserName(data["userName"])
|
|
84
|
+
.withClientId(data["clientId"])
|
|
85
|
+
.withGuardNamespaceId(data["guardNamespaceId"]);
|
|
86
|
+
};
|
|
87
|
+
DetachGuardRequest.prototype.toDict = function () {
|
|
88
|
+
return {
|
|
89
|
+
"userName": this.getUserName(),
|
|
90
|
+
"clientId": this.getClientId(),
|
|
91
|
+
"guardNamespaceId": this.getGuardNamespaceId(),
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
return DetachGuardRequest;
|
|
95
|
+
}());
|
|
96
|
+
exports.default = DetachGuardRequest;
|
|
97
|
+
//# sourceMappingURL=DetachGuardRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DetachGuardRequest.js","sourceRoot":"","sources":["DetachGuardRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,qBAAgB,GAAgB,IAAI,CAAC;IA6EjD,CAAC;IA3EU,yCAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,yCAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,0CAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,4CAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,4CAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,6CAAgB,GAAvB,UAAwB,YAAyB;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,wCAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,wCAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,yCAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,wCAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,wCAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,yCAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,gDAAmB,GAA1B;QACI,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IACM,gDAAmB,GAA1B,UAA2B,gBAA6B;QACpD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,iDAAoB,GAA3B,UAA4B,gBAA6B;QACrD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,2BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,kBAAkB,EAAE;aAC1B,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,oBAAoB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACxD,CAAC;IAEM,mCAAM,GAAb;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,kBAAkB,EAAE,IAAI,CAAC,mBAAmB,EAAE;SACjD,CAAC;IACN,CAAC;IACL,yBAAC;AAAD,CAAC,AAnFD,IAmFC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Identifier from '../model'
|
|
20
|
+
|
|
21
|
+
export default class DetachGuardRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private userName: string|null = null;
|
|
26
|
+
private clientId: string|null = null;
|
|
27
|
+
private guardNamespaceId: string|null = null;
|
|
28
|
+
|
|
29
|
+
public getRequestId(): string|null {
|
|
30
|
+
return this.requestId;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public setRequestId(requestId: string|null) {
|
|
34
|
+
this.requestId = requestId;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public withRequestId(requestId: string|null): this {
|
|
39
|
+
this.requestId = requestId;
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public getContextStack(): string|null {
|
|
44
|
+
return this.contextStack;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public setContextStack(contextStack: string|null) {
|
|
48
|
+
this.contextStack = contextStack;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public withContextStack(contextStack: string|null): this {
|
|
53
|
+
this.contextStack = contextStack;
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
public getUserName(): string|null {
|
|
57
|
+
return this.userName;
|
|
58
|
+
}
|
|
59
|
+
public setUserName(userName: string|null) {
|
|
60
|
+
this.userName = userName;
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
public withUserName(userName: string|null): this {
|
|
64
|
+
this.userName = userName;
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
public getClientId(): string|null {
|
|
68
|
+
return this.clientId;
|
|
69
|
+
}
|
|
70
|
+
public setClientId(clientId: string|null) {
|
|
71
|
+
this.clientId = clientId;
|
|
72
|
+
return this;
|
|
73
|
+
}
|
|
74
|
+
public withClientId(clientId: string|null): this {
|
|
75
|
+
this.clientId = clientId;
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
public getGuardNamespaceId(): string|null {
|
|
79
|
+
return this.guardNamespaceId;
|
|
80
|
+
}
|
|
81
|
+
public setGuardNamespaceId(guardNamespaceId: string|null) {
|
|
82
|
+
this.guardNamespaceId = guardNamespaceId;
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
public withGuardNamespaceId(guardNamespaceId: string|null): this {
|
|
86
|
+
this.guardNamespaceId = guardNamespaceId;
|
|
87
|
+
return this;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public static fromDict(data: {[key: string]: any}): DetachGuardRequest {
|
|
91
|
+
return new DetachGuardRequest()
|
|
92
|
+
.withUserName(data["userName"])
|
|
93
|
+
.withClientId(data["clientId"])
|
|
94
|
+
.withGuardNamespaceId(data["guardNamespaceId"]);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public toDict(): {[key: string]: any} {
|
|
98
|
+
return {
|
|
99
|
+
"userName": this.getUserName(),
|
|
100
|
+
"clientId": this.getClientId(),
|
|
101
|
+
"guardNamespaceId": this.getGuardNamespaceId(),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -13,6 +13,9 @@ import DescribeIdentifiersRequest from "./DescribeIdentifiersRequest";
|
|
|
13
13
|
import CreateIdentifierRequest from "./CreateIdentifierRequest";
|
|
14
14
|
import GetIdentifierRequest from "./GetIdentifierRequest";
|
|
15
15
|
import DeleteIdentifierRequest from "./DeleteIdentifierRequest";
|
|
16
|
+
import DescribeAttachedGuardsRequest from "./DescribeAttachedGuardsRequest";
|
|
17
|
+
import AttachGuardRequest from "./AttachGuardRequest";
|
|
18
|
+
import DetachGuardRequest from "./DetachGuardRequest";
|
|
16
19
|
import DescribePasswordsRequest from "./DescribePasswordsRequest";
|
|
17
20
|
import CreatePasswordRequest from "./CreatePasswordRequest";
|
|
18
21
|
import GetPasswordRequest from "./GetPasswordRequest";
|
|
@@ -25,4 +28,4 @@ import AttachSecurityPolicyRequest from "./AttachSecurityPolicyRequest";
|
|
|
25
28
|
import DetachSecurityPolicyRequest from "./DetachSecurityPolicyRequest";
|
|
26
29
|
import LoginRequest from "./LoginRequest";
|
|
27
30
|
import LoginByUserRequest from "./LoginByUserRequest";
|
|
28
|
-
export { DescribeUsersRequest, CreateUserRequest, UpdateUserRequest, GetUserRequest, DeleteUserRequest, DescribeSecurityPoliciesRequest, DescribeCommonSecurityPoliciesRequest, CreateSecurityPolicyRequest, UpdateSecurityPolicyRequest, GetSecurityPolicyRequest, DeleteSecurityPolicyRequest, DescribeIdentifiersRequest, CreateIdentifierRequest, GetIdentifierRequest, DeleteIdentifierRequest, DescribePasswordsRequest, CreatePasswordRequest, GetPasswordRequest, EnableMfaRequest, ChallengeMfaRequest, DisableMfaRequest, DeletePasswordRequest, GetHasSecurityPolicyRequest, AttachSecurityPolicyRequest, DetachSecurityPolicyRequest, LoginRequest, LoginByUserRequest, };
|
|
31
|
+
export { DescribeUsersRequest, CreateUserRequest, UpdateUserRequest, GetUserRequest, DeleteUserRequest, DescribeSecurityPoliciesRequest, DescribeCommonSecurityPoliciesRequest, CreateSecurityPolicyRequest, UpdateSecurityPolicyRequest, GetSecurityPolicyRequest, DeleteSecurityPolicyRequest, DescribeIdentifiersRequest, CreateIdentifierRequest, GetIdentifierRequest, DeleteIdentifierRequest, DescribeAttachedGuardsRequest, AttachGuardRequest, DetachGuardRequest, DescribePasswordsRequest, CreatePasswordRequest, GetPasswordRequest, EnableMfaRequest, ChallengeMfaRequest, DisableMfaRequest, DeletePasswordRequest, GetHasSecurityPolicyRequest, AttachSecurityPolicyRequest, DetachSecurityPolicyRequest, LoginRequest, LoginByUserRequest, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoginByUserRequest = exports.LoginRequest = exports.DetachSecurityPolicyRequest = exports.AttachSecurityPolicyRequest = exports.GetHasSecurityPolicyRequest = exports.DeletePasswordRequest = exports.DisableMfaRequest = exports.ChallengeMfaRequest = exports.EnableMfaRequest = exports.GetPasswordRequest = exports.CreatePasswordRequest = exports.DescribePasswordsRequest = exports.DeleteIdentifierRequest = exports.GetIdentifierRequest = exports.CreateIdentifierRequest = exports.DescribeIdentifiersRequest = exports.DeleteSecurityPolicyRequest = exports.GetSecurityPolicyRequest = exports.UpdateSecurityPolicyRequest = exports.CreateSecurityPolicyRequest = exports.DescribeCommonSecurityPoliciesRequest = exports.DescribeSecurityPoliciesRequest = exports.DeleteUserRequest = exports.GetUserRequest = exports.UpdateUserRequest = exports.CreateUserRequest = exports.DescribeUsersRequest = void 0;
|
|
3
|
+
exports.LoginByUserRequest = exports.LoginRequest = exports.DetachSecurityPolicyRequest = exports.AttachSecurityPolicyRequest = exports.GetHasSecurityPolicyRequest = exports.DeletePasswordRequest = exports.DisableMfaRequest = exports.ChallengeMfaRequest = exports.EnableMfaRequest = exports.GetPasswordRequest = exports.CreatePasswordRequest = exports.DescribePasswordsRequest = exports.DetachGuardRequest = exports.AttachGuardRequest = exports.DescribeAttachedGuardsRequest = exports.DeleteIdentifierRequest = exports.GetIdentifierRequest = exports.CreateIdentifierRequest = exports.DescribeIdentifiersRequest = exports.DeleteSecurityPolicyRequest = exports.GetSecurityPolicyRequest = exports.UpdateSecurityPolicyRequest = exports.CreateSecurityPolicyRequest = exports.DescribeCommonSecurityPoliciesRequest = exports.DescribeSecurityPoliciesRequest = exports.DeleteUserRequest = exports.GetUserRequest = exports.UpdateUserRequest = exports.CreateUserRequest = exports.DescribeUsersRequest = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -47,6 +47,12 @@ var GetIdentifierRequest_1 = tslib_1.__importDefault(require("./GetIdentifierReq
|
|
|
47
47
|
exports.GetIdentifierRequest = GetIdentifierRequest_1.default;
|
|
48
48
|
var DeleteIdentifierRequest_1 = tslib_1.__importDefault(require("./DeleteIdentifierRequest"));
|
|
49
49
|
exports.DeleteIdentifierRequest = DeleteIdentifierRequest_1.default;
|
|
50
|
+
var DescribeAttachedGuardsRequest_1 = tslib_1.__importDefault(require("./DescribeAttachedGuardsRequest"));
|
|
51
|
+
exports.DescribeAttachedGuardsRequest = DescribeAttachedGuardsRequest_1.default;
|
|
52
|
+
var AttachGuardRequest_1 = tslib_1.__importDefault(require("./AttachGuardRequest"));
|
|
53
|
+
exports.AttachGuardRequest = AttachGuardRequest_1.default;
|
|
54
|
+
var DetachGuardRequest_1 = tslib_1.__importDefault(require("./DetachGuardRequest"));
|
|
55
|
+
exports.DetachGuardRequest = DetachGuardRequest_1.default;
|
|
50
56
|
var DescribePasswordsRequest_1 = tslib_1.__importDefault(require("./DescribePasswordsRequest"));
|
|
51
57
|
exports.DescribePasswordsRequest = DescribePasswordsRequest_1.default;
|
|
52
58
|
var CreatePasswordRequest_1 = tslib_1.__importDefault(require("./CreatePasswordRequest"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wFAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,wFAAyD;AAgCrD,+BAhCG,8BAAoB,CAgCH;AA/BxB,kFAAmD;AAgC/C,4BAhCG,2BAAiB,CAgCH;AA/BrB,kFAAmD;AAgC/C,4BAhCG,2BAAiB,CAgCH;AA/BrB,4EAA6C;AAgCzC,yBAhCG,wBAAc,CAgCH;AA/BlB,kFAAmD;AAgC/C,4BAhCG,2BAAiB,CAgCH;AA/BrB,8GAA+E;AAgC3E,0CAhCG,yCAA+B,CAgCH;AA/BnC,0HAA2F;AAgCvF,gDAhCG,+CAAqC,CAgCH;AA/BzC,sGAAuE;AAgCnE,sCAhCG,qCAA2B,CAgCH;AA/B/B,sGAAuE;AAgCnE,sCAhCG,qCAA2B,CAgCH;AA/B/B,gGAAiE;AAgC7D,mCAhCG,kCAAwB,CAgCH;AA/B5B,sGAAuE;AAgCnE,sCAhCG,qCAA2B,CAgCH;AA/B/B,oGAAqE;AAgCjE,qCAhCG,oCAA0B,CAgCH;AA/B9B,8FAA+D;AAgC3D,kCAhCG,iCAAuB,CAgCH;AA/B3B,wFAAyD;AAgCrD,+BAhCG,8BAAoB,CAgCH;AA/BxB,8FAA+D;AAgC3D,kCAhCG,iCAAuB,CAgCH;AA/B3B,0GAA2E;AAgCvE,wCAhCG,uCAA6B,CAgCH;AA/BjC,oFAAqD;AAgCjD,6BAhCG,4BAAkB,CAgCH;AA/BtB,oFAAqD;AAgCjD,6BAhCG,4BAAkB,CAgCH;AA/BtB,gGAAiE;AAgC7D,mCAhCG,kCAAwB,CAgCH;AA/B5B,0FAA2D;AAgCvD,gCAhCG,+BAAqB,CAgCH;AA/BzB,oFAAqD;AAgCjD,6BAhCG,4BAAkB,CAgCH;AA/BtB,gFAAiD;AAgC7C,2BAhCG,0BAAgB,CAgCH;AA/BpB,sFAAuD;AAgCnD,8BAhCG,6BAAmB,CAgCH;AA/BvB,kFAAmD;AAgC/C,4BAhCG,2BAAiB,CAgCH;AA/BrB,0FAA2D;AAgCvD,gCAhCG,+BAAqB,CAgCH;AA/BzB,sGAAuE;AAgCnE,sCAhCG,qCAA2B,CAgCH;AA/B/B,sGAAuE;AAgCnE,sCAhCG,qCAA2B,CAgCH;AA/B/B,sGAAuE;AAgCnE,sCAhCG,qCAA2B,CAgCH;AA/B/B,wEAAyC;AAgCrC,uBAhCG,sBAAY,CAgCH;AA/BhB,oFAAqD;AAgCjD,6BAhCG,4BAAkB,CAgCH"}
|
|
@@ -28,6 +28,9 @@ import DescribeIdentifiersRequest from "./DescribeIdentifiersRequest"
|
|
|
28
28
|
import CreateIdentifierRequest from "./CreateIdentifierRequest"
|
|
29
29
|
import GetIdentifierRequest from "./GetIdentifierRequest"
|
|
30
30
|
import DeleteIdentifierRequest from "./DeleteIdentifierRequest"
|
|
31
|
+
import DescribeAttachedGuardsRequest from "./DescribeAttachedGuardsRequest"
|
|
32
|
+
import AttachGuardRequest from "./AttachGuardRequest"
|
|
33
|
+
import DetachGuardRequest from "./DetachGuardRequest"
|
|
31
34
|
import DescribePasswordsRequest from "./DescribePasswordsRequest"
|
|
32
35
|
import CreatePasswordRequest from "./CreatePasswordRequest"
|
|
33
36
|
import GetPasswordRequest from "./GetPasswordRequest"
|
|
@@ -57,6 +60,9 @@ export {
|
|
|
57
60
|
CreateIdentifierRequest,
|
|
58
61
|
GetIdentifierRequest,
|
|
59
62
|
DeleteIdentifierRequest,
|
|
63
|
+
DescribeAttachedGuardsRequest,
|
|
64
|
+
AttachGuardRequest,
|
|
65
|
+
DetachGuardRequest,
|
|
60
66
|
DescribePasswordsRequest,
|
|
61
67
|
CreatePasswordRequest,
|
|
62
68
|
GetPasswordRequest,
|
package/identifier/rest.d.ts
CHANGED
|
@@ -19,6 +19,9 @@ export default class Gs2IdentifierRestClient extends AbstractGs2RestClient {
|
|
|
19
19
|
createIdentifier(request: Request.CreateIdentifierRequest): Promise<Result.CreateIdentifierResult>;
|
|
20
20
|
getIdentifier(request: Request.GetIdentifierRequest): Promise<Result.GetIdentifierResult>;
|
|
21
21
|
deleteIdentifier(request: Request.DeleteIdentifierRequest): Promise<Result.DeleteIdentifierResult>;
|
|
22
|
+
describeAttachedGuards(request: Request.DescribeAttachedGuardsRequest): Promise<Result.DescribeAttachedGuardsResult>;
|
|
23
|
+
attachGuard(request: Request.AttachGuardRequest): Promise<Result.AttachGuardResult>;
|
|
24
|
+
detachGuard(request: Request.DetachGuardRequest): Promise<Result.DetachGuardResult>;
|
|
22
25
|
describePasswords(request: Request.DescribePasswordsRequest): Promise<Result.DescribePasswordsResult>;
|
|
23
26
|
createPassword(request: Request.CreatePasswordRequest): Promise<Result.CreatePasswordResult>;
|
|
24
27
|
getPassword(request: Request.GetPasswordRequest): Promise<Result.GetPasswordResult>;
|
package/identifier/rest.js
CHANGED
|
@@ -388,6 +388,81 @@ var Gs2IdentifierRestClient = /** @class */ (function (_super) {
|
|
|
388
388
|
throw JSON.parse(error.response.data.message);
|
|
389
389
|
});
|
|
390
390
|
};
|
|
391
|
+
Gs2IdentifierRestClient.prototype.describeAttachedGuards = function (request) {
|
|
392
|
+
var _a, _b, _c, _d, _e;
|
|
393
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/user/{userName}/identifier/{clientId}/guard')
|
|
394
|
+
.replace('{service}', 'identifier')
|
|
395
|
+
.replace('{region}', this.session.region)
|
|
396
|
+
.replace('{clientId}', String((_a = request.getClientId()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getClientId()) !== null && _b !== void 0 ? _b : 'null'))
|
|
397
|
+
.replace('{userName}', String((_c = request.getUserName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
398
|
+
var headers = this.createAuthorizedHeaders();
|
|
399
|
+
if (request.getRequestId()) {
|
|
400
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
401
|
+
}
|
|
402
|
+
var params = {
|
|
403
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
404
|
+
};
|
|
405
|
+
return axios_1.default.get(url, {
|
|
406
|
+
params: params,
|
|
407
|
+
headers: headers,
|
|
408
|
+
}).then(function (response) {
|
|
409
|
+
return Result.DescribeAttachedGuardsResult.fromDict(response.data);
|
|
410
|
+
}).catch(function (error) {
|
|
411
|
+
throw JSON.parse(error.response.data.message);
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
Gs2IdentifierRestClient.prototype.attachGuard = function (request) {
|
|
415
|
+
var _a, _b, _c, _d, _e, _f;
|
|
416
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/user/{userName}/identifier/{clientId}/guard')
|
|
417
|
+
.replace('{service}', 'identifier')
|
|
418
|
+
.replace('{region}', this.session.region)
|
|
419
|
+
.replace('{userName}', String((_a = request.getUserName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getUserName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
420
|
+
.replace('{clientId}', String((_c = request.getClientId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getClientId()) !== null && _d !== void 0 ? _d : 'null'));
|
|
421
|
+
var headers = this.createAuthorizedHeaders();
|
|
422
|
+
if (request.getRequestId()) {
|
|
423
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
424
|
+
}
|
|
425
|
+
var body = {
|
|
426
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
427
|
+
'guardNamespaceId': (_f = request.getGuardNamespaceId()) !== null && _f !== void 0 ? _f : null,
|
|
428
|
+
};
|
|
429
|
+
return axios_1.default.post(url, body, {
|
|
430
|
+
headers: headers,
|
|
431
|
+
}).then(function (response) {
|
|
432
|
+
return Result.AttachGuardResult.fromDict(response.data);
|
|
433
|
+
}).catch(function (error) {
|
|
434
|
+
if (error.response) {
|
|
435
|
+
throw JSON.parse(error.response.data.message);
|
|
436
|
+
}
|
|
437
|
+
else {
|
|
438
|
+
throw [];
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
};
|
|
442
|
+
Gs2IdentifierRestClient.prototype.detachGuard = function (request) {
|
|
443
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
444
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/user/{userName}/identifier/{clientId}/guard/{guardNamespaceId}')
|
|
445
|
+
.replace('{service}', 'identifier')
|
|
446
|
+
.replace('{region}', this.session.region)
|
|
447
|
+
.replace('{userName}', String((_a = request.getUserName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getUserName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
448
|
+
.replace('{clientId}', String((_c = request.getClientId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getClientId()) !== null && _d !== void 0 ? _d : 'null'))
|
|
449
|
+
.replace('{guardNamespaceId}', String((_e = request.getGuardNamespaceId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getGuardNamespaceId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
450
|
+
var headers = this.createAuthorizedHeaders();
|
|
451
|
+
if (request.getRequestId()) {
|
|
452
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
453
|
+
}
|
|
454
|
+
var params = {
|
|
455
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
456
|
+
};
|
|
457
|
+
return axios_1.default.delete(url, {
|
|
458
|
+
params: params,
|
|
459
|
+
headers: headers,
|
|
460
|
+
}).then(function (response) {
|
|
461
|
+
return Result.DetachGuardResult.fromDict(response.data);
|
|
462
|
+
}).catch(function (error) {
|
|
463
|
+
throw JSON.parse(error.response.data.message);
|
|
464
|
+
});
|
|
465
|
+
};
|
|
391
466
|
Gs2IdentifierRestClient.prototype.describePasswords = function (request) {
|
|
392
467
|
var _a, _b, _c, _d, _e;
|
|
393
468
|
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/user/{userName}/password')
|