@azure/arm-servicelinker 2.1.1-alpha.20241024.1 → 2.2.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 +145 -10
- package/LICENSE +1 -1
- package/README.md +3 -4
- package/dist/index.js +3960 -1050
- 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/configurationNamesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/configurationNamesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/configurationNamesListSample.js +51 -0
- package/dist-esm/samples-dev/configurationNamesListSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorCreateDryrunSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorCreateDryrunSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorCreateDryrunSample.js +53 -0
- package/dist-esm/samples-dev/connectorCreateDryrunSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorCreateOrUpdateSample.js +49 -0
- package/dist-esm/samples-dev/connectorCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorDeleteDryrunSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorDeleteDryrunSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorDeleteDryrunSample.js +39 -0
- package/dist-esm/samples-dev/connectorDeleteDryrunSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorDeleteSample.js +39 -0
- package/dist-esm/samples-dev/connectorDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorGenerateConfigurationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorGenerateConfigurationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorGenerateConfigurationsSample.js +43 -0
- package/dist-esm/samples-dev/connectorGenerateConfigurationsSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorGetDryrunSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorGetDryrunSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorGetDryrunSample.js +39 -0
- package/dist-esm/samples-dev/connectorGetDryrunSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorGetSample.js +39 -0
- package/dist-esm/samples-dev/connectorGetSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorListDryrunSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorListDryrunSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorListDryrunSample.js +54 -0
- package/dist-esm/samples-dev/connectorListDryrunSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorListSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorListSample.js +54 -0
- package/dist-esm/samples-dev/connectorListSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorUpdateDryrunSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorUpdateDryrunSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorUpdateDryrunSample.js +53 -0
- package/dist-esm/samples-dev/connectorUpdateDryrunSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorUpdateSample.js +51 -0
- package/dist-esm/samples-dev/connectorUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/connectorValidateSample.d.ts +2 -0
- package/dist-esm/samples-dev/connectorValidateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/connectorValidateSample.js +39 -0
- package/dist-esm/samples-dev/connectorValidateSample.js.map +1 -0
- package/dist-esm/samples-dev/linkerCreateOrUpdateSample.js +9 -67
- package/dist-esm/samples-dev/linkerCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/linkerDeleteSample.js +5 -5
- package/dist-esm/samples-dev/linkerDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/linkerGetSample.js +3 -3
- package/dist-esm/samples-dev/linkerGetSample.js.map +1 -1
- package/dist-esm/samples-dev/linkerListConfigurationsSample.js +4 -4
- package/dist-esm/samples-dev/linkerListConfigurationsSample.js.map +1 -1
- package/dist-esm/samples-dev/linkerListSample.js +5 -5
- package/dist-esm/samples-dev/linkerListSample.js.map +1 -1
- package/dist-esm/samples-dev/linkerUpdateSample.js +9 -9
- package/dist-esm/samples-dev/linkerUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/linkerValidateSample.js +5 -5
- package/dist-esm/samples-dev/linkerValidateSample.js.map +1 -1
- package/dist-esm/samples-dev/linkersCreateDryrunSample.d.ts +2 -0
- package/dist-esm/samples-dev/linkersCreateDryrunSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/linkersCreateDryrunSample.js +51 -0
- package/dist-esm/samples-dev/linkersCreateDryrunSample.js.map +1 -0
- package/dist-esm/samples-dev/linkersDeleteDryrunSample.d.ts +2 -0
- package/dist-esm/samples-dev/linkersDeleteDryrunSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/linkersDeleteDryrunSample.js +37 -0
- package/dist-esm/samples-dev/linkersDeleteDryrunSample.js.map +1 -0
- package/dist-esm/samples-dev/linkersGenerateConfigurationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/linkersGenerateConfigurationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/linkersGenerateConfigurationsSample.js +41 -0
- package/dist-esm/samples-dev/linkersGenerateConfigurationsSample.js.map +1 -0
- package/dist-esm/samples-dev/linkersGetDryrunSample.d.ts +2 -0
- package/dist-esm/samples-dev/linkersGetDryrunSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/linkersGetDryrunSample.js +37 -0
- package/dist-esm/samples-dev/linkersGetDryrunSample.js.map +1 -0
- package/dist-esm/samples-dev/linkersListDaprConfigurationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/linkersListDaprConfigurationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/linkersListDaprConfigurationsSample.js +52 -0
- package/dist-esm/samples-dev/linkersListDaprConfigurationsSample.js.map +1 -0
- package/dist-esm/samples-dev/linkersListDryrunSample.d.ts +2 -0
- package/dist-esm/samples-dev/linkersListDryrunSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/linkersListDryrunSample.js +52 -0
- package/dist-esm/samples-dev/linkersListDryrunSample.js.map +1 -0
- package/dist-esm/samples-dev/linkersUpdateDryrunSample.d.ts +2 -0
- package/dist-esm/samples-dev/linkersUpdateDryrunSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/linkersUpdateDryrunSample.js +51 -0
- package/dist-esm/samples-dev/linkersUpdateDryrunSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +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 +815 -90
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +134 -18
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +47 -8
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1334 -337
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +12 -2
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +121 -31
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/configurationNames.d.ts +34 -0
- package/dist-esm/src/operations/configurationNames.d.ts.map +1 -0
- package/dist-esm/src/operations/configurationNames.js +139 -0
- package/dist-esm/src/operations/configurationNames.js.map +1 -0
- package/dist-esm/src/operations/connector.d.ts +223 -0
- package/dist-esm/src/operations/connector.d.ts.map +1 -0
- package/dist-esm/src/operations/connector.js +1011 -0
- package/dist-esm/src/operations/connector.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +3 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +3 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/linker.d.ts +18 -16
- package/dist-esm/src/operations/linker.d.ts.map +1 -1
- package/dist-esm/src/operations/linker.js +109 -91
- package/dist-esm/src/operations/linker.js.map +1 -1
- package/dist-esm/src/operations/linkers.d.ts +123 -0
- package/dist-esm/src/operations/linkers.d.ts.map +1 -0
- package/dist-esm/src/operations/linkers.js +535 -0
- package/dist-esm/src/operations/linkers.js.map +1 -0
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operationsInterfaces/configurationNames.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/configurationNames.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurationNames.js +9 -0
- package/dist-esm/src/operationsInterfaces/configurationNames.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/connector.d.ts +176 -0
- package/dist-esm/src/operationsInterfaces/connector.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/connector.js +9 -0
- package/dist-esm/src/operationsInterfaces/connector.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +3 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/linker.d.ts +16 -15
- package/dist-esm/src/operationsInterfaces/linker.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/linkers.d.ts +81 -0
- package/dist-esm/src/operationsInterfaces/linkers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkers.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkers.js.map +1 -0
- package/dist-esm/src/serviceLinkerManagementClient.d.ts +4 -1
- package/dist-esm/src/serviceLinkerManagementClient.d.ts.map +1 -1
- package/dist-esm/src/serviceLinkerManagementClient.js +12 -9
- package/dist-esm/src/serviceLinkerManagementClient.js.map +1 -1
- package/dist-esm/test/servicelinker_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/servicelinker_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/servicelinker_operations_test.spec.js +74 -0
- package/dist-esm/test/servicelinker_operations_test.spec.js.map +1 -0
- package/package.json +30 -31
- package/review/arm-servicelinker.api.md +613 -32
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +956 -103
- package/src/models/mappers.ts +1449 -365
- package/src/models/parameters.ts +135 -32
- package/src/operations/configurationNames.ts +155 -0
- package/src/operations/connector.ts +1433 -0
- package/src/operations/index.ts +3 -0
- package/src/operations/linker.ts +180 -171
- package/src/operations/linkers.ts +702 -0
- package/src/operations/operations.ts +16 -16
- package/src/operationsInterfaces/configurationNames.ts +26 -0
- package/src/operationsInterfaces/connector.ts +349 -0
- package/src/operationsInterfaces/index.ts +3 -0
- package/src/operationsInterfaces/linker.ts +30 -29
- package/src/operationsInterfaces/linkers.ts +153 -0
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/pagingHelper.ts +1 -1
- package/src/serviceLinkerManagementClient.ts +36 -17
- package/types/arm-servicelinker.d.ts +1150 -61
- 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 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -0,0 +1,1011 @@
|
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing Connector operations. */
|
|
17
|
+
export class ConnectorImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class Connector class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* list dryrun jobs
|
|
27
|
+
* @param subscriptionId The ID of the target subscription.
|
|
28
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
29
|
+
* @param location The name of Azure region.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
listDryrun(subscriptionId, resourceGroupName, location, options) {
|
|
33
|
+
const iter = this.listDryrunPagingAll(subscriptionId, resourceGroupName, location, options);
|
|
34
|
+
return {
|
|
35
|
+
next() {
|
|
36
|
+
return iter.next();
|
|
37
|
+
},
|
|
38
|
+
[Symbol.asyncIterator]() {
|
|
39
|
+
return this;
|
|
40
|
+
},
|
|
41
|
+
byPage: (settings) => {
|
|
42
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
43
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
|
+
}
|
|
45
|
+
return this.listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
listDryrunPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
|
|
50
|
+
return __asyncGenerator(this, arguments, function* listDryrunPagingPage_1() {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = yield __await(this._listDryrun(subscriptionId, resourceGroupName, location, options));
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
setContinuationToken(page, continuationToken);
|
|
58
|
+
yield yield __await(page);
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = yield __await(this._listDryrunNext(subscriptionId, resourceGroupName, location, continuationToken, options));
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
setContinuationToken(page, continuationToken);
|
|
65
|
+
yield yield __await(page);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
listDryrunPagingAll(subscriptionId, resourceGroupName, location, options) {
|
|
70
|
+
return __asyncGenerator(this, arguments, function* listDryrunPagingAll_1() {
|
|
71
|
+
var _a, e_1, _b, _c;
|
|
72
|
+
try {
|
|
73
|
+
for (var _d = true, _e = __asyncValues(this.listDryrunPagingPage(subscriptionId, resourceGroupName, location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
+
_c = _f.value;
|
|
75
|
+
_d = false;
|
|
76
|
+
const page = _c;
|
|
77
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
+
finally {
|
|
82
|
+
try {
|
|
83
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
84
|
+
}
|
|
85
|
+
finally { if (e_1) throw e_1.error; }
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Returns list of connector which connects to the resource, which supports to config the target
|
|
91
|
+
* service during the resource provision.
|
|
92
|
+
* @param subscriptionId The ID of the target subscription.
|
|
93
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
94
|
+
* @param location The name of Azure region.
|
|
95
|
+
* @param options The options parameters.
|
|
96
|
+
*/
|
|
97
|
+
list(subscriptionId, resourceGroupName, location, options) {
|
|
98
|
+
const iter = this.listPagingAll(subscriptionId, resourceGroupName, location, options);
|
|
99
|
+
return {
|
|
100
|
+
next() {
|
|
101
|
+
return iter.next();
|
|
102
|
+
},
|
|
103
|
+
[Symbol.asyncIterator]() {
|
|
104
|
+
return this;
|
|
105
|
+
},
|
|
106
|
+
byPage: (settings) => {
|
|
107
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
108
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
109
|
+
}
|
|
110
|
+
return this.listPagingPage(subscriptionId, resourceGroupName, location, options, settings);
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
listPagingPage(subscriptionId, resourceGroupName, location, options, settings) {
|
|
115
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
116
|
+
let result;
|
|
117
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
118
|
+
if (!continuationToken) {
|
|
119
|
+
result = yield __await(this._list(subscriptionId, resourceGroupName, location, options));
|
|
120
|
+
let page = result.value || [];
|
|
121
|
+
continuationToken = result.nextLink;
|
|
122
|
+
setContinuationToken(page, continuationToken);
|
|
123
|
+
yield yield __await(page);
|
|
124
|
+
}
|
|
125
|
+
while (continuationToken) {
|
|
126
|
+
result = yield __await(this._listNext(subscriptionId, resourceGroupName, location, continuationToken, options));
|
|
127
|
+
continuationToken = result.nextLink;
|
|
128
|
+
let page = result.value || [];
|
|
129
|
+
setContinuationToken(page, continuationToken);
|
|
130
|
+
yield yield __await(page);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
listPagingAll(subscriptionId, resourceGroupName, location, options) {
|
|
135
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
136
|
+
var _a, e_2, _b, _c;
|
|
137
|
+
try {
|
|
138
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(subscriptionId, resourceGroupName, location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
139
|
+
_c = _f.value;
|
|
140
|
+
_d = false;
|
|
141
|
+
const page = _c;
|
|
142
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
146
|
+
finally {
|
|
147
|
+
try {
|
|
148
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
149
|
+
}
|
|
150
|
+
finally { if (e_2) throw e_2.error; }
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* list dryrun jobs
|
|
156
|
+
* @param subscriptionId The ID of the target subscription.
|
|
157
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
158
|
+
* @param location The name of Azure region.
|
|
159
|
+
* @param options The options parameters.
|
|
160
|
+
*/
|
|
161
|
+
_listDryrun(subscriptionId, resourceGroupName, location, options) {
|
|
162
|
+
return this.client.sendOperationRequest({ subscriptionId, resourceGroupName, location, options }, listDryrunOperationSpec);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* get a dryrun job
|
|
166
|
+
* @param subscriptionId The ID of the target subscription.
|
|
167
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
168
|
+
* @param location The name of Azure region.
|
|
169
|
+
* @param dryrunName The name of dryrun.
|
|
170
|
+
* @param options The options parameters.
|
|
171
|
+
*/
|
|
172
|
+
getDryrun(subscriptionId, resourceGroupName, location, dryrunName, options) {
|
|
173
|
+
return this.client.sendOperationRequest({ subscriptionId, resourceGroupName, location, dryrunName, options }, getDryrunOperationSpec);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* create a dryrun job to do necessary check before actual creation
|
|
177
|
+
* @param subscriptionId The ID of the target subscription.
|
|
178
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
179
|
+
* @param location The name of Azure region.
|
|
180
|
+
* @param dryrunName The name of dryrun.
|
|
181
|
+
* @param parameters dryrun resource.
|
|
182
|
+
* @param options The options parameters.
|
|
183
|
+
*/
|
|
184
|
+
beginCreateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
return this.client.sendOperationRequest(args, spec);
|
|
188
|
+
});
|
|
189
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
var _a;
|
|
191
|
+
let currentRawResponse = undefined;
|
|
192
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
193
|
+
const callback = (rawResponse, flatResponse) => {
|
|
194
|
+
currentRawResponse = rawResponse;
|
|
195
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
196
|
+
};
|
|
197
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
198
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
199
|
+
return {
|
|
200
|
+
flatResponse,
|
|
201
|
+
rawResponse: {
|
|
202
|
+
statusCode: currentRawResponse.status,
|
|
203
|
+
body: currentRawResponse.parsedBody,
|
|
204
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
});
|
|
208
|
+
const lro = createLroSpec({
|
|
209
|
+
sendOperationFn,
|
|
210
|
+
args: {
|
|
211
|
+
subscriptionId,
|
|
212
|
+
resourceGroupName,
|
|
213
|
+
location,
|
|
214
|
+
dryrunName,
|
|
215
|
+
parameters,
|
|
216
|
+
options,
|
|
217
|
+
},
|
|
218
|
+
spec: createDryrunOperationSpec,
|
|
219
|
+
});
|
|
220
|
+
const poller = yield createHttpPoller(lro, {
|
|
221
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
222
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
223
|
+
resourceLocationConfig: "azure-async-operation",
|
|
224
|
+
});
|
|
225
|
+
yield poller.poll();
|
|
226
|
+
return poller;
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* create a dryrun job to do necessary check before actual creation
|
|
231
|
+
* @param subscriptionId The ID of the target subscription.
|
|
232
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
233
|
+
* @param location The name of Azure region.
|
|
234
|
+
* @param dryrunName The name of dryrun.
|
|
235
|
+
* @param parameters dryrun resource.
|
|
236
|
+
* @param options The options parameters.
|
|
237
|
+
*/
|
|
238
|
+
beginCreateDryrunAndWait(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
const poller = yield this.beginCreateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options);
|
|
241
|
+
return poller.pollUntilDone();
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* update a dryrun job to do necessary check before actual creation
|
|
246
|
+
* @param subscriptionId The ID of the target subscription.
|
|
247
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
248
|
+
* @param location The name of Azure region.
|
|
249
|
+
* @param dryrunName The name of dryrun.
|
|
250
|
+
* @param parameters dryrun resource.
|
|
251
|
+
* @param options The options parameters.
|
|
252
|
+
*/
|
|
253
|
+
beginUpdateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
|
|
254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
255
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
return this.client.sendOperationRequest(args, spec);
|
|
257
|
+
});
|
|
258
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
259
|
+
var _a;
|
|
260
|
+
let currentRawResponse = undefined;
|
|
261
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
262
|
+
const callback = (rawResponse, flatResponse) => {
|
|
263
|
+
currentRawResponse = rawResponse;
|
|
264
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
265
|
+
};
|
|
266
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
267
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
268
|
+
return {
|
|
269
|
+
flatResponse,
|
|
270
|
+
rawResponse: {
|
|
271
|
+
statusCode: currentRawResponse.status,
|
|
272
|
+
body: currentRawResponse.parsedBody,
|
|
273
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
274
|
+
},
|
|
275
|
+
};
|
|
276
|
+
});
|
|
277
|
+
const lro = createLroSpec({
|
|
278
|
+
sendOperationFn,
|
|
279
|
+
args: {
|
|
280
|
+
subscriptionId,
|
|
281
|
+
resourceGroupName,
|
|
282
|
+
location,
|
|
283
|
+
dryrunName,
|
|
284
|
+
parameters,
|
|
285
|
+
options,
|
|
286
|
+
},
|
|
287
|
+
spec: updateDryrunOperationSpec,
|
|
288
|
+
});
|
|
289
|
+
const poller = yield createHttpPoller(lro, {
|
|
290
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
291
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
292
|
+
resourceLocationConfig: "azure-async-operation",
|
|
293
|
+
});
|
|
294
|
+
yield poller.poll();
|
|
295
|
+
return poller;
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* update a dryrun job to do necessary check before actual creation
|
|
300
|
+
* @param subscriptionId The ID of the target subscription.
|
|
301
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
302
|
+
* @param location The name of Azure region.
|
|
303
|
+
* @param dryrunName The name of dryrun.
|
|
304
|
+
* @param parameters dryrun resource.
|
|
305
|
+
* @param options The options parameters.
|
|
306
|
+
*/
|
|
307
|
+
beginUpdateDryrunAndWait(subscriptionId, resourceGroupName, location, dryrunName, parameters, options) {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
const poller = yield this.beginUpdateDryrun(subscriptionId, resourceGroupName, location, dryrunName, parameters, options);
|
|
310
|
+
return poller.pollUntilDone();
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* delete a dryrun job
|
|
315
|
+
* @param subscriptionId The ID of the target subscription.
|
|
316
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
317
|
+
* @param location The name of Azure region.
|
|
318
|
+
* @param dryrunName The name of dryrun.
|
|
319
|
+
* @param options The options parameters.
|
|
320
|
+
*/
|
|
321
|
+
deleteDryrun(subscriptionId, resourceGroupName, location, dryrunName, options) {
|
|
322
|
+
return this.client.sendOperationRequest({ subscriptionId, resourceGroupName, location, dryrunName, options }, deleteDryrunOperationSpec);
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Returns list of connector which connects to the resource, which supports to config the target
|
|
326
|
+
* service during the resource provision.
|
|
327
|
+
* @param subscriptionId The ID of the target subscription.
|
|
328
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
329
|
+
* @param location The name of Azure region.
|
|
330
|
+
* @param options The options parameters.
|
|
331
|
+
*/
|
|
332
|
+
_list(subscriptionId, resourceGroupName, location, options) {
|
|
333
|
+
return this.client.sendOperationRequest({ subscriptionId, resourceGroupName, location, options }, listOperationSpec);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Returns Connector resource for a given name.
|
|
337
|
+
* @param subscriptionId The ID of the target subscription.
|
|
338
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
339
|
+
* @param location The name of Azure region.
|
|
340
|
+
* @param connectorName The name of resource.
|
|
341
|
+
* @param options The options parameters.
|
|
342
|
+
*/
|
|
343
|
+
get(subscriptionId, resourceGroupName, location, connectorName, options) {
|
|
344
|
+
return this.client.sendOperationRequest({ subscriptionId, resourceGroupName, location, connectorName, options }, getOperationSpec);
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Create or update Connector resource.
|
|
348
|
+
* @param subscriptionId The ID of the target subscription.
|
|
349
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
350
|
+
* @param location The name of Azure region.
|
|
351
|
+
* @param connectorName The name of resource.
|
|
352
|
+
* @param parameters Connector details.
|
|
353
|
+
* @param options The options parameters.
|
|
354
|
+
*/
|
|
355
|
+
beginCreateOrUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
|
|
356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
358
|
+
return this.client.sendOperationRequest(args, spec);
|
|
359
|
+
});
|
|
360
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
var _a;
|
|
362
|
+
let currentRawResponse = undefined;
|
|
363
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
364
|
+
const callback = (rawResponse, flatResponse) => {
|
|
365
|
+
currentRawResponse = rawResponse;
|
|
366
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
367
|
+
};
|
|
368
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
369
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
370
|
+
return {
|
|
371
|
+
flatResponse,
|
|
372
|
+
rawResponse: {
|
|
373
|
+
statusCode: currentRawResponse.status,
|
|
374
|
+
body: currentRawResponse.parsedBody,
|
|
375
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
376
|
+
},
|
|
377
|
+
};
|
|
378
|
+
});
|
|
379
|
+
const lro = createLroSpec({
|
|
380
|
+
sendOperationFn,
|
|
381
|
+
args: {
|
|
382
|
+
subscriptionId,
|
|
383
|
+
resourceGroupName,
|
|
384
|
+
location,
|
|
385
|
+
connectorName,
|
|
386
|
+
parameters,
|
|
387
|
+
options,
|
|
388
|
+
},
|
|
389
|
+
spec: createOrUpdateOperationSpec,
|
|
390
|
+
});
|
|
391
|
+
const poller = yield createHttpPoller(lro, {
|
|
392
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
393
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
394
|
+
resourceLocationConfig: "azure-async-operation",
|
|
395
|
+
});
|
|
396
|
+
yield poller.poll();
|
|
397
|
+
return poller;
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Create or update Connector resource.
|
|
402
|
+
* @param subscriptionId The ID of the target subscription.
|
|
403
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
404
|
+
* @param location The name of Azure region.
|
|
405
|
+
* @param connectorName The name of resource.
|
|
406
|
+
* @param parameters Connector details.
|
|
407
|
+
* @param options The options parameters.
|
|
408
|
+
*/
|
|
409
|
+
beginCreateOrUpdateAndWait(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
|
|
410
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
411
|
+
const poller = yield this.beginCreateOrUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options);
|
|
412
|
+
return poller.pollUntilDone();
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Delete a Connector.
|
|
417
|
+
* @param subscriptionId The ID of the target subscription.
|
|
418
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
419
|
+
* @param location The name of Azure region.
|
|
420
|
+
* @param connectorName The name of resource.
|
|
421
|
+
* @param options The options parameters.
|
|
422
|
+
*/
|
|
423
|
+
beginDelete(subscriptionId, resourceGroupName, location, connectorName, options) {
|
|
424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
425
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
426
|
+
return this.client.sendOperationRequest(args, spec);
|
|
427
|
+
});
|
|
428
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
429
|
+
var _a;
|
|
430
|
+
let currentRawResponse = undefined;
|
|
431
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
432
|
+
const callback = (rawResponse, flatResponse) => {
|
|
433
|
+
currentRawResponse = rawResponse;
|
|
434
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
435
|
+
};
|
|
436
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
437
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
438
|
+
return {
|
|
439
|
+
flatResponse,
|
|
440
|
+
rawResponse: {
|
|
441
|
+
statusCode: currentRawResponse.status,
|
|
442
|
+
body: currentRawResponse.parsedBody,
|
|
443
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
444
|
+
},
|
|
445
|
+
};
|
|
446
|
+
});
|
|
447
|
+
const lro = createLroSpec({
|
|
448
|
+
sendOperationFn,
|
|
449
|
+
args: {
|
|
450
|
+
subscriptionId,
|
|
451
|
+
resourceGroupName,
|
|
452
|
+
location,
|
|
453
|
+
connectorName,
|
|
454
|
+
options,
|
|
455
|
+
},
|
|
456
|
+
spec: deleteOperationSpec,
|
|
457
|
+
});
|
|
458
|
+
const poller = yield createHttpPoller(lro, {
|
|
459
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
460
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
461
|
+
resourceLocationConfig: "azure-async-operation",
|
|
462
|
+
});
|
|
463
|
+
yield poller.poll();
|
|
464
|
+
return poller;
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Delete a Connector.
|
|
469
|
+
* @param subscriptionId The ID of the target subscription.
|
|
470
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
471
|
+
* @param location The name of Azure region.
|
|
472
|
+
* @param connectorName The name of resource.
|
|
473
|
+
* @param options The options parameters.
|
|
474
|
+
*/
|
|
475
|
+
beginDeleteAndWait(subscriptionId, resourceGroupName, location, connectorName, options) {
|
|
476
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
477
|
+
const poller = yield this.beginDelete(subscriptionId, resourceGroupName, location, connectorName, options);
|
|
478
|
+
return poller.pollUntilDone();
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Operation to update an existing Connector.
|
|
483
|
+
* @param subscriptionId The ID of the target subscription.
|
|
484
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
485
|
+
* @param location The name of Azure region.
|
|
486
|
+
* @param connectorName The name of resource.
|
|
487
|
+
* @param parameters Connector details.
|
|
488
|
+
* @param options The options parameters.
|
|
489
|
+
*/
|
|
490
|
+
beginUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
|
|
491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
492
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
493
|
+
return this.client.sendOperationRequest(args, spec);
|
|
494
|
+
});
|
|
495
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
496
|
+
var _a;
|
|
497
|
+
let currentRawResponse = undefined;
|
|
498
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
499
|
+
const callback = (rawResponse, flatResponse) => {
|
|
500
|
+
currentRawResponse = rawResponse;
|
|
501
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
502
|
+
};
|
|
503
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
504
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
505
|
+
return {
|
|
506
|
+
flatResponse,
|
|
507
|
+
rawResponse: {
|
|
508
|
+
statusCode: currentRawResponse.status,
|
|
509
|
+
body: currentRawResponse.parsedBody,
|
|
510
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
511
|
+
},
|
|
512
|
+
};
|
|
513
|
+
});
|
|
514
|
+
const lro = createLroSpec({
|
|
515
|
+
sendOperationFn,
|
|
516
|
+
args: {
|
|
517
|
+
subscriptionId,
|
|
518
|
+
resourceGroupName,
|
|
519
|
+
location,
|
|
520
|
+
connectorName,
|
|
521
|
+
parameters,
|
|
522
|
+
options,
|
|
523
|
+
},
|
|
524
|
+
spec: updateOperationSpec,
|
|
525
|
+
});
|
|
526
|
+
const poller = yield createHttpPoller(lro, {
|
|
527
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
528
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
529
|
+
resourceLocationConfig: "azure-async-operation",
|
|
530
|
+
});
|
|
531
|
+
yield poller.poll();
|
|
532
|
+
return poller;
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Operation to update an existing Connector.
|
|
537
|
+
* @param subscriptionId The ID of the target subscription.
|
|
538
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
539
|
+
* @param location The name of Azure region.
|
|
540
|
+
* @param connectorName The name of resource.
|
|
541
|
+
* @param parameters Connector details.
|
|
542
|
+
* @param options The options parameters.
|
|
543
|
+
*/
|
|
544
|
+
beginUpdateAndWait(subscriptionId, resourceGroupName, location, connectorName, parameters, options) {
|
|
545
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
546
|
+
const poller = yield this.beginUpdate(subscriptionId, resourceGroupName, location, connectorName, parameters, options);
|
|
547
|
+
return poller.pollUntilDone();
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Validate a Connector.
|
|
552
|
+
* @param subscriptionId The ID of the target subscription.
|
|
553
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
554
|
+
* @param location The name of Azure region.
|
|
555
|
+
* @param connectorName The name of resource.
|
|
556
|
+
* @param options The options parameters.
|
|
557
|
+
*/
|
|
558
|
+
beginValidate(subscriptionId, resourceGroupName, location, connectorName, options) {
|
|
559
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
560
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
561
|
+
return this.client.sendOperationRequest(args, spec);
|
|
562
|
+
});
|
|
563
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
564
|
+
var _a;
|
|
565
|
+
let currentRawResponse = undefined;
|
|
566
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
567
|
+
const callback = (rawResponse, flatResponse) => {
|
|
568
|
+
currentRawResponse = rawResponse;
|
|
569
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
570
|
+
};
|
|
571
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
572
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
573
|
+
return {
|
|
574
|
+
flatResponse,
|
|
575
|
+
rawResponse: {
|
|
576
|
+
statusCode: currentRawResponse.status,
|
|
577
|
+
body: currentRawResponse.parsedBody,
|
|
578
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
579
|
+
},
|
|
580
|
+
};
|
|
581
|
+
});
|
|
582
|
+
const lro = createLroSpec({
|
|
583
|
+
sendOperationFn,
|
|
584
|
+
args: {
|
|
585
|
+
subscriptionId,
|
|
586
|
+
resourceGroupName,
|
|
587
|
+
location,
|
|
588
|
+
connectorName,
|
|
589
|
+
options,
|
|
590
|
+
},
|
|
591
|
+
spec: validateOperationSpec,
|
|
592
|
+
});
|
|
593
|
+
const poller = yield createHttpPoller(lro, {
|
|
594
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
595
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
596
|
+
resourceLocationConfig: "location",
|
|
597
|
+
});
|
|
598
|
+
yield poller.poll();
|
|
599
|
+
return poller;
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* Validate a Connector.
|
|
604
|
+
* @param subscriptionId The ID of the target subscription.
|
|
605
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
606
|
+
* @param location The name of Azure region.
|
|
607
|
+
* @param connectorName The name of resource.
|
|
608
|
+
* @param options The options parameters.
|
|
609
|
+
*/
|
|
610
|
+
beginValidateAndWait(subscriptionId, resourceGroupName, location, connectorName, options) {
|
|
611
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
612
|
+
const poller = yield this.beginValidate(subscriptionId, resourceGroupName, location, connectorName, options);
|
|
613
|
+
return poller.pollUntilDone();
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Generate configurations for a Connector.
|
|
618
|
+
* @param subscriptionId The ID of the target subscription.
|
|
619
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
620
|
+
* @param location The name of Azure region.
|
|
621
|
+
* @param connectorName The name of resource.
|
|
622
|
+
* @param options The options parameters.
|
|
623
|
+
*/
|
|
624
|
+
generateConfigurations(subscriptionId, resourceGroupName, location, connectorName, options) {
|
|
625
|
+
return this.client.sendOperationRequest({ subscriptionId, resourceGroupName, location, connectorName, options }, generateConfigurationsOperationSpec);
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* ListDryrunNext
|
|
629
|
+
* @param subscriptionId The ID of the target subscription.
|
|
630
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
631
|
+
* @param location The name of Azure region.
|
|
632
|
+
* @param nextLink The nextLink from the previous successful call to the ListDryrun method.
|
|
633
|
+
* @param options The options parameters.
|
|
634
|
+
*/
|
|
635
|
+
_listDryrunNext(subscriptionId, resourceGroupName, location, nextLink, options) {
|
|
636
|
+
return this.client.sendOperationRequest({ subscriptionId, resourceGroupName, location, nextLink, options }, listDryrunNextOperationSpec);
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* ListNext
|
|
640
|
+
* @param subscriptionId The ID of the target subscription.
|
|
641
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
642
|
+
* @param location The name of Azure region.
|
|
643
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
644
|
+
* @param options The options parameters.
|
|
645
|
+
*/
|
|
646
|
+
_listNext(subscriptionId, resourceGroupName, location, nextLink, options) {
|
|
647
|
+
return this.client.sendOperationRequest({ subscriptionId, resourceGroupName, location, nextLink, options }, listNextOperationSpec);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
// Operation Specifications
|
|
651
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
652
|
+
const listDryrunOperationSpec = {
|
|
653
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns",
|
|
654
|
+
httpMethod: "GET",
|
|
655
|
+
responses: {
|
|
656
|
+
200: {
|
|
657
|
+
bodyMapper: Mappers.DryrunList,
|
|
658
|
+
},
|
|
659
|
+
default: {
|
|
660
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
661
|
+
},
|
|
662
|
+
},
|
|
663
|
+
queryParameters: [Parameters.apiVersion],
|
|
664
|
+
urlParameters: [
|
|
665
|
+
Parameters.$host,
|
|
666
|
+
Parameters.subscriptionId,
|
|
667
|
+
Parameters.resourceGroupName,
|
|
668
|
+
Parameters.location,
|
|
669
|
+
],
|
|
670
|
+
headerParameters: [Parameters.accept],
|
|
671
|
+
serializer,
|
|
672
|
+
};
|
|
673
|
+
const getDryrunOperationSpec = {
|
|
674
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}",
|
|
675
|
+
httpMethod: "GET",
|
|
676
|
+
responses: {
|
|
677
|
+
200: {
|
|
678
|
+
bodyMapper: Mappers.DryrunResource,
|
|
679
|
+
},
|
|
680
|
+
default: {
|
|
681
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
682
|
+
},
|
|
683
|
+
},
|
|
684
|
+
queryParameters: [Parameters.apiVersion],
|
|
685
|
+
urlParameters: [
|
|
686
|
+
Parameters.$host,
|
|
687
|
+
Parameters.subscriptionId,
|
|
688
|
+
Parameters.resourceGroupName,
|
|
689
|
+
Parameters.location,
|
|
690
|
+
Parameters.dryrunName,
|
|
691
|
+
],
|
|
692
|
+
headerParameters: [Parameters.accept],
|
|
693
|
+
serializer,
|
|
694
|
+
};
|
|
695
|
+
const createDryrunOperationSpec = {
|
|
696
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}",
|
|
697
|
+
httpMethod: "PUT",
|
|
698
|
+
responses: {
|
|
699
|
+
200: {
|
|
700
|
+
bodyMapper: Mappers.DryrunResource,
|
|
701
|
+
},
|
|
702
|
+
201: {
|
|
703
|
+
bodyMapper: Mappers.DryrunResource,
|
|
704
|
+
},
|
|
705
|
+
202: {
|
|
706
|
+
bodyMapper: Mappers.DryrunResource,
|
|
707
|
+
},
|
|
708
|
+
204: {
|
|
709
|
+
bodyMapper: Mappers.DryrunResource,
|
|
710
|
+
},
|
|
711
|
+
default: {
|
|
712
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
713
|
+
},
|
|
714
|
+
},
|
|
715
|
+
requestBody: Parameters.parameters,
|
|
716
|
+
queryParameters: [Parameters.apiVersion],
|
|
717
|
+
urlParameters: [
|
|
718
|
+
Parameters.$host,
|
|
719
|
+
Parameters.subscriptionId,
|
|
720
|
+
Parameters.resourceGroupName,
|
|
721
|
+
Parameters.location,
|
|
722
|
+
Parameters.dryrunName,
|
|
723
|
+
],
|
|
724
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
725
|
+
mediaType: "json",
|
|
726
|
+
serializer,
|
|
727
|
+
};
|
|
728
|
+
const updateDryrunOperationSpec = {
|
|
729
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}",
|
|
730
|
+
httpMethod: "PATCH",
|
|
731
|
+
responses: {
|
|
732
|
+
200: {
|
|
733
|
+
bodyMapper: Mappers.DryrunResource,
|
|
734
|
+
},
|
|
735
|
+
201: {
|
|
736
|
+
bodyMapper: Mappers.DryrunResource,
|
|
737
|
+
},
|
|
738
|
+
202: {
|
|
739
|
+
bodyMapper: Mappers.DryrunResource,
|
|
740
|
+
},
|
|
741
|
+
204: {
|
|
742
|
+
bodyMapper: Mappers.DryrunResource,
|
|
743
|
+
},
|
|
744
|
+
default: {
|
|
745
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
746
|
+
},
|
|
747
|
+
},
|
|
748
|
+
requestBody: Parameters.parameters1,
|
|
749
|
+
queryParameters: [Parameters.apiVersion],
|
|
750
|
+
urlParameters: [
|
|
751
|
+
Parameters.$host,
|
|
752
|
+
Parameters.subscriptionId,
|
|
753
|
+
Parameters.resourceGroupName,
|
|
754
|
+
Parameters.location,
|
|
755
|
+
Parameters.dryrunName,
|
|
756
|
+
],
|
|
757
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
758
|
+
mediaType: "json",
|
|
759
|
+
serializer,
|
|
760
|
+
};
|
|
761
|
+
const deleteDryrunOperationSpec = {
|
|
762
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/dryruns/{dryrunName}",
|
|
763
|
+
httpMethod: "DELETE",
|
|
764
|
+
responses: {
|
|
765
|
+
200: {},
|
|
766
|
+
204: {},
|
|
767
|
+
default: {
|
|
768
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
769
|
+
},
|
|
770
|
+
},
|
|
771
|
+
queryParameters: [Parameters.apiVersion],
|
|
772
|
+
urlParameters: [
|
|
773
|
+
Parameters.$host,
|
|
774
|
+
Parameters.subscriptionId,
|
|
775
|
+
Parameters.resourceGroupName,
|
|
776
|
+
Parameters.location,
|
|
777
|
+
Parameters.dryrunName,
|
|
778
|
+
],
|
|
779
|
+
headerParameters: [Parameters.accept],
|
|
780
|
+
serializer,
|
|
781
|
+
};
|
|
782
|
+
const listOperationSpec = {
|
|
783
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors",
|
|
784
|
+
httpMethod: "GET",
|
|
785
|
+
responses: {
|
|
786
|
+
200: {
|
|
787
|
+
bodyMapper: Mappers.ResourceList,
|
|
788
|
+
},
|
|
789
|
+
default: {
|
|
790
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
791
|
+
},
|
|
792
|
+
},
|
|
793
|
+
queryParameters: [Parameters.apiVersion],
|
|
794
|
+
urlParameters: [
|
|
795
|
+
Parameters.$host,
|
|
796
|
+
Parameters.subscriptionId,
|
|
797
|
+
Parameters.resourceGroupName,
|
|
798
|
+
Parameters.location,
|
|
799
|
+
],
|
|
800
|
+
headerParameters: [Parameters.accept],
|
|
801
|
+
serializer,
|
|
802
|
+
};
|
|
803
|
+
const getOperationSpec = {
|
|
804
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}",
|
|
805
|
+
httpMethod: "GET",
|
|
806
|
+
responses: {
|
|
807
|
+
200: {
|
|
808
|
+
bodyMapper: Mappers.LinkerResource,
|
|
809
|
+
},
|
|
810
|
+
default: {
|
|
811
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
812
|
+
},
|
|
813
|
+
},
|
|
814
|
+
queryParameters: [Parameters.apiVersion],
|
|
815
|
+
urlParameters: [
|
|
816
|
+
Parameters.$host,
|
|
817
|
+
Parameters.subscriptionId,
|
|
818
|
+
Parameters.resourceGroupName,
|
|
819
|
+
Parameters.location,
|
|
820
|
+
Parameters.connectorName,
|
|
821
|
+
],
|
|
822
|
+
headerParameters: [Parameters.accept],
|
|
823
|
+
serializer,
|
|
824
|
+
};
|
|
825
|
+
const createOrUpdateOperationSpec = {
|
|
826
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}",
|
|
827
|
+
httpMethod: "PUT",
|
|
828
|
+
responses: {
|
|
829
|
+
200: {
|
|
830
|
+
bodyMapper: Mappers.LinkerResource,
|
|
831
|
+
},
|
|
832
|
+
201: {
|
|
833
|
+
bodyMapper: Mappers.LinkerResource,
|
|
834
|
+
},
|
|
835
|
+
202: {
|
|
836
|
+
bodyMapper: Mappers.LinkerResource,
|
|
837
|
+
},
|
|
838
|
+
204: {
|
|
839
|
+
bodyMapper: Mappers.LinkerResource,
|
|
840
|
+
},
|
|
841
|
+
default: {
|
|
842
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
843
|
+
},
|
|
844
|
+
},
|
|
845
|
+
requestBody: Parameters.parameters2,
|
|
846
|
+
queryParameters: [Parameters.apiVersion],
|
|
847
|
+
urlParameters: [
|
|
848
|
+
Parameters.$host,
|
|
849
|
+
Parameters.subscriptionId,
|
|
850
|
+
Parameters.resourceGroupName,
|
|
851
|
+
Parameters.location,
|
|
852
|
+
Parameters.connectorName,
|
|
853
|
+
],
|
|
854
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
855
|
+
mediaType: "json",
|
|
856
|
+
serializer,
|
|
857
|
+
};
|
|
858
|
+
const deleteOperationSpec = {
|
|
859
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}",
|
|
860
|
+
httpMethod: "DELETE",
|
|
861
|
+
responses: {
|
|
862
|
+
200: {},
|
|
863
|
+
201: {},
|
|
864
|
+
202: {},
|
|
865
|
+
204: {},
|
|
866
|
+
default: {
|
|
867
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
868
|
+
},
|
|
869
|
+
},
|
|
870
|
+
queryParameters: [Parameters.apiVersion],
|
|
871
|
+
urlParameters: [
|
|
872
|
+
Parameters.$host,
|
|
873
|
+
Parameters.subscriptionId,
|
|
874
|
+
Parameters.resourceGroupName,
|
|
875
|
+
Parameters.location,
|
|
876
|
+
Parameters.connectorName,
|
|
877
|
+
],
|
|
878
|
+
headerParameters: [Parameters.accept],
|
|
879
|
+
serializer,
|
|
880
|
+
};
|
|
881
|
+
const updateOperationSpec = {
|
|
882
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}",
|
|
883
|
+
httpMethod: "PATCH",
|
|
884
|
+
responses: {
|
|
885
|
+
200: {
|
|
886
|
+
bodyMapper: Mappers.LinkerResource,
|
|
887
|
+
},
|
|
888
|
+
201: {
|
|
889
|
+
bodyMapper: Mappers.LinkerResource,
|
|
890
|
+
},
|
|
891
|
+
202: {
|
|
892
|
+
bodyMapper: Mappers.LinkerResource,
|
|
893
|
+
},
|
|
894
|
+
204: {
|
|
895
|
+
bodyMapper: Mappers.LinkerResource,
|
|
896
|
+
},
|
|
897
|
+
default: {
|
|
898
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
899
|
+
},
|
|
900
|
+
},
|
|
901
|
+
requestBody: Parameters.parameters3,
|
|
902
|
+
queryParameters: [Parameters.apiVersion],
|
|
903
|
+
urlParameters: [
|
|
904
|
+
Parameters.$host,
|
|
905
|
+
Parameters.subscriptionId,
|
|
906
|
+
Parameters.resourceGroupName,
|
|
907
|
+
Parameters.location,
|
|
908
|
+
Parameters.connectorName,
|
|
909
|
+
],
|
|
910
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
911
|
+
mediaType: "json",
|
|
912
|
+
serializer,
|
|
913
|
+
};
|
|
914
|
+
const validateOperationSpec = {
|
|
915
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}/validate",
|
|
916
|
+
httpMethod: "POST",
|
|
917
|
+
responses: {
|
|
918
|
+
200: {
|
|
919
|
+
bodyMapper: Mappers.ValidateOperationResult,
|
|
920
|
+
},
|
|
921
|
+
201: {
|
|
922
|
+
bodyMapper: Mappers.ValidateOperationResult,
|
|
923
|
+
},
|
|
924
|
+
202: {
|
|
925
|
+
bodyMapper: Mappers.ValidateOperationResult,
|
|
926
|
+
},
|
|
927
|
+
204: {
|
|
928
|
+
bodyMapper: Mappers.ValidateOperationResult,
|
|
929
|
+
},
|
|
930
|
+
default: {
|
|
931
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
932
|
+
},
|
|
933
|
+
},
|
|
934
|
+
queryParameters: [Parameters.apiVersion],
|
|
935
|
+
urlParameters: [
|
|
936
|
+
Parameters.$host,
|
|
937
|
+
Parameters.subscriptionId,
|
|
938
|
+
Parameters.resourceGroupName,
|
|
939
|
+
Parameters.location,
|
|
940
|
+
Parameters.connectorName,
|
|
941
|
+
],
|
|
942
|
+
headerParameters: [Parameters.accept],
|
|
943
|
+
serializer,
|
|
944
|
+
};
|
|
945
|
+
const generateConfigurationsOperationSpec = {
|
|
946
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.ServiceLinker/locations/{location}/connectors/{connectorName}/generateConfigurations",
|
|
947
|
+
httpMethod: "POST",
|
|
948
|
+
responses: {
|
|
949
|
+
200: {
|
|
950
|
+
bodyMapper: Mappers.ConfigurationResult,
|
|
951
|
+
},
|
|
952
|
+
default: {
|
|
953
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
954
|
+
},
|
|
955
|
+
},
|
|
956
|
+
requestBody: Parameters.parameters4,
|
|
957
|
+
queryParameters: [Parameters.apiVersion],
|
|
958
|
+
urlParameters: [
|
|
959
|
+
Parameters.$host,
|
|
960
|
+
Parameters.subscriptionId,
|
|
961
|
+
Parameters.resourceGroupName,
|
|
962
|
+
Parameters.location,
|
|
963
|
+
Parameters.connectorName,
|
|
964
|
+
],
|
|
965
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
966
|
+
mediaType: "json",
|
|
967
|
+
serializer,
|
|
968
|
+
};
|
|
969
|
+
const listDryrunNextOperationSpec = {
|
|
970
|
+
path: "{nextLink}",
|
|
971
|
+
httpMethod: "GET",
|
|
972
|
+
responses: {
|
|
973
|
+
200: {
|
|
974
|
+
bodyMapper: Mappers.DryrunList,
|
|
975
|
+
},
|
|
976
|
+
default: {
|
|
977
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
978
|
+
},
|
|
979
|
+
},
|
|
980
|
+
urlParameters: [
|
|
981
|
+
Parameters.$host,
|
|
982
|
+
Parameters.subscriptionId,
|
|
983
|
+
Parameters.resourceGroupName,
|
|
984
|
+
Parameters.location,
|
|
985
|
+
Parameters.nextLink,
|
|
986
|
+
],
|
|
987
|
+
headerParameters: [Parameters.accept],
|
|
988
|
+
serializer,
|
|
989
|
+
};
|
|
990
|
+
const listNextOperationSpec = {
|
|
991
|
+
path: "{nextLink}",
|
|
992
|
+
httpMethod: "GET",
|
|
993
|
+
responses: {
|
|
994
|
+
200: {
|
|
995
|
+
bodyMapper: Mappers.ResourceList,
|
|
996
|
+
},
|
|
997
|
+
default: {
|
|
998
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
999
|
+
},
|
|
1000
|
+
},
|
|
1001
|
+
urlParameters: [
|
|
1002
|
+
Parameters.$host,
|
|
1003
|
+
Parameters.subscriptionId,
|
|
1004
|
+
Parameters.resourceGroupName,
|
|
1005
|
+
Parameters.location,
|
|
1006
|
+
Parameters.nextLink,
|
|
1007
|
+
],
|
|
1008
|
+
headerParameters: [Parameters.accept],
|
|
1009
|
+
serializer,
|
|
1010
|
+
};
|
|
1011
|
+
//# sourceMappingURL=connector.js.map
|