@azure/arm-graphservices 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 (120) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +1313 -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/accountCreateAndUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/accountCreateAndUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/accountCreateAndUpdateSample.js +43 -0
  11. package/dist-esm/samples-dev/accountCreateAndUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/accountDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/accountDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/accountDeleteSample.js +39 -0
  15. package/dist-esm/samples-dev/accountDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/accountGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/accountGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/accountGetSample.js +39 -0
  19. package/dist-esm/samples-dev/accountGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/accountUpdateSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/accountUpdateSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/accountUpdateSample.js +42 -0
  23. package/dist-esm/samples-dev/accountUpdateSample.js.map +1 -0
  24. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +52 -0
  27. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +51 -0
  31. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -0
  32. package/dist-esm/samples-dev/operationListSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/operationListSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/operationListSample.js +51 -0
  35. package/dist-esm/samples-dev/operationListSample.js.map +1 -0
  36. package/dist-esm/src/graphServices.d.ts +22 -0
  37. package/dist-esm/src/graphServices.d.ts.map +1 -0
  38. package/dist-esm/src/graphServices.js +102 -0
  39. package/dist-esm/src/graphServices.js.map +1 -0
  40. package/dist-esm/src/index.d.ts +6 -0
  41. package/dist-esm/src/index.d.ts.map +1 -0
  42. package/dist-esm/src/index.js +13 -0
  43. package/dist-esm/src/index.js.map +1 -0
  44. package/dist-esm/src/lroImpl.d.ts +11 -0
  45. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  46. package/dist-esm/src/lroImpl.js +21 -0
  47. package/dist-esm/src/lroImpl.js.map +1 -0
  48. package/dist-esm/src/models/index.d.ts +320 -0
  49. package/dist-esm/src/models/index.d.ts.map +1 -0
  50. package/dist-esm/src/models/index.js +46 -0
  51. package/dist-esm/src/models/index.js.map +1 -0
  52. package/dist-esm/src/models/mappers.d.ts +15 -0
  53. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  54. package/dist-esm/src/models/mappers.js +384 -0
  55. package/dist-esm/src/models/mappers.js.map +1 -0
  56. package/dist-esm/src/models/parameters.d.ts +12 -0
  57. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  58. package/dist-esm/src/models/parameters.js +109 -0
  59. package/dist-esm/src/models/parameters.js.map +1 -0
  60. package/dist-esm/src/operations/account.d.ts +52 -0
  61. package/dist-esm/src/operations/account.d.ts.map +1 -0
  62. package/dist-esm/src/operations/account.js +208 -0
  63. package/dist-esm/src/operations/account.js.map +1 -0
  64. package/dist-esm/src/operations/accounts.d.ts +53 -0
  65. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  66. package/dist-esm/src/operations/accounts.js +252 -0
  67. package/dist-esm/src/operations/accounts.js.map +1 -0
  68. package/dist-esm/src/operations/index.d.ts +4 -0
  69. package/dist-esm/src/operations/index.d.ts.map +1 -0
  70. package/dist-esm/src/operations/index.js +11 -0
  71. package/dist-esm/src/operations/index.js.map +1 -0
  72. package/dist-esm/src/operations/operationOperations.d.ts +32 -0
  73. package/dist-esm/src/operations/operationOperations.d.ts.map +1 -0
  74. package/dist-esm/src/operations/operationOperations.js +131 -0
  75. package/dist-esm/src/operations/operationOperations.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/account.d.ts +44 -0
  77. package/dist-esm/src/operationsInterfaces/account.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/account.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/account.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/accounts.d.ts +17 -0
  81. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  85. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  87. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/operationOperations.d.ts +11 -0
  89. package/dist-esm/src/operationsInterfaces/operationOperations.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/operationOperations.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/operationOperations.js.map +1 -0
  92. package/dist-esm/src/pagingHelper.d.ts +13 -0
  93. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  94. package/dist-esm/src/pagingHelper.js +32 -0
  95. package/dist-esm/src/pagingHelper.js.map +1 -0
  96. package/dist-esm/test/graphservices_operations_test.spec.d.ts +4 -0
  97. package/dist-esm/test/graphservices_operations_test.spec.d.ts.map +1 -0
  98. package/dist-esm/test/graphservices_operations_test.spec.js +55 -0
  99. package/dist-esm/test/graphservices_operations_test.spec.js.map +1 -0
  100. package/package.json +123 -0
  101. package/review/arm-graphservices.api.md +262 -0
  102. package/rollup.config.js +122 -0
  103. package/src/graphServices.ts +148 -0
  104. package/src/index.ts +13 -0
  105. package/src/lroImpl.ts +42 -0
  106. package/src/models/index.ts +364 -0
  107. package/src/models/mappers.ts +408 -0
  108. package/src/models/parameters.ts +127 -0
  109. package/src/operations/account.ts +295 -0
  110. package/src/operations/accounts.ts +303 -0
  111. package/src/operations/index.ts +11 -0
  112. package/src/operations/operationOperations.ts +149 -0
  113. package/src/operationsInterfaces/account.ts +90 -0
  114. package/src/operationsInterfaces/accounts.ts +35 -0
  115. package/src/operationsInterfaces/index.ts +11 -0
  116. package/src/operationsInterfaces/operationOperations.ts +22 -0
  117. package/src/pagingHelper.ts +39 -0
  118. package/tsconfig.json +33 -0
  119. package/types/arm-graphservices.d.ts +459 -0
  120. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,364 @@
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
+ /** The list of accounts. */
12
+ export interface AccountResourceList {
13
+ /** The link to the next page of items */
14
+ nextLink?: string;
15
+ /** The list of recommendations. */
16
+ value?: AccountResource[];
17
+ }
18
+
19
+ /** Metadata pertaining to creation and last modification of the resource. */
20
+ export interface AccountResourceSystemData {
21
+ /** The type of identity that created the resource. */
22
+ createdByType?: CreatedByType;
23
+ /** The timestamp of resource creation (UTC). */
24
+ createdAt?: Date;
25
+ /** The type of identity that last modified the resource. */
26
+ lastModifiedByType?: CreatedByType;
27
+ /** The timestamp of resource last modification (UTC) */
28
+ lastModifiedAt?: Date;
29
+ }
30
+
31
+ /** Property bag from billing account */
32
+ export interface AccountResourceProperties {
33
+ /**
34
+ * Provisioning state.
35
+ * NOTE: This property will not be serialized. It can only be populated by the server.
36
+ */
37
+ readonly provisioningState?: ProvisioningState;
38
+ /** Customer owned application ID */
39
+ appId: string;
40
+ /**
41
+ * Billing Plan Id
42
+ * NOTE: This property will not be serialized. It can only be populated by the server.
43
+ */
44
+ readonly billingPlanId?: string;
45
+ }
46
+
47
+ /** An Azure resource. */
48
+ export interface Resource {
49
+ /**
50
+ * Azure resource ID.
51
+ * NOTE: This property will not be serialized. It can only be populated by the server.
52
+ */
53
+ readonly id?: string;
54
+ /**
55
+ * Azure resource name.
56
+ * NOTE: This property will not be serialized. It can only be populated by the server.
57
+ */
58
+ readonly name?: string;
59
+ /**
60
+ * Azure resource type.
61
+ * NOTE: This property will not be serialized. It can only be populated by the server.
62
+ */
63
+ readonly type?: string;
64
+ /** Location of the resource. */
65
+ location?: string;
66
+ /** resource tags. */
67
+ tags?: { [propertyName: string]: string };
68
+ }
69
+
70
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
71
+ export interface ErrorResponse {
72
+ /** The error object. */
73
+ error?: ErrorDetail;
74
+ }
75
+
76
+ /** The error detail. */
77
+ export interface ErrorDetail {
78
+ /**
79
+ * The error code.
80
+ * NOTE: This property will not be serialized. It can only be populated by the server.
81
+ */
82
+ readonly code?: string;
83
+ /**
84
+ * The error message.
85
+ * NOTE: This property will not be serialized. It can only be populated by the server.
86
+ */
87
+ readonly message?: string;
88
+ /**
89
+ * The error target.
90
+ * NOTE: This property will not be serialized. It can only be populated by the server.
91
+ */
92
+ readonly target?: string;
93
+ /**
94
+ * The error details.
95
+ * NOTE: This property will not be serialized. It can only be populated by the server.
96
+ */
97
+ readonly details?: ErrorDetail[];
98
+ /**
99
+ * The error additional info.
100
+ * NOTE: This property will not be serialized. It can only be populated by the server.
101
+ */
102
+ readonly additionalInfo?: ErrorAdditionalInfo[];
103
+ }
104
+
105
+ /** The resource management error additional info. */
106
+ export interface ErrorAdditionalInfo {
107
+ /**
108
+ * The additional info type.
109
+ * NOTE: This property will not be serialized. It can only be populated by the server.
110
+ */
111
+ readonly type?: string;
112
+ /**
113
+ * The additional info.
114
+ * NOTE: This property will not be serialized. It can only be populated by the server.
115
+ */
116
+ readonly info?: Record<string, unknown>;
117
+ }
118
+
119
+ /** Request payload used to update an existing resource's tags. */
120
+ export interface TagUpdate {
121
+ /** List of key value pairs that describe the resource. This will overwrite the existing tags. */
122
+ tags?: { [propertyName: string]: string };
123
+ }
124
+
125
+ /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
126
+ export interface OperationListResult {
127
+ /**
128
+ * List of operations supported by the resource provider
129
+ * NOTE: This property will not be serialized. It can only be populated by the server.
130
+ */
131
+ readonly value?: Operation[];
132
+ /**
133
+ * URL to get the next set of operation list results (if there are any).
134
+ * NOTE: This property will not be serialized. It can only be populated by the server.
135
+ */
136
+ readonly nextLink?: string;
137
+ }
138
+
139
+ /** Details of a REST API operation, returned from the Resource Provider Operations API */
140
+ export interface Operation {
141
+ /**
142
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
143
+ * NOTE: This property will not be serialized. It can only be populated by the server.
144
+ */
145
+ readonly name?: string;
146
+ /**
147
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
148
+ * NOTE: This property will not be serialized. It can only be populated by the server.
149
+ */
150
+ readonly isDataAction?: boolean;
151
+ /** Localized display information for this particular operation. */
152
+ display?: OperationDisplay;
153
+ /**
154
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
155
+ * NOTE: This property will not be serialized. It can only be populated by the server.
156
+ */
157
+ readonly origin?: Origin;
158
+ /**
159
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
160
+ * NOTE: This property will not be serialized. It can only be populated by the server.
161
+ */
162
+ readonly actionType?: ActionType;
163
+ }
164
+
165
+ /** Localized display information for this particular operation. */
166
+ export interface OperationDisplay {
167
+ /**
168
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
169
+ * NOTE: This property will not be serialized. It can only be populated by the server.
170
+ */
171
+ readonly provider?: string;
172
+ /**
173
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
174
+ * NOTE: This property will not be serialized. It can only be populated by the server.
175
+ */
176
+ readonly resource?: string;
177
+ /**
178
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
179
+ * NOTE: This property will not be serialized. It can only be populated by the server.
180
+ */
181
+ readonly operation?: string;
182
+ /**
183
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
184
+ * NOTE: This property will not be serialized. It can only be populated by the server.
185
+ */
186
+ readonly description?: string;
187
+ }
188
+
189
+ /** Account details */
190
+ export interface AccountResource extends Resource {
191
+ /**
192
+ * Metadata pertaining to creation and last modification of the resource.
193
+ * NOTE: This property will not be serialized. It can only be populated by the server.
194
+ */
195
+ readonly systemData?: AccountResourceSystemData;
196
+ /** Property bag from billing account */
197
+ properties: AccountResourceProperties;
198
+ }
199
+
200
+ /** Account patch properties */
201
+ export interface AccountPatchResource extends TagUpdate {}
202
+
203
+ /** Known values of {@link CreatedByType} that the service accepts. */
204
+ export enum KnownCreatedByType {
205
+ /** User */
206
+ User = "User",
207
+ /** Application */
208
+ Application = "Application",
209
+ /** ManagedIdentity */
210
+ ManagedIdentity = "ManagedIdentity",
211
+ /** Key */
212
+ Key = "Key"
213
+ }
214
+
215
+ /**
216
+ * Defines values for CreatedByType. \
217
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
218
+ * this enum contains the known values that the service supports.
219
+ * ### Known values supported by the service
220
+ * **User** \
221
+ * **Application** \
222
+ * **ManagedIdentity** \
223
+ * **Key**
224
+ */
225
+ export type CreatedByType = string;
226
+
227
+ /** Known values of {@link ProvisioningState} that the service accepts. */
228
+ export enum KnownProvisioningState {
229
+ /** Succeeded */
230
+ Succeeded = "Succeeded",
231
+ /** Failed */
232
+ Failed = "Failed",
233
+ /** Canceled */
234
+ Canceled = "Canceled"
235
+ }
236
+
237
+ /**
238
+ * Defines values for ProvisioningState. \
239
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
240
+ * this enum contains the known values that the service supports.
241
+ * ### Known values supported by the service
242
+ * **Succeeded** \
243
+ * **Failed** \
244
+ * **Canceled**
245
+ */
246
+ export type ProvisioningState = string;
247
+
248
+ /** Known values of {@link Origin} that the service accepts. */
249
+ export enum KnownOrigin {
250
+ /** User */
251
+ User = "user",
252
+ /** System */
253
+ System = "system",
254
+ /** UserSystem */
255
+ UserSystem = "user,system"
256
+ }
257
+
258
+ /**
259
+ * Defines values for Origin. \
260
+ * {@link KnownOrigin} can be used interchangeably with Origin,
261
+ * this enum contains the known values that the service supports.
262
+ * ### Known values supported by the service
263
+ * **user** \
264
+ * **system** \
265
+ * **user,system**
266
+ */
267
+ export type Origin = string;
268
+
269
+ /** Known values of {@link ActionType} that the service accepts. */
270
+ export enum KnownActionType {
271
+ /** Internal */
272
+ Internal = "Internal"
273
+ }
274
+
275
+ /**
276
+ * Defines values for ActionType. \
277
+ * {@link KnownActionType} can be used interchangeably with ActionType,
278
+ * this enum contains the known values that the service supports.
279
+ * ### Known values supported by the service
280
+ * **Internal**
281
+ */
282
+ export type ActionType = string;
283
+
284
+ /** Optional parameters. */
285
+ export interface AccountsListByResourceGroupOptionalParams
286
+ extends coreClient.OperationOptions {}
287
+
288
+ /** Contains response data for the listByResourceGroup operation. */
289
+ export type AccountsListByResourceGroupResponse = AccountResourceList;
290
+
291
+ /** Optional parameters. */
292
+ export interface AccountsListBySubscriptionOptionalParams
293
+ extends coreClient.OperationOptions {}
294
+
295
+ /** Contains response data for the listBySubscription operation. */
296
+ export type AccountsListBySubscriptionResponse = AccountResourceList;
297
+
298
+ /** Optional parameters. */
299
+ export interface AccountsListByResourceGroupNextOptionalParams
300
+ extends coreClient.OperationOptions {}
301
+
302
+ /** Contains response data for the listByResourceGroupNext operation. */
303
+ export type AccountsListByResourceGroupNextResponse = AccountResourceList;
304
+
305
+ /** Optional parameters. */
306
+ export interface AccountsListBySubscriptionNextOptionalParams
307
+ extends coreClient.OperationOptions {}
308
+
309
+ /** Contains response data for the listBySubscriptionNext operation. */
310
+ export type AccountsListBySubscriptionNextResponse = AccountResourceList;
311
+
312
+ /** Optional parameters. */
313
+ export interface AccountGetOptionalParams extends coreClient.OperationOptions {}
314
+
315
+ /** Contains response data for the get operation. */
316
+ export type AccountGetResponse = AccountResource;
317
+
318
+ /** Optional parameters. */
319
+ export interface AccountCreateAndUpdateOptionalParams
320
+ extends coreClient.OperationOptions {
321
+ /** Delay to wait until next poll, in milliseconds. */
322
+ updateIntervalInMs?: number;
323
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
324
+ resumeFrom?: string;
325
+ }
326
+
327
+ /** Contains response data for the createAndUpdate operation. */
328
+ export type AccountCreateAndUpdateResponse = AccountResource;
329
+
330
+ /** Optional parameters. */
331
+ export interface AccountUpdateOptionalParams
332
+ extends coreClient.OperationOptions {}
333
+
334
+ /** Contains response data for the update operation. */
335
+ export type AccountUpdateResponse = AccountResource;
336
+
337
+ /** Optional parameters. */
338
+ export interface AccountDeleteOptionalParams
339
+ extends coreClient.OperationOptions {}
340
+
341
+ /** Optional parameters. */
342
+ export interface OperationListOptionalParams
343
+ extends coreClient.OperationOptions {}
344
+
345
+ /** Contains response data for the list operation. */
346
+ export type OperationListResponse = OperationListResult;
347
+
348
+ /** Optional parameters. */
349
+ export interface OperationListNextOptionalParams
350
+ extends coreClient.OperationOptions {}
351
+
352
+ /** Contains response data for the listNext operation. */
353
+ export type OperationListNextResponse = OperationListResult;
354
+
355
+ /** Optional parameters. */
356
+ export interface GraphServicesOptionalParams
357
+ extends coreClient.ServiceClientOptions {
358
+ /** server parameter */
359
+ $host?: string;
360
+ /** Api Version */
361
+ apiVersion?: string;
362
+ /** Overrides client endpoint. */
363
+ endpoint?: string;
364
+ }