@alicloud/eiam20211201 2.3.0 → 2.4.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 +150 -0
- package/dist/client.js +471 -0
- package/dist/client.js.map +1 -1
- package/dist/models/AddCustomPrivacyPoliciesToBrandRequest.d.ts +40 -0
- package/dist/models/AddCustomPrivacyPoliciesToBrandRequest.js +65 -0
- package/dist/models/AddCustomPrivacyPoliciesToBrandRequest.js.map +1 -0
- package/dist/models/AddCustomPrivacyPoliciesToBrandResponse.d.ts +19 -0
- package/dist/models/AddCustomPrivacyPoliciesToBrandResponse.js +69 -0
- package/dist/models/AddCustomPrivacyPoliciesToBrandResponse.js.map +1 -0
- package/dist/models/AddCustomPrivacyPoliciesToBrandResponseBody.d.ts +18 -0
- package/dist/models/AddCustomPrivacyPoliciesToBrandResponseBody.js +58 -0
- package/dist/models/AddCustomPrivacyPoliciesToBrandResponseBody.js.map +1 -0
- package/dist/models/CreateCustomPrivacyPolicyRequest.d.ts +128 -0
- package/dist/models/CreateCustomPrivacyPolicyRequest.js +120 -0
- package/dist/models/CreateCustomPrivacyPolicyRequest.js.map +1 -0
- package/dist/models/CreateCustomPrivacyPolicyResponse.d.ts +19 -0
- package/dist/models/CreateCustomPrivacyPolicyResponse.js +69 -0
- package/dist/models/CreateCustomPrivacyPolicyResponse.js.map +1 -0
- package/dist/models/CreateCustomPrivacyPolicyResponseBody.d.ts +23 -0
- package/dist/models/CreateCustomPrivacyPolicyResponseBody.js +60 -0
- package/dist/models/CreateCustomPrivacyPolicyResponseBody.js.map +1 -0
- package/dist/models/DeleteCustomPrivacyPolicyRequest.d.ts +33 -0
- package/dist/models/DeleteCustomPrivacyPolicyRequest.js +60 -0
- package/dist/models/DeleteCustomPrivacyPolicyRequest.js.map +1 -0
- package/dist/models/DeleteCustomPrivacyPolicyResponse.d.ts +19 -0
- package/dist/models/DeleteCustomPrivacyPolicyResponse.js +69 -0
- package/dist/models/DeleteCustomPrivacyPolicyResponse.js.map +1 -0
- package/dist/models/DeleteCustomPrivacyPolicyResponseBody.d.ts +18 -0
- package/dist/models/DeleteCustomPrivacyPolicyResponseBody.js +58 -0
- package/dist/models/DeleteCustomPrivacyPolicyResponseBody.js.map +1 -0
- package/dist/models/DisableCustomPrivacyPolicyRequest.d.ts +31 -0
- package/dist/models/DisableCustomPrivacyPolicyRequest.js +60 -0
- package/dist/models/DisableCustomPrivacyPolicyRequest.js.map +1 -0
- package/dist/models/DisableCustomPrivacyPolicyResponse.d.ts +19 -0
- package/dist/models/DisableCustomPrivacyPolicyResponse.js +69 -0
- package/dist/models/DisableCustomPrivacyPolicyResponse.js.map +1 -0
- package/dist/models/DisableCustomPrivacyPolicyResponseBody.d.ts +18 -0
- package/dist/models/DisableCustomPrivacyPolicyResponseBody.js +58 -0
- package/dist/models/DisableCustomPrivacyPolicyResponseBody.js.map +1 -0
- package/dist/models/EnableCustomPrivacyPolicyRequest.d.ts +31 -0
- package/dist/models/EnableCustomPrivacyPolicyRequest.js +60 -0
- package/dist/models/EnableCustomPrivacyPolicyRequest.js.map +1 -0
- package/dist/models/EnableCustomPrivacyPolicyResponse.d.ts +19 -0
- package/dist/models/EnableCustomPrivacyPolicyResponse.js +69 -0
- package/dist/models/EnableCustomPrivacyPolicyResponse.js.map +1 -0
- package/dist/models/EnableCustomPrivacyPolicyResponseBody.d.ts +18 -0
- package/dist/models/EnableCustomPrivacyPolicyResponseBody.js +58 -0
- package/dist/models/EnableCustomPrivacyPolicyResponseBody.js.map +1 -0
- package/dist/models/GetCustomPrivacyPolicyRequest.d.ts +33 -0
- package/dist/models/GetCustomPrivacyPolicyRequest.js +60 -0
- package/dist/models/GetCustomPrivacyPolicyRequest.js.map +1 -0
- package/dist/models/GetCustomPrivacyPolicyResponse.d.ts +19 -0
- package/dist/models/GetCustomPrivacyPolicyResponse.js +69 -0
- package/dist/models/GetCustomPrivacyPolicyResponse.js.map +1 -0
- package/dist/models/GetCustomPrivacyPolicyResponseBody.d.ts +107 -0
- package/dist/models/GetCustomPrivacyPolicyResponseBody.js +144 -0
- package/dist/models/GetCustomPrivacyPolicyResponseBody.js.map +1 -0
- package/dist/models/ListCustomPrivacyPoliciesForBrandRequest.d.ts +57 -0
- package/dist/models/ListCustomPrivacyPoliciesForBrandRequest.js +66 -0
- package/dist/models/ListCustomPrivacyPoliciesForBrandRequest.js.map +1 -0
- package/dist/models/ListCustomPrivacyPoliciesForBrandResponse.d.ts +19 -0
- package/dist/models/ListCustomPrivacyPoliciesForBrandResponse.js +69 -0
- package/dist/models/ListCustomPrivacyPoliciesForBrandResponse.js.map +1 -0
- package/dist/models/ListCustomPrivacyPoliciesForBrandResponseBody.d.ts +68 -0
- package/dist/models/ListCustomPrivacyPoliciesForBrandResponseBody.js +90 -0
- package/dist/models/ListCustomPrivacyPoliciesForBrandResponseBody.js.map +1 -0
- package/dist/models/ListCustomPrivacyPoliciesRequest.d.ts +55 -0
- package/dist/models/ListCustomPrivacyPoliciesRequest.js +66 -0
- package/dist/models/ListCustomPrivacyPoliciesRequest.js.map +1 -0
- package/dist/models/ListCustomPrivacyPoliciesResponse.d.ts +19 -0
- package/dist/models/ListCustomPrivacyPoliciesResponse.js +69 -0
- package/dist/models/ListCustomPrivacyPoliciesResponse.js.map +1 -0
- package/dist/models/ListCustomPrivacyPoliciesResponseBody.d.ts +108 -0
- package/dist/models/ListCustomPrivacyPoliciesResponseBody.js +100 -0
- package/dist/models/ListCustomPrivacyPoliciesResponseBody.js.map +1 -0
- package/dist/models/RemoveCustomPrivacyPoliciesFromBrandRequest.d.ts +40 -0
- package/dist/models/RemoveCustomPrivacyPoliciesFromBrandRequest.js +65 -0
- package/dist/models/RemoveCustomPrivacyPoliciesFromBrandRequest.js.map +1 -0
- package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponse.d.ts +19 -0
- package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponse.js +69 -0
- package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponse.js.map +1 -0
- package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponseBody.d.ts +18 -0
- package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponseBody.js +58 -0
- package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponseBody.js.map +1 -0
- package/dist/models/UpdateCustomPrivacyPolicyRequest.d.ts +92 -0
- package/dist/models/UpdateCustomPrivacyPolicyRequest.js +118 -0
- package/dist/models/UpdateCustomPrivacyPolicyRequest.js.map +1 -0
- package/dist/models/UpdateCustomPrivacyPolicyResponse.d.ts +19 -0
- package/dist/models/UpdateCustomPrivacyPolicyResponse.js +69 -0
- package/dist/models/UpdateCustomPrivacyPolicyResponse.js.map +1 -0
- package/dist/models/UpdateCustomPrivacyPolicyResponseBody.d.ts +18 -0
- package/dist/models/UpdateCustomPrivacyPolicyResponseBody.js +58 -0
- package/dist/models/UpdateCustomPrivacyPolicyResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +39 -0
- package/dist/models/model.js +96 -17
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +528 -0
- package/src/models/AddCustomPrivacyPoliciesToBrandRequest.ts +60 -0
- package/src/models/AddCustomPrivacyPoliciesToBrandResponse.ts +40 -0
- package/src/models/AddCustomPrivacyPoliciesToBrandResponseBody.ts +31 -0
- package/src/models/CreateCustomPrivacyPolicyRequest.ts +185 -0
- package/src/models/CreateCustomPrivacyPolicyResponse.ts +40 -0
- package/src/models/CreateCustomPrivacyPolicyResponseBody.ts +38 -0
- package/src/models/DeleteCustomPrivacyPolicyRequest.ts +48 -0
- package/src/models/DeleteCustomPrivacyPolicyResponse.ts +40 -0
- package/src/models/DeleteCustomPrivacyPolicyResponseBody.ts +31 -0
- package/src/models/DisableCustomPrivacyPolicyRequest.ts +46 -0
- package/src/models/DisableCustomPrivacyPolicyResponse.ts +40 -0
- package/src/models/DisableCustomPrivacyPolicyResponseBody.ts +31 -0
- package/src/models/EnableCustomPrivacyPolicyRequest.ts +46 -0
- package/src/models/EnableCustomPrivacyPolicyResponse.ts +40 -0
- package/src/models/EnableCustomPrivacyPolicyResponseBody.ts +31 -0
- package/src/models/GetCustomPrivacyPolicyRequest.ts +48 -0
- package/src/models/GetCustomPrivacyPolicyResponse.ts +40 -0
- package/src/models/GetCustomPrivacyPolicyResponseBody.ts +179 -0
- package/src/models/ListCustomPrivacyPoliciesForBrandRequest.ts +78 -0
- package/src/models/ListCustomPrivacyPoliciesForBrandResponse.ts +40 -0
- package/src/models/ListCustomPrivacyPoliciesForBrandResponseBody.ts +104 -0
- package/src/models/ListCustomPrivacyPoliciesRequest.ts +76 -0
- package/src/models/ListCustomPrivacyPoliciesResponse.ts +40 -0
- package/src/models/ListCustomPrivacyPoliciesResponseBody.ts +154 -0
- package/src/models/RemoveCustomPrivacyPoliciesFromBrandRequest.ts +60 -0
- package/src/models/RemoveCustomPrivacyPoliciesFromBrandResponse.ts +40 -0
- package/src/models/RemoveCustomPrivacyPoliciesFromBrandResponseBody.ts +31 -0
- package/src/models/UpdateCustomPrivacyPolicyRequest.ts +147 -0
- package/src/models/UpdateCustomPrivacyPolicyResponse.ts +40 -0
- package/src/models/UpdateCustomPrivacyPolicyResponseBody.ts +31 -0
- package/src/models/model.ts +39 -0
package/src/client.ts
CHANGED
|
@@ -83,6 +83,56 @@ export default class Client extends OpenApi {
|
|
|
83
83
|
return await this.addApplicationAccountToUserWithOptions(request, runtime);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* 添加条款到品牌
|
|
88
|
+
*
|
|
89
|
+
* @param request - AddCustomPrivacyPoliciesToBrandRequest
|
|
90
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
91
|
+
* @returns AddCustomPrivacyPoliciesToBrandResponse
|
|
92
|
+
*/
|
|
93
|
+
async addCustomPrivacyPoliciesToBrandWithOptions(request: $_model.AddCustomPrivacyPoliciesToBrandRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddCustomPrivacyPoliciesToBrandResponse> {
|
|
94
|
+
request.validate();
|
|
95
|
+
let query = { };
|
|
96
|
+
if (!$dara.isNull(request.brandId)) {
|
|
97
|
+
query["BrandId"] = request.brandId;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (!$dara.isNull(request.customPrivacyPolicyIds)) {
|
|
101
|
+
query["CustomPrivacyPolicyIds"] = request.customPrivacyPolicyIds;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
105
|
+
query["InstanceId"] = request.instanceId;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
109
|
+
query: OpenApiUtil.query(query),
|
|
110
|
+
});
|
|
111
|
+
let params = new $OpenApiUtil.Params({
|
|
112
|
+
action: "AddCustomPrivacyPoliciesToBrand",
|
|
113
|
+
version: "2021-12-01",
|
|
114
|
+
protocol: "HTTPS",
|
|
115
|
+
pathname: "/",
|
|
116
|
+
method: "POST",
|
|
117
|
+
authType: "AK",
|
|
118
|
+
style: "RPC",
|
|
119
|
+
reqBodyType: "formData",
|
|
120
|
+
bodyType: "json",
|
|
121
|
+
});
|
|
122
|
+
return $dara.cast<$_model.AddCustomPrivacyPoliciesToBrandResponse>(await this.callApi(params, req, runtime), new $_model.AddCustomPrivacyPoliciesToBrandResponse({}));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* 添加条款到品牌
|
|
127
|
+
*
|
|
128
|
+
* @param request - AddCustomPrivacyPoliciesToBrandRequest
|
|
129
|
+
* @returns AddCustomPrivacyPoliciesToBrandResponse
|
|
130
|
+
*/
|
|
131
|
+
async addCustomPrivacyPoliciesToBrand(request: $_model.AddCustomPrivacyPoliciesToBrandRequest): Promise<$_model.AddCustomPrivacyPoliciesToBrandResponse> {
|
|
132
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
133
|
+
return await this.addCustomPrivacyPoliciesToBrandWithOptions(request, runtime);
|
|
134
|
+
}
|
|
135
|
+
|
|
86
136
|
/**
|
|
87
137
|
* Adds an Employee Identity and Access Management (EIAM) account to multiple EIAM organizations of Identity as a Service (IDaaS). If the account already exists in the organizational unit, the system directly returns a success response.
|
|
88
138
|
*
|
|
@@ -709,6 +759,72 @@ export default class Client extends OpenApi {
|
|
|
709
759
|
return await this.createConditionalAccessPolicyWithOptions(request, runtime);
|
|
710
760
|
}
|
|
711
761
|
|
|
762
|
+
/**
|
|
763
|
+
* 创建自定义条款
|
|
764
|
+
*
|
|
765
|
+
* @param request - CreateCustomPrivacyPolicyRequest
|
|
766
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
767
|
+
* @returns CreateCustomPrivacyPolicyResponse
|
|
768
|
+
*/
|
|
769
|
+
async createCustomPrivacyPolicyWithOptions(request: $_model.CreateCustomPrivacyPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateCustomPrivacyPolicyResponse> {
|
|
770
|
+
request.validate();
|
|
771
|
+
let query = { };
|
|
772
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
773
|
+
query["ClientToken"] = request.clientToken;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
if (!$dara.isNull(request.customPrivacyPolicyContents)) {
|
|
777
|
+
query["CustomPrivacyPolicyContents"] = request.customPrivacyPolicyContents;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
if (!$dara.isNull(request.customPrivacyPolicyName)) {
|
|
781
|
+
query["CustomPrivacyPolicyName"] = request.customPrivacyPolicyName;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
if (!$dara.isNull(request.defaultLanguageCode)) {
|
|
785
|
+
query["DefaultLanguageCode"] = request.defaultLanguageCode;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
789
|
+
query["InstanceId"] = request.instanceId;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
if (!$dara.isNull(request.status)) {
|
|
793
|
+
query["Status"] = request.status;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
if (!$dara.isNull(request.userConsentType)) {
|
|
797
|
+
query["UserConsentType"] = request.userConsentType;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
801
|
+
query: OpenApiUtil.query(query),
|
|
802
|
+
});
|
|
803
|
+
let params = new $OpenApiUtil.Params({
|
|
804
|
+
action: "CreateCustomPrivacyPolicy",
|
|
805
|
+
version: "2021-12-01",
|
|
806
|
+
protocol: "HTTPS",
|
|
807
|
+
pathname: "/",
|
|
808
|
+
method: "POST",
|
|
809
|
+
authType: "AK",
|
|
810
|
+
style: "RPC",
|
|
811
|
+
reqBodyType: "formData",
|
|
812
|
+
bodyType: "json",
|
|
813
|
+
});
|
|
814
|
+
return $dara.cast<$_model.CreateCustomPrivacyPolicyResponse>(await this.callApi(params, req, runtime), new $_model.CreateCustomPrivacyPolicyResponse({}));
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* 创建自定义条款
|
|
819
|
+
*
|
|
820
|
+
* @param request - CreateCustomPrivacyPolicyRequest
|
|
821
|
+
* @returns CreateCustomPrivacyPolicyResponse
|
|
822
|
+
*/
|
|
823
|
+
async createCustomPrivacyPolicy(request: $_model.CreateCustomPrivacyPolicyRequest): Promise<$_model.CreateCustomPrivacyPolicyResponse> {
|
|
824
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
825
|
+
return await this.createCustomPrivacyPolicyWithOptions(request, runtime);
|
|
826
|
+
}
|
|
827
|
+
|
|
712
828
|
/**
|
|
713
829
|
* Creates a custom domain name for an Employee Identity and Access Management (EIAM) instance.
|
|
714
830
|
*
|
|
@@ -1669,6 +1785,52 @@ export default class Client extends OpenApi {
|
|
|
1669
1785
|
return await this.deleteConditionalAccessPolicyWithOptions(request, runtime);
|
|
1670
1786
|
}
|
|
1671
1787
|
|
|
1788
|
+
/**
|
|
1789
|
+
* 删除自定义条款
|
|
1790
|
+
*
|
|
1791
|
+
* @param request - DeleteCustomPrivacyPolicyRequest
|
|
1792
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1793
|
+
* @returns DeleteCustomPrivacyPolicyResponse
|
|
1794
|
+
*/
|
|
1795
|
+
async deleteCustomPrivacyPolicyWithOptions(request: $_model.DeleteCustomPrivacyPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteCustomPrivacyPolicyResponse> {
|
|
1796
|
+
request.validate();
|
|
1797
|
+
let query = { };
|
|
1798
|
+
if (!$dara.isNull(request.customPrivacyPolicyId)) {
|
|
1799
|
+
query["CustomPrivacyPolicyId"] = request.customPrivacyPolicyId;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
1803
|
+
query["InstanceId"] = request.instanceId;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1807
|
+
query: OpenApiUtil.query(query),
|
|
1808
|
+
});
|
|
1809
|
+
let params = new $OpenApiUtil.Params({
|
|
1810
|
+
action: "DeleteCustomPrivacyPolicy",
|
|
1811
|
+
version: "2021-12-01",
|
|
1812
|
+
protocol: "HTTPS",
|
|
1813
|
+
pathname: "/",
|
|
1814
|
+
method: "POST",
|
|
1815
|
+
authType: "AK",
|
|
1816
|
+
style: "RPC",
|
|
1817
|
+
reqBodyType: "formData",
|
|
1818
|
+
bodyType: "json",
|
|
1819
|
+
});
|
|
1820
|
+
return $dara.cast<$_model.DeleteCustomPrivacyPolicyResponse>(await this.callApi(params, req, runtime), new $_model.DeleteCustomPrivacyPolicyResponse({}));
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* 删除自定义条款
|
|
1825
|
+
*
|
|
1826
|
+
* @param request - DeleteCustomPrivacyPolicyRequest
|
|
1827
|
+
* @returns DeleteCustomPrivacyPolicyResponse
|
|
1828
|
+
*/
|
|
1829
|
+
async deleteCustomPrivacyPolicy(request: $_model.DeleteCustomPrivacyPolicyRequest): Promise<$_model.DeleteCustomPrivacyPolicyResponse> {
|
|
1830
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1831
|
+
return await this.deleteCustomPrivacyPolicyWithOptions(request, runtime);
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1672
1834
|
/**
|
|
1673
1835
|
* Deletes a custom domain name of an Employee Identity and Access Management (EIAM) instance. You cannot delete the initial domain name and default domain name of the instance.
|
|
1674
1836
|
*
|
|
@@ -2619,6 +2781,52 @@ export default class Client extends OpenApi {
|
|
|
2619
2781
|
return await this.disableConditionalAccessPolicyWithOptions(request, runtime);
|
|
2620
2782
|
}
|
|
2621
2783
|
|
|
2784
|
+
/**
|
|
2785
|
+
* 禁用自定义条款
|
|
2786
|
+
*
|
|
2787
|
+
* @param request - DisableCustomPrivacyPolicyRequest
|
|
2788
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2789
|
+
* @returns DisableCustomPrivacyPolicyResponse
|
|
2790
|
+
*/
|
|
2791
|
+
async disableCustomPrivacyPolicyWithOptions(request: $_model.DisableCustomPrivacyPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableCustomPrivacyPolicyResponse> {
|
|
2792
|
+
request.validate();
|
|
2793
|
+
let query = { };
|
|
2794
|
+
if (!$dara.isNull(request.customPrivacyPolicyId)) {
|
|
2795
|
+
query["CustomPrivacyPolicyId"] = request.customPrivacyPolicyId;
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
2799
|
+
query["InstanceId"] = request.instanceId;
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2803
|
+
query: OpenApiUtil.query(query),
|
|
2804
|
+
});
|
|
2805
|
+
let params = new $OpenApiUtil.Params({
|
|
2806
|
+
action: "DisableCustomPrivacyPolicy",
|
|
2807
|
+
version: "2021-12-01",
|
|
2808
|
+
protocol: "HTTPS",
|
|
2809
|
+
pathname: "/",
|
|
2810
|
+
method: "POST",
|
|
2811
|
+
authType: "AK",
|
|
2812
|
+
style: "RPC",
|
|
2813
|
+
reqBodyType: "formData",
|
|
2814
|
+
bodyType: "json",
|
|
2815
|
+
});
|
|
2816
|
+
return $dara.cast<$_model.DisableCustomPrivacyPolicyResponse>(await this.callApi(params, req, runtime), new $_model.DisableCustomPrivacyPolicyResponse({}));
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
/**
|
|
2820
|
+
* 禁用自定义条款
|
|
2821
|
+
*
|
|
2822
|
+
* @param request - DisableCustomPrivacyPolicyRequest
|
|
2823
|
+
* @returns DisableCustomPrivacyPolicyResponse
|
|
2824
|
+
*/
|
|
2825
|
+
async disableCustomPrivacyPolicy(request: $_model.DisableCustomPrivacyPolicyRequest): Promise<$_model.DisableCustomPrivacyPolicyResponse> {
|
|
2826
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2827
|
+
return await this.disableCustomPrivacyPolicyWithOptions(request, runtime);
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2622
2830
|
/**
|
|
2623
2831
|
* Disables a proxy token for a domain name of an Employee Identity and Access Management (EIAM) instance. After the proxy token is disabled, the domain name may not be used as expected.
|
|
2624
2832
|
*
|
|
@@ -3327,6 +3535,52 @@ export default class Client extends OpenApi {
|
|
|
3327
3535
|
return await this.enableConditionalAccessPolicyWithOptions(request, runtime);
|
|
3328
3536
|
}
|
|
3329
3537
|
|
|
3538
|
+
/**
|
|
3539
|
+
* 启用自定义条款
|
|
3540
|
+
*
|
|
3541
|
+
* @param request - EnableCustomPrivacyPolicyRequest
|
|
3542
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3543
|
+
* @returns EnableCustomPrivacyPolicyResponse
|
|
3544
|
+
*/
|
|
3545
|
+
async enableCustomPrivacyPolicyWithOptions(request: $_model.EnableCustomPrivacyPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableCustomPrivacyPolicyResponse> {
|
|
3546
|
+
request.validate();
|
|
3547
|
+
let query = { };
|
|
3548
|
+
if (!$dara.isNull(request.customPrivacyPolicyId)) {
|
|
3549
|
+
query["CustomPrivacyPolicyId"] = request.customPrivacyPolicyId;
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
3553
|
+
query["InstanceId"] = request.instanceId;
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3557
|
+
query: OpenApiUtil.query(query),
|
|
3558
|
+
});
|
|
3559
|
+
let params = new $OpenApiUtil.Params({
|
|
3560
|
+
action: "EnableCustomPrivacyPolicy",
|
|
3561
|
+
version: "2021-12-01",
|
|
3562
|
+
protocol: "HTTPS",
|
|
3563
|
+
pathname: "/",
|
|
3564
|
+
method: "POST",
|
|
3565
|
+
authType: "AK",
|
|
3566
|
+
style: "RPC",
|
|
3567
|
+
reqBodyType: "formData",
|
|
3568
|
+
bodyType: "json",
|
|
3569
|
+
});
|
|
3570
|
+
return $dara.cast<$_model.EnableCustomPrivacyPolicyResponse>(await this.callApi(params, req, runtime), new $_model.EnableCustomPrivacyPolicyResponse({}));
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
/**
|
|
3574
|
+
* 启用自定义条款
|
|
3575
|
+
*
|
|
3576
|
+
* @param request - EnableCustomPrivacyPolicyRequest
|
|
3577
|
+
* @returns EnableCustomPrivacyPolicyResponse
|
|
3578
|
+
*/
|
|
3579
|
+
async enableCustomPrivacyPolicy(request: $_model.EnableCustomPrivacyPolicyRequest): Promise<$_model.EnableCustomPrivacyPolicyResponse> {
|
|
3580
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3581
|
+
return await this.enableCustomPrivacyPolicyWithOptions(request, runtime);
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3330
3584
|
/**
|
|
3331
3585
|
* Enables a proxy token for a domain name of an Employee Identity and Access Management (EIAM) instance. The proxy token is used to verify the security of the domain name.
|
|
3332
3586
|
*
|
|
@@ -4023,6 +4277,52 @@ export default class Client extends OpenApi {
|
|
|
4023
4277
|
return await this.getConditionalAccessPolicyWithOptions(request, runtime);
|
|
4024
4278
|
}
|
|
4025
4279
|
|
|
4280
|
+
/**
|
|
4281
|
+
* 获取自定义条款
|
|
4282
|
+
*
|
|
4283
|
+
* @param request - GetCustomPrivacyPolicyRequest
|
|
4284
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4285
|
+
* @returns GetCustomPrivacyPolicyResponse
|
|
4286
|
+
*/
|
|
4287
|
+
async getCustomPrivacyPolicyWithOptions(request: $_model.GetCustomPrivacyPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetCustomPrivacyPolicyResponse> {
|
|
4288
|
+
request.validate();
|
|
4289
|
+
let query = { };
|
|
4290
|
+
if (!$dara.isNull(request.customPrivacyPolicyId)) {
|
|
4291
|
+
query["CustomPrivacyPolicyId"] = request.customPrivacyPolicyId;
|
|
4292
|
+
}
|
|
4293
|
+
|
|
4294
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
4295
|
+
query["InstanceId"] = request.instanceId;
|
|
4296
|
+
}
|
|
4297
|
+
|
|
4298
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4299
|
+
query: OpenApiUtil.query(query),
|
|
4300
|
+
});
|
|
4301
|
+
let params = new $OpenApiUtil.Params({
|
|
4302
|
+
action: "GetCustomPrivacyPolicy",
|
|
4303
|
+
version: "2021-12-01",
|
|
4304
|
+
protocol: "HTTPS",
|
|
4305
|
+
pathname: "/",
|
|
4306
|
+
method: "POST",
|
|
4307
|
+
authType: "AK",
|
|
4308
|
+
style: "RPC",
|
|
4309
|
+
reqBodyType: "formData",
|
|
4310
|
+
bodyType: "json",
|
|
4311
|
+
});
|
|
4312
|
+
return $dara.cast<$_model.GetCustomPrivacyPolicyResponse>(await this.callApi(params, req, runtime), new $_model.GetCustomPrivacyPolicyResponse({}));
|
|
4313
|
+
}
|
|
4314
|
+
|
|
4315
|
+
/**
|
|
4316
|
+
* 获取自定义条款
|
|
4317
|
+
*
|
|
4318
|
+
* @param request - GetCustomPrivacyPolicyRequest
|
|
4319
|
+
* @returns GetCustomPrivacyPolicyResponse
|
|
4320
|
+
*/
|
|
4321
|
+
async getCustomPrivacyPolicy(request: $_model.GetCustomPrivacyPolicyRequest): Promise<$_model.GetCustomPrivacyPolicyResponse> {
|
|
4322
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4323
|
+
return await this.getCustomPrivacyPolicyWithOptions(request, runtime);
|
|
4324
|
+
}
|
|
4325
|
+
|
|
4026
4326
|
/**
|
|
4027
4327
|
* Queries the information about a domain name of an Employee Identity and Access Management (EIAM) instance.
|
|
4028
4328
|
*
|
|
@@ -5915,6 +6215,122 @@ export default class Client extends OpenApi {
|
|
|
5915
6215
|
return await this.listConditionalAccessPoliciesForUserWithOptions(request, runtime);
|
|
5916
6216
|
}
|
|
5917
6217
|
|
|
6218
|
+
/**
|
|
6219
|
+
* 自定义条款列表查询。
|
|
6220
|
+
*
|
|
6221
|
+
* @param request - ListCustomPrivacyPoliciesRequest
|
|
6222
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6223
|
+
* @returns ListCustomPrivacyPoliciesResponse
|
|
6224
|
+
*/
|
|
6225
|
+
async listCustomPrivacyPoliciesWithOptions(request: $_model.ListCustomPrivacyPoliciesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListCustomPrivacyPoliciesResponse> {
|
|
6226
|
+
request.validate();
|
|
6227
|
+
let query = { };
|
|
6228
|
+
if (!$dara.isNull(request.customPrivacyPolicyNameStartsWith)) {
|
|
6229
|
+
query["CustomPrivacyPolicyNameStartsWith"] = request.customPrivacyPolicyNameStartsWith;
|
|
6230
|
+
}
|
|
6231
|
+
|
|
6232
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
6233
|
+
query["InstanceId"] = request.instanceId;
|
|
6234
|
+
}
|
|
6235
|
+
|
|
6236
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
6237
|
+
query["MaxResults"] = request.maxResults;
|
|
6238
|
+
}
|
|
6239
|
+
|
|
6240
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
6241
|
+
query["NextToken"] = request.nextToken;
|
|
6242
|
+
}
|
|
6243
|
+
|
|
6244
|
+
if (!$dara.isNull(request.previousToken)) {
|
|
6245
|
+
query["PreviousToken"] = request.previousToken;
|
|
6246
|
+
}
|
|
6247
|
+
|
|
6248
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
6249
|
+
query: OpenApiUtil.query(query),
|
|
6250
|
+
});
|
|
6251
|
+
let params = new $OpenApiUtil.Params({
|
|
6252
|
+
action: "ListCustomPrivacyPolicies",
|
|
6253
|
+
version: "2021-12-01",
|
|
6254
|
+
protocol: "HTTPS",
|
|
6255
|
+
pathname: "/",
|
|
6256
|
+
method: "POST",
|
|
6257
|
+
authType: "AK",
|
|
6258
|
+
style: "RPC",
|
|
6259
|
+
reqBodyType: "formData",
|
|
6260
|
+
bodyType: "json",
|
|
6261
|
+
});
|
|
6262
|
+
return $dara.cast<$_model.ListCustomPrivacyPoliciesResponse>(await this.callApi(params, req, runtime), new $_model.ListCustomPrivacyPoliciesResponse({}));
|
|
6263
|
+
}
|
|
6264
|
+
|
|
6265
|
+
/**
|
|
6266
|
+
* 自定义条款列表查询。
|
|
6267
|
+
*
|
|
6268
|
+
* @param request - ListCustomPrivacyPoliciesRequest
|
|
6269
|
+
* @returns ListCustomPrivacyPoliciesResponse
|
|
6270
|
+
*/
|
|
6271
|
+
async listCustomPrivacyPolicies(request: $_model.ListCustomPrivacyPoliciesRequest): Promise<$_model.ListCustomPrivacyPoliciesResponse> {
|
|
6272
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
6273
|
+
return await this.listCustomPrivacyPoliciesWithOptions(request, runtime);
|
|
6274
|
+
}
|
|
6275
|
+
|
|
6276
|
+
/**
|
|
6277
|
+
* 获取品牌关联资源的资源
|
|
6278
|
+
*
|
|
6279
|
+
* @param request - ListCustomPrivacyPoliciesForBrandRequest
|
|
6280
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6281
|
+
* @returns ListCustomPrivacyPoliciesForBrandResponse
|
|
6282
|
+
*/
|
|
6283
|
+
async listCustomPrivacyPoliciesForBrandWithOptions(request: $_model.ListCustomPrivacyPoliciesForBrandRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListCustomPrivacyPoliciesForBrandResponse> {
|
|
6284
|
+
request.validate();
|
|
6285
|
+
let query = { };
|
|
6286
|
+
if (!$dara.isNull(request.brandId)) {
|
|
6287
|
+
query["BrandId"] = request.brandId;
|
|
6288
|
+
}
|
|
6289
|
+
|
|
6290
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
6291
|
+
query["InstanceId"] = request.instanceId;
|
|
6292
|
+
}
|
|
6293
|
+
|
|
6294
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
6295
|
+
query["MaxResults"] = request.maxResults;
|
|
6296
|
+
}
|
|
6297
|
+
|
|
6298
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
6299
|
+
query["NextToken"] = request.nextToken;
|
|
6300
|
+
}
|
|
6301
|
+
|
|
6302
|
+
if (!$dara.isNull(request.previousToken)) {
|
|
6303
|
+
query["PreviousToken"] = request.previousToken;
|
|
6304
|
+
}
|
|
6305
|
+
|
|
6306
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
6307
|
+
query: OpenApiUtil.query(query),
|
|
6308
|
+
});
|
|
6309
|
+
let params = new $OpenApiUtil.Params({
|
|
6310
|
+
action: "ListCustomPrivacyPoliciesForBrand",
|
|
6311
|
+
version: "2021-12-01",
|
|
6312
|
+
protocol: "HTTPS",
|
|
6313
|
+
pathname: "/",
|
|
6314
|
+
method: "POST",
|
|
6315
|
+
authType: "AK",
|
|
6316
|
+
style: "RPC",
|
|
6317
|
+
reqBodyType: "formData",
|
|
6318
|
+
bodyType: "json",
|
|
6319
|
+
});
|
|
6320
|
+
return $dara.cast<$_model.ListCustomPrivacyPoliciesForBrandResponse>(await this.callApi(params, req, runtime), new $_model.ListCustomPrivacyPoliciesForBrandResponse({}));
|
|
6321
|
+
}
|
|
6322
|
+
|
|
6323
|
+
/**
|
|
6324
|
+
* 获取品牌关联资源的资源
|
|
6325
|
+
*
|
|
6326
|
+
* @param request - ListCustomPrivacyPoliciesForBrandRequest
|
|
6327
|
+
* @returns ListCustomPrivacyPoliciesForBrandResponse
|
|
6328
|
+
*/
|
|
6329
|
+
async listCustomPrivacyPoliciesForBrand(request: $_model.ListCustomPrivacyPoliciesForBrandRequest): Promise<$_model.ListCustomPrivacyPoliciesForBrandResponse> {
|
|
6330
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
6331
|
+
return await this.listCustomPrivacyPoliciesForBrandWithOptions(request, runtime);
|
|
6332
|
+
}
|
|
6333
|
+
|
|
5918
6334
|
/**
|
|
5919
6335
|
* Queries the proxy tokens of a domain name of an Employee Identity and Access Management (EIAM) instance.
|
|
5920
6336
|
*
|
|
@@ -7429,6 +7845,56 @@ export default class Client extends OpenApi {
|
|
|
7429
7845
|
return await this.removeApplicationAccountFromUserWithOptions(request, runtime);
|
|
7430
7846
|
}
|
|
7431
7847
|
|
|
7848
|
+
/**
|
|
7849
|
+
* 移除品牌关联条款
|
|
7850
|
+
*
|
|
7851
|
+
* @param request - RemoveCustomPrivacyPoliciesFromBrandRequest
|
|
7852
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
7853
|
+
* @returns RemoveCustomPrivacyPoliciesFromBrandResponse
|
|
7854
|
+
*/
|
|
7855
|
+
async removeCustomPrivacyPoliciesFromBrandWithOptions(request: $_model.RemoveCustomPrivacyPoliciesFromBrandRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RemoveCustomPrivacyPoliciesFromBrandResponse> {
|
|
7856
|
+
request.validate();
|
|
7857
|
+
let query = { };
|
|
7858
|
+
if (!$dara.isNull(request.brandId)) {
|
|
7859
|
+
query["BrandId"] = request.brandId;
|
|
7860
|
+
}
|
|
7861
|
+
|
|
7862
|
+
if (!$dara.isNull(request.customPrivacyPolicyIds)) {
|
|
7863
|
+
query["CustomPrivacyPolicyIds"] = request.customPrivacyPolicyIds;
|
|
7864
|
+
}
|
|
7865
|
+
|
|
7866
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
7867
|
+
query["InstanceId"] = request.instanceId;
|
|
7868
|
+
}
|
|
7869
|
+
|
|
7870
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
7871
|
+
query: OpenApiUtil.query(query),
|
|
7872
|
+
});
|
|
7873
|
+
let params = new $OpenApiUtil.Params({
|
|
7874
|
+
action: "RemoveCustomPrivacyPoliciesFromBrand",
|
|
7875
|
+
version: "2021-12-01",
|
|
7876
|
+
protocol: "HTTPS",
|
|
7877
|
+
pathname: "/",
|
|
7878
|
+
method: "POST",
|
|
7879
|
+
authType: "AK",
|
|
7880
|
+
style: "RPC",
|
|
7881
|
+
reqBodyType: "formData",
|
|
7882
|
+
bodyType: "json",
|
|
7883
|
+
});
|
|
7884
|
+
return $dara.cast<$_model.RemoveCustomPrivacyPoliciesFromBrandResponse>(await this.callApi(params, req, runtime), new $_model.RemoveCustomPrivacyPoliciesFromBrandResponse({}));
|
|
7885
|
+
}
|
|
7886
|
+
|
|
7887
|
+
/**
|
|
7888
|
+
* 移除品牌关联条款
|
|
7889
|
+
*
|
|
7890
|
+
* @param request - RemoveCustomPrivacyPoliciesFromBrandRequest
|
|
7891
|
+
* @returns RemoveCustomPrivacyPoliciesFromBrandResponse
|
|
7892
|
+
*/
|
|
7893
|
+
async removeCustomPrivacyPoliciesFromBrand(request: $_model.RemoveCustomPrivacyPoliciesFromBrandRequest): Promise<$_model.RemoveCustomPrivacyPoliciesFromBrandResponse> {
|
|
7894
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
7895
|
+
return await this.removeCustomPrivacyPoliciesFromBrandWithOptions(request, runtime);
|
|
7896
|
+
}
|
|
7897
|
+
|
|
7432
7898
|
/**
|
|
7433
7899
|
* Removes an Employee Identity and Access Management (EIAM) account from multiple EIAM organizations of Identity as a Service (IDaaS). You cannot remove an account from a primary organization.
|
|
7434
7900
|
*
|
|
@@ -9103,6 +9569,68 @@ export default class Client extends OpenApi {
|
|
|
9103
9569
|
return await this.updateConditionalAccessPolicyDescriptionWithOptions(request, runtime);
|
|
9104
9570
|
}
|
|
9105
9571
|
|
|
9572
|
+
/**
|
|
9573
|
+
* 更新自定义条款
|
|
9574
|
+
*
|
|
9575
|
+
* @param request - UpdateCustomPrivacyPolicyRequest
|
|
9576
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
9577
|
+
* @returns UpdateCustomPrivacyPolicyResponse
|
|
9578
|
+
*/
|
|
9579
|
+
async updateCustomPrivacyPolicyWithOptions(request: $_model.UpdateCustomPrivacyPolicyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateCustomPrivacyPolicyResponse> {
|
|
9580
|
+
request.validate();
|
|
9581
|
+
let query = { };
|
|
9582
|
+
if (!$dara.isNull(request.customPrivacyPolicyContents)) {
|
|
9583
|
+
query["CustomPrivacyPolicyContents"] = request.customPrivacyPolicyContents;
|
|
9584
|
+
}
|
|
9585
|
+
|
|
9586
|
+
if (!$dara.isNull(request.customPrivacyPolicyId)) {
|
|
9587
|
+
query["CustomPrivacyPolicyId"] = request.customPrivacyPolicyId;
|
|
9588
|
+
}
|
|
9589
|
+
|
|
9590
|
+
if (!$dara.isNull(request.customPrivacyPolicyName)) {
|
|
9591
|
+
query["CustomPrivacyPolicyName"] = request.customPrivacyPolicyName;
|
|
9592
|
+
}
|
|
9593
|
+
|
|
9594
|
+
if (!$dara.isNull(request.defaultLanguageCode)) {
|
|
9595
|
+
query["DefaultLanguageCode"] = request.defaultLanguageCode;
|
|
9596
|
+
}
|
|
9597
|
+
|
|
9598
|
+
if (!$dara.isNull(request.instanceId)) {
|
|
9599
|
+
query["InstanceId"] = request.instanceId;
|
|
9600
|
+
}
|
|
9601
|
+
|
|
9602
|
+
if (!$dara.isNull(request.userConsentType)) {
|
|
9603
|
+
query["UserConsentType"] = request.userConsentType;
|
|
9604
|
+
}
|
|
9605
|
+
|
|
9606
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
9607
|
+
query: OpenApiUtil.query(query),
|
|
9608
|
+
});
|
|
9609
|
+
let params = new $OpenApiUtil.Params({
|
|
9610
|
+
action: "UpdateCustomPrivacyPolicy",
|
|
9611
|
+
version: "2021-12-01",
|
|
9612
|
+
protocol: "HTTPS",
|
|
9613
|
+
pathname: "/",
|
|
9614
|
+
method: "POST",
|
|
9615
|
+
authType: "AK",
|
|
9616
|
+
style: "RPC",
|
|
9617
|
+
reqBodyType: "formData",
|
|
9618
|
+
bodyType: "json",
|
|
9619
|
+
});
|
|
9620
|
+
return $dara.cast<$_model.UpdateCustomPrivacyPolicyResponse>(await this.callApi(params, req, runtime), new $_model.UpdateCustomPrivacyPolicyResponse({}));
|
|
9621
|
+
}
|
|
9622
|
+
|
|
9623
|
+
/**
|
|
9624
|
+
* 更新自定义条款
|
|
9625
|
+
*
|
|
9626
|
+
* @param request - UpdateCustomPrivacyPolicyRequest
|
|
9627
|
+
* @returns UpdateCustomPrivacyPolicyResponse
|
|
9628
|
+
*/
|
|
9629
|
+
async updateCustomPrivacyPolicy(request: $_model.UpdateCustomPrivacyPolicyRequest): Promise<$_model.UpdateCustomPrivacyPolicyResponse> {
|
|
9630
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
9631
|
+
return await this.updateCustomPrivacyPolicyWithOptions(request, runtime);
|
|
9632
|
+
}
|
|
9633
|
+
|
|
9106
9634
|
/**
|
|
9107
9635
|
* 修改域名关联的品牌。
|
|
9108
9636
|
*
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class AddCustomPrivacyPoliciesToBrandRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* 品牌化Id
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* brand_xxxxx
|
|
14
|
+
*/
|
|
15
|
+
brandId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* 条款ID列表
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*/
|
|
22
|
+
customPrivacyPolicyIds?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* @remarks
|
|
25
|
+
* IDaaS EIAM实例的ID。
|
|
26
|
+
*
|
|
27
|
+
* This parameter is required.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* idaas_ue2jvisn35ea5lmthk267xxxxx
|
|
31
|
+
*/
|
|
32
|
+
instanceId?: string;
|
|
33
|
+
static names(): { [key: string]: string } {
|
|
34
|
+
return {
|
|
35
|
+
brandId: 'BrandId',
|
|
36
|
+
customPrivacyPolicyIds: 'CustomPrivacyPolicyIds',
|
|
37
|
+
instanceId: 'InstanceId',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
brandId: 'string',
|
|
44
|
+
customPrivacyPolicyIds: { 'type': 'array', 'itemType': 'string' },
|
|
45
|
+
instanceId: 'string',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
validate() {
|
|
50
|
+
if(Array.isArray(this.customPrivacyPolicyIds)) {
|
|
51
|
+
$dara.Model.validateArray(this.customPrivacyPolicyIds);
|
|
52
|
+
}
|
|
53
|
+
super.validate();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
constructor(map?: { [key: string]: any }) {
|
|
57
|
+
super(map);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { AddCustomPrivacyPoliciesToBrandResponseBody } from "./AddCustomPrivacyPoliciesToBrandResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class AddCustomPrivacyPoliciesToBrandResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: AddCustomPrivacyPoliciesToBrandResponseBody;
|
|
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: AddCustomPrivacyPoliciesToBrandResponseBody,
|
|
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
|
+
|