@azure/arm-resourceconnector 1.0.0-beta.1 → 1.0.0-beta.3
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 +1 -1
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +370 -164
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesDeleteSample.js +12 -4
- package/dist-esm/samples-dev/appliancesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesGetSample.js +12 -4
- package/dist-esm/samples-dev/appliancesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js +37 -0
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js +12 -4
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js +24 -9
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js +23 -8
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js +12 -4
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/appliancesListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{appliancesListClusterCustomerUserCredentialSample.js → appliancesListKeysSample.js} +17 -9
- package/dist-esm/samples-dev/appliancesListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/appliancesListOperationsSample.js +23 -8
- package/dist-esm/samples-dev/appliancesListOperationsSample.js.map +1 -1
- package/dist-esm/samples-dev/appliancesUpdateSample.js +12 -4
- package/dist-esm/samples-dev/appliancesUpdateSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +170 -72
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +30 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +6 -4
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +125 -63
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/appliances.d.ts +13 -8
- package/dist-esm/src/operations/appliances.d.ts.map +1 -1
- package/dist-esm/src/operations/appliances.js +146 -63
- package/dist-esm/src/operations/appliances.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/appliances.d.ts +13 -8
- package/dist-esm/src/operationsInterfaces/appliances.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/resourceConnectorManagementClient.d.ts.map +1 -1
- package/dist-esm/src/resourceConnectorManagementClient.js +21 -16
- package/dist-esm/src/resourceConnectorManagementClient.js.map +1 -1
- package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts +4 -0
- package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/resourceconnnector__operations_test.spec.js +123 -0
- package/dist-esm/test/resourceconnnector__operations_test.spec.js.map +1 -0
- package/package.json +15 -13
- package/review/arm-resourceconnector.api.md +65 -18
- package/src/index.ts +1 -0
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +156 -54
- package/src/models/mappers.ts +127 -64
- package/src/models/parameters.ts +1 -1
- package/src/operations/appliances.ts +145 -68
- package/src/operationsInterfaces/appliances.ts +23 -14
- package/src/pagingHelper.ts +39 -0
- package/src/resourceConnectorManagementClient.ts +27 -18
- package/types/arm-resourceconnector.d.ts +155 -37
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListClusterCustomerUserCredentialSample.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -17,7 +17,7 @@ export class ResourceConnectorManagementClient extends coreClient.ServiceClient
|
|
|
17
17
|
* @param options The parameter options
|
|
18
18
|
*/
|
|
19
19
|
constructor(credentials, subscriptionId, options) {
|
|
20
|
-
var _a, _b;
|
|
20
|
+
var _a, _b, _c;
|
|
21
21
|
if (credentials === undefined) {
|
|
22
22
|
throw new Error("'credentials' cannot be null");
|
|
23
23
|
}
|
|
@@ -32,35 +32,40 @@ export class ResourceConnectorManagementClient extends coreClient.ServiceClient
|
|
|
32
32
|
requestContentType: "application/json; charset=utf-8",
|
|
33
33
|
credential: credentials
|
|
34
34
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0-beta.
|
|
35
|
+
const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0-beta.3`;
|
|
36
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
38
|
: `${packageDetails}`;
|
|
39
39
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
40
|
userAgentPrefix
|
|
41
|
-
},
|
|
41
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
42
42
|
super(optionsWithDefaults);
|
|
43
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
43
44
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
44
45
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
45
|
-
|
|
46
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
46
47
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
}
|
|
49
|
+
if (!options ||
|
|
50
|
+
!options.pipeline ||
|
|
51
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
52
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
53
|
+
this.pipeline.removePolicy({
|
|
54
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
55
|
+
});
|
|
56
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
|
+
credential: credentials,
|
|
58
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
59
|
+
challengeCallbacks: {
|
|
60
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
58
63
|
}
|
|
59
64
|
// Parameter assignments
|
|
60
65
|
this.subscriptionId = subscriptionId;
|
|
61
66
|
// Assigning values to Constant parameters
|
|
62
67
|
this.$host = options.$host || "https://management.azure.com";
|
|
63
|
-
this.apiVersion = options.apiVersion || "2022-
|
|
68
|
+
this.apiVersion = options.apiVersion || "2022-10-27";
|
|
64
69
|
this.appliances = new AppliancesImpl(this);
|
|
65
70
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
66
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceConnectorManagementClient.js","sourceRoot":"","sources":["../../src/resourceConnectorManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAK7E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;;QAEzD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAoD;YAChE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,6CAA6C,CAAC;QACrE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,
|
|
1
|
+
{"version":3,"file":"resourceConnectorManagementClient.js","sourceRoot":"","sources":["../../src/resourceConnectorManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAK7E;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;;QAEzD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAoD;YAChE,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,6CAA6C,CAAC;QACrE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CA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file":"resourceconnnector__operations_test.spec.d.ts","sourceRoot":"","sources":["../../test/resourceconnnector__operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
|
|
10
|
+
import { createTestCredential } from "@azure-tools/test-credential";
|
|
11
|
+
import { assert } from "chai";
|
|
12
|
+
import { ResourceConnectorManagementClient } from "../src/resourceConnectorManagementClient";
|
|
13
|
+
const replaceableVariables = {
|
|
14
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
15
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
16
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
17
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
18
|
+
};
|
|
19
|
+
const recorderOptions = {
|
|
20
|
+
envSetupForPlayback: replaceableVariables
|
|
21
|
+
};
|
|
22
|
+
export const testPollingOptions = {
|
|
23
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
24
|
+
};
|
|
25
|
+
describe("ResourceConnector test", () => {
|
|
26
|
+
let recorder;
|
|
27
|
+
let subscriptionId;
|
|
28
|
+
let client;
|
|
29
|
+
let location;
|
|
30
|
+
let resourceGroup;
|
|
31
|
+
let resourcename;
|
|
32
|
+
beforeEach(function () {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
recorder = new Recorder(this.currentTest);
|
|
35
|
+
yield recorder.start(recorderOptions);
|
|
36
|
+
subscriptionId = env.SUBSCRIPTION_ID || '';
|
|
37
|
+
// This is an example of how the environment variables are used
|
|
38
|
+
const credential = createTestCredential();
|
|
39
|
+
client = new ResourceConnectorManagementClient(credential, subscriptionId, recorder.configureClientOptions({}));
|
|
40
|
+
location = "eastus";
|
|
41
|
+
resourceGroup = "czwjstest";
|
|
42
|
+
resourcename = "resourcetest";
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
afterEach(function () {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
yield recorder.stop();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
it("appliances create test", function () {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const res = yield client.appliances.beginCreateOrUpdateAndWait(resourceGroup, resourcename, {
|
|
53
|
+
identity: { type: "SystemAssigned" },
|
|
54
|
+
distro: "AKSEdge",
|
|
55
|
+
infrastructureConfig: { provider: "VMWare" },
|
|
56
|
+
location
|
|
57
|
+
}, testPollingOptions);
|
|
58
|
+
assert.equal(res.name, resourcename);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
it("appliances get test", function () {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const res = yield client.appliances.get(resourceGroup, resourcename);
|
|
64
|
+
assert.equal(res.name, resourcename);
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
it("appliances list test", function () {
|
|
68
|
+
var _a, e_1, _b, _c;
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const resArray = new Array();
|
|
71
|
+
try {
|
|
72
|
+
for (var _d = true, _e = __asyncValues(client.appliances.listByResourceGroup(resourceGroup)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
73
|
+
_c = _f.value;
|
|
74
|
+
_d = false;
|
|
75
|
+
try {
|
|
76
|
+
let item = _c;
|
|
77
|
+
resArray.push(item);
|
|
78
|
+
}
|
|
79
|
+
finally {
|
|
80
|
+
_d = true;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
85
|
+
finally {
|
|
86
|
+
try {
|
|
87
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
88
|
+
}
|
|
89
|
+
finally { if (e_1) throw e_1.error; }
|
|
90
|
+
}
|
|
91
|
+
assert.equal(resArray.length, 1);
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
it("appliances delete test", function () {
|
|
95
|
+
var _a, e_2, _b, _c;
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const resArray = new Array();
|
|
98
|
+
const res = yield client.appliances.beginDeleteAndWait(resourceGroup, resourcename);
|
|
99
|
+
try {
|
|
100
|
+
for (var _d = true, _e = __asyncValues(client.appliances.listByResourceGroup(resourceGroup)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
101
|
+
_c = _f.value;
|
|
102
|
+
_d = false;
|
|
103
|
+
try {
|
|
104
|
+
let item = _c;
|
|
105
|
+
resArray.push(item);
|
|
106
|
+
}
|
|
107
|
+
finally {
|
|
108
|
+
_d = true;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
assert.equal(resArray.length, 0);
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
//# sourceMappingURL=resourceconnnector__operations_test.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceconnnector__operations_test.spec.js","sourceRoot":"","sources":["../../test/resourceconnnector__operations_test.spec.ts"],"names":[],"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,EAAE;;;YAC3B,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;YAC7B,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,kBAAkB,CAAC,aAAa,EAAE,YAAY,CACjF,CAAA;;gBACD,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA,IAAA;oBAApD,cAAoD;oBAApD,WAAoD;;wBAAhE,IAAI,IAAI,KAAA,CAAA;wBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;iBACrB;;;;;;;;;YACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for ResourceConnectorManagementClient.",
|
|
6
|
-
"version": "1.0.0-beta.
|
|
6
|
+
"version": "1.0.0-beta.3",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@azure/core-lro": "^2.
|
|
11
|
+
"@azure/core-lro": "^2.5.0",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
|
-
"@azure/core-client": "^1.
|
|
14
|
+
"@azure/core-client": "^1.7.0",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
@@ -28,27 +28,28 @@
|
|
|
28
28
|
"module": "./dist-esm/src/index.js",
|
|
29
29
|
"types": "./types/arm-resourceconnector.d.ts",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@microsoft/api-extractor": "7.
|
|
32
|
-
"@rollup/plugin-commonjs": "^
|
|
33
|
-
"@rollup/plugin-json": "^
|
|
34
|
-
"@rollup/plugin-multi-entry": "^
|
|
31
|
+
"@microsoft/api-extractor": "^7.31.1",
|
|
32
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
33
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
34
|
+
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
35
35
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
36
|
-
"mkdirp": "^1.
|
|
36
|
+
"mkdirp": "^2.1.2",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
-
"typescript": "~
|
|
39
|
+
"typescript": "~5.0.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
|
+
"dotenv": "^16.0.0",
|
|
42
43
|
"@azure/identity": "^2.0.1",
|
|
43
|
-
"@azure-tools/test-recorder": "^
|
|
44
|
+
"@azure-tools/test-recorder": "^3.0.0",
|
|
44
45
|
"@azure-tools/test-credential": "^1.0.0",
|
|
45
46
|
"mocha": "^7.1.1",
|
|
46
47
|
"@types/chai": "^4.2.8",
|
|
47
48
|
"chai": "^4.2.0",
|
|
48
49
|
"cross-env": "^7.0.2",
|
|
50
|
+
"@types/node": "^14.0.0",
|
|
49
51
|
"@azure/dev-tool": "^1.0.0"
|
|
50
52
|
},
|
|
51
|
-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourceconnector/arm-resourceconnector",
|
|
52
53
|
"repository": {
|
|
53
54
|
"type": "git",
|
|
54
55
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
@@ -110,6 +111,7 @@
|
|
|
110
111
|
]
|
|
111
112
|
},
|
|
112
113
|
"autoPublish": true,
|
|
114
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourceconnector/arm-resourceconnector",
|
|
113
115
|
"//sampleConfiguration": {
|
|
114
116
|
"productName": "",
|
|
115
117
|
"productSlugs": [
|
|
@@ -118,4 +120,4 @@
|
|
|
118
120
|
"disableDocsMs": true,
|
|
119
121
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resourceconnector?view=azure-node-preview"
|
|
120
122
|
}
|
|
121
|
-
}
|
|
123
|
+
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import * as coreAuth from '@azure/core-auth';
|
|
8
8
|
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { OperationState } from '@azure/core-lro';
|
|
9
10
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
-
import {
|
|
11
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
12
12
|
|
|
13
13
|
// @public
|
|
14
14
|
export type AccessProfileType = string;
|
|
@@ -21,7 +21,6 @@ export interface Appliance extends TrackedResource {
|
|
|
21
21
|
readonly provisioningState?: string;
|
|
22
22
|
publicKey?: string;
|
|
23
23
|
readonly status?: Status;
|
|
24
|
-
readonly systemData?: SystemData;
|
|
25
24
|
version?: string;
|
|
26
25
|
}
|
|
27
26
|
|
|
@@ -32,11 +31,8 @@ export interface ApplianceCredentialKubeconfig {
|
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
// @public
|
|
35
|
-
export interface
|
|
36
|
-
readonly
|
|
37
|
-
readonly sshKeys?: {
|
|
38
|
-
[propertyName: string]: SSHKey;
|
|
39
|
-
};
|
|
34
|
+
export interface ApplianceGetTelemetryConfigResult {
|
|
35
|
+
readonly telemetryInstrumentationKey?: string;
|
|
40
36
|
}
|
|
41
37
|
|
|
42
38
|
// @public
|
|
@@ -45,6 +41,17 @@ export interface ApplianceListCredentialResults {
|
|
|
45
41
|
readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
|
|
46
42
|
}
|
|
47
43
|
|
|
44
|
+
// @public
|
|
45
|
+
export interface ApplianceListKeysResults {
|
|
46
|
+
readonly artifactProfiles?: {
|
|
47
|
+
[propertyName: string]: ArtifactProfile;
|
|
48
|
+
};
|
|
49
|
+
readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
|
|
50
|
+
readonly sshKeys?: {
|
|
51
|
+
[propertyName: string]: SSHKey;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
48
55
|
// @public
|
|
49
56
|
export interface ApplianceListResult {
|
|
50
57
|
readonly nextLink?: string;
|
|
@@ -75,16 +82,17 @@ export interface AppliancePropertiesInfrastructureConfig {
|
|
|
75
82
|
|
|
76
83
|
// @public
|
|
77
84
|
export interface Appliances {
|
|
78
|
-
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<
|
|
85
|
+
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<AppliancesCreateOrUpdateResponse>, AppliancesCreateOrUpdateResponse>>;
|
|
79
86
|
beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<AppliancesCreateOrUpdateResponse>;
|
|
80
|
-
beginDelete(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<
|
|
87
|
+
beginDelete(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
81
88
|
beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<void>;
|
|
82
89
|
get(resourceGroupName: string, resourceName: string, options?: AppliancesGetOptionalParams): Promise<AppliancesGetResponse>;
|
|
90
|
+
getTelemetryConfig(options?: AppliancesGetTelemetryConfigOptionalParams): Promise<AppliancesGetTelemetryConfigResponse>;
|
|
83
91
|
getUpgradeGraph(resourceGroupName: string, resourceName: string, upgradeGraph: string, options?: AppliancesGetUpgradeGraphOptionalParams): Promise<AppliancesGetUpgradeGraphResponse>;
|
|
84
92
|
listByResourceGroup(resourceGroupName: string, options?: AppliancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Appliance>;
|
|
85
93
|
listBySubscription(options?: AppliancesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Appliance>;
|
|
86
|
-
listClusterCustomerUserCredential(resourceGroupName: string, resourceName: string, options?: AppliancesListClusterCustomerUserCredentialOptionalParams): Promise<AppliancesListClusterCustomerUserCredentialResponse>;
|
|
87
94
|
listClusterUserCredential(resourceGroupName: string, resourceName: string, options?: AppliancesListClusterUserCredentialOptionalParams): Promise<AppliancesListClusterUserCredentialResponse>;
|
|
95
|
+
listKeys(resourceGroupName: string, resourceName: string, options?: AppliancesListKeysOptionalParams): Promise<AppliancesListKeysResponse>;
|
|
88
96
|
listOperations(options?: AppliancesListOperationsOptionalParams): PagedAsyncIterableIterator<ApplianceOperation>;
|
|
89
97
|
update(resourceGroupName: string, resourceName: string, options?: AppliancesUpdateOptionalParams): Promise<AppliancesUpdateResponse>;
|
|
90
98
|
}
|
|
@@ -111,6 +119,13 @@ export interface AppliancesGetOptionalParams extends coreClient.OperationOptions
|
|
|
111
119
|
// @public
|
|
112
120
|
export type AppliancesGetResponse = Appliance;
|
|
113
121
|
|
|
122
|
+
// @public
|
|
123
|
+
export interface AppliancesGetTelemetryConfigOptionalParams extends coreClient.OperationOptions {
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// @public
|
|
127
|
+
export type AppliancesGetTelemetryConfigResponse = ApplianceGetTelemetryConfigResult;
|
|
128
|
+
|
|
114
129
|
// @public
|
|
115
130
|
export interface AppliancesGetUpgradeGraphOptionalParams extends coreClient.OperationOptions {
|
|
116
131
|
}
|
|
@@ -147,18 +162,18 @@ export interface AppliancesListBySubscriptionOptionalParams extends coreClient.O
|
|
|
147
162
|
export type AppliancesListBySubscriptionResponse = ApplianceListResult;
|
|
148
163
|
|
|
149
164
|
// @public
|
|
150
|
-
export interface
|
|
165
|
+
export interface AppliancesListClusterUserCredentialOptionalParams extends coreClient.OperationOptions {
|
|
151
166
|
}
|
|
152
167
|
|
|
153
168
|
// @public
|
|
154
|
-
export type
|
|
169
|
+
export type AppliancesListClusterUserCredentialResponse = ApplianceListCredentialResults;
|
|
155
170
|
|
|
156
171
|
// @public
|
|
157
|
-
export interface
|
|
172
|
+
export interface AppliancesListKeysOptionalParams extends coreClient.OperationOptions {
|
|
158
173
|
}
|
|
159
174
|
|
|
160
175
|
// @public
|
|
161
|
-
export type
|
|
176
|
+
export type AppliancesListKeysResponse = ApplianceListKeysResults;
|
|
162
177
|
|
|
163
178
|
// @public
|
|
164
179
|
export interface AppliancesListOperationsNextOptionalParams extends coreClient.OperationOptions {
|
|
@@ -184,6 +199,14 @@ export interface AppliancesUpdateOptionalParams extends coreClient.OperationOpti
|
|
|
184
199
|
// @public
|
|
185
200
|
export type AppliancesUpdateResponse = Appliance;
|
|
186
201
|
|
|
202
|
+
// @public
|
|
203
|
+
export interface ArtifactProfile {
|
|
204
|
+
readonly endpoint?: string;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// @public
|
|
208
|
+
export type ArtifactType = string;
|
|
209
|
+
|
|
187
210
|
// @public
|
|
188
211
|
export type CreatedByType = string;
|
|
189
212
|
|
|
@@ -210,6 +233,9 @@ export interface ErrorResponse {
|
|
|
210
233
|
error?: ErrorDetail;
|
|
211
234
|
}
|
|
212
235
|
|
|
236
|
+
// @public
|
|
237
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
238
|
+
|
|
213
239
|
// @public
|
|
214
240
|
export interface HybridConnectionConfig {
|
|
215
241
|
readonly expirationTime?: number;
|
|
@@ -231,6 +257,11 @@ export enum KnownAccessProfileType {
|
|
|
231
257
|
ClusterUser = "clusterUser"
|
|
232
258
|
}
|
|
233
259
|
|
|
260
|
+
// @public
|
|
261
|
+
export enum KnownArtifactType {
|
|
262
|
+
LogsArtifactType = "LogsArtifactType"
|
|
263
|
+
}
|
|
264
|
+
|
|
234
265
|
// @public
|
|
235
266
|
export enum KnownCreatedByType {
|
|
236
267
|
Application = "Application",
|
|
@@ -261,6 +292,9 @@ export enum KnownResourceIdentityType {
|
|
|
261
292
|
|
|
262
293
|
// @public
|
|
263
294
|
export enum KnownSSHKeyType {
|
|
295
|
+
LogsKey = "LogsKey",
|
|
296
|
+
ManagementCAKey = "ManagementCAKey",
|
|
297
|
+
ScopedAccessKey = "ScopedAccessKey",
|
|
264
298
|
SSHCustomerUser = "SSHCustomerUser"
|
|
265
299
|
}
|
|
266
300
|
|
|
@@ -268,6 +302,13 @@ export enum KnownSSHKeyType {
|
|
|
268
302
|
export enum KnownStatus {
|
|
269
303
|
Connected = "Connected",
|
|
270
304
|
Connecting = "Connecting",
|
|
305
|
+
ImageDeprovisioning = "ImageDeprovisioning",
|
|
306
|
+
ImageDownloaded = "ImageDownloaded",
|
|
307
|
+
ImageDownloading = "ImageDownloading",
|
|
308
|
+
ImagePending = "ImagePending",
|
|
309
|
+
ImageProvisioned = "ImageProvisioned",
|
|
310
|
+
ImageProvisioning = "ImageProvisioning",
|
|
311
|
+
ImageUnknown = "ImageUnknown",
|
|
271
312
|
None = "None",
|
|
272
313
|
Offline = "Offline",
|
|
273
314
|
PostUpgrade = "PostUpgrade",
|
|
@@ -281,9 +322,11 @@ export enum KnownStatus {
|
|
|
281
322
|
UpgradeComplete = "UpgradeComplete",
|
|
282
323
|
UpgradeFailed = "UpgradeFailed",
|
|
283
324
|
UpgradePrerequisitesCompleted = "UpgradePrerequisitesCompleted",
|
|
325
|
+
UpgradingKvaio = "UpgradingKVAIO",
|
|
284
326
|
Validating = "Validating",
|
|
285
327
|
WaitingForCloudOperator = "WaitingForCloudOperator",
|
|
286
|
-
WaitingForHeartbeat = "WaitingForHeartbeat"
|
|
328
|
+
WaitingForHeartbeat = "WaitingForHeartbeat",
|
|
329
|
+
WaitingForKvaio = "WaitingForKVAIO"
|
|
287
330
|
}
|
|
288
331
|
|
|
289
332
|
// @public
|
|
@@ -300,6 +343,7 @@ export type Provider = string;
|
|
|
300
343
|
export interface Resource {
|
|
301
344
|
readonly id?: string;
|
|
302
345
|
readonly name?: string;
|
|
346
|
+
readonly systemData?: SystemData;
|
|
303
347
|
readonly type?: string;
|
|
304
348
|
}
|
|
305
349
|
|
|
@@ -328,8 +372,11 @@ export type ResourceIdentityType = string;
|
|
|
328
372
|
|
|
329
373
|
// @public
|
|
330
374
|
export interface SSHKey {
|
|
331
|
-
|
|
332
|
-
|
|
375
|
+
readonly certificate?: string;
|
|
376
|
+
readonly creationTimeStamp?: number;
|
|
377
|
+
readonly expirationTimeStamp?: number;
|
|
378
|
+
readonly privateKey?: string;
|
|
379
|
+
readonly publicKey?: string;
|
|
333
380
|
}
|
|
334
381
|
|
|
335
382
|
// @public
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export { getContinuationToken } from "./pagingHelper";
|
|
10
11
|
export * from "./models";
|
|
11
12
|
export { ResourceConnectorManagementClient } from "./resourceConnectorManagementClient";
|
|
12
13
|
export * from "./operationsInterfaces";
|
package/src/lroImpl.ts
CHANGED
|
@@ -6,29 +6,37 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
9
13
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
14
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...restSpec
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
34
42
|
}
|