@azure/arm-databoundaries 1.0.0-beta.1 → 1.0.0-beta.2

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 (197) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/LICENSE +4 -4
  3. package/README.md +25 -17
  4. package/{dist-esm/src → dist/browser}/databoundariesManegementClient.d.ts +2 -2
  5. package/dist/browser/databoundariesManegementClient.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/databoundariesManegementClient.js +29 -24
  7. package/dist/browser/databoundariesManegementClient.js.map +1 -0
  8. package/dist/browser/index.d.ts +4 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/{dist-esm/src → dist/browser}/index.js +3 -3
  11. package/dist/browser/index.js.map +1 -0
  12. package/dist/browser/models/index.js.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/mappers.js +8 -3
  14. package/dist/browser/models/mappers.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  16. package/dist/browser/models/parameters.js.map +1 -0
  17. package/{dist-esm/src → dist/browser}/operations/dataBoundaries.d.ts +3 -3
  18. package/dist/browser/operations/dataBoundaries.d.ts.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/dataBoundaries.js +3 -2
  20. package/dist/browser/operations/dataBoundaries.js.map +1 -0
  21. package/dist/browser/operations/index.d.ts +2 -0
  22. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  23. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +1 -1
  24. package/dist/browser/operations/index.js.map +1 -0
  25. package/{dist-esm/src → dist/browser}/operationsInterfaces/dataBoundaries.d.ts +1 -1
  26. package/dist/browser/operationsInterfaces/dataBoundaries.d.ts.map +1 -0
  27. package/dist/browser/operationsInterfaces/dataBoundaries.js.map +1 -0
  28. package/dist/browser/operationsInterfaces/index.d.ts +2 -0
  29. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  30. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +1 -1
  31. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  32. package/dist/browser/package.json +3 -0
  33. package/dist/commonjs/databoundariesManegementClient.d.ts +18 -0
  34. package/dist/commonjs/databoundariesManegementClient.d.ts.map +1 -0
  35. package/dist/commonjs/databoundariesManegementClient.js +104 -0
  36. package/dist/commonjs/databoundariesManegementClient.js.map +1 -0
  37. package/dist/commonjs/index.d.ts +4 -0
  38. package/dist/commonjs/index.d.ts.map +1 -0
  39. package/dist/commonjs/index.js +16 -0
  40. package/dist/commonjs/index.js.map +1 -0
  41. package/{types/arm-databoundaries.d.ts → dist/commonjs/models/index.d.ts} +213 -276
  42. package/dist/commonjs/models/index.d.ts.map +1 -0
  43. package/dist/commonjs/models/index.js +57 -0
  44. package/dist/commonjs/models/index.js.map +1 -0
  45. package/dist/commonjs/models/mappers.d.ts +10 -0
  46. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  47. package/dist/commonjs/models/mappers.js +230 -0
  48. package/dist/commonjs/models/mappers.js.map +1 -0
  49. package/dist/commonjs/models/parameters.d.ts +9 -0
  50. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  51. package/dist/commonjs/models/parameters.js +84 -0
  52. package/dist/commonjs/models/parameters.js.map +1 -0
  53. package/dist/commonjs/operations/dataBoundaries.d.ts +33 -0
  54. package/dist/commonjs/operations/dataBoundaries.d.ts.map +1 -0
  55. package/dist/commonjs/operations/dataBoundaries.js +108 -0
  56. package/dist/commonjs/operations/dataBoundaries.js.map +1 -0
  57. package/dist/commonjs/operations/index.d.ts +2 -0
  58. package/dist/commonjs/operations/index.d.ts.map +1 -0
  59. package/dist/commonjs/operations/index.js +12 -0
  60. package/dist/commonjs/operations/index.js.map +1 -0
  61. package/dist/commonjs/operationsInterfaces/dataBoundaries.d.ts +25 -0
  62. package/dist/commonjs/operationsInterfaces/dataBoundaries.d.ts.map +1 -0
  63. package/dist/commonjs/operationsInterfaces/dataBoundaries.js +10 -0
  64. package/dist/commonjs/operationsInterfaces/dataBoundaries.js.map +1 -0
  65. package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
  66. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  67. package/dist/commonjs/operationsInterfaces/index.js +12 -0
  68. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  69. package/dist/commonjs/package.json +3 -0
  70. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  71. package/dist/esm/databoundariesManegementClient.d.ts +18 -0
  72. package/dist/esm/databoundariesManegementClient.d.ts.map +1 -0
  73. package/dist/esm/databoundariesManegementClient.js +99 -0
  74. package/dist/esm/databoundariesManegementClient.js.map +1 -0
  75. package/dist/esm/index.d.ts +4 -0
  76. package/dist/esm/index.d.ts.map +1 -0
  77. package/{src/index.ts → dist/esm/index.js} +4 -4
  78. package/dist/esm/index.js.map +1 -0
  79. package/dist/esm/models/index.d.ts +213 -0
  80. package/dist/esm/models/index.d.ts.map +1 -0
  81. package/dist/esm/models/index.js +54 -0
  82. package/dist/esm/models/index.js.map +1 -0
  83. package/dist/esm/models/mappers.d.ts +10 -0
  84. package/dist/esm/models/mappers.d.ts.map +1 -0
  85. package/dist/esm/models/mappers.js +227 -0
  86. package/dist/esm/models/mappers.js.map +1 -0
  87. package/dist/esm/models/parameters.d.ts +9 -0
  88. package/dist/esm/models/parameters.d.ts.map +1 -0
  89. package/dist/esm/models/parameters.js +81 -0
  90. package/dist/esm/models/parameters.js.map +1 -0
  91. package/dist/esm/operations/dataBoundaries.d.ts +33 -0
  92. package/dist/esm/operations/dataBoundaries.d.ts.map +1 -0
  93. package/dist/esm/operations/dataBoundaries.js +103 -0
  94. package/dist/esm/operations/dataBoundaries.js.map +1 -0
  95. package/dist/esm/operations/index.d.ts +2 -0
  96. package/dist/esm/operations/index.d.ts.map +1 -0
  97. package/dist/esm/operations/index.js +9 -0
  98. package/dist/esm/operations/index.js.map +1 -0
  99. package/dist/esm/operationsInterfaces/dataBoundaries.d.ts +25 -0
  100. package/dist/esm/operationsInterfaces/dataBoundaries.d.ts.map +1 -0
  101. package/{src/operations/index.ts → dist/esm/operationsInterfaces/dataBoundaries.js} +2 -2
  102. package/dist/esm/operationsInterfaces/dataBoundaries.js.map +1 -0
  103. package/dist/esm/operationsInterfaces/index.d.ts +2 -0
  104. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  105. package/dist/esm/operationsInterfaces/index.js +9 -0
  106. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  107. package/dist/esm/package.json +3 -0
  108. package/dist/react-native/databoundariesManegementClient.d.ts +18 -0
  109. package/dist/react-native/databoundariesManegementClient.d.ts.map +1 -0
  110. package/dist/react-native/databoundariesManegementClient.js +99 -0
  111. package/dist/react-native/databoundariesManegementClient.js.map +1 -0
  112. package/dist/react-native/index.d.ts +4 -0
  113. package/dist/react-native/index.d.ts.map +1 -0
  114. package/dist/react-native/index.js +11 -0
  115. package/dist/react-native/index.js.map +1 -0
  116. package/dist/react-native/models/index.d.ts +213 -0
  117. package/dist/react-native/models/index.d.ts.map +1 -0
  118. package/dist/react-native/models/index.js +54 -0
  119. package/dist/react-native/models/index.js.map +1 -0
  120. package/dist/react-native/models/mappers.d.ts +10 -0
  121. package/dist/react-native/models/mappers.d.ts.map +1 -0
  122. package/dist/react-native/models/mappers.js +227 -0
  123. package/dist/react-native/models/mappers.js.map +1 -0
  124. package/dist/react-native/models/parameters.d.ts +9 -0
  125. package/dist/react-native/models/parameters.d.ts.map +1 -0
  126. package/dist/react-native/models/parameters.js +81 -0
  127. package/dist/react-native/models/parameters.js.map +1 -0
  128. package/dist/react-native/operations/dataBoundaries.d.ts +33 -0
  129. package/dist/react-native/operations/dataBoundaries.d.ts.map +1 -0
  130. package/dist/react-native/operations/dataBoundaries.js +103 -0
  131. package/dist/react-native/operations/dataBoundaries.js.map +1 -0
  132. package/dist/react-native/operations/index.d.ts +2 -0
  133. package/dist/react-native/operations/index.d.ts.map +1 -0
  134. package/dist/react-native/operations/index.js +9 -0
  135. package/dist/react-native/operations/index.js.map +1 -0
  136. package/dist/react-native/operationsInterfaces/dataBoundaries.d.ts +25 -0
  137. package/dist/react-native/operationsInterfaces/dataBoundaries.d.ts.map +1 -0
  138. package/{src/operationsInterfaces/index.ts → dist/react-native/operationsInterfaces/dataBoundaries.js} +2 -2
  139. package/dist/react-native/operationsInterfaces/dataBoundaries.js.map +1 -0
  140. package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
  141. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  142. package/dist/react-native/operationsInterfaces/index.js +9 -0
  143. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  144. package/dist/react-native/package.json +3 -0
  145. package/package.json +84 -70
  146. package/dist/index.js +0 -587
  147. package/dist/index.js.map +0 -1
  148. package/dist/index.min.js +0 -1
  149. package/dist/index.min.js.map +0 -1
  150. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.d.ts +0 -2
  151. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.d.ts.map +0 -1
  152. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.js +0 -37
  153. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.js.map +0 -1
  154. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.d.ts +0 -2
  155. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.d.ts.map +0 -1
  156. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.js +0 -36
  157. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.js.map +0 -1
  158. package/dist-esm/samples-dev/dataBoundariesPutSample.d.ts +0 -2
  159. package/dist-esm/samples-dev/dataBoundariesPutSample.d.ts.map +0 -1
  160. package/dist-esm/samples-dev/dataBoundariesPutSample.js +0 -39
  161. package/dist-esm/samples-dev/dataBoundariesPutSample.js.map +0 -1
  162. package/dist-esm/src/databoundariesManegementClient.d.ts.map +0 -1
  163. package/dist-esm/src/databoundariesManegementClient.js.map +0 -1
  164. package/dist-esm/src/index.d.ts +0 -4
  165. package/dist-esm/src/index.d.ts.map +0 -1
  166. package/dist-esm/src/index.js.map +0 -1
  167. package/dist-esm/src/models/index.js.map +0 -1
  168. package/dist-esm/src/models/mappers.js.map +0 -1
  169. package/dist-esm/src/models/parameters.js.map +0 -1
  170. package/dist-esm/src/operations/dataBoundaries.d.ts.map +0 -1
  171. package/dist-esm/src/operations/dataBoundaries.js.map +0 -1
  172. package/dist-esm/src/operations/index.d.ts +0 -2
  173. package/dist-esm/src/operations/index.js.map +0 -1
  174. package/dist-esm/src/operationsInterfaces/dataBoundaries.d.ts.map +0 -1
  175. package/dist-esm/src/operationsInterfaces/dataBoundaries.js.map +0 -1
  176. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
  177. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  178. package/dist-esm/test/databoundaries_operations_test.spec.d.ts +0 -4
  179. package/dist-esm/test/databoundaries_operations_test.spec.d.ts.map +0 -1
  180. package/dist-esm/test/databoundaries_operations_test.spec.js +0 -58
  181. package/dist-esm/test/databoundaries_operations_test.spec.js.map +0 -1
  182. package/src/databoundariesManegementClient.ts +0 -133
  183. package/src/models/index.ts +0 -243
  184. package/src/models/mappers.ts +0 -236
  185. package/src/models/parameters.ts +0 -93
  186. package/src/operations/dataBoundaries.ts +0 -141
  187. package/src/operationsInterfaces/dataBoundaries.ts +0 -53
  188. package/tsconfig.json +0 -33
  189. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  190. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  191. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  192. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  193. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  194. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  195. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  196. /package/{dist-esm/src → dist/browser}/operationsInterfaces/dataBoundaries.js +0 -0
  197. /package/review/{arm-databoundaries.api.md → arm-databoundaries-node.api.md} +0 -0
@@ -1,243 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import * as coreClient from "@azure/core-client";
10
-
11
- /** Data boundary properties */
12
- export interface DataBoundaryProperties {
13
- /** The data boundary definition. */
14
- dataBoundary?: DataBoundary;
15
- /**
16
- * Denotes the state of provisioning.
17
- * NOTE: This property will not be serialized. It can only be populated by the server.
18
- */
19
- readonly provisioningState?: ProvisioningState;
20
- }
21
-
22
- /** Common fields that are returned in the response for all Azure Resource Manager resources */
23
- export interface Resource {
24
- /**
25
- * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
26
- * NOTE: This property will not be serialized. It can only be populated by the server.
27
- */
28
- readonly id?: string;
29
- /**
30
- * The name of the resource
31
- * NOTE: This property will not be serialized. It can only be populated by the server.
32
- */
33
- readonly name?: string;
34
- /**
35
- * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
36
- * NOTE: This property will not be serialized. It can only be populated by the server.
37
- */
38
- readonly type?: string;
39
- /**
40
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
41
- * NOTE: This property will not be serialized. It can only be populated by the server.
42
- */
43
- readonly systemData?: SystemData;
44
- }
45
-
46
- /** Metadata pertaining to creation and last modification of the resource. */
47
- export interface SystemData {
48
- /** The identity that created the resource. */
49
- createdBy?: string;
50
- /** The type of identity that created the resource. */
51
- createdByType?: CreatedByType;
52
- /** The timestamp of resource creation (UTC). */
53
- createdAt?: Date;
54
- /** The identity that last modified the resource. */
55
- lastModifiedBy?: string;
56
- /** The type of identity that last modified the resource. */
57
- lastModifiedByType?: CreatedByType;
58
- /** The timestamp of resource last modification (UTC) */
59
- lastModifiedAt?: Date;
60
- }
61
-
62
- /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
63
- export interface ErrorResponse {
64
- /** The error object. */
65
- error?: ErrorDetail;
66
- }
67
-
68
- /** The error detail. */
69
- export interface ErrorDetail {
70
- /**
71
- * The error code.
72
- * NOTE: This property will not be serialized. It can only be populated by the server.
73
- */
74
- readonly code?: string;
75
- /**
76
- * The error message.
77
- * NOTE: This property will not be serialized. It can only be populated by the server.
78
- */
79
- readonly message?: string;
80
- /**
81
- * The error target.
82
- * NOTE: This property will not be serialized. It can only be populated by the server.
83
- */
84
- readonly target?: string;
85
- /**
86
- * The error details.
87
- * NOTE: This property will not be serialized. It can only be populated by the server.
88
- */
89
- readonly details?: ErrorDetail[];
90
- /**
91
- * The error additional info.
92
- * NOTE: This property will not be serialized. It can only be populated by the server.
93
- */
94
- readonly additionalInfo?: ErrorAdditionalInfo[];
95
- }
96
-
97
- /** The resource management error additional info. */
98
- export interface ErrorAdditionalInfo {
99
- /**
100
- * The additional info type.
101
- * NOTE: This property will not be serialized. It can only be populated by the server.
102
- */
103
- readonly type?: string;
104
- /**
105
- * The additional info.
106
- * NOTE: This property will not be serialized. It can only be populated by the server.
107
- */
108
- readonly info?: Record<string, unknown>;
109
- }
110
-
111
- /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
112
- export interface ProxyResource extends Resource {}
113
-
114
- /** A data boundary definition. */
115
- export interface DataBoundaryDefinition extends ProxyResource {
116
- /** Data boundary properties */
117
- properties?: DataBoundaryProperties;
118
- }
119
-
120
- /** Known values of {@link DefaultName} that the service accepts. */
121
- export enum KnownDefaultName {
122
- /** Default */
123
- Default = "default",
124
- }
125
-
126
- /**
127
- * Defines values for DefaultName. \
128
- * {@link KnownDefaultName} can be used interchangeably with DefaultName,
129
- * this enum contains the known values that the service supports.
130
- * ### Known values supported by the service
131
- * **default**
132
- */
133
- export type DefaultName = string;
134
-
135
- /** Known values of {@link DataBoundary} that the service accepts. */
136
- export enum KnownDataBoundary {
137
- /** NotDefined */
138
- NotDefined = "NotDefined",
139
- /** Global */
140
- Global = "Global",
141
- /** EU */
142
- EU = "EU",
143
- }
144
-
145
- /**
146
- * Defines values for DataBoundary. \
147
- * {@link KnownDataBoundary} can be used interchangeably with DataBoundary,
148
- * this enum contains the known values that the service supports.
149
- * ### Known values supported by the service
150
- * **NotDefined** \
151
- * **Global** \
152
- * **EU**
153
- */
154
- export type DataBoundary = string;
155
-
156
- /** Known values of {@link ProvisioningState} that the service accepts. */
157
- export enum KnownProvisioningState {
158
- /** Accepted */
159
- Accepted = "Accepted",
160
- /** Running */
161
- Running = "Running",
162
- /** Creating */
163
- Creating = "Creating",
164
- /** Canceled */
165
- Canceled = "Canceled",
166
- /** Failed */
167
- Failed = "Failed",
168
- /** Succeeded */
169
- Succeeded = "Succeeded",
170
- /** Updating */
171
- Updating = "Updating",
172
- }
173
-
174
- /**
175
- * Defines values for ProvisioningState. \
176
- * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
177
- * this enum contains the known values that the service supports.
178
- * ### Known values supported by the service
179
- * **Accepted** \
180
- * **Running** \
181
- * **Creating** \
182
- * **Canceled** \
183
- * **Failed** \
184
- * **Succeeded** \
185
- * **Updating**
186
- */
187
- export type ProvisioningState = string;
188
-
189
- /** Known values of {@link CreatedByType} that the service accepts. */
190
- export enum KnownCreatedByType {
191
- /** User */
192
- User = "User",
193
- /** Application */
194
- Application = "Application",
195
- /** ManagedIdentity */
196
- ManagedIdentity = "ManagedIdentity",
197
- /** Key */
198
- Key = "Key",
199
- }
200
-
201
- /**
202
- * Defines values for CreatedByType. \
203
- * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
204
- * this enum contains the known values that the service supports.
205
- * ### Known values supported by the service
206
- * **User** \
207
- * **Application** \
208
- * **ManagedIdentity** \
209
- * **Key**
210
- */
211
- export type CreatedByType = string;
212
-
213
- /** Optional parameters. */
214
- export interface DataBoundariesPutOptionalParams
215
- extends coreClient.OperationOptions {}
216
-
217
- /** Contains response data for the put operation. */
218
- export type DataBoundariesPutResponse = DataBoundaryDefinition;
219
-
220
- /** Optional parameters. */
221
- export interface DataBoundariesGetTenantOptionalParams
222
- extends coreClient.OperationOptions {}
223
-
224
- /** Contains response data for the getTenant operation. */
225
- export type DataBoundariesGetTenantResponse = DataBoundaryDefinition;
226
-
227
- /** Optional parameters. */
228
- export interface DataBoundariesGetScopeOptionalParams
229
- extends coreClient.OperationOptions {}
230
-
231
- /** Contains response data for the getScope operation. */
232
- export type DataBoundariesGetScopeResponse = DataBoundaryDefinition;
233
-
234
- /** Optional parameters. */
235
- export interface DataboundariesManegementClientOptionalParams
236
- extends coreClient.ServiceClientOptions {
237
- /** server parameter */
238
- $host?: string;
239
- /** Api Version */
240
- apiVersion?: string;
241
- /** Overrides client endpoint. */
242
- endpoint?: string;
243
- }
@@ -1,236 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import * as coreClient from "@azure/core-client";
10
-
11
- export const DataBoundaryProperties: coreClient.CompositeMapper = {
12
- type: {
13
- name: "Composite",
14
- className: "DataBoundaryProperties",
15
- modelProperties: {
16
- dataBoundary: {
17
- serializedName: "dataBoundary",
18
- type: {
19
- name: "String",
20
- },
21
- },
22
- provisioningState: {
23
- serializedName: "provisioningState",
24
- readOnly: true,
25
- type: {
26
- name: "String",
27
- },
28
- },
29
- },
30
- },
31
- };
32
-
33
- export const Resource: coreClient.CompositeMapper = {
34
- type: {
35
- name: "Composite",
36
- className: "Resource",
37
- modelProperties: {
38
- id: {
39
- serializedName: "id",
40
- readOnly: true,
41
- type: {
42
- name: "String",
43
- },
44
- },
45
- name: {
46
- serializedName: "name",
47
- readOnly: true,
48
- type: {
49
- name: "String",
50
- },
51
- },
52
- type: {
53
- serializedName: "type",
54
- readOnly: true,
55
- type: {
56
- name: "String",
57
- },
58
- },
59
- systemData: {
60
- serializedName: "systemData",
61
- type: {
62
- name: "Composite",
63
- className: "SystemData",
64
- },
65
- },
66
- },
67
- },
68
- };
69
-
70
- export const SystemData: coreClient.CompositeMapper = {
71
- type: {
72
- name: "Composite",
73
- className: "SystemData",
74
- modelProperties: {
75
- createdBy: {
76
- serializedName: "createdBy",
77
- type: {
78
- name: "String",
79
- },
80
- },
81
- createdByType: {
82
- serializedName: "createdByType",
83
- type: {
84
- name: "String",
85
- },
86
- },
87
- createdAt: {
88
- serializedName: "createdAt",
89
- type: {
90
- name: "DateTime",
91
- },
92
- },
93
- lastModifiedBy: {
94
- serializedName: "lastModifiedBy",
95
- type: {
96
- name: "String",
97
- },
98
- },
99
- lastModifiedByType: {
100
- serializedName: "lastModifiedByType",
101
- type: {
102
- name: "String",
103
- },
104
- },
105
- lastModifiedAt: {
106
- serializedName: "lastModifiedAt",
107
- type: {
108
- name: "DateTime",
109
- },
110
- },
111
- },
112
- },
113
- };
114
-
115
- export const ErrorResponse: coreClient.CompositeMapper = {
116
- type: {
117
- name: "Composite",
118
- className: "ErrorResponse",
119
- modelProperties: {
120
- error: {
121
- serializedName: "error",
122
- type: {
123
- name: "Composite",
124
- className: "ErrorDetail",
125
- },
126
- },
127
- },
128
- },
129
- };
130
-
131
- export const ErrorDetail: coreClient.CompositeMapper = {
132
- type: {
133
- name: "Composite",
134
- className: "ErrorDetail",
135
- modelProperties: {
136
- code: {
137
- serializedName: "code",
138
- readOnly: true,
139
- type: {
140
- name: "String",
141
- },
142
- },
143
- message: {
144
- serializedName: "message",
145
- readOnly: true,
146
- type: {
147
- name: "String",
148
- },
149
- },
150
- target: {
151
- serializedName: "target",
152
- readOnly: true,
153
- type: {
154
- name: "String",
155
- },
156
- },
157
- details: {
158
- serializedName: "details",
159
- readOnly: true,
160
- type: {
161
- name: "Sequence",
162
- element: {
163
- type: {
164
- name: "Composite",
165
- className: "ErrorDetail",
166
- },
167
- },
168
- },
169
- },
170
- additionalInfo: {
171
- serializedName: "additionalInfo",
172
- readOnly: true,
173
- type: {
174
- name: "Sequence",
175
- element: {
176
- type: {
177
- name: "Composite",
178
- className: "ErrorAdditionalInfo",
179
- },
180
- },
181
- },
182
- },
183
- },
184
- },
185
- };
186
-
187
- export const ErrorAdditionalInfo: coreClient.CompositeMapper = {
188
- type: {
189
- name: "Composite",
190
- className: "ErrorAdditionalInfo",
191
- modelProperties: {
192
- type: {
193
- serializedName: "type",
194
- readOnly: true,
195
- type: {
196
- name: "String",
197
- },
198
- },
199
- info: {
200
- serializedName: "info",
201
- readOnly: true,
202
- type: {
203
- name: "Dictionary",
204
- value: { type: { name: "any" } },
205
- },
206
- },
207
- },
208
- },
209
- };
210
-
211
- export const ProxyResource: coreClient.CompositeMapper = {
212
- type: {
213
- name: "Composite",
214
- className: "ProxyResource",
215
- modelProperties: {
216
- ...Resource.type.modelProperties,
217
- },
218
- },
219
- };
220
-
221
- export const DataBoundaryDefinition: coreClient.CompositeMapper = {
222
- type: {
223
- name: "Composite",
224
- className: "DataBoundaryDefinition",
225
- modelProperties: {
226
- ...ProxyResource.type.modelProperties,
227
- properties: {
228
- serializedName: "properties",
229
- type: {
230
- name: "Composite",
231
- className: "DataBoundaryProperties",
232
- },
233
- },
234
- },
235
- },
236
- };
@@ -1,93 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import {
10
- OperationParameter,
11
- OperationURLParameter,
12
- OperationQueryParameter,
13
- } from "@azure/core-client";
14
- import { DataBoundaryDefinition as DataBoundaryDefinitionMapper } from "../models/mappers";
15
-
16
- export const contentType: OperationParameter = {
17
- parameterPath: ["options", "contentType"],
18
- mapper: {
19
- defaultValue: "application/json",
20
- isConstant: true,
21
- serializedName: "Content-Type",
22
- type: {
23
- name: "String",
24
- },
25
- },
26
- };
27
-
28
- export const dataBoundaryDefinition: OperationParameter = {
29
- parameterPath: "dataBoundaryDefinition",
30
- mapper: DataBoundaryDefinitionMapper,
31
- };
32
-
33
- export const accept: OperationParameter = {
34
- parameterPath: "accept",
35
- mapper: {
36
- defaultValue: "application/json",
37
- isConstant: true,
38
- serializedName: "Accept",
39
- type: {
40
- name: "String",
41
- },
42
- },
43
- };
44
-
45
- export const $host: OperationURLParameter = {
46
- parameterPath: "$host",
47
- mapper: {
48
- serializedName: "$host",
49
- required: true,
50
- type: {
51
- name: "String",
52
- },
53
- },
54
- skipEncoding: true,
55
- };
56
-
57
- export const apiVersion: OperationQueryParameter = {
58
- parameterPath: "apiVersion",
59
- mapper: {
60
- defaultValue: "2024-08-01",
61
- isConstant: true,
62
- serializedName: "api-version",
63
- type: {
64
- name: "String",
65
- },
66
- },
67
- };
68
-
69
- export const defaultParam: OperationURLParameter = {
70
- parameterPath: "defaultParam",
71
- mapper: {
72
- serializedName: "default",
73
- required: true,
74
- type: {
75
- name: "String",
76
- },
77
- },
78
- };
79
-
80
- export const scope: OperationURLParameter = {
81
- parameterPath: "scope",
82
- mapper: {
83
- constraints: {
84
- MinLength: 1,
85
- },
86
- serializedName: "scope",
87
- required: true,
88
- type: {
89
- name: "String",
90
- },
91
- },
92
- skipEncoding: true,
93
- };
@@ -1,141 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { DataBoundaries } from "../operationsInterfaces";
10
- import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
13
- import { DataboundariesManegementClient } from "../databoundariesManegementClient";
14
- import {
15
- DataBoundaryDefinition,
16
- DefaultName,
17
- DataBoundariesPutOptionalParams,
18
- DataBoundariesPutResponse,
19
- DataBoundariesGetTenantOptionalParams,
20
- DataBoundariesGetTenantResponse,
21
- DataBoundariesGetScopeOptionalParams,
22
- DataBoundariesGetScopeResponse,
23
- } from "../models";
24
-
25
- /** Class containing DataBoundaries operations. */
26
- export class DataBoundariesImpl implements DataBoundaries {
27
- private readonly client: DataboundariesManegementClient;
28
-
29
- /**
30
- * Initialize a new instance of the class DataBoundaries class.
31
- * @param client Reference to the service client
32
- */
33
- constructor(client: DataboundariesManegementClient) {
34
- this.client = client;
35
- }
36
-
37
- /**
38
- * Opt-in tenant to data boundary.
39
- * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
40
- * @param dataBoundaryDefinition The data boundary to opt the tenant to.
41
- * @param options The options parameters.
42
- */
43
- put(
44
- defaultParam: DefaultName,
45
- dataBoundaryDefinition: DataBoundaryDefinition,
46
- options?: DataBoundariesPutOptionalParams,
47
- ): Promise<DataBoundariesPutResponse> {
48
- return this.client.sendOperationRequest(
49
- { defaultParam, dataBoundaryDefinition, options },
50
- putOperationSpec,
51
- );
52
- }
53
-
54
- /**
55
- * Get data boundary of tenant.
56
- * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
57
- * @param options The options parameters.
58
- */
59
- getTenant(
60
- defaultParam: DefaultName,
61
- options?: DataBoundariesGetTenantOptionalParams,
62
- ): Promise<DataBoundariesGetTenantResponse> {
63
- return this.client.sendOperationRequest(
64
- { defaultParam, options },
65
- getTenantOperationSpec,
66
- );
67
- }
68
-
69
- /**
70
- * Get data boundary at specified scope
71
- * @param scope The scope at which the operation is performed.
72
- * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
73
- * @param options The options parameters.
74
- */
75
- getScope(
76
- scope: string,
77
- defaultParam: DefaultName,
78
- options?: DataBoundariesGetScopeOptionalParams,
79
- ): Promise<DataBoundariesGetScopeResponse> {
80
- return this.client.sendOperationRequest(
81
- { scope, defaultParam, options },
82
- getScopeOperationSpec,
83
- );
84
- }
85
- }
86
- // Operation Specifications
87
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
88
-
89
- const putOperationSpec: coreClient.OperationSpec = {
90
- path: "/providers/Microsoft.Resources/dataBoundaries/{default}",
91
- httpMethod: "PUT",
92
- responses: {
93
- 200: {
94
- bodyMapper: Mappers.DataBoundaryDefinition,
95
- },
96
- 201: {
97
- bodyMapper: Mappers.DataBoundaryDefinition,
98
- },
99
- default: {
100
- bodyMapper: Mappers.ErrorResponse,
101
- },
102
- },
103
- requestBody: Parameters.dataBoundaryDefinition,
104
- queryParameters: [Parameters.apiVersion],
105
- urlParameters: [Parameters.$host, Parameters.defaultParam],
106
- headerParameters: [Parameters.contentType, Parameters.accept],
107
- mediaType: "json",
108
- serializer,
109
- };
110
- const getTenantOperationSpec: coreClient.OperationSpec = {
111
- path: "/providers/Microsoft.Resources/dataBoundaries/{default}",
112
- httpMethod: "GET",
113
- responses: {
114
- 200: {
115
- bodyMapper: Mappers.DataBoundaryDefinition,
116
- },
117
- default: {
118
- bodyMapper: Mappers.ErrorResponse,
119
- },
120
- },
121
- queryParameters: [Parameters.apiVersion],
122
- urlParameters: [Parameters.$host, Parameters.defaultParam],
123
- headerParameters: [Parameters.accept],
124
- serializer,
125
- };
126
- const getScopeOperationSpec: coreClient.OperationSpec = {
127
- path: "/{scope}/providers/Microsoft.Resources/dataBoundaries/{default}",
128
- httpMethod: "GET",
129
- responses: {
130
- 200: {
131
- bodyMapper: Mappers.DataBoundaryDefinition,
132
- },
133
- default: {
134
- bodyMapper: Mappers.ErrorResponse,
135
- },
136
- },
137
- queryParameters: [Parameters.apiVersion],
138
- urlParameters: [Parameters.$host, Parameters.defaultParam, Parameters.scope],
139
- headerParameters: [Parameters.accept],
140
- serializer,
141
- };