@azure/arm-resourceconnector 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.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +1754 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js +36 -0
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/appliancesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesGetSample.js +31 -0
- package/dist-esm/samples-dev/appliancesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js +32 -0
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.js +31 -0
- package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js +31 -0
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesListOperationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesListOperationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesListOperationsSample.js +43 -0
- package/dist-esm/samples-dev/appliancesListOperationsSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesUpdateSample.js +33 -0
- package/dist-esm/samples-dev/appliancesUpdateSample.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +617 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +102 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +26 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +709 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +13 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +124 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/appliances.d.ts +144 -0
- package/dist-esm/src/operations/appliances.d.ts.map +1 -0
- package/dist-esm/src/operations/appliances.js +651 -0
- package/dist-esm/src/operations/appliances.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +9 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/appliances.d.ts +93 -0
- package/dist-esm/src/operationsInterfaces/appliances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/appliances.js +9 -0
- package/dist-esm/src/operationsInterfaces/appliances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +9 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/resourceConnectorManagementClient.d.ts +20 -0
- package/dist-esm/src/resourceConnectorManagementClient.d.ts.map +1 -0
- package/dist-esm/src/resourceConnectorManagementClient.js +95 -0
- package/dist-esm/src/resourceConnectorManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +38 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +121 -0
- package/review/arm-resourceconnector.api.md +400 -0
- package/rollup.config.js +122 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +684 -0
- package/src/models/mappers.ts +748 -0
- package/src/models/parameters.ts +145 -0
- package/src/operations/appliances.ts +839 -0
- package/src/operations/index.ts +9 -0
- package/src/operationsInterfaces/appliances.ts +172 -0
- package/src/operationsInterfaces/index.ts +9 -0
- package/src/resourceConnectorManagementClient.ts +131 -0
- package/tsconfig.json +33 -0
- package/types/arm-resourceconnector.d.ts +792 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
## API Report File for "@azure/arm-resourceconnector"
|
|
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 AccessProfileType = string;
|
|
15
|
+
|
|
16
|
+
// @public
|
|
17
|
+
export interface Appliance extends TrackedResource {
|
|
18
|
+
distro?: Distro;
|
|
19
|
+
identity?: Identity;
|
|
20
|
+
infrastructureConfig?: AppliancePropertiesInfrastructureConfig;
|
|
21
|
+
readonly provisioningState?: string;
|
|
22
|
+
publicKey?: string;
|
|
23
|
+
readonly status?: Status;
|
|
24
|
+
readonly systemData?: SystemData;
|
|
25
|
+
version?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// @public
|
|
29
|
+
export interface ApplianceCredentialKubeconfig {
|
|
30
|
+
readonly name?: AccessProfileType;
|
|
31
|
+
readonly value?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// @public
|
|
35
|
+
export interface ApplianceListClusterCustomerUserCredentialResults {
|
|
36
|
+
readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
|
|
37
|
+
readonly sshKeys?: {
|
|
38
|
+
[propertyName: string]: SSHKey;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// @public
|
|
43
|
+
export interface ApplianceListCredentialResults {
|
|
44
|
+
readonly hybridConnectionConfig?: HybridConnectionConfig;
|
|
45
|
+
readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// @public
|
|
49
|
+
export interface ApplianceListResult {
|
|
50
|
+
readonly nextLink?: string;
|
|
51
|
+
readonly value?: Appliance[];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// @public
|
|
55
|
+
export interface ApplianceOperation {
|
|
56
|
+
readonly description?: string;
|
|
57
|
+
readonly isDataAction?: boolean;
|
|
58
|
+
readonly name?: string;
|
|
59
|
+
readonly operation?: string;
|
|
60
|
+
readonly origin?: string;
|
|
61
|
+
readonly provider?: string;
|
|
62
|
+
readonly resource?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// @public
|
|
66
|
+
export interface ApplianceOperationsList {
|
|
67
|
+
nextLink?: string;
|
|
68
|
+
value: ApplianceOperation[];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// @public
|
|
72
|
+
export interface AppliancePropertiesInfrastructureConfig {
|
|
73
|
+
provider?: Provider;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// @public
|
|
77
|
+
export interface Appliances {
|
|
78
|
+
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<AppliancesCreateOrUpdateResponse>, AppliancesCreateOrUpdateResponse>>;
|
|
79
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<AppliancesCreateOrUpdateResponse>;
|
|
80
|
+
beginDelete(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
81
|
+
beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<void>;
|
|
82
|
+
get(resourceGroupName: string, resourceName: string, options?: AppliancesGetOptionalParams): Promise<AppliancesGetResponse>;
|
|
83
|
+
getUpgradeGraph(resourceGroupName: string, resourceName: string, upgradeGraph: string, options?: AppliancesGetUpgradeGraphOptionalParams): Promise<AppliancesGetUpgradeGraphResponse>;
|
|
84
|
+
listByResourceGroup(resourceGroupName: string, options?: AppliancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Appliance>;
|
|
85
|
+
listBySubscription(options?: AppliancesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Appliance>;
|
|
86
|
+
listClusterCustomerUserCredential(resourceGroupName: string, resourceName: string, options?: AppliancesListClusterCustomerUserCredentialOptionalParams): Promise<AppliancesListClusterCustomerUserCredentialResponse>;
|
|
87
|
+
listClusterUserCredential(resourceGroupName: string, resourceName: string, options?: AppliancesListClusterUserCredentialOptionalParams): Promise<AppliancesListClusterUserCredentialResponse>;
|
|
88
|
+
listOperations(options?: AppliancesListOperationsOptionalParams): PagedAsyncIterableIterator<ApplianceOperation>;
|
|
89
|
+
update(resourceGroupName: string, resourceName: string, options?: AppliancesUpdateOptionalParams): Promise<AppliancesUpdateResponse>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// @public
|
|
93
|
+
export interface AppliancesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
94
|
+
resumeFrom?: string;
|
|
95
|
+
updateIntervalInMs?: number;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// @public
|
|
99
|
+
export type AppliancesCreateOrUpdateResponse = Appliance;
|
|
100
|
+
|
|
101
|
+
// @public
|
|
102
|
+
export interface AppliancesDeleteOptionalParams extends coreClient.OperationOptions {
|
|
103
|
+
resumeFrom?: string;
|
|
104
|
+
updateIntervalInMs?: number;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// @public
|
|
108
|
+
export interface AppliancesGetOptionalParams extends coreClient.OperationOptions {
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// @public
|
|
112
|
+
export type AppliancesGetResponse = Appliance;
|
|
113
|
+
|
|
114
|
+
// @public
|
|
115
|
+
export interface AppliancesGetUpgradeGraphOptionalParams extends coreClient.OperationOptions {
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// @public
|
|
119
|
+
export type AppliancesGetUpgradeGraphResponse = UpgradeGraph;
|
|
120
|
+
|
|
121
|
+
// @public
|
|
122
|
+
export interface AppliancesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// @public
|
|
126
|
+
export type AppliancesListByResourceGroupNextResponse = ApplianceListResult;
|
|
127
|
+
|
|
128
|
+
// @public
|
|
129
|
+
export interface AppliancesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// @public
|
|
133
|
+
export type AppliancesListByResourceGroupResponse = ApplianceListResult;
|
|
134
|
+
|
|
135
|
+
// @public
|
|
136
|
+
export interface AppliancesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// @public
|
|
140
|
+
export type AppliancesListBySubscriptionNextResponse = ApplianceListResult;
|
|
141
|
+
|
|
142
|
+
// @public
|
|
143
|
+
export interface AppliancesListBySubscriptionOptionalParams extends coreClient.OperationOptions {
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// @public
|
|
147
|
+
export type AppliancesListBySubscriptionResponse = ApplianceListResult;
|
|
148
|
+
|
|
149
|
+
// @public
|
|
150
|
+
export interface AppliancesListClusterCustomerUserCredentialOptionalParams extends coreClient.OperationOptions {
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// @public
|
|
154
|
+
export type AppliancesListClusterCustomerUserCredentialResponse = ApplianceListClusterCustomerUserCredentialResults;
|
|
155
|
+
|
|
156
|
+
// @public
|
|
157
|
+
export interface AppliancesListClusterUserCredentialOptionalParams extends coreClient.OperationOptions {
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// @public
|
|
161
|
+
export type AppliancesListClusterUserCredentialResponse = ApplianceListCredentialResults;
|
|
162
|
+
|
|
163
|
+
// @public
|
|
164
|
+
export interface AppliancesListOperationsNextOptionalParams extends coreClient.OperationOptions {
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// @public
|
|
168
|
+
export type AppliancesListOperationsNextResponse = ApplianceOperationsList;
|
|
169
|
+
|
|
170
|
+
// @public
|
|
171
|
+
export interface AppliancesListOperationsOptionalParams extends coreClient.OperationOptions {
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// @public
|
|
175
|
+
export type AppliancesListOperationsResponse = ApplianceOperationsList;
|
|
176
|
+
|
|
177
|
+
// @public
|
|
178
|
+
export interface AppliancesUpdateOptionalParams extends coreClient.OperationOptions {
|
|
179
|
+
tags?: {
|
|
180
|
+
[propertyName: string]: string;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// @public
|
|
185
|
+
export type AppliancesUpdateResponse = Appliance;
|
|
186
|
+
|
|
187
|
+
// @public
|
|
188
|
+
export type CreatedByType = string;
|
|
189
|
+
|
|
190
|
+
// @public
|
|
191
|
+
export type Distro = string;
|
|
192
|
+
|
|
193
|
+
// @public
|
|
194
|
+
export interface ErrorAdditionalInfo {
|
|
195
|
+
readonly info?: Record<string, unknown>;
|
|
196
|
+
readonly type?: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// @public
|
|
200
|
+
export interface ErrorDetail {
|
|
201
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
202
|
+
readonly code?: string;
|
|
203
|
+
readonly details?: ErrorDetail[];
|
|
204
|
+
readonly message?: string;
|
|
205
|
+
readonly target?: string;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// @public
|
|
209
|
+
export interface ErrorResponse {
|
|
210
|
+
error?: ErrorDetail;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// @public
|
|
214
|
+
export interface HybridConnectionConfig {
|
|
215
|
+
readonly expirationTime?: number;
|
|
216
|
+
readonly hybridConnectionName?: string;
|
|
217
|
+
readonly relay?: string;
|
|
218
|
+
readonly token?: string;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// @public
|
|
222
|
+
export interface Identity {
|
|
223
|
+
readonly principalId?: string;
|
|
224
|
+
readonly tenantId?: string;
|
|
225
|
+
type?: ResourceIdentityType;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// @public
|
|
229
|
+
export enum KnownAccessProfileType {
|
|
230
|
+
ClusterCustomerUser = "clusterCustomerUser",
|
|
231
|
+
ClusterUser = "clusterUser"
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// @public
|
|
235
|
+
export enum KnownCreatedByType {
|
|
236
|
+
Application = "Application",
|
|
237
|
+
Key = "Key",
|
|
238
|
+
ManagedIdentity = "ManagedIdentity",
|
|
239
|
+
User = "User"
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// @public
|
|
243
|
+
export enum KnownDistro {
|
|
244
|
+
AKSEdge = "AKSEdge"
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// @public
|
|
248
|
+
export enum KnownProvider {
|
|
249
|
+
HCI = "HCI",
|
|
250
|
+
KubeVirt = "KubeVirt",
|
|
251
|
+
OpenStack = "OpenStack",
|
|
252
|
+
Scvmm = "SCVMM",
|
|
253
|
+
VMWare = "VMWare"
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// @public
|
|
257
|
+
export enum KnownResourceIdentityType {
|
|
258
|
+
None = "None",
|
|
259
|
+
SystemAssigned = "SystemAssigned"
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// @public
|
|
263
|
+
export enum KnownSSHKeyType {
|
|
264
|
+
SSHCustomerUser = "SSHCustomerUser"
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// @public
|
|
268
|
+
export enum KnownStatus {
|
|
269
|
+
Connected = "Connected",
|
|
270
|
+
Connecting = "Connecting",
|
|
271
|
+
None = "None",
|
|
272
|
+
Offline = "Offline",
|
|
273
|
+
PostUpgrade = "PostUpgrade",
|
|
274
|
+
PreparingForUpgrade = "PreparingForUpgrade",
|
|
275
|
+
PreUpgrade = "PreUpgrade",
|
|
276
|
+
Running = "Running",
|
|
277
|
+
UpdatingCapi = "UpdatingCAPI",
|
|
278
|
+
UpdatingCloudOperator = "UpdatingCloudOperator",
|
|
279
|
+
UpdatingCluster = "UpdatingCluster",
|
|
280
|
+
UpgradeClusterExtensionFailedToDelete = "UpgradeClusterExtensionFailedToDelete",
|
|
281
|
+
UpgradeComplete = "UpgradeComplete",
|
|
282
|
+
UpgradeFailed = "UpgradeFailed",
|
|
283
|
+
UpgradePrerequisitesCompleted = "UpgradePrerequisitesCompleted",
|
|
284
|
+
Validating = "Validating",
|
|
285
|
+
WaitingForCloudOperator = "WaitingForCloudOperator",
|
|
286
|
+
WaitingForHeartbeat = "WaitingForHeartbeat"
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// @public
|
|
290
|
+
export interface PatchableAppliance {
|
|
291
|
+
tags?: {
|
|
292
|
+
[propertyName: string]: string;
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// @public
|
|
297
|
+
export type Provider = string;
|
|
298
|
+
|
|
299
|
+
// @public
|
|
300
|
+
export interface Resource {
|
|
301
|
+
readonly id?: string;
|
|
302
|
+
readonly name?: string;
|
|
303
|
+
readonly type?: string;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// @public (undocumented)
|
|
307
|
+
export class ResourceConnectorManagementClient extends coreClient.ServiceClient {
|
|
308
|
+
// (undocumented)
|
|
309
|
+
$host: string;
|
|
310
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ResourceConnectorManagementClientOptionalParams);
|
|
311
|
+
// (undocumented)
|
|
312
|
+
apiVersion: string;
|
|
313
|
+
// (undocumented)
|
|
314
|
+
appliances: Appliances;
|
|
315
|
+
// (undocumented)
|
|
316
|
+
subscriptionId: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// @public
|
|
320
|
+
export interface ResourceConnectorManagementClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
321
|
+
$host?: string;
|
|
322
|
+
apiVersion?: string;
|
|
323
|
+
endpoint?: string;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
// @public
|
|
327
|
+
export type ResourceIdentityType = string;
|
|
328
|
+
|
|
329
|
+
// @public
|
|
330
|
+
export interface SSHKey {
|
|
331
|
+
privateKey?: string;
|
|
332
|
+
publicKey?: string;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// @public
|
|
336
|
+
export type SSHKeyType = string;
|
|
337
|
+
|
|
338
|
+
// @public
|
|
339
|
+
export type Status = string;
|
|
340
|
+
|
|
341
|
+
// @public
|
|
342
|
+
export interface SupportedVersion {
|
|
343
|
+
readonly metadata?: SupportedVersionMetadata;
|
|
344
|
+
readonly version?: string;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// @public
|
|
348
|
+
export interface SupportedVersionCatalogVersion {
|
|
349
|
+
readonly data?: SupportedVersionCatalogVersionData;
|
|
350
|
+
readonly name?: string;
|
|
351
|
+
readonly namespace?: string;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// @public
|
|
355
|
+
export interface SupportedVersionCatalogVersionData {
|
|
356
|
+
readonly audience?: string;
|
|
357
|
+
readonly catalog?: string;
|
|
358
|
+
readonly offer?: string;
|
|
359
|
+
readonly version?: string;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// @public
|
|
363
|
+
export interface SupportedVersionMetadata {
|
|
364
|
+
readonly catalogVersion?: SupportedVersionCatalogVersion;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// @public
|
|
368
|
+
export interface SystemData {
|
|
369
|
+
createdAt?: Date;
|
|
370
|
+
createdBy?: string;
|
|
371
|
+
createdByType?: CreatedByType;
|
|
372
|
+
lastModifiedAt?: Date;
|
|
373
|
+
lastModifiedBy?: string;
|
|
374
|
+
lastModifiedByType?: CreatedByType;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
// @public
|
|
378
|
+
export interface TrackedResource extends Resource {
|
|
379
|
+
location: string;
|
|
380
|
+
tags?: {
|
|
381
|
+
[propertyName: string]: string;
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// @public
|
|
386
|
+
export interface UpgradeGraph {
|
|
387
|
+
readonly id?: string;
|
|
388
|
+
readonly name?: string;
|
|
389
|
+
properties?: UpgradeGraphProperties;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
// @public
|
|
393
|
+
export interface UpgradeGraphProperties {
|
|
394
|
+
readonly applianceVersion?: string;
|
|
395
|
+
readonly supportedVersions?: SupportedVersion[];
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
// (No @packageDocumentation comment for this package)
|
|
399
|
+
|
|
400
|
+
```
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
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";
|
|
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
|
+
// #region Warning Handler
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A function that can determine whether a rollup warning should be ignored. If
|
|
21
|
+
* the function returns `true`, then the warning will not be displayed.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
function ignoreNiseSinonEval(warning) {
|
|
25
|
+
return (
|
|
26
|
+
warning.code === "EVAL" &&
|
|
27
|
+
warning.id &&
|
|
28
|
+
(warning.id.includes("node_modules/nise") ||
|
|
29
|
+
warning.id.includes("node_modules/sinon")) === true
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function ignoreChaiCircularDependency(warning) {
|
|
34
|
+
return (
|
|
35
|
+
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
36
|
+
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Construct a warning handler for the shared rollup configuration
|
|
44
|
+
* that ignores certain warnings that are not relevant to testing.
|
|
45
|
+
*/
|
|
46
|
+
function makeOnWarnForTesting() {
|
|
47
|
+
return (warning, warn) => {
|
|
48
|
+
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
49
|
+
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
50
|
+
warn(warning);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// #endregion
|
|
56
|
+
|
|
57
|
+
function makeBrowserTestConfig() {
|
|
58
|
+
const config = {
|
|
59
|
+
input: {
|
|
60
|
+
include: ["dist-esm/test/**/*.spec.js"],
|
|
61
|
+
exclude: ["dist-esm/test/**/node/**"]
|
|
62
|
+
},
|
|
63
|
+
output: {
|
|
64
|
+
file: `dist-test/index.browser.js`,
|
|
65
|
+
format: "umd",
|
|
66
|
+
sourcemap: true
|
|
67
|
+
},
|
|
68
|
+
preserveSymlinks: false,
|
|
69
|
+
plugins: [
|
|
70
|
+
multiEntry({ exports: false }),
|
|
71
|
+
nodeResolve({
|
|
72
|
+
mainFields: ["module", "browser"]
|
|
73
|
+
}),
|
|
74
|
+
cjs(),
|
|
75
|
+
json(),
|
|
76
|
+
sourcemaps()
|
|
77
|
+
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
78
|
+
],
|
|
79
|
+
onwarn: makeOnWarnForTesting(),
|
|
80
|
+
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
81
|
+
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
82
|
+
// our package.json sets "sideEffects=false", this also applies to test
|
|
83
|
+
// code, which causes all tests to be removed by tree-shaking.
|
|
84
|
+
treeshake: false
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return config;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const defaultConfigurationOptions = {
|
|
91
|
+
disableBrowserBundle: false
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export function makeConfig(pkg, options) {
|
|
95
|
+
options = {
|
|
96
|
+
...defaultConfigurationOptions,
|
|
97
|
+
...(options || {})
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const baseConfig = {
|
|
101
|
+
// Use the package's module field if it has one
|
|
102
|
+
input: pkg["module"] || "dist-esm/src/index.js",
|
|
103
|
+
external: [
|
|
104
|
+
...nodeBuiltins,
|
|
105
|
+
...Object.keys(pkg.dependencies),
|
|
106
|
+
...Object.keys(pkg.devDependencies)
|
|
107
|
+
],
|
|
108
|
+
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
109
|
+
preserveSymlinks: false,
|
|
110
|
+
plugins: [sourcemaps(), nodeResolve()]
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const config = [baseConfig];
|
|
114
|
+
|
|
115
|
+
if (!options.disableBrowserBundle) {
|
|
116
|
+
config.push(makeBrowserTestConfig());
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return config;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export default makeConfig(require("./package.json"));
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export * from "./models";
|
|
11
|
+
export { ResourceConnectorManagementClient } from "./resourceConnectorManagementClient";
|
|
12
|
+
export * from "./operationsInterfaces";
|
package/src/lroImpl.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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 { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
|
+
|
|
11
|
+
export class LroImpl<T> implements LongRunningOperation<T> {
|
|
12
|
+
constructor(
|
|
13
|
+
private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,
|
|
14
|
+
private args: Record<string, unknown>,
|
|
15
|
+
private spec: {
|
|
16
|
+
readonly requestBody?: unknown;
|
|
17
|
+
readonly path?: string;
|
|
18
|
+
readonly httpMethod: string;
|
|
19
|
+
} & Record<string, any>,
|
|
20
|
+
public requestPath: string = spec.path!,
|
|
21
|
+
public requestMethod: string = spec.httpMethod
|
|
22
|
+
) {}
|
|
23
|
+
public async sendInitialRequest(): Promise<LroResponse<T>> {
|
|
24
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
25
|
+
}
|
|
26
|
+
public async sendPollRequest(path: string): Promise<LroResponse<T>> {
|
|
27
|
+
const { requestBody, ...restSpec } = this.spec;
|
|
28
|
+
return this.sendOperationFn(this.args, {
|
|
29
|
+
...restSpec,
|
|
30
|
+
path,
|
|
31
|
+
httpMethod: "GET"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|