@azure/arm-managedapplications 1.1.0 → 2.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.
- package/CHANGELOG.md +16 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +63 -80
- package/dist/index.js +2896 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/esm/applicationClient.d.ts +50 -0
- package/esm/applicationClient.d.ts.map +1 -0
- package/esm/applicationClient.js +190 -0
- package/esm/applicationClient.js.map +1 -0
- package/esm/applicationClientContext.d.ts +16 -0
- package/esm/applicationClientContext.d.ts.map +1 -0
- package/esm/applicationClientContext.js +49 -0
- package/esm/applicationClientContext.js.map +1 -0
- package/esm/coreClientLro.d.ts +26 -0
- package/esm/coreClientLro.d.ts.map +1 -0
- package/esm/coreClientLro.js +186 -0
- package/esm/coreClientLro.js.map +1 -0
- package/esm/index.d.ts +770 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +13 -0
- package/esm/index.js.map +1 -0
- package/esm/lro/azureAsyncPolling.d.ts +3 -0
- package/esm/lro/azureAsyncPolling.d.ts.map +1 -0
- package/esm/lro/azureAsyncPolling.js +67 -0
- package/esm/lro/azureAsyncPolling.js.map +1 -0
- package/esm/lro/bodyPolling.d.ts +8 -0
- package/esm/lro/bodyPolling.d.ts.map +1 -0
- package/esm/lro/bodyPolling.js +37 -0
- package/esm/lro/bodyPolling.js.map +1 -0
- package/esm/lro/index.d.ts +4 -0
- package/esm/lro/index.d.ts.map +1 -0
- package/esm/lro/index.js +12 -0
- package/esm/lro/index.js.map +1 -0
- package/esm/lro/locationPolling.d.ts +3 -0
- package/esm/lro/locationPolling.d.ts.map +1 -0
- package/esm/lro/locationPolling.js +19 -0
- package/esm/lro/locationPolling.js.map +1 -0
- package/esm/lro/lroEngine.d.ts +14 -0
- package/esm/lro/lroEngine.d.ts.map +1 -0
- package/esm/lro/lroEngine.js +41 -0
- package/esm/lro/lroEngine.js.map +1 -0
- package/esm/lro/models.d.ts +138 -0
- package/esm/lro/models.d.ts.map +1 -0
- package/esm/lro/models.js +14 -0
- package/esm/lro/models.js.map +1 -0
- package/esm/lro/operation.d.ts +36 -0
- package/esm/lro/operation.d.ts.map +1 -0
- package/esm/lro/operation.js +82 -0
- package/esm/lro/operation.js.map +1 -0
- package/esm/lro/passthrough.d.ts +3 -0
- package/esm/lro/passthrough.d.ts.map +1 -0
- package/esm/lro/passthrough.js +15 -0
- package/esm/lro/passthrough.js.map +1 -0
- package/esm/lro/requestUtils.d.ts +16 -0
- package/esm/lro/requestUtils.d.ts.map +1 -0
- package/esm/lro/requestUtils.js +73 -0
- package/esm/lro/requestUtils.js.map +1 -0
- package/esm/lro/stateMachine.d.ts +18 -0
- package/esm/lro/stateMachine.d.ts.map +1 -0
- package/esm/lro/stateMachine.js +84 -0
- package/esm/lro/stateMachine.js.map +1 -0
- package/esm/models/index.d.ts +360 -762
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +17 -2
- package/esm/models/index.js.map +1 -1
- package/esm/models/mappers.d.ts +18 -20
- package/esm/models/mappers.d.ts.map +1 -1
- package/esm/models/mappers.js +296 -318
- package/esm/models/mappers.js.map +1 -1
- package/esm/models/parameters.d.ts +15 -10
- package/esm/models/parameters.d.ts.map +1 -1
- package/esm/models/parameters.js +77 -49
- package/esm/models/parameters.js.map +1 -1
- package/esm/operations/applicationDefinitions.d.ts +128 -0
- package/esm/operations/applicationDefinitions.d.ts.map +1 -0
- package/esm/operations/applicationDefinitions.js +574 -0
- package/esm/operations/applicationDefinitions.js.map +1 -0
- package/esm/operations/applications.d.ts +182 -0
- package/esm/operations/applications.d.ts.map +1 -0
- package/esm/operations/applications.js +802 -0
- package/esm/operations/applications.js.map +1 -0
- package/esm/operations/index.d.ts +2 -2
- package/esm/operations/index.d.ts.map +1 -1
- package/esm/operations/index.js +5 -7
- package/esm/operations/index.js.map +1 -1
- package/esm/operationsInterfaces/applicationDefinitions.d.ts +95 -0
- package/esm/operationsInterfaces/applicationDefinitions.d.ts.map +1 -0
- package/esm/operationsInterfaces/applicationDefinitions.js +9 -0
- package/esm/operationsInterfaces/applicationDefinitions.js.map +1 -0
- package/esm/operationsInterfaces/applications.d.ts +128 -0
- package/esm/operationsInterfaces/applications.d.ts.map +1 -0
- package/esm/operationsInterfaces/applications.js +9 -0
- package/esm/operationsInterfaces/applications.js.map +1 -0
- package/esm/operationsInterfaces/index.d.ts +3 -0
- package/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/esm/operationsInterfaces/index.js +10 -0
- package/esm/operationsInterfaces/index.js.map +1 -0
- package/package.json +55 -16
- package/review/arm-managedapplications.api.md +443 -0
- package/rollup.config.js +181 -30
- package/src/applicationClient.ts +222 -0
- package/src/applicationClientContext.ts +70 -0
- package/src/coreClientLro.ts +323 -0
- package/src/index.ts +13 -0
- package/src/lro/azureAsyncPolling.ts +96 -0
- package/src/lro/bodyPolling.ts +54 -0
- package/src/lro/index.ts +26 -0
- package/src/lro/locationPolling.ts +30 -0
- package/src/lro/lroEngine.ts +61 -0
- package/src/lro/models.ts +173 -0
- package/src/lro/operation.ts +120 -0
- package/src/lro/passthrough.ts +23 -0
- package/src/lro/requestUtils.ts +105 -0
- package/src/lro/stateMachine.ts +138 -0
- package/src/models/index.ts +402 -794
- package/src/models/mappers.ts +290 -311
- package/src/models/parameters.ts +99 -50
- package/src/operations/applicationDefinitions.ts +810 -0
- package/src/operations/applications.ts +1069 -0
- package/src/operations/index.ts +5 -7
- package/src/operationsInterfaces/applicationDefinitions.ts +179 -0
- package/src/operationsInterfaces/applications.ts +225 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/tsconfig.json +3 -2
- package/dist/arm-managedapplications.js +0 -1865
- package/dist/arm-managedapplications.js.map +0 -1
- package/dist/arm-managedapplications.min.js +0 -1
- package/dist/arm-managedapplications.min.js.map +0 -1
- package/esm/managedApplicationClient.d.ts +0 -58
- package/esm/managedApplicationClient.d.ts.map +0 -1
- package/esm/managedApplicationClient.js +0 -92
- package/esm/managedApplicationClient.js.map +0 -1
- package/esm/managedApplicationClientContext.d.ts +0 -22
- package/esm/managedApplicationClientContext.d.ts.map +0 -1
- package/esm/managedApplicationClientContext.js +0 -61
- package/esm/managedApplicationClientContext.js.map +0 -1
- package/esm/models/applianceDefinitionsMappers.d.ts +0 -2
- package/esm/models/applianceDefinitionsMappers.d.ts.map +0 -1
- package/esm/models/applianceDefinitionsMappers.js +0 -9
- package/esm/models/applianceDefinitionsMappers.js.map +0 -1
- package/esm/models/appliancesMappers.d.ts +0 -2
- package/esm/models/appliancesMappers.d.ts.map +0 -1
- package/esm/models/appliancesMappers.js +0 -9
- package/esm/models/appliancesMappers.js.map +0 -1
- package/esm/operations/applianceDefinitions.d.ts +0 -167
- package/esm/operations/applianceDefinitions.d.ts.map +0 -1
- package/esm/operations/applianceDefinitions.js +0 -358
- package/esm/operations/applianceDefinitions.js.map +0 -1
- package/esm/operations/appliances.d.ts +0 -247
- package/esm/operations/appliances.d.ts.map +0 -1
- package/esm/operations/appliances.js +0 -482
- package/esm/operations/appliances.js.map +0 -1
- package/src/managedApplicationClient.ts +0 -144
- package/src/managedApplicationClientContext.ts +0 -68
- package/src/models/applianceDefinitionsMappers.ts +0 -24
- package/src/models/appliancesMappers.ts +0 -24
- package/src/operations/applianceDefinitions.ts +0 -492
- package/src/operations/appliances.ts +0 -716
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
## API Report File for "@azure/arm-managedapplications"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import * as coreAuth from '@azure/core-auth';
|
|
8
|
+
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
+
import { PollerLike } from '@azure/core-lro';
|
|
11
|
+
import { PollOperationState } from '@azure/core-lro';
|
|
12
|
+
|
|
13
|
+
// @public
|
|
14
|
+
export type Application = GenericResource & {
|
|
15
|
+
plan?: Plan;
|
|
16
|
+
kind: string;
|
|
17
|
+
managedResourceGroupId: string;
|
|
18
|
+
applicationDefinitionId?: string;
|
|
19
|
+
parameters?: Record<string, unknown>;
|
|
20
|
+
readonly outputs?: Record<string, unknown>;
|
|
21
|
+
readonly provisioningState?: ProvisioningState;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// @public
|
|
25
|
+
export interface ApplicationArtifact {
|
|
26
|
+
name?: string;
|
|
27
|
+
type?: ApplicationArtifactType;
|
|
28
|
+
uri?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// @public
|
|
32
|
+
export type ApplicationArtifactType = "Template" | "Custom";
|
|
33
|
+
|
|
34
|
+
// @public (undocumented)
|
|
35
|
+
export class ApplicationClient extends ApplicationClientContext {
|
|
36
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApplicationClientOptionalParams);
|
|
37
|
+
// (undocumented)
|
|
38
|
+
applicationDefinitions: ApplicationDefinitions;
|
|
39
|
+
// (undocumented)
|
|
40
|
+
applications: Applications;
|
|
41
|
+
listOperations(options?: ApplicationClientListOperationsOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
42
|
+
listOperationsNext(nextLink: string, options?: ApplicationClientListOperationsNextOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// @public (undocumented)
|
|
46
|
+
export class ApplicationClientContext extends coreClient.ServiceClient {
|
|
47
|
+
// (undocumented)
|
|
48
|
+
$host: string;
|
|
49
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ApplicationClientOptionalParams);
|
|
50
|
+
// (undocumented)
|
|
51
|
+
apiVersion: string;
|
|
52
|
+
// (undocumented)
|
|
53
|
+
subscriptionId: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// @public
|
|
57
|
+
export interface ApplicationClientListOperationsNextNextOptionalParams extends coreClient.OperationOptions {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// @public
|
|
61
|
+
export type ApplicationClientListOperationsNextNextResponse = OperationListResult;
|
|
62
|
+
|
|
63
|
+
// @public
|
|
64
|
+
export interface ApplicationClientListOperationsNextOptionalParams extends coreClient.OperationOptions {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// @public
|
|
68
|
+
export type ApplicationClientListOperationsNextResponse = OperationListResult;
|
|
69
|
+
|
|
70
|
+
// @public
|
|
71
|
+
export interface ApplicationClientListOperationsOptionalParams extends coreClient.OperationOptions {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// @public
|
|
75
|
+
export type ApplicationClientListOperationsResponse = OperationListResult;
|
|
76
|
+
|
|
77
|
+
// @public
|
|
78
|
+
export interface ApplicationClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
79
|
+
$host?: string;
|
|
80
|
+
apiVersion?: string;
|
|
81
|
+
endpoint?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// @public
|
|
85
|
+
export type ApplicationDefinition = GenericResource & {
|
|
86
|
+
lockLevel: ApplicationLockLevel;
|
|
87
|
+
displayName?: string;
|
|
88
|
+
isEnabled?: string;
|
|
89
|
+
authorizations: ApplicationProviderAuthorization[];
|
|
90
|
+
artifacts?: ApplicationArtifact[];
|
|
91
|
+
description?: string;
|
|
92
|
+
packageFileUri?: string;
|
|
93
|
+
mainTemplate?: Record<string, unknown>;
|
|
94
|
+
createUiDefinition?: Record<string, unknown>;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
// @public
|
|
98
|
+
export interface ApplicationDefinitionListResult {
|
|
99
|
+
nextLink?: string;
|
|
100
|
+
value?: ApplicationDefinition[];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// @public
|
|
104
|
+
export interface ApplicationDefinitions {
|
|
105
|
+
beginCreateOrUpdate(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ApplicationDefinitionsCreateOrUpdateResponse>, ApplicationDefinitionsCreateOrUpdateResponse>>;
|
|
106
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateOptionalParams): Promise<ApplicationDefinitionsCreateOrUpdateResponse>;
|
|
107
|
+
beginCreateOrUpdateById(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams): Promise<PollerLike<PollOperationState<ApplicationDefinitionsCreateOrUpdateByIdResponse>, ApplicationDefinitionsCreateOrUpdateByIdResponse>>;
|
|
108
|
+
beginCreateOrUpdateByIdAndWait(resourceGroupName: string, applicationDefinitionName: string, parameters: ApplicationDefinition, options?: ApplicationDefinitionsCreateOrUpdateByIdOptionalParams): Promise<ApplicationDefinitionsCreateOrUpdateByIdResponse>;
|
|
109
|
+
beginDelete(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
110
|
+
beginDeleteAndWait(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteOptionalParams): Promise<void>;
|
|
111
|
+
beginDeleteById(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteByIdOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
112
|
+
beginDeleteByIdAndWait(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsDeleteByIdOptionalParams): Promise<void>;
|
|
113
|
+
get(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsGetOptionalParams): Promise<ApplicationDefinitionsGetResponse>;
|
|
114
|
+
getById(resourceGroupName: string, applicationDefinitionName: string, options?: ApplicationDefinitionsGetByIdOptionalParams): Promise<ApplicationDefinitionsGetByIdResponse>;
|
|
115
|
+
listByResourceGroup(resourceGroupName: string, options?: ApplicationDefinitionsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ApplicationDefinition>;
|
|
116
|
+
listByResourceGroupNext(resourceGroupName: string, nextLink: string, options?: ApplicationDefinitionsListByResourceGroupNextOptionalParams): PagedAsyncIterableIterator<ApplicationDefinition>;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// @public
|
|
120
|
+
export interface ApplicationDefinitionsCreateOrUpdateByIdOptionalParams extends coreClient.OperationOptions {
|
|
121
|
+
resumeFrom?: string;
|
|
122
|
+
updateIntervalInMs?: number;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// @public
|
|
126
|
+
export type ApplicationDefinitionsCreateOrUpdateByIdResponse = ApplicationDefinition;
|
|
127
|
+
|
|
128
|
+
// @public
|
|
129
|
+
export interface ApplicationDefinitionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
130
|
+
resumeFrom?: string;
|
|
131
|
+
updateIntervalInMs?: number;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// @public
|
|
135
|
+
export type ApplicationDefinitionsCreateOrUpdateResponse = ApplicationDefinition;
|
|
136
|
+
|
|
137
|
+
// @public
|
|
138
|
+
export interface ApplicationDefinitionsDeleteByIdOptionalParams extends coreClient.OperationOptions {
|
|
139
|
+
resumeFrom?: string;
|
|
140
|
+
updateIntervalInMs?: number;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// @public
|
|
144
|
+
export interface ApplicationDefinitionsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
145
|
+
resumeFrom?: string;
|
|
146
|
+
updateIntervalInMs?: number;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// @public
|
|
150
|
+
export interface ApplicationDefinitionsGetByIdOptionalParams extends coreClient.OperationOptions {
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// @public
|
|
154
|
+
export type ApplicationDefinitionsGetByIdResponse = ApplicationDefinition;
|
|
155
|
+
|
|
156
|
+
// @public
|
|
157
|
+
export interface ApplicationDefinitionsGetOptionalParams extends coreClient.OperationOptions {
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// @public
|
|
161
|
+
export type ApplicationDefinitionsGetResponse = ApplicationDefinition;
|
|
162
|
+
|
|
163
|
+
// @public
|
|
164
|
+
export interface ApplicationDefinitionsListByResourceGroupNextNextOptionalParams extends coreClient.OperationOptions {
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// @public
|
|
168
|
+
export type ApplicationDefinitionsListByResourceGroupNextNextResponse = ApplicationDefinitionListResult;
|
|
169
|
+
|
|
170
|
+
// @public
|
|
171
|
+
export interface ApplicationDefinitionsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// @public
|
|
175
|
+
export type ApplicationDefinitionsListByResourceGroupNextResponse = ApplicationDefinitionListResult;
|
|
176
|
+
|
|
177
|
+
// @public
|
|
178
|
+
export interface ApplicationDefinitionsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// @public
|
|
182
|
+
export type ApplicationDefinitionsListByResourceGroupResponse = ApplicationDefinitionListResult;
|
|
183
|
+
|
|
184
|
+
// @public
|
|
185
|
+
export interface ApplicationListResult {
|
|
186
|
+
nextLink?: string;
|
|
187
|
+
value?: Application[];
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// @public
|
|
191
|
+
export type ApplicationLockLevel = "CanNotDelete" | "ReadOnly" | "None";
|
|
192
|
+
|
|
193
|
+
// @public
|
|
194
|
+
export type ApplicationPatchable = GenericResource & {
|
|
195
|
+
plan?: PlanPatchable;
|
|
196
|
+
kind?: string;
|
|
197
|
+
managedResourceGroupId?: string;
|
|
198
|
+
applicationDefinitionId?: string;
|
|
199
|
+
parameters?: Record<string, unknown>;
|
|
200
|
+
readonly outputs?: Record<string, unknown>;
|
|
201
|
+
readonly provisioningState?: ProvisioningState;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
// @public
|
|
205
|
+
export interface ApplicationProviderAuthorization {
|
|
206
|
+
principalId: string;
|
|
207
|
+
roleDefinitionId: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// @public
|
|
211
|
+
export interface Applications {
|
|
212
|
+
beginCreateOrUpdate(resourceGroupName: string, applicationName: string, parameters: Application, options?: ApplicationsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ApplicationsCreateOrUpdateResponse>, ApplicationsCreateOrUpdateResponse>>;
|
|
213
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, applicationName: string, parameters: Application, options?: ApplicationsCreateOrUpdateOptionalParams): Promise<ApplicationsCreateOrUpdateResponse>;
|
|
214
|
+
beginCreateOrUpdateById(applicationId: string, parameters: Application, options?: ApplicationsCreateOrUpdateByIdOptionalParams): Promise<PollerLike<PollOperationState<ApplicationsCreateOrUpdateByIdResponse>, ApplicationsCreateOrUpdateByIdResponse>>;
|
|
215
|
+
beginCreateOrUpdateByIdAndWait(applicationId: string, parameters: Application, options?: ApplicationsCreateOrUpdateByIdOptionalParams): Promise<ApplicationsCreateOrUpdateByIdResponse>;
|
|
216
|
+
beginDelete(resourceGroupName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
217
|
+
beginDeleteAndWait(resourceGroupName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise<void>;
|
|
218
|
+
beginDeleteById(applicationId: string, options?: ApplicationsDeleteByIdOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
219
|
+
beginDeleteByIdAndWait(applicationId: string, options?: ApplicationsDeleteByIdOptionalParams): Promise<void>;
|
|
220
|
+
get(resourceGroupName: string, applicationName: string, options?: ApplicationsGetOptionalParams): Promise<ApplicationsGetResponse>;
|
|
221
|
+
getById(applicationId: string, options?: ApplicationsGetByIdOptionalParams): Promise<ApplicationsGetByIdResponse>;
|
|
222
|
+
listByResourceGroup(resourceGroupName: string, options?: ApplicationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Application>;
|
|
223
|
+
listByResourceGroupNext(resourceGroupName: string, nextLink: string, options?: ApplicationsListByResourceGroupNextOptionalParams): PagedAsyncIterableIterator<Application>;
|
|
224
|
+
listBySubscription(options?: ApplicationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Application>;
|
|
225
|
+
listBySubscriptionNext(nextLink: string, options?: ApplicationsListBySubscriptionNextOptionalParams): PagedAsyncIterableIterator<Application>;
|
|
226
|
+
update(resourceGroupName: string, applicationName: string, options?: ApplicationsUpdateOptionalParams): Promise<ApplicationsUpdateResponse>;
|
|
227
|
+
updateById(applicationId: string, options?: ApplicationsUpdateByIdOptionalParams): Promise<ApplicationsUpdateByIdResponse>;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// @public
|
|
231
|
+
export interface ApplicationsCreateOrUpdateByIdOptionalParams extends coreClient.OperationOptions {
|
|
232
|
+
resumeFrom?: string;
|
|
233
|
+
updateIntervalInMs?: number;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// @public
|
|
237
|
+
export type ApplicationsCreateOrUpdateByIdResponse = Application;
|
|
238
|
+
|
|
239
|
+
// @public
|
|
240
|
+
export interface ApplicationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
241
|
+
resumeFrom?: string;
|
|
242
|
+
updateIntervalInMs?: number;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// @public
|
|
246
|
+
export type ApplicationsCreateOrUpdateResponse = Application;
|
|
247
|
+
|
|
248
|
+
// @public
|
|
249
|
+
export interface ApplicationsDeleteByIdOptionalParams extends coreClient.OperationOptions {
|
|
250
|
+
resumeFrom?: string;
|
|
251
|
+
updateIntervalInMs?: number;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// @public
|
|
255
|
+
export interface ApplicationsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
256
|
+
resumeFrom?: string;
|
|
257
|
+
updateIntervalInMs?: number;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// @public
|
|
261
|
+
export interface ApplicationsGetByIdOptionalParams extends coreClient.OperationOptions {
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// @public
|
|
265
|
+
export type ApplicationsGetByIdResponse = Application;
|
|
266
|
+
|
|
267
|
+
// @public
|
|
268
|
+
export interface ApplicationsGetOptionalParams extends coreClient.OperationOptions {
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// @public
|
|
272
|
+
export type ApplicationsGetResponse = Application;
|
|
273
|
+
|
|
274
|
+
// @public
|
|
275
|
+
export interface ApplicationsListByResourceGroupNextNextOptionalParams extends coreClient.OperationOptions {
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// @public
|
|
279
|
+
export type ApplicationsListByResourceGroupNextNextResponse = ApplicationListResult;
|
|
280
|
+
|
|
281
|
+
// @public
|
|
282
|
+
export interface ApplicationsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// @public
|
|
286
|
+
export type ApplicationsListByResourceGroupNextResponse = ApplicationListResult;
|
|
287
|
+
|
|
288
|
+
// @public
|
|
289
|
+
export interface ApplicationsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// @public
|
|
293
|
+
export type ApplicationsListByResourceGroupResponse = ApplicationListResult;
|
|
294
|
+
|
|
295
|
+
// @public
|
|
296
|
+
export interface ApplicationsListBySubscriptionNextNextOptionalParams extends coreClient.OperationOptions {
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// @public
|
|
300
|
+
export type ApplicationsListBySubscriptionNextNextResponse = ApplicationListResult;
|
|
301
|
+
|
|
302
|
+
// @public
|
|
303
|
+
export interface ApplicationsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// @public
|
|
307
|
+
export type ApplicationsListBySubscriptionNextResponse = ApplicationListResult;
|
|
308
|
+
|
|
309
|
+
// @public
|
|
310
|
+
export interface ApplicationsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// @public
|
|
314
|
+
export type ApplicationsListBySubscriptionResponse = ApplicationListResult;
|
|
315
|
+
|
|
316
|
+
// @public
|
|
317
|
+
export interface ApplicationsUpdateByIdOptionalParams extends coreClient.OperationOptions {
|
|
318
|
+
parameters?: Application;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// @public
|
|
322
|
+
export type ApplicationsUpdateByIdResponse = Application;
|
|
323
|
+
|
|
324
|
+
// @public
|
|
325
|
+
export interface ApplicationsUpdateOptionalParams extends coreClient.OperationOptions {
|
|
326
|
+
parameters?: ApplicationPatchable;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// @public
|
|
330
|
+
export type ApplicationsUpdateResponse = Application;
|
|
331
|
+
|
|
332
|
+
// @public
|
|
333
|
+
export interface ErrorResponse {
|
|
334
|
+
errorCode?: string;
|
|
335
|
+
errorMessage?: string;
|
|
336
|
+
httpStatus?: string;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// @public
|
|
340
|
+
export type GenericResource = Resource & {
|
|
341
|
+
managedBy?: string;
|
|
342
|
+
sku?: Sku;
|
|
343
|
+
identity?: Identity;
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
// @public
|
|
347
|
+
export interface Identity {
|
|
348
|
+
readonly principalId?: string;
|
|
349
|
+
readonly tenantId?: string;
|
|
350
|
+
type?: "SystemAssigned";
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// @public
|
|
354
|
+
export enum KnownProvisioningState {
|
|
355
|
+
// (undocumented)
|
|
356
|
+
Accepted = "Accepted",
|
|
357
|
+
// (undocumented)
|
|
358
|
+
Canceled = "Canceled",
|
|
359
|
+
// (undocumented)
|
|
360
|
+
Created = "Created",
|
|
361
|
+
// (undocumented)
|
|
362
|
+
Creating = "Creating",
|
|
363
|
+
// (undocumented)
|
|
364
|
+
Deleted = "Deleted",
|
|
365
|
+
// (undocumented)
|
|
366
|
+
Deleting = "Deleting",
|
|
367
|
+
// (undocumented)
|
|
368
|
+
Failed = "Failed",
|
|
369
|
+
// (undocumented)
|
|
370
|
+
Ready = "Ready",
|
|
371
|
+
// (undocumented)
|
|
372
|
+
Running = "Running",
|
|
373
|
+
// (undocumented)
|
|
374
|
+
Succeeded = "Succeeded",
|
|
375
|
+
// (undocumented)
|
|
376
|
+
Updating = "Updating"
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// @public
|
|
380
|
+
export interface Operation {
|
|
381
|
+
display?: OperationDisplay;
|
|
382
|
+
name?: string;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// @public
|
|
386
|
+
export interface OperationDisplay {
|
|
387
|
+
operation?: string;
|
|
388
|
+
provider?: string;
|
|
389
|
+
resource?: string;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
// @public
|
|
393
|
+
export interface OperationListResult {
|
|
394
|
+
nextLink?: string;
|
|
395
|
+
value?: Operation[];
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
// @public
|
|
399
|
+
export interface Plan {
|
|
400
|
+
name: string;
|
|
401
|
+
product: string;
|
|
402
|
+
promotionCode?: string;
|
|
403
|
+
publisher: string;
|
|
404
|
+
version: string;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// @public
|
|
408
|
+
export interface PlanPatchable {
|
|
409
|
+
name?: string;
|
|
410
|
+
product?: string;
|
|
411
|
+
promotionCode?: string;
|
|
412
|
+
publisher?: string;
|
|
413
|
+
version?: string;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// @public
|
|
417
|
+
export type ProvisioningState = string;
|
|
418
|
+
|
|
419
|
+
// @public
|
|
420
|
+
export interface Resource {
|
|
421
|
+
readonly id?: string;
|
|
422
|
+
location?: string;
|
|
423
|
+
readonly name?: string;
|
|
424
|
+
tags?: {
|
|
425
|
+
[propertyName: string]: string;
|
|
426
|
+
};
|
|
427
|
+
readonly type?: string;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
// @public
|
|
431
|
+
export interface Sku {
|
|
432
|
+
capacity?: number;
|
|
433
|
+
family?: string;
|
|
434
|
+
model?: string;
|
|
435
|
+
name: string;
|
|
436
|
+
size?: string;
|
|
437
|
+
tier?: string;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
// (No @packageDocumentation comment for this package)
|
|
442
|
+
|
|
443
|
+
```
|
package/rollup.config.js
CHANGED
|
@@ -1,37 +1,188 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
+
import cjs from "@rollup/plugin-commonjs";
|
|
3
11
|
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
+
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
+
import json from "@rollup/plugin-json";
|
|
14
|
+
|
|
15
|
+
import nodeBuiltins from "builtin-modules";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
|
19
|
+
*
|
|
20
|
+
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
|
21
|
+
* __exportStar downleveled helper function to declare its exports which confuses
|
|
22
|
+
* rollup's automatic discovery mechanism.
|
|
23
|
+
*
|
|
24
|
+
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
|
25
|
+
*/
|
|
26
|
+
export function openTelemetryCommonJs() {
|
|
27
|
+
const namedExports = {};
|
|
28
|
+
|
|
29
|
+
for (const key of [
|
|
30
|
+
"@opentelemetry/api",
|
|
31
|
+
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
|
32
|
+
]) {
|
|
33
|
+
namedExports[key] = [
|
|
34
|
+
"SpanKind",
|
|
35
|
+
"TraceFlags",
|
|
36
|
+
"getSpan",
|
|
37
|
+
"setSpan",
|
|
38
|
+
"SpanStatusCode",
|
|
39
|
+
"getSpanContext",
|
|
40
|
+
"setSpanContext"
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
|
45
|
+
|
|
46
|
+
for (const version of releasedOpenTelemetryVersions) {
|
|
47
|
+
namedExports[
|
|
48
|
+
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
|
49
|
+
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
|
50
|
+
] = [
|
|
51
|
+
"SpanKind",
|
|
52
|
+
"TraceFlags",
|
|
53
|
+
"getSpan",
|
|
54
|
+
"setSpan",
|
|
55
|
+
"StatusCode",
|
|
56
|
+
"CanonicalCode",
|
|
57
|
+
"getSpanContext",
|
|
58
|
+
"setSpanContext"
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return namedExports;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// #region Warning Handler
|
|
4
66
|
|
|
5
67
|
/**
|
|
6
|
-
*
|
|
68
|
+
* A function that can determine whether a rollupwarning should be ignored. If
|
|
69
|
+
* the function returns `true`, then the warning will not be displayed.
|
|
7
70
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
71
|
+
|
|
72
|
+
function ignoreNiseSinonEvalWarnings(warning) {
|
|
73
|
+
return (
|
|
74
|
+
warning.code === "EVAL" &&
|
|
75
|
+
warning.id &&
|
|
76
|
+
(warning.id.includes("node_modules/nise") ||
|
|
77
|
+
warning.id.includes("node_modules/sinon")) === true
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function ignoreChaiCircularDependencyWarnings(warning) {
|
|
82
|
+
return (
|
|
83
|
+
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
84
|
+
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const warningInhibitors = [
|
|
89
|
+
ignoreChaiCircularDependencyWarnings,
|
|
90
|
+
ignoreNiseSinonEvalWarnings
|
|
91
|
+
];
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Construct a warning handler for the shared rollup configuration
|
|
95
|
+
* that ignores certain warnings that are not relevant to testing.
|
|
96
|
+
*/
|
|
97
|
+
function makeOnWarnForTesting() {
|
|
98
|
+
return (warning, warn) => {
|
|
99
|
+
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
100
|
+
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
101
|
+
warn(warning);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// #endregion
|
|
107
|
+
|
|
108
|
+
function makeBrowserTestConfig() {
|
|
109
|
+
const config = {
|
|
110
|
+
input: {
|
|
111
|
+
include: ["dist-esm/test/**/*.spec.js"],
|
|
112
|
+
exclude: ["dist-esm/test/**/node/**"]
|
|
22
113
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
114
|
+
output: {
|
|
115
|
+
file: `dist-test/index.browser.js`,
|
|
116
|
+
format: "umd",
|
|
117
|
+
sourcemap: true
|
|
118
|
+
},
|
|
119
|
+
preserveSymlinks: false,
|
|
120
|
+
plugins: [
|
|
121
|
+
multiEntry({ exports: false }),
|
|
122
|
+
nodeResolve({
|
|
123
|
+
mainFields: ["module", "browser"]
|
|
124
|
+
}),
|
|
125
|
+
cjs({
|
|
126
|
+
namedExports: {
|
|
127
|
+
// Chai's strange internal architecture makes it impossible to statically
|
|
128
|
+
// analyze its exports.
|
|
129
|
+
chai: [
|
|
130
|
+
"version",
|
|
131
|
+
"use",
|
|
132
|
+
"util",
|
|
133
|
+
"config",
|
|
134
|
+
"expect",
|
|
135
|
+
"should",
|
|
136
|
+
"assert"
|
|
137
|
+
],
|
|
138
|
+
...openTelemetryCommonJs()
|
|
139
|
+
}
|
|
140
|
+
}),
|
|
141
|
+
json(),
|
|
142
|
+
sourcemaps()
|
|
143
|
+
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
144
|
+
],
|
|
145
|
+
onwarn: makeOnWarnForTesting(),
|
|
146
|
+
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
147
|
+
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
148
|
+
// our package.json sets "sideEffects=false", this also applies to test
|
|
149
|
+
// code, which causes all tests to be removed by tree-shaking.
|
|
150
|
+
treeshake: false
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
return config;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const defaultConfigurationOptions = {
|
|
157
|
+
disableBrowserBundle: false
|
|
35
158
|
};
|
|
36
159
|
|
|
37
|
-
export
|
|
160
|
+
export function makeConfig(pkg, options) {
|
|
161
|
+
options = {
|
|
162
|
+
...defaultConfigurationOptions,
|
|
163
|
+
...(options || {})
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const baseConfig = {
|
|
167
|
+
// Use the package's module field if it has one
|
|
168
|
+
input: pkg["module"] || "dist-esm/src/index.js",
|
|
169
|
+
external: [
|
|
170
|
+
...nodeBuiltins,
|
|
171
|
+
...Object.keys(pkg.dependencies),
|
|
172
|
+
...Object.keys(pkg.devDependencies)
|
|
173
|
+
],
|
|
174
|
+
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
175
|
+
preserveSymlinks: false,
|
|
176
|
+
plugins: [sourcemaps(), nodeResolve(), cjs()]
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const config = [baseConfig];
|
|
180
|
+
|
|
181
|
+
if (!options.disableBrowserBundle) {
|
|
182
|
+
config.push(makeBrowserTestConfig());
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return config;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export default makeConfig(require("./package.json"));
|