@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.
Files changed (129) hide show
  1. package/dist/client.d.ts +150 -0
  2. package/dist/client.js +471 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddCustomPrivacyPoliciesToBrandRequest.d.ts +40 -0
  5. package/dist/models/AddCustomPrivacyPoliciesToBrandRequest.js +65 -0
  6. package/dist/models/AddCustomPrivacyPoliciesToBrandRequest.js.map +1 -0
  7. package/dist/models/AddCustomPrivacyPoliciesToBrandResponse.d.ts +19 -0
  8. package/dist/models/AddCustomPrivacyPoliciesToBrandResponse.js +69 -0
  9. package/dist/models/AddCustomPrivacyPoliciesToBrandResponse.js.map +1 -0
  10. package/dist/models/AddCustomPrivacyPoliciesToBrandResponseBody.d.ts +18 -0
  11. package/dist/models/AddCustomPrivacyPoliciesToBrandResponseBody.js +58 -0
  12. package/dist/models/AddCustomPrivacyPoliciesToBrandResponseBody.js.map +1 -0
  13. package/dist/models/CreateCustomPrivacyPolicyRequest.d.ts +128 -0
  14. package/dist/models/CreateCustomPrivacyPolicyRequest.js +120 -0
  15. package/dist/models/CreateCustomPrivacyPolicyRequest.js.map +1 -0
  16. package/dist/models/CreateCustomPrivacyPolicyResponse.d.ts +19 -0
  17. package/dist/models/CreateCustomPrivacyPolicyResponse.js +69 -0
  18. package/dist/models/CreateCustomPrivacyPolicyResponse.js.map +1 -0
  19. package/dist/models/CreateCustomPrivacyPolicyResponseBody.d.ts +23 -0
  20. package/dist/models/CreateCustomPrivacyPolicyResponseBody.js +60 -0
  21. package/dist/models/CreateCustomPrivacyPolicyResponseBody.js.map +1 -0
  22. package/dist/models/DeleteCustomPrivacyPolicyRequest.d.ts +33 -0
  23. package/dist/models/DeleteCustomPrivacyPolicyRequest.js +60 -0
  24. package/dist/models/DeleteCustomPrivacyPolicyRequest.js.map +1 -0
  25. package/dist/models/DeleteCustomPrivacyPolicyResponse.d.ts +19 -0
  26. package/dist/models/DeleteCustomPrivacyPolicyResponse.js +69 -0
  27. package/dist/models/DeleteCustomPrivacyPolicyResponse.js.map +1 -0
  28. package/dist/models/DeleteCustomPrivacyPolicyResponseBody.d.ts +18 -0
  29. package/dist/models/DeleteCustomPrivacyPolicyResponseBody.js +58 -0
  30. package/dist/models/DeleteCustomPrivacyPolicyResponseBody.js.map +1 -0
  31. package/dist/models/DisableCustomPrivacyPolicyRequest.d.ts +31 -0
  32. package/dist/models/DisableCustomPrivacyPolicyRequest.js +60 -0
  33. package/dist/models/DisableCustomPrivacyPolicyRequest.js.map +1 -0
  34. package/dist/models/DisableCustomPrivacyPolicyResponse.d.ts +19 -0
  35. package/dist/models/DisableCustomPrivacyPolicyResponse.js +69 -0
  36. package/dist/models/DisableCustomPrivacyPolicyResponse.js.map +1 -0
  37. package/dist/models/DisableCustomPrivacyPolicyResponseBody.d.ts +18 -0
  38. package/dist/models/DisableCustomPrivacyPolicyResponseBody.js +58 -0
  39. package/dist/models/DisableCustomPrivacyPolicyResponseBody.js.map +1 -0
  40. package/dist/models/EnableCustomPrivacyPolicyRequest.d.ts +31 -0
  41. package/dist/models/EnableCustomPrivacyPolicyRequest.js +60 -0
  42. package/dist/models/EnableCustomPrivacyPolicyRequest.js.map +1 -0
  43. package/dist/models/EnableCustomPrivacyPolicyResponse.d.ts +19 -0
  44. package/dist/models/EnableCustomPrivacyPolicyResponse.js +69 -0
  45. package/dist/models/EnableCustomPrivacyPolicyResponse.js.map +1 -0
  46. package/dist/models/EnableCustomPrivacyPolicyResponseBody.d.ts +18 -0
  47. package/dist/models/EnableCustomPrivacyPolicyResponseBody.js +58 -0
  48. package/dist/models/EnableCustomPrivacyPolicyResponseBody.js.map +1 -0
  49. package/dist/models/GetCustomPrivacyPolicyRequest.d.ts +33 -0
  50. package/dist/models/GetCustomPrivacyPolicyRequest.js +60 -0
  51. package/dist/models/GetCustomPrivacyPolicyRequest.js.map +1 -0
  52. package/dist/models/GetCustomPrivacyPolicyResponse.d.ts +19 -0
  53. package/dist/models/GetCustomPrivacyPolicyResponse.js +69 -0
  54. package/dist/models/GetCustomPrivacyPolicyResponse.js.map +1 -0
  55. package/dist/models/GetCustomPrivacyPolicyResponseBody.d.ts +107 -0
  56. package/dist/models/GetCustomPrivacyPolicyResponseBody.js +144 -0
  57. package/dist/models/GetCustomPrivacyPolicyResponseBody.js.map +1 -0
  58. package/dist/models/ListCustomPrivacyPoliciesForBrandRequest.d.ts +57 -0
  59. package/dist/models/ListCustomPrivacyPoliciesForBrandRequest.js +66 -0
  60. package/dist/models/ListCustomPrivacyPoliciesForBrandRequest.js.map +1 -0
  61. package/dist/models/ListCustomPrivacyPoliciesForBrandResponse.d.ts +19 -0
  62. package/dist/models/ListCustomPrivacyPoliciesForBrandResponse.js +69 -0
  63. package/dist/models/ListCustomPrivacyPoliciesForBrandResponse.js.map +1 -0
  64. package/dist/models/ListCustomPrivacyPoliciesForBrandResponseBody.d.ts +68 -0
  65. package/dist/models/ListCustomPrivacyPoliciesForBrandResponseBody.js +90 -0
  66. package/dist/models/ListCustomPrivacyPoliciesForBrandResponseBody.js.map +1 -0
  67. package/dist/models/ListCustomPrivacyPoliciesRequest.d.ts +55 -0
  68. package/dist/models/ListCustomPrivacyPoliciesRequest.js +66 -0
  69. package/dist/models/ListCustomPrivacyPoliciesRequest.js.map +1 -0
  70. package/dist/models/ListCustomPrivacyPoliciesResponse.d.ts +19 -0
  71. package/dist/models/ListCustomPrivacyPoliciesResponse.js +69 -0
  72. package/dist/models/ListCustomPrivacyPoliciesResponse.js.map +1 -0
  73. package/dist/models/ListCustomPrivacyPoliciesResponseBody.d.ts +108 -0
  74. package/dist/models/ListCustomPrivacyPoliciesResponseBody.js +100 -0
  75. package/dist/models/ListCustomPrivacyPoliciesResponseBody.js.map +1 -0
  76. package/dist/models/RemoveCustomPrivacyPoliciesFromBrandRequest.d.ts +40 -0
  77. package/dist/models/RemoveCustomPrivacyPoliciesFromBrandRequest.js +65 -0
  78. package/dist/models/RemoveCustomPrivacyPoliciesFromBrandRequest.js.map +1 -0
  79. package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponse.d.ts +19 -0
  80. package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponse.js +69 -0
  81. package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponse.js.map +1 -0
  82. package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponseBody.d.ts +18 -0
  83. package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponseBody.js +58 -0
  84. package/dist/models/RemoveCustomPrivacyPoliciesFromBrandResponseBody.js.map +1 -0
  85. package/dist/models/UpdateCustomPrivacyPolicyRequest.d.ts +92 -0
  86. package/dist/models/UpdateCustomPrivacyPolicyRequest.js +118 -0
  87. package/dist/models/UpdateCustomPrivacyPolicyRequest.js.map +1 -0
  88. package/dist/models/UpdateCustomPrivacyPolicyResponse.d.ts +19 -0
  89. package/dist/models/UpdateCustomPrivacyPolicyResponse.js +69 -0
  90. package/dist/models/UpdateCustomPrivacyPolicyResponse.js.map +1 -0
  91. package/dist/models/UpdateCustomPrivacyPolicyResponseBody.d.ts +18 -0
  92. package/dist/models/UpdateCustomPrivacyPolicyResponseBody.js +58 -0
  93. package/dist/models/UpdateCustomPrivacyPolicyResponseBody.js.map +1 -0
  94. package/dist/models/model.d.ts +39 -0
  95. package/dist/models/model.js +96 -17
  96. package/dist/models/model.js.map +1 -1
  97. package/package.json +1 -1
  98. package/src/client.ts +528 -0
  99. package/src/models/AddCustomPrivacyPoliciesToBrandRequest.ts +60 -0
  100. package/src/models/AddCustomPrivacyPoliciesToBrandResponse.ts +40 -0
  101. package/src/models/AddCustomPrivacyPoliciesToBrandResponseBody.ts +31 -0
  102. package/src/models/CreateCustomPrivacyPolicyRequest.ts +185 -0
  103. package/src/models/CreateCustomPrivacyPolicyResponse.ts +40 -0
  104. package/src/models/CreateCustomPrivacyPolicyResponseBody.ts +38 -0
  105. package/src/models/DeleteCustomPrivacyPolicyRequest.ts +48 -0
  106. package/src/models/DeleteCustomPrivacyPolicyResponse.ts +40 -0
  107. package/src/models/DeleteCustomPrivacyPolicyResponseBody.ts +31 -0
  108. package/src/models/DisableCustomPrivacyPolicyRequest.ts +46 -0
  109. package/src/models/DisableCustomPrivacyPolicyResponse.ts +40 -0
  110. package/src/models/DisableCustomPrivacyPolicyResponseBody.ts +31 -0
  111. package/src/models/EnableCustomPrivacyPolicyRequest.ts +46 -0
  112. package/src/models/EnableCustomPrivacyPolicyResponse.ts +40 -0
  113. package/src/models/EnableCustomPrivacyPolicyResponseBody.ts +31 -0
  114. package/src/models/GetCustomPrivacyPolicyRequest.ts +48 -0
  115. package/src/models/GetCustomPrivacyPolicyResponse.ts +40 -0
  116. package/src/models/GetCustomPrivacyPolicyResponseBody.ts +179 -0
  117. package/src/models/ListCustomPrivacyPoliciesForBrandRequest.ts +78 -0
  118. package/src/models/ListCustomPrivacyPoliciesForBrandResponse.ts +40 -0
  119. package/src/models/ListCustomPrivacyPoliciesForBrandResponseBody.ts +104 -0
  120. package/src/models/ListCustomPrivacyPoliciesRequest.ts +76 -0
  121. package/src/models/ListCustomPrivacyPoliciesResponse.ts +40 -0
  122. package/src/models/ListCustomPrivacyPoliciesResponseBody.ts +154 -0
  123. package/src/models/RemoveCustomPrivacyPoliciesFromBrandRequest.ts +60 -0
  124. package/src/models/RemoveCustomPrivacyPoliciesFromBrandResponse.ts +40 -0
  125. package/src/models/RemoveCustomPrivacyPoliciesFromBrandResponseBody.ts +31 -0
  126. package/src/models/UpdateCustomPrivacyPolicyRequest.ts +147 -0
  127. package/src/models/UpdateCustomPrivacyPolicyResponse.ts +40 -0
  128. package/src/models/UpdateCustomPrivacyPolicyResponseBody.ts +31 -0
  129. package/src/models/model.ts +39 -0
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { GetCustomPrivacyPolicyResponseBody } from "./GetCustomPrivacyPolicyResponseBody";
4
+
5
+
6
+ export class GetCustomPrivacyPolicyResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: GetCustomPrivacyPolicyResponseBody;
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: GetCustomPrivacyPolicyResponseBody,
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,179 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContentsCustomPrivacyPolicyItems extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * item name
9
+ */
10
+ customPrivacyPolicyItemName?: string;
11
+ /**
12
+ * @example
13
+ * https://example.com
14
+ */
15
+ customPrivacyPolicyItemUrl?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ customPrivacyPolicyItemName: 'CustomPrivacyPolicyItemName',
19
+ customPrivacyPolicyItemUrl: 'CustomPrivacyPolicyItemUrl',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ customPrivacyPolicyItemName: 'string',
26
+ customPrivacyPolicyItemUrl: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
39
+ export class GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContents extends $dara.Model {
40
+ customPrivacyPolicyItems?: GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContentsCustomPrivacyPolicyItems[];
41
+ /**
42
+ * @example
43
+ * Please read and agree:
44
+ */
45
+ customPrivacyPolicyTip?: string;
46
+ /**
47
+ * @example
48
+ * zh-Hans-CN
49
+ */
50
+ languageCode?: string;
51
+ static names(): { [key: string]: string } {
52
+ return {
53
+ customPrivacyPolicyItems: 'CustomPrivacyPolicyItems',
54
+ customPrivacyPolicyTip: 'CustomPrivacyPolicyTip',
55
+ languageCode: 'LanguageCode',
56
+ };
57
+ }
58
+
59
+ static types(): { [key: string]: any } {
60
+ return {
61
+ customPrivacyPolicyItems: { 'type': 'array', 'itemType': GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContentsCustomPrivacyPolicyItems },
62
+ customPrivacyPolicyTip: 'string',
63
+ languageCode: 'string',
64
+ };
65
+ }
66
+
67
+ validate() {
68
+ if(Array.isArray(this.customPrivacyPolicyItems)) {
69
+ $dara.Model.validateArray(this.customPrivacyPolicyItems);
70
+ }
71
+ super.validate();
72
+ }
73
+
74
+ constructor(map?: { [key: string]: any }) {
75
+ super(map);
76
+ }
77
+ }
78
+
79
+ export class GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicy extends $dara.Model {
80
+ customPrivacyPolicyContents?: GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContents[];
81
+ /**
82
+ * @example
83
+ * pp_xxxxx
84
+ */
85
+ customPrivacyPolicyId?: string;
86
+ /**
87
+ * @example
88
+ * Custom Privacy Policy Name
89
+ */
90
+ customPrivacyPolicyName?: string;
91
+ /**
92
+ * @example
93
+ * zh-Hans-CN
94
+ */
95
+ defaultLanguageCode?: string;
96
+ /**
97
+ * @example
98
+ * idaas_ue2jvisn35ea5lmthk267xxxxx
99
+ */
100
+ instanceId?: string;
101
+ /**
102
+ * @example
103
+ * enabled
104
+ */
105
+ status?: string;
106
+ /**
107
+ * @example
108
+ * implied_consent
109
+ */
110
+ userConsentType?: string;
111
+ static names(): { [key: string]: string } {
112
+ return {
113
+ customPrivacyPolicyContents: 'CustomPrivacyPolicyContents',
114
+ customPrivacyPolicyId: 'CustomPrivacyPolicyId',
115
+ customPrivacyPolicyName: 'CustomPrivacyPolicyName',
116
+ defaultLanguageCode: 'DefaultLanguageCode',
117
+ instanceId: 'InstanceId',
118
+ status: 'Status',
119
+ userConsentType: 'UserConsentType',
120
+ };
121
+ }
122
+
123
+ static types(): { [key: string]: any } {
124
+ return {
125
+ customPrivacyPolicyContents: { 'type': 'array', 'itemType': GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicyCustomPrivacyPolicyContents },
126
+ customPrivacyPolicyId: 'string',
127
+ customPrivacyPolicyName: 'string',
128
+ defaultLanguageCode: 'string',
129
+ instanceId: 'string',
130
+ status: 'string',
131
+ userConsentType: 'string',
132
+ };
133
+ }
134
+
135
+ validate() {
136
+ if(Array.isArray(this.customPrivacyPolicyContents)) {
137
+ $dara.Model.validateArray(this.customPrivacyPolicyContents);
138
+ }
139
+ super.validate();
140
+ }
141
+
142
+ constructor(map?: { [key: string]: any }) {
143
+ super(map);
144
+ }
145
+ }
146
+
147
+ export class GetCustomPrivacyPolicyResponseBody extends $dara.Model {
148
+ customPrivacyPolicy?: GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicy;
149
+ /**
150
+ * @example
151
+ * 0441BD79-92F3-53AA-8657-F8CE4A2B912A
152
+ */
153
+ requestId?: string;
154
+ static names(): { [key: string]: string } {
155
+ return {
156
+ customPrivacyPolicy: 'CustomPrivacyPolicy',
157
+ requestId: 'RequestId',
158
+ };
159
+ }
160
+
161
+ static types(): { [key: string]: any } {
162
+ return {
163
+ customPrivacyPolicy: GetCustomPrivacyPolicyResponseBodyCustomPrivacyPolicy,
164
+ requestId: 'string',
165
+ };
166
+ }
167
+
168
+ validate() {
169
+ if(this.customPrivacyPolicy && typeof (this.customPrivacyPolicy as any).validate === 'function') {
170
+ (this.customPrivacyPolicy as any).validate();
171
+ }
172
+ super.validate();
173
+ }
174
+
175
+ constructor(map?: { [key: string]: any }) {
176
+ super(map);
177
+ }
178
+ }
179
+
@@ -0,0 +1,78 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListCustomPrivacyPoliciesForBrandRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 品牌化Id
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * brand_xxxx
14
+ */
15
+ brandId?: string;
16
+ /**
17
+ * @remarks
18
+ * IDaaS EIAM实例的ID。
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * idaas_ue2jvisn35ea5lmthk267xxxxx
24
+ */
25
+ instanceId?: string;
26
+ /**
27
+ * @remarks
28
+ * 分页查询时每页行数。默认值为20,最大值为100。
29
+ *
30
+ * @example
31
+ * 20
32
+ */
33
+ maxResults?: number;
34
+ /**
35
+ * @remarks
36
+ * 查询凭证(Token),取值为上一次API调用返回的NextToken参数值。
37
+ *
38
+ * @example
39
+ * NTxxxxxexample
40
+ */
41
+ nextToken?: string;
42
+ /**
43
+ * @remarks
44
+ * 查询上一页凭证(Token),取值为上一次API调用返回的previousToken参数值。
45
+ *
46
+ * @example
47
+ * PTxxxxxexample
48
+ */
49
+ previousToken?: string;
50
+ static names(): { [key: string]: string } {
51
+ return {
52
+ brandId: 'BrandId',
53
+ instanceId: 'InstanceId',
54
+ maxResults: 'MaxResults',
55
+ nextToken: 'NextToken',
56
+ previousToken: 'PreviousToken',
57
+ };
58
+ }
59
+
60
+ static types(): { [key: string]: any } {
61
+ return {
62
+ brandId: 'string',
63
+ instanceId: 'string',
64
+ maxResults: 'number',
65
+ nextToken: 'string',
66
+ previousToken: 'string',
67
+ };
68
+ }
69
+
70
+ validate() {
71
+ super.validate();
72
+ }
73
+
74
+ constructor(map?: { [key: string]: any }) {
75
+ super(map);
76
+ }
77
+ }
78
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListCustomPrivacyPoliciesForBrandResponseBody } from "./ListCustomPrivacyPoliciesForBrandResponseBody";
4
+
5
+
6
+ export class ListCustomPrivacyPoliciesForBrandResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListCustomPrivacyPoliciesForBrandResponseBody;
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: ListCustomPrivacyPoliciesForBrandResponseBody,
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,104 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListCustomPrivacyPoliciesForBrandResponseBodyBrandCustomPrivacyPolicies extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 条款ID
9
+ *
10
+ * @example
11
+ * pp_xxxx
12
+ */
13
+ customPrivacyPolicyId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ customPrivacyPolicyId: 'CustomPrivacyPolicyId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ customPrivacyPolicyId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
35
+ export class ListCustomPrivacyPoliciesForBrandResponseBody extends $dara.Model {
36
+ brandCustomPrivacyPolicies?: ListCustomPrivacyPoliciesForBrandResponseBodyBrandCustomPrivacyPolicies[];
37
+ /**
38
+ * @remarks
39
+ * 分页查询时每页行数。
40
+ *
41
+ * @example
42
+ * 20
43
+ */
44
+ maxResults?: number;
45
+ /**
46
+ * @remarks
47
+ * 本次调用返回的查询凭证(Token)值,用于下一次翻页查询。
48
+ *
49
+ * @example
50
+ * NTxxxexample
51
+ */
52
+ nextToken?: string;
53
+ /**
54
+ * @remarks
55
+ * 本次调用返回的查询凭证(Token)值,用于上一次翻页查询。
56
+ *
57
+ * @example
58
+ * PTxxxexample
59
+ */
60
+ previousToken?: string;
61
+ /**
62
+ * @example
63
+ * 0441BD79-92F3-53AA-8657-F8CE4A2B912A
64
+ */
65
+ requestId?: string;
66
+ /**
67
+ * @example
68
+ * 100
69
+ */
70
+ totalCount?: number;
71
+ static names(): { [key: string]: string } {
72
+ return {
73
+ brandCustomPrivacyPolicies: 'BrandCustomPrivacyPolicies',
74
+ maxResults: 'MaxResults',
75
+ nextToken: 'NextToken',
76
+ previousToken: 'PreviousToken',
77
+ requestId: 'RequestId',
78
+ totalCount: 'TotalCount',
79
+ };
80
+ }
81
+
82
+ static types(): { [key: string]: any } {
83
+ return {
84
+ brandCustomPrivacyPolicies: { 'type': 'array', 'itemType': ListCustomPrivacyPoliciesForBrandResponseBodyBrandCustomPrivacyPolicies },
85
+ maxResults: 'number',
86
+ nextToken: 'string',
87
+ previousToken: 'string',
88
+ requestId: 'string',
89
+ totalCount: 'number',
90
+ };
91
+ }
92
+
93
+ validate() {
94
+ if(Array.isArray(this.brandCustomPrivacyPolicies)) {
95
+ $dara.Model.validateArray(this.brandCustomPrivacyPolicies);
96
+ }
97
+ super.validate();
98
+ }
99
+
100
+ constructor(map?: { [key: string]: any }) {
101
+ super(map);
102
+ }
103
+ }
104
+
@@ -0,0 +1,76 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListCustomPrivacyPoliciesRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 自定义条款名称,左模糊匹配
9
+ *
10
+ * @example
11
+ * Custom
12
+ */
13
+ customPrivacyPolicyNameStartsWith?: string;
14
+ /**
15
+ * @remarks
16
+ * IDaaS EIAM实例的ID。
17
+ *
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * idaas_ue2jvisn35ea5lmthk267xxxxx
22
+ */
23
+ instanceId?: string;
24
+ /**
25
+ * @remarks
26
+ * 分页查询时每页行数。默认值为20,最大值为100。
27
+ *
28
+ * @example
29
+ * 20
30
+ */
31
+ maxResults?: number;
32
+ /**
33
+ * @remarks
34
+ * 查询凭证(Token),取值为上一次API调用返回的NextToken参数值。
35
+ *
36
+ * @example
37
+ * NTxxxxxexample
38
+ */
39
+ nextToken?: string;
40
+ /**
41
+ * @remarks
42
+ * 查询上一页凭证(Token),取值为上一次API调用返回的previousToken参数值。
43
+ *
44
+ * @example
45
+ * PTxxxxxexample
46
+ */
47
+ previousToken?: string;
48
+ static names(): { [key: string]: string } {
49
+ return {
50
+ customPrivacyPolicyNameStartsWith: 'CustomPrivacyPolicyNameStartsWith',
51
+ instanceId: 'InstanceId',
52
+ maxResults: 'MaxResults',
53
+ nextToken: 'NextToken',
54
+ previousToken: 'PreviousToken',
55
+ };
56
+ }
57
+
58
+ static types(): { [key: string]: any } {
59
+ return {
60
+ customPrivacyPolicyNameStartsWith: 'string',
61
+ instanceId: 'string',
62
+ maxResults: 'number',
63
+ nextToken: 'string',
64
+ previousToken: 'string',
65
+ };
66
+ }
67
+
68
+ validate() {
69
+ super.validate();
70
+ }
71
+
72
+ constructor(map?: { [key: string]: any }) {
73
+ super(map);
74
+ }
75
+ }
76
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListCustomPrivacyPoliciesResponseBody } from "./ListCustomPrivacyPoliciesResponseBody";
4
+
5
+
6
+ export class ListCustomPrivacyPoliciesResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListCustomPrivacyPoliciesResponseBody;
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: ListCustomPrivacyPoliciesResponseBody,
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,154 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListCustomPrivacyPoliciesResponseBodyCustomPrivacyPolicies extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 自定义条款Id
9
+ *
10
+ * @example
11
+ * pp_xxxxx
12
+ */
13
+ customPrivacyPolicyId?: string;
14
+ /**
15
+ * @remarks
16
+ * 自定义条款名称
17
+ *
18
+ * @example
19
+ * Custom Privacy Policy Name
20
+ */
21
+ customPrivacyPolicyName?: string;
22
+ /**
23
+ * @remarks
24
+ * 若显示语言未配置时,门户侧展示默认语言展示条款。
25
+ *
26
+ * @example
27
+ * zh-Hans-CN
28
+ */
29
+ defaultLanguageCode?: string;
30
+ /**
31
+ * @remarks
32
+ * 实例id
33
+ *
34
+ * @example
35
+ * idaas_ue2jvisn35ea5lmthk267xxxxx
36
+ */
37
+ instanceId?: string;
38
+ /**
39
+ * @remarks
40
+ * 自定义条款状态
41
+ *
42
+ * @example
43
+ * enabled
44
+ */
45
+ status?: string;
46
+ /**
47
+ * @remarks
48
+ * 自定义条款同意类型,是默认同意,还是用户勾选同意
49
+ *
50
+ * @example
51
+ * implied_consent
52
+ */
53
+ userConsentType?: string;
54
+ static names(): { [key: string]: string } {
55
+ return {
56
+ customPrivacyPolicyId: 'CustomPrivacyPolicyId',
57
+ customPrivacyPolicyName: 'CustomPrivacyPolicyName',
58
+ defaultLanguageCode: 'DefaultLanguageCode',
59
+ instanceId: 'InstanceId',
60
+ status: 'Status',
61
+ userConsentType: 'UserConsentType',
62
+ };
63
+ }
64
+
65
+ static types(): { [key: string]: any } {
66
+ return {
67
+ customPrivacyPolicyId: 'string',
68
+ customPrivacyPolicyName: 'string',
69
+ defaultLanguageCode: 'string',
70
+ instanceId: 'string',
71
+ status: 'string',
72
+ userConsentType: 'string',
73
+ };
74
+ }
75
+
76
+ validate() {
77
+ super.validate();
78
+ }
79
+
80
+ constructor(map?: { [key: string]: any }) {
81
+ super(map);
82
+ }
83
+ }
84
+
85
+ export class ListCustomPrivacyPoliciesResponseBody extends $dara.Model {
86
+ customPrivacyPolicies?: ListCustomPrivacyPoliciesResponseBodyCustomPrivacyPolicies[];
87
+ /**
88
+ * @remarks
89
+ * 分页查询时每页行数。
90
+ *
91
+ * @example
92
+ * 20
93
+ */
94
+ maxResults?: number;
95
+ /**
96
+ * @remarks
97
+ * 本次调用返回的查询凭证(Token)值,用于下一次翻页查询。
98
+ *
99
+ * @example
100
+ * NTxxxexample
101
+ */
102
+ nextToken?: string;
103
+ /**
104
+ * @remarks
105
+ * 本次调用返回的查询凭证(Token)值,用于上一次翻页查询。
106
+ *
107
+ * @example
108
+ * PTxxxexample
109
+ */
110
+ previousToken?: string;
111
+ /**
112
+ * @example
113
+ * 0441BD79-92F3-53AA-8657-F8CE4A2B912A
114
+ */
115
+ requestId?: string;
116
+ /**
117
+ * @example
118
+ * 100
119
+ */
120
+ totalCount?: number;
121
+ static names(): { [key: string]: string } {
122
+ return {
123
+ customPrivacyPolicies: 'CustomPrivacyPolicies',
124
+ maxResults: 'MaxResults',
125
+ nextToken: 'NextToken',
126
+ previousToken: 'PreviousToken',
127
+ requestId: 'RequestId',
128
+ totalCount: 'TotalCount',
129
+ };
130
+ }
131
+
132
+ static types(): { [key: string]: any } {
133
+ return {
134
+ customPrivacyPolicies: { 'type': 'array', 'itemType': ListCustomPrivacyPoliciesResponseBodyCustomPrivacyPolicies },
135
+ maxResults: 'number',
136
+ nextToken: 'string',
137
+ previousToken: 'string',
138
+ requestId: 'string',
139
+ totalCount: 'number',
140
+ };
141
+ }
142
+
143
+ validate() {
144
+ if(Array.isArray(this.customPrivacyPolicies)) {
145
+ $dara.Model.validateArray(this.customPrivacyPolicies);
146
+ }
147
+ super.validate();
148
+ }
149
+
150
+ constructor(map?: { [key: string]: any }) {
151
+ super(map);
152
+ }
153
+ }
154
+