@azure/arm-databoundaries 1.0.0-beta.1

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 (73) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +108 -0
  4. package/dist/index.js +587 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.js +37 -0
  11. package/dist-esm/samples-dev/dataBoundariesGetScopeSample.js.map +1 -0
  12. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.js +36 -0
  15. package/dist-esm/samples-dev/dataBoundariesGetTenantSample.js.map +1 -0
  16. package/dist-esm/samples-dev/dataBoundariesPutSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/dataBoundariesPutSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/dataBoundariesPutSample.js +39 -0
  19. package/dist-esm/samples-dev/dataBoundariesPutSample.js.map +1 -0
  20. package/dist-esm/src/databoundariesManegementClient.d.ts +18 -0
  21. package/dist-esm/src/databoundariesManegementClient.d.ts.map +1 -0
  22. package/dist-esm/src/databoundariesManegementClient.js +94 -0
  23. package/dist-esm/src/databoundariesManegementClient.js.map +1 -0
  24. package/dist-esm/src/index.d.ts +4 -0
  25. package/dist-esm/src/index.d.ts.map +1 -0
  26. package/dist-esm/src/index.js +11 -0
  27. package/dist-esm/src/index.js.map +1 -0
  28. package/dist-esm/src/models/index.d.ts +213 -0
  29. package/dist-esm/src/models/index.d.ts.map +1 -0
  30. package/dist-esm/src/models/index.js +54 -0
  31. package/dist-esm/src/models/index.js.map +1 -0
  32. package/dist-esm/src/models/mappers.d.ts +10 -0
  33. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  34. package/dist-esm/src/models/mappers.js +222 -0
  35. package/dist-esm/src/models/mappers.js.map +1 -0
  36. package/dist-esm/src/models/parameters.d.ts +9 -0
  37. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  38. package/dist-esm/src/models/parameters.js +81 -0
  39. package/dist-esm/src/models/parameters.js.map +1 -0
  40. package/dist-esm/src/operations/dataBoundaries.d.ts +33 -0
  41. package/dist-esm/src/operations/dataBoundaries.d.ts.map +1 -0
  42. package/dist-esm/src/operations/dataBoundaries.js +102 -0
  43. package/dist-esm/src/operations/dataBoundaries.js.map +1 -0
  44. package/dist-esm/src/operations/index.d.ts +2 -0
  45. package/dist-esm/src/operations/index.d.ts.map +1 -0
  46. package/dist-esm/src/operations/index.js +9 -0
  47. package/dist-esm/src/operations/index.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/dataBoundaries.d.ts +25 -0
  49. package/dist-esm/src/operationsInterfaces/dataBoundaries.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/dataBoundaries.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/dataBoundaries.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  53. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/index.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  56. package/dist-esm/test/databoundaries_operations_test.spec.d.ts +4 -0
  57. package/dist-esm/test/databoundaries_operations_test.spec.d.ts.map +1 -0
  58. package/dist-esm/test/databoundaries_operations_test.spec.js +58 -0
  59. package/dist-esm/test/databoundaries_operations_test.spec.js.map +1 -0
  60. package/package.json +115 -0
  61. package/review/arm-databoundaries.api.md +154 -0
  62. package/src/databoundariesManegementClient.ts +133 -0
  63. package/src/index.ts +11 -0
  64. package/src/models/index.ts +243 -0
  65. package/src/models/mappers.ts +236 -0
  66. package/src/models/parameters.ts +93 -0
  67. package/src/operations/dataBoundaries.ts +141 -0
  68. package/src/operations/index.ts +9 -0
  69. package/src/operationsInterfaces/dataBoundaries.ts +53 -0
  70. package/src/operationsInterfaces/index.ts +9 -0
  71. package/tsconfig.json +33 -0
  72. package/types/arm-databoundaries.d.ts +276 -0
  73. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,276 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+
4
+ /**
5
+ * Defines values for CreatedByType. \
6
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
7
+ * this enum contains the known values that the service supports.
8
+ * ### Known values supported by the service
9
+ * **User** \
10
+ * **Application** \
11
+ * **ManagedIdentity** \
12
+ * **Key**
13
+ */
14
+ export declare type CreatedByType = string;
15
+
16
+ /** Interface representing a DataBoundaries. */
17
+ export declare interface DataBoundaries {
18
+ /**
19
+ * Opt-in tenant to data boundary.
20
+ * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
21
+ * @param dataBoundaryDefinition The data boundary to opt the tenant to.
22
+ * @param options The options parameters.
23
+ */
24
+ put(defaultParam: DefaultName, dataBoundaryDefinition: DataBoundaryDefinition, options?: DataBoundariesPutOptionalParams): Promise<DataBoundariesPutResponse>;
25
+ /**
26
+ * Get data boundary of tenant.
27
+ * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
28
+ * @param options The options parameters.
29
+ */
30
+ getTenant(defaultParam: DefaultName, options?: DataBoundariesGetTenantOptionalParams): Promise<DataBoundariesGetTenantResponse>;
31
+ /**
32
+ * Get data boundary at specified scope
33
+ * @param scope The scope at which the operation is performed.
34
+ * @param defaultParam Default string modeled as parameter for auto generation to work correctly.
35
+ * @param options The options parameters.
36
+ */
37
+ getScope(scope: string, defaultParam: DefaultName, options?: DataBoundariesGetScopeOptionalParams): Promise<DataBoundariesGetScopeResponse>;
38
+ }
39
+
40
+ /** Optional parameters. */
41
+ export declare interface DataBoundariesGetScopeOptionalParams extends coreClient.OperationOptions {
42
+ }
43
+
44
+ /** Contains response data for the getScope operation. */
45
+ export declare type DataBoundariesGetScopeResponse = DataBoundaryDefinition;
46
+
47
+ /** Optional parameters. */
48
+ export declare interface DataBoundariesGetTenantOptionalParams extends coreClient.OperationOptions {
49
+ }
50
+
51
+ /** Contains response data for the getTenant operation. */
52
+ export declare type DataBoundariesGetTenantResponse = DataBoundaryDefinition;
53
+
54
+ export declare class DataboundariesManegementClient extends coreClient.ServiceClient {
55
+ $host: string;
56
+ apiVersion: string;
57
+ /**
58
+ * Initializes a new instance of the DataboundariesManegementClient class.
59
+ * @param credentials Subscription credentials which uniquely identify client subscription.
60
+ * @param options The parameter options
61
+ */
62
+ constructor(credentials: coreAuth.TokenCredential, options?: DataboundariesManegementClientOptionalParams);
63
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
64
+ private addCustomApiVersionPolicy;
65
+ dataBoundaries: DataBoundaries;
66
+ }
67
+
68
+ /** Optional parameters. */
69
+ export declare interface DataboundariesManegementClientOptionalParams extends coreClient.ServiceClientOptions {
70
+ /** server parameter */
71
+ $host?: string;
72
+ /** Api Version */
73
+ apiVersion?: string;
74
+ /** Overrides client endpoint. */
75
+ endpoint?: string;
76
+ }
77
+
78
+ /** Optional parameters. */
79
+ export declare interface DataBoundariesPutOptionalParams extends coreClient.OperationOptions {
80
+ }
81
+
82
+ /** Contains response data for the put operation. */
83
+ export declare type DataBoundariesPutResponse = DataBoundaryDefinition;
84
+
85
+ /**
86
+ * Defines values for DataBoundary. \
87
+ * {@link KnownDataBoundary} can be used interchangeably with DataBoundary,
88
+ * this enum contains the known values that the service supports.
89
+ * ### Known values supported by the service
90
+ * **NotDefined** \
91
+ * **Global** \
92
+ * **EU**
93
+ */
94
+ export declare type DataBoundary = string;
95
+
96
+ /** A data boundary definition. */
97
+ export declare interface DataBoundaryDefinition extends ProxyResource {
98
+ /** Data boundary properties */
99
+ properties?: DataBoundaryProperties;
100
+ }
101
+
102
+ /** Data boundary properties */
103
+ export declare interface DataBoundaryProperties {
104
+ /** The data boundary definition. */
105
+ dataBoundary?: DataBoundary;
106
+ /**
107
+ * Denotes the state of provisioning.
108
+ * NOTE: This property will not be serialized. It can only be populated by the server.
109
+ */
110
+ readonly provisioningState?: ProvisioningState;
111
+ }
112
+
113
+ /**
114
+ * Defines values for DefaultName. \
115
+ * {@link KnownDefaultName} can be used interchangeably with DefaultName,
116
+ * this enum contains the known values that the service supports.
117
+ * ### Known values supported by the service
118
+ * **default**
119
+ */
120
+ export declare type DefaultName = string;
121
+
122
+ /** The resource management error additional info. */
123
+ export declare interface ErrorAdditionalInfo {
124
+ /**
125
+ * The additional info type.
126
+ * NOTE: This property will not be serialized. It can only be populated by the server.
127
+ */
128
+ readonly type?: string;
129
+ /**
130
+ * The additional info.
131
+ * NOTE: This property will not be serialized. It can only be populated by the server.
132
+ */
133
+ readonly info?: Record<string, unknown>;
134
+ }
135
+
136
+ /** The error detail. */
137
+ export declare interface ErrorDetail {
138
+ /**
139
+ * The error code.
140
+ * NOTE: This property will not be serialized. It can only be populated by the server.
141
+ */
142
+ readonly code?: string;
143
+ /**
144
+ * The error message.
145
+ * NOTE: This property will not be serialized. It can only be populated by the server.
146
+ */
147
+ readonly message?: string;
148
+ /**
149
+ * The error target.
150
+ * NOTE: This property will not be serialized. It can only be populated by the server.
151
+ */
152
+ readonly target?: string;
153
+ /**
154
+ * The error details.
155
+ * NOTE: This property will not be serialized. It can only be populated by the server.
156
+ */
157
+ readonly details?: ErrorDetail[];
158
+ /**
159
+ * The error additional info.
160
+ * NOTE: This property will not be serialized. It can only be populated by the server.
161
+ */
162
+ readonly additionalInfo?: ErrorAdditionalInfo[];
163
+ }
164
+
165
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
166
+ export declare interface ErrorResponse {
167
+ /** The error object. */
168
+ error?: ErrorDetail;
169
+ }
170
+
171
+ /** Known values of {@link CreatedByType} that the service accepts. */
172
+ export declare enum KnownCreatedByType {
173
+ /** User */
174
+ User = "User",
175
+ /** Application */
176
+ Application = "Application",
177
+ /** ManagedIdentity */
178
+ ManagedIdentity = "ManagedIdentity",
179
+ /** Key */
180
+ Key = "Key"
181
+ }
182
+
183
+ /** Known values of {@link DataBoundary} that the service accepts. */
184
+ export declare enum KnownDataBoundary {
185
+ /** NotDefined */
186
+ NotDefined = "NotDefined",
187
+ /** Global */
188
+ Global = "Global",
189
+ /** EU */
190
+ EU = "EU"
191
+ }
192
+
193
+ /** Known values of {@link DefaultName} that the service accepts. */
194
+ export declare enum KnownDefaultName {
195
+ /** Default */
196
+ Default = "default"
197
+ }
198
+
199
+ /** Known values of {@link ProvisioningState} that the service accepts. */
200
+ export declare enum KnownProvisioningState {
201
+ /** Accepted */
202
+ Accepted = "Accepted",
203
+ /** Running */
204
+ Running = "Running",
205
+ /** Creating */
206
+ Creating = "Creating",
207
+ /** Canceled */
208
+ Canceled = "Canceled",
209
+ /** Failed */
210
+ Failed = "Failed",
211
+ /** Succeeded */
212
+ Succeeded = "Succeeded",
213
+ /** Updating */
214
+ Updating = "Updating"
215
+ }
216
+
217
+ /**
218
+ * Defines values for ProvisioningState. \
219
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
220
+ * this enum contains the known values that the service supports.
221
+ * ### Known values supported by the service
222
+ * **Accepted** \
223
+ * **Running** \
224
+ * **Creating** \
225
+ * **Canceled** \
226
+ * **Failed** \
227
+ * **Succeeded** \
228
+ * **Updating**
229
+ */
230
+ export declare type ProvisioningState = string;
231
+
232
+ /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
233
+ export declare interface ProxyResource extends Resource {
234
+ }
235
+
236
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
237
+ export declare interface Resource {
238
+ /**
239
+ * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
240
+ * NOTE: This property will not be serialized. It can only be populated by the server.
241
+ */
242
+ readonly id?: string;
243
+ /**
244
+ * The name of the resource
245
+ * NOTE: This property will not be serialized. It can only be populated by the server.
246
+ */
247
+ readonly name?: string;
248
+ /**
249
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
250
+ * NOTE: This property will not be serialized. It can only be populated by the server.
251
+ */
252
+ readonly type?: string;
253
+ /**
254
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
255
+ * NOTE: This property will not be serialized. It can only be populated by the server.
256
+ */
257
+ readonly systemData?: SystemData;
258
+ }
259
+
260
+ /** Metadata pertaining to creation and last modification of the resource. */
261
+ export declare interface SystemData {
262
+ /** The identity that created the resource. */
263
+ createdBy?: string;
264
+ /** The type of identity that created the resource. */
265
+ createdByType?: CreatedByType;
266
+ /** The timestamp of resource creation (UTC). */
267
+ createdAt?: Date;
268
+ /** The identity that last modified the resource. */
269
+ lastModifiedBy?: string;
270
+ /** The type of identity that last modified the resource. */
271
+ lastModifiedByType?: CreatedByType;
272
+ /** The timestamp of resource last modification (UTC) */
273
+ lastModifiedAt?: Date;
274
+ }
275
+
276
+ export { }
@@ -0,0 +1,11 @@
1
+ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
+ // It should be published with your NPM package. It should not be tracked by Git.
3
+ {
4
+ "tsdocVersion": "0.12",
5
+ "toolPackages": [
6
+ {
7
+ "packageName": "@microsoft/api-extractor",
8
+ "packageVersion": "7.47.11"
9
+ }
10
+ ]
11
+ }