@azure/arm-apicenter 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 (105) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +1296 -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/operationsListSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/operationsListSample.js +58 -0
  11. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  12. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +39 -0
  15. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -0
  16. package/dist-esm/samples-dev/servicesDeleteSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/servicesDeleteSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/servicesDeleteSample.js +39 -0
  19. package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -0
  20. package/dist-esm/samples-dev/servicesGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/servicesGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/servicesGetSample.js +39 -0
  23. package/dist-esm/samples-dev/servicesGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +59 -0
  27. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/servicesListBySubscriptionSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/servicesListBySubscriptionSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/servicesListBySubscriptionSample.js +58 -0
  31. package/dist-esm/samples-dev/servicesListBySubscriptionSample.js.map +1 -0
  32. package/dist-esm/samples-dev/servicesUpdateSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/servicesUpdateSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/servicesUpdateSample.js +39 -0
  35. package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -0
  36. package/dist-esm/src/azureAPICenter.d.ts +21 -0
  37. package/dist-esm/src/azureAPICenter.d.ts.map +1 -0
  38. package/dist-esm/src/azureAPICenter.js +101 -0
  39. package/dist-esm/src/azureAPICenter.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/models/index.d.ts +369 -0
  45. package/dist-esm/src/models/index.d.ts.map +1 -0
  46. package/dist-esm/src/models/index.js +58 -0
  47. package/dist-esm/src/models/index.js.map +1 -0
  48. package/dist-esm/src/models/mappers.d.ts +16 -0
  49. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  50. package/dist-esm/src/models/mappers.js +428 -0
  51. package/dist-esm/src/models/mappers.js.map +1 -0
  52. package/dist-esm/src/models/parameters.d.ts +12 -0
  53. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  54. package/dist-esm/src/models/parameters.js +112 -0
  55. package/dist-esm/src/models/parameters.js.map +1 -0
  56. package/dist-esm/src/operations/index.d.ts +3 -0
  57. package/dist-esm/src/operations/index.d.ts.map +1 -0
  58. package/dist-esm/src/operations/index.js +10 -0
  59. package/dist-esm/src/operations/index.js.map +1 -0
  60. package/dist-esm/src/operations/operations.d.ts +32 -0
  61. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/operations.js +138 -0
  63. package/dist-esm/src/operations/operations.js.map +1 -0
  64. package/dist-esm/src/operations/services.d.ts +81 -0
  65. package/dist-esm/src/operations/services.d.ts.map +1 -0
  66. package/dist-esm/src/operations/services.js +392 -0
  67. package/dist-esm/src/operations/services.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  69. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  71. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  73. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/services.d.ts +45 -0
  77. package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/services.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
  80. package/dist-esm/src/pagingHelper.d.ts +13 -0
  81. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  82. package/dist-esm/src/pagingHelper.js +32 -0
  83. package/dist-esm/src/pagingHelper.js.map +1 -0
  84. package/dist-esm/test/apicenter_operations_test.spec.d.ts +4 -0
  85. package/dist-esm/test/apicenter_operations_test.spec.d.ts.map +1 -0
  86. package/dist-esm/test/apicenter_operations_test.spec.js +76 -0
  87. package/dist-esm/test/apicenter_operations_test.spec.js.map +1 -0
  88. package/package.json +121 -0
  89. package/review/arm-apicenter.api.md +274 -0
  90. package/rollup.config.js +122 -0
  91. package/src/azureAPICenter.ts +142 -0
  92. package/src/index.ts +13 -0
  93. package/src/models/index.ts +421 -0
  94. package/src/models/mappers.ts +451 -0
  95. package/src/models/parameters.ts +130 -0
  96. package/src/operations/index.ts +10 -0
  97. package/src/operations/operations.ts +149 -0
  98. package/src/operations/services.ts +472 -0
  99. package/src/operationsInterfaces/index.ts +10 -0
  100. package/src/operationsInterfaces/operations.ts +22 -0
  101. package/src/operationsInterfaces/services.ts +86 -0
  102. package/src/pagingHelper.ts +39 -0
  103. package/tsconfig.json +33 -0
  104. package/types/arm-apicenter.d.ts +494 -0
  105. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,86 @@
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ Service,
12
+ ServicesListBySubscriptionOptionalParams,
13
+ ServicesListByResourceGroupOptionalParams,
14
+ ServicesGetOptionalParams,
15
+ ServicesGetResponse,
16
+ ServicesCreateOrUpdateOptionalParams,
17
+ ServicesCreateOrUpdateResponse,
18
+ ServicesUpdateOptionalParams,
19
+ ServicesUpdateResponse,
20
+ ServicesDeleteOptionalParams
21
+ } from "../models";
22
+
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Interface representing a Services. */
25
+ export interface Services {
26
+ /**
27
+ * Lists services within an Azure subscription.
28
+ * @param options The options parameters.
29
+ */
30
+ listBySubscription(
31
+ options?: ServicesListBySubscriptionOptionalParams
32
+ ): PagedAsyncIterableIterator<Service>;
33
+ /**
34
+ * Lists services within a resource group
35
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
36
+ * @param options The options parameters.
37
+ */
38
+ listByResourceGroup(
39
+ resourceGroupName: string,
40
+ options?: ServicesListByResourceGroupOptionalParams
41
+ ): PagedAsyncIterableIterator<Service>;
42
+ /**
43
+ * Get service
44
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
45
+ * @param serviceName Service name
46
+ * @param options The options parameters.
47
+ */
48
+ get(
49
+ resourceGroupName: string,
50
+ serviceName: string,
51
+ options?: ServicesGetOptionalParams
52
+ ): Promise<ServicesGetResponse>;
53
+ /**
54
+ * Create or update service
55
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
56
+ * @param serviceName Service name
57
+ * @param options The options parameters.
58
+ */
59
+ createOrUpdate(
60
+ resourceGroupName: string,
61
+ serviceName: string,
62
+ options?: ServicesCreateOrUpdateOptionalParams
63
+ ): Promise<ServicesCreateOrUpdateResponse>;
64
+ /**
65
+ * Update service
66
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
67
+ * @param serviceName Service name
68
+ * @param options The options parameters.
69
+ */
70
+ update(
71
+ resourceGroupName: string,
72
+ serviceName: string,
73
+ options?: ServicesUpdateOptionalParams
74
+ ): Promise<ServicesUpdateResponse>;
75
+ /**
76
+ * Delete service
77
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
78
+ * @param serviceName Service name
79
+ * @param options The options parameters.
80
+ */
81
+ delete(
82
+ resourceGroupName: string,
83
+ serviceName: string,
84
+ options?: ServicesDeleteOptionalParams
85
+ ): Promise<void>;
86
+ }
@@ -0,0 +1,39 @@
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
+ export interface PageInfo {
10
+ continuationToken?: string;
11
+ }
12
+
13
+ const pageMap = new WeakMap<object, PageInfo>();
14
+
15
+ /**
16
+ * Given the last `.value` produced by the `byPage` iterator,
17
+ * returns a continuation token that can be used to begin paging from
18
+ * that point later.
19
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
20
+ * @returns The continuation token that can be passed into byPage() during future calls.
21
+ */
22
+ export function getContinuationToken(page: unknown): string | undefined {
23
+ if (typeof page !== "object" || page === null) {
24
+ return undefined;
25
+ }
26
+ return pageMap.get(page)?.continuationToken;
27
+ }
28
+
29
+ export function setContinuationToken(
30
+ page: unknown,
31
+ continuationToken: string | undefined
32
+ ): void {
33
+ if (typeof page !== "object" || page === null || !continuationToken) {
34
+ return;
35
+ }
36
+ const pageInfo = pageMap.get(page) ?? {};
37
+ pageInfo.continuationToken = continuationToken;
38
+ pageMap.set(page, pageInfo);
39
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "es6",
4
+ "moduleResolution": "node",
5
+ "strict": true,
6
+ "target": "es6",
7
+ "sourceMap": true,
8
+ "declarationMap": true,
9
+ "esModuleInterop": true,
10
+ "allowSyntheticDefaultImports": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "lib": [
13
+ "es6",
14
+ "dom"
15
+ ],
16
+ "declaration": true,
17
+ "outDir": "./dist-esm",
18
+ "importHelpers": true,
19
+ "paths": {
20
+ "@azure/arm-apicenter": [
21
+ "./src/index"
22
+ ]
23
+ }
24
+ },
25
+ "include": [
26
+ "./src/**/*.ts",
27
+ "./test/**/*.ts",
28
+ "samples-dev/**/*.ts"
29
+ ],
30
+ "exclude": [
31
+ "node_modules"
32
+ ]
33
+ }
@@ -0,0 +1,494 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+
5
+ /**
6
+ * Defines values for ActionType. \
7
+ * {@link KnownActionType} can be used interchangeably with ActionType,
8
+ * this enum contains the known values that the service supports.
9
+ * ### Known values supported by the service
10
+ * **Internal**
11
+ */
12
+ export declare type ActionType = string;
13
+
14
+ export declare class AzureAPICenter extends coreClient.ServiceClient {
15
+ $host: string;
16
+ apiVersion: string;
17
+ subscriptionId: string;
18
+ /**
19
+ * Initializes a new instance of the AzureAPICenter class.
20
+ * @param credentials Subscription credentials which uniquely identify client subscription.
21
+ * @param subscriptionId The ID of the target subscription.
22
+ * @param options The parameter options
23
+ */
24
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureAPICenterOptionalParams);
25
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
26
+ private addCustomApiVersionPolicy;
27
+ operations: Operations;
28
+ services: Services;
29
+ }
30
+
31
+ /** Optional parameters. */
32
+ export declare interface AzureAPICenterOptionalParams extends coreClient.ServiceClientOptions {
33
+ /** server parameter */
34
+ $host?: string;
35
+ /** Api Version */
36
+ apiVersion?: string;
37
+ /** Overrides client endpoint. */
38
+ endpoint?: string;
39
+ }
40
+
41
+ /**
42
+ * Defines values for CreatedByType. \
43
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
44
+ * this enum contains the known values that the service supports.
45
+ * ### Known values supported by the service
46
+ * **User** \
47
+ * **Application** \
48
+ * **ManagedIdentity** \
49
+ * **Key**
50
+ */
51
+ export declare type CreatedByType = string;
52
+
53
+ /** The resource management error additional info. */
54
+ export declare interface ErrorAdditionalInfo {
55
+ /**
56
+ * The additional info type.
57
+ * NOTE: This property will not be serialized. It can only be populated by the server.
58
+ */
59
+ readonly type?: string;
60
+ /**
61
+ * The additional info.
62
+ * NOTE: This property will not be serialized. It can only be populated by the server.
63
+ */
64
+ readonly info?: Record<string, unknown>;
65
+ }
66
+
67
+ /** The error detail. */
68
+ export declare interface ErrorDetail {
69
+ /**
70
+ * The error code.
71
+ * NOTE: This property will not be serialized. It can only be populated by the server.
72
+ */
73
+ readonly code?: string;
74
+ /**
75
+ * The error message.
76
+ * NOTE: This property will not be serialized. It can only be populated by the server.
77
+ */
78
+ readonly message?: string;
79
+ /**
80
+ * The error target.
81
+ * NOTE: This property will not be serialized. It can only be populated by the server.
82
+ */
83
+ readonly target?: string;
84
+ /**
85
+ * The error details.
86
+ * NOTE: This property will not be serialized. It can only be populated by the server.
87
+ */
88
+ readonly details?: ErrorDetail[];
89
+ /**
90
+ * The error additional info.
91
+ * NOTE: This property will not be serialized. It can only be populated by the server.
92
+ */
93
+ readonly additionalInfo?: ErrorAdditionalInfo[];
94
+ }
95
+
96
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
97
+ export declare interface ErrorResponse {
98
+ /** The error object. */
99
+ error?: ErrorDetail;
100
+ }
101
+
102
+ /**
103
+ * Given the last `.value` produced by the `byPage` iterator,
104
+ * returns a continuation token that can be used to begin paging from
105
+ * that point later.
106
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
107
+ * @returns The continuation token that can be passed into byPage() during future calls.
108
+ */
109
+ export declare function getContinuationToken(page: unknown): string | undefined;
110
+
111
+ /** Known values of {@link ActionType} that the service accepts. */
112
+ export declare enum KnownActionType {
113
+ /** Internal */
114
+ Internal = "Internal"
115
+ }
116
+
117
+ /** Known values of {@link CreatedByType} that the service accepts. */
118
+ export declare enum KnownCreatedByType {
119
+ /** User */
120
+ User = "User",
121
+ /** Application */
122
+ Application = "Application",
123
+ /** ManagedIdentity */
124
+ ManagedIdentity = "ManagedIdentity",
125
+ /** Key */
126
+ Key = "Key"
127
+ }
128
+
129
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
130
+ export declare enum KnownManagedServiceIdentityType {
131
+ /** None */
132
+ None = "None",
133
+ /** SystemAssigned */
134
+ SystemAssigned = "SystemAssigned",
135
+ /** UserAssigned */
136
+ UserAssigned = "UserAssigned",
137
+ /** SystemAssignedUserAssigned */
138
+ SystemAssignedUserAssigned = "SystemAssigned,UserAssigned"
139
+ }
140
+
141
+ /** Known values of {@link Origin} that the service accepts. */
142
+ export declare enum KnownOrigin {
143
+ /** User */
144
+ User = "user",
145
+ /** System */
146
+ System = "system",
147
+ /** UserSystem */
148
+ UserSystem = "user,system"
149
+ }
150
+
151
+ /** Known values of {@link ProvisioningState} that the service accepts. */
152
+ export declare enum KnownProvisioningState {
153
+ /** Succeeded */
154
+ Succeeded = "Succeeded",
155
+ /** Failed */
156
+ Failed = "Failed",
157
+ /** Canceled */
158
+ Canceled = "Canceled"
159
+ }
160
+
161
+ /** Managed service identity (system assigned and/or user assigned identities) */
162
+ export declare interface ManagedServiceIdentity {
163
+ /**
164
+ * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
165
+ * NOTE: This property will not be serialized. It can only be populated by the server.
166
+ */
167
+ readonly principalId?: string;
168
+ /**
169
+ * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
170
+ * NOTE: This property will not be serialized. It can only be populated by the server.
171
+ */
172
+ readonly tenantId?: string;
173
+ /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */
174
+ type: ManagedServiceIdentityType;
175
+ /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */
176
+ userAssignedIdentities?: {
177
+ [propertyName: string]: UserAssignedIdentity | null;
178
+ };
179
+ }
180
+
181
+ /**
182
+ * Defines values for ManagedServiceIdentityType. \
183
+ * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,
184
+ * this enum contains the known values that the service supports.
185
+ * ### Known values supported by the service
186
+ * **None** \
187
+ * **SystemAssigned** \
188
+ * **UserAssigned** \
189
+ * **SystemAssigned,UserAssigned**
190
+ */
191
+ export declare type ManagedServiceIdentityType = string;
192
+
193
+ /** Details of a REST API operation, returned from the Resource Provider Operations API */
194
+ export declare interface Operation {
195
+ /**
196
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
197
+ * NOTE: This property will not be serialized. It can only be populated by the server.
198
+ */
199
+ readonly name?: string;
200
+ /**
201
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
202
+ * NOTE: This property will not be serialized. It can only be populated by the server.
203
+ */
204
+ readonly isDataAction?: boolean;
205
+ /** Localized display information for this particular operation. */
206
+ display?: OperationDisplay;
207
+ /**
208
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
209
+ * NOTE: This property will not be serialized. It can only be populated by the server.
210
+ */
211
+ readonly origin?: Origin;
212
+ /**
213
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
214
+ * NOTE: This property will not be serialized. It can only be populated by the server.
215
+ */
216
+ readonly actionType?: ActionType;
217
+ }
218
+
219
+ /** Localized display information for this particular operation. */
220
+ export declare interface OperationDisplay {
221
+ /**
222
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
223
+ * NOTE: This property will not be serialized. It can only be populated by the server.
224
+ */
225
+ readonly provider?: string;
226
+ /**
227
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
228
+ * NOTE: This property will not be serialized. It can only be populated by the server.
229
+ */
230
+ readonly resource?: string;
231
+ /**
232
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
233
+ * NOTE: This property will not be serialized. It can only be populated by the server.
234
+ */
235
+ readonly operation?: string;
236
+ /**
237
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
238
+ * NOTE: This property will not be serialized. It can only be populated by the server.
239
+ */
240
+ readonly description?: string;
241
+ }
242
+
243
+ /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
244
+ export declare interface OperationListResult {
245
+ /**
246
+ * List of operations supported by the resource provider
247
+ * NOTE: This property will not be serialized. It can only be populated by the server.
248
+ */
249
+ readonly value?: Operation[];
250
+ /**
251
+ * URL to get the next set of operation list results (if there are any).
252
+ * NOTE: This property will not be serialized. It can only be populated by the server.
253
+ */
254
+ readonly nextLink?: string;
255
+ }
256
+
257
+ /** Interface representing a Operations. */
258
+ export declare interface Operations {
259
+ /**
260
+ * List the operations for the provider
261
+ * @param options The options parameters.
262
+ */
263
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
264
+ }
265
+
266
+ /** Optional parameters. */
267
+ export declare interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
268
+ }
269
+
270
+ /** Contains response data for the listNext operation. */
271
+ export declare type OperationsListNextResponse = OperationListResult;
272
+
273
+ /** Optional parameters. */
274
+ export declare interface OperationsListOptionalParams extends coreClient.OperationOptions {
275
+ }
276
+
277
+ /** Contains response data for the list operation. */
278
+ export declare type OperationsListResponse = OperationListResult;
279
+
280
+ /**
281
+ * Defines values for Origin. \
282
+ * {@link KnownOrigin} can be used interchangeably with Origin,
283
+ * this enum contains the known values that the service supports.
284
+ * ### Known values supported by the service
285
+ * **user** \
286
+ * **system** \
287
+ * **user,system**
288
+ */
289
+ export declare type Origin = string;
290
+
291
+ /**
292
+ * Defines values for ProvisioningState. \
293
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
294
+ * this enum contains the known values that the service supports.
295
+ * ### Known values supported by the service
296
+ * **Succeeded** \
297
+ * **Failed** \
298
+ * **Canceled**
299
+ */
300
+ export declare type ProvisioningState = string;
301
+
302
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
303
+ export declare interface Resource {
304
+ /**
305
+ * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
306
+ * NOTE: This property will not be serialized. It can only be populated by the server.
307
+ */
308
+ readonly id?: string;
309
+ /**
310
+ * The name of the resource
311
+ * NOTE: This property will not be serialized. It can only be populated by the server.
312
+ */
313
+ readonly name?: string;
314
+ /**
315
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
316
+ * NOTE: This property will not be serialized. It can only be populated by the server.
317
+ */
318
+ readonly type?: string;
319
+ /**
320
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
321
+ * NOTE: This property will not be serialized. It can only be populated by the server.
322
+ */
323
+ readonly systemData?: SystemData;
324
+ }
325
+
326
+ /** The service entity. */
327
+ export declare interface Service extends TrackedResource {
328
+ /** The identity of the service. */
329
+ identity?: ManagedServiceIdentity;
330
+ /**
331
+ * The status of the last operation.
332
+ * NOTE: This property will not be serialized. It can only be populated by the server.
333
+ */
334
+ readonly provisioningState?: ProvisioningState;
335
+ }
336
+
337
+ /** The response of a Service list operation. */
338
+ export declare interface ServiceCollection {
339
+ /** The Service items on this page */
340
+ value: Service[];
341
+ /** The link to the next page of items */
342
+ nextLink?: string;
343
+ }
344
+
345
+ /** Interface representing a Services. */
346
+ export declare interface Services {
347
+ /**
348
+ * Lists services within an Azure subscription.
349
+ * @param options The options parameters.
350
+ */
351
+ listBySubscription(options?: ServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Service>;
352
+ /**
353
+ * Lists services within a resource group
354
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
355
+ * @param options The options parameters.
356
+ */
357
+ listByResourceGroup(resourceGroupName: string, options?: ServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Service>;
358
+ /**
359
+ * Get service
360
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
361
+ * @param serviceName Service name
362
+ * @param options The options parameters.
363
+ */
364
+ get(resourceGroupName: string, serviceName: string, options?: ServicesGetOptionalParams): Promise<ServicesGetResponse>;
365
+ /**
366
+ * Create or update service
367
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
368
+ * @param serviceName Service name
369
+ * @param options The options parameters.
370
+ */
371
+ createOrUpdate(resourceGroupName: string, serviceName: string, options?: ServicesCreateOrUpdateOptionalParams): Promise<ServicesCreateOrUpdateResponse>;
372
+ /**
373
+ * Update service
374
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
375
+ * @param serviceName Service name
376
+ * @param options The options parameters.
377
+ */
378
+ update(resourceGroupName: string, serviceName: string, options?: ServicesUpdateOptionalParams): Promise<ServicesUpdateResponse>;
379
+ /**
380
+ * Delete service
381
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
382
+ * @param serviceName Service name
383
+ * @param options The options parameters.
384
+ */
385
+ delete(resourceGroupName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise<void>;
386
+ }
387
+
388
+ /** Optional parameters. */
389
+ export declare interface ServicesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
390
+ /** The service entity. */
391
+ resource?: Service;
392
+ }
393
+
394
+ /** Contains response data for the createOrUpdate operation. */
395
+ export declare type ServicesCreateOrUpdateResponse = Service;
396
+
397
+ /** Optional parameters. */
398
+ export declare interface ServicesDeleteOptionalParams extends coreClient.OperationOptions {
399
+ }
400
+
401
+ /** Optional parameters. */
402
+ export declare interface ServicesGetOptionalParams extends coreClient.OperationOptions {
403
+ }
404
+
405
+ /** Contains response data for the get operation. */
406
+ export declare type ServicesGetResponse = Service;
407
+
408
+ /** Optional parameters. */
409
+ export declare interface ServicesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
410
+ }
411
+
412
+ /** Contains response data for the listByResourceGroupNext operation. */
413
+ export declare type ServicesListByResourceGroupNextResponse = ServiceCollection;
414
+
415
+ /** Optional parameters. */
416
+ export declare interface ServicesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
417
+ }
418
+
419
+ /** Contains response data for the listByResourceGroup operation. */
420
+ export declare type ServicesListByResourceGroupResponse = ServiceCollection;
421
+
422
+ /** Optional parameters. */
423
+ export declare interface ServicesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
424
+ }
425
+
426
+ /** Contains response data for the listBySubscriptionNext operation. */
427
+ export declare type ServicesListBySubscriptionNextResponse = ServiceCollection;
428
+
429
+ /** Optional parameters. */
430
+ export declare interface ServicesListBySubscriptionOptionalParams extends coreClient.OperationOptions {
431
+ }
432
+
433
+ /** Contains response data for the listBySubscription operation. */
434
+ export declare type ServicesListBySubscriptionResponse = ServiceCollection;
435
+
436
+ /** Optional parameters. */
437
+ export declare interface ServicesUpdateOptionalParams extends coreClient.OperationOptions {
438
+ /** The service properties to be updated. */
439
+ parameters?: ServiceUpdate;
440
+ }
441
+
442
+ /** Contains response data for the update operation. */
443
+ export declare type ServicesUpdateResponse = Service;
444
+
445
+ /** The service properties to be updated. */
446
+ export declare interface ServiceUpdate {
447
+ /**
448
+ * The status of the last operation.
449
+ * NOTE: This property will not be serialized. It can only be populated by the server.
450
+ */
451
+ readonly provisioningState?: ProvisioningState;
452
+ }
453
+
454
+ /** Metadata pertaining to creation and last modification of the resource. */
455
+ export declare interface SystemData {
456
+ /** The identity that created the resource. */
457
+ createdBy?: string;
458
+ /** The type of identity that created the resource. */
459
+ createdByType?: CreatedByType;
460
+ /** The timestamp of resource creation (UTC). */
461
+ createdAt?: Date;
462
+ /** The identity that last modified the resource. */
463
+ lastModifiedBy?: string;
464
+ /** The type of identity that last modified the resource. */
465
+ lastModifiedByType?: CreatedByType;
466
+ /** The timestamp of resource last modification (UTC) */
467
+ lastModifiedAt?: Date;
468
+ }
469
+
470
+ /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
471
+ export declare interface TrackedResource extends Resource {
472
+ /** Resource tags. */
473
+ tags?: {
474
+ [propertyName: string]: string;
475
+ };
476
+ /** The geo-location where the resource lives */
477
+ location: string;
478
+ }
479
+
480
+ /** User assigned identity properties */
481
+ export declare interface UserAssignedIdentity {
482
+ /**
483
+ * The principal ID of the assigned identity.
484
+ * NOTE: This property will not be serialized. It can only be populated by the server.
485
+ */
486
+ readonly principalId?: string;
487
+ /**
488
+ * The client ID of the assigned identity.
489
+ * NOTE: This property will not be serialized. It can only be populated by the server.
490
+ */
491
+ readonly clientId?: string;
492
+ }
493
+
494
+ 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.36.4"
9
+ }
10
+ ]
11
+ }