@azure/arm-relay 0.1.0 → 3.0.0
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 +11 -0
- package/{LICENSE.txt → LICENSE} +21 -21
- package/README.md +98 -96
- package/dist/index.js +2907 -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/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 +493 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +9 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +23 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +369 -416
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +20 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +169 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/hybridConnections.d.ts +137 -0
- package/dist-esm/src/operations/hybridConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/hybridConnections.js +571 -0
- package/dist-esm/src/operations/hybridConnections.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/namespaces.d.ts +174 -0
- package/dist-esm/src/operations/namespaces.d.ts.map +1 -0
- package/dist-esm/src/operations/namespaces.js +771 -0
- package/dist-esm/src/operations/namespaces.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/wCFRelays.d.ts +137 -0
- package/dist-esm/src/operations/wCFRelays.d.ts.map +1 -0
- package/dist-esm/src/operations/wCFRelays.js +554 -0
- package/dist-esm/src/operations/wCFRelays.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/hybridConnections.d.ts +93 -0
- package/dist-esm/src/operationsInterfaces/hybridConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/hybridConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/hybridConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/namespaces.d.ts +121 -0
- package/dist-esm/src/operationsInterfaces/namespaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/namespaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/namespaces.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/wCFRelays.d.ts +93 -0
- package/dist-esm/src/operationsInterfaces/wCFRelays.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/wCFRelays.js +9 -0
- package/dist-esm/src/operationsInterfaces/wCFRelays.js.map +1 -0
- package/dist-esm/src/relayAPI.d.ts +22 -0
- package/dist-esm/src/relayAPI.d.ts.map +1 -0
- package/dist-esm/src/relayAPI.js +55 -0
- package/dist-esm/src/relayAPI.js.map +1 -0
- package/dist-esm/test/relay_examples.d.ts +4 -0
- package/dist-esm/test/relay_examples.d.ts.map +1 -0
- package/dist-esm/test/relay_examples.js +240 -0
- package/dist-esm/test/relay_examples.js.map +1 -0
- package/package.json +71 -34
- package/review/arm-relay.api.md +539 -0
- package/rollup.config.js +184 -27
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +611 -0
- package/{lib → src}/models/mappers.ts +366 -413
- package/src/models/parameters.ts +200 -0
- package/src/operations/hybridConnections.ts +780 -0
- package/{lib → src}/operations/index.ts +3 -5
- package/src/operations/namespaces.ts +1028 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/wCFRelays.ts +763 -0
- package/src/operationsInterfaces/hybridConnections.ts +179 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/namespaces.ts +228 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/wCFRelays.ts +179 -0
- package/src/relayAPI.ts +92 -0
- package/tsconfig.json +4 -4
- package/types/arm-relay.d.ts +931 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-relay.js +0 -2593
- package/dist/arm-relay.js.map +0 -1
- package/dist/arm-relay.min.js +0 -1
- package/dist/arm-relay.min.js.map +0 -1
- package/esm/models/hybridConnectionsMappers.d.ts +0 -2
- package/esm/models/hybridConnectionsMappers.d.ts.map +0 -1
- package/esm/models/hybridConnectionsMappers.js +0 -11
- package/esm/models/hybridConnectionsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1231
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -25
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/namespacesMappers.d.ts +0 -2
- package/esm/models/namespacesMappers.d.ts.map +0 -1
- package/esm/models/namespacesMappers.js +0 -11
- package/esm/models/namespacesMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -11
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -118
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/wCFRelaysMappers.d.ts +0 -2
- package/esm/models/wCFRelaysMappers.d.ts.map +0 -1
- package/esm/models/wCFRelaysMappers.js +0 -11
- package/esm/models/wCFRelaysMappers.js.map +0 -1
- package/esm/operations/hybridConnections.d.ts +0 -310
- package/esm/operations/hybridConnections.d.ts.map +0 -1
- package/esm/operations/hybridConnections.js +0 -431
- package/esm/operations/hybridConnections.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/namespaces.d.ts +0 -348
- package/esm/operations/namespaces.d.ts.map +0 -1
- package/esm/operations/namespaces.js +0 -579
- package/esm/operations/namespaces.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/wCFRelays.d.ts +0 -310
- package/esm/operations/wCFRelays.d.ts.map +0 -1
- package/esm/operations/wCFRelays.js +0 -432
- package/esm/operations/wCFRelays.js.map +0 -1
- package/esm/relayManagementClient.d.ts +0 -22
- package/esm/relayManagementClient.d.ts.map +0 -1
- package/esm/relayManagementClient.js +0 -37
- package/esm/relayManagementClient.js.map +0 -1
- package/esm/relayManagementClientContext.d.ts +0 -17
- package/esm/relayManagementClientContext.d.ts.map +0 -1
- package/esm/relayManagementClientContext.js +0 -57
- package/esm/relayManagementClientContext.js.map +0 -1
- package/lib/models/hybridConnectionsMappers.ts +0 -28
- package/lib/models/index.ts +0 -1304
- package/lib/models/namespacesMappers.ts +0 -30
- package/lib/models/operationsMappers.ts +0 -17
- package/lib/models/parameters.ts +0 -120
- package/lib/models/wCFRelaysMappers.ts +0 -29
- package/lib/operations/hybridConnections.ts +0 -799
- package/lib/operations/namespaces.ts +0 -977
- package/lib/operations/operations.ts +0 -123
- package/lib/operations/wCFRelays.ts +0 -800
- package/lib/relayManagementClient.ts +0 -49
- package/lib/relayManagementClientContext.ts +0 -63
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { HybridConnections } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { RelayAPI } from "../relayAPI";
|
|
15
|
+
import {
|
|
16
|
+
HybridConnection,
|
|
17
|
+
HybridConnectionsListByNamespaceNextOptionalParams,
|
|
18
|
+
HybridConnectionsListByNamespaceOptionalParams,
|
|
19
|
+
AuthorizationRule,
|
|
20
|
+
HybridConnectionsListAuthorizationRulesNextOptionalParams,
|
|
21
|
+
HybridConnectionsListAuthorizationRulesOptionalParams,
|
|
22
|
+
HybridConnectionsListByNamespaceResponse,
|
|
23
|
+
HybridConnectionsCreateOrUpdateOptionalParams,
|
|
24
|
+
HybridConnectionsCreateOrUpdateResponse,
|
|
25
|
+
HybridConnectionsDeleteOptionalParams,
|
|
26
|
+
HybridConnectionsGetOptionalParams,
|
|
27
|
+
HybridConnectionsGetResponse,
|
|
28
|
+
HybridConnectionsListAuthorizationRulesResponse,
|
|
29
|
+
HybridConnectionsCreateOrUpdateAuthorizationRuleOptionalParams,
|
|
30
|
+
HybridConnectionsCreateOrUpdateAuthorizationRuleResponse,
|
|
31
|
+
HybridConnectionsDeleteAuthorizationRuleOptionalParams,
|
|
32
|
+
HybridConnectionsGetAuthorizationRuleOptionalParams,
|
|
33
|
+
HybridConnectionsGetAuthorizationRuleResponse,
|
|
34
|
+
HybridConnectionsListKeysOptionalParams,
|
|
35
|
+
HybridConnectionsListKeysResponse,
|
|
36
|
+
RegenerateAccessKeyParameters,
|
|
37
|
+
HybridConnectionsRegenerateKeysOptionalParams,
|
|
38
|
+
HybridConnectionsRegenerateKeysResponse,
|
|
39
|
+
HybridConnectionsListByNamespaceNextResponse,
|
|
40
|
+
HybridConnectionsListAuthorizationRulesNextResponse
|
|
41
|
+
} from "../models";
|
|
42
|
+
|
|
43
|
+
/// <reference lib="esnext.asynciterable" />
|
|
44
|
+
/** Class containing HybridConnections operations. */
|
|
45
|
+
export class HybridConnectionsImpl implements HybridConnections {
|
|
46
|
+
private readonly client: RelayAPI;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Initialize a new instance of the class HybridConnections class.
|
|
50
|
+
* @param client Reference to the service client
|
|
51
|
+
*/
|
|
52
|
+
constructor(client: RelayAPI) {
|
|
53
|
+
this.client = client;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Lists the hybrid connection within the namespace.
|
|
58
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
59
|
+
* @param namespaceName The namespace name
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
public listByNamespace(
|
|
63
|
+
resourceGroupName: string,
|
|
64
|
+
namespaceName: string,
|
|
65
|
+
options?: HybridConnectionsListByNamespaceOptionalParams
|
|
66
|
+
): PagedAsyncIterableIterator<HybridConnection> {
|
|
67
|
+
const iter = this.listByNamespacePagingAll(
|
|
68
|
+
resourceGroupName,
|
|
69
|
+
namespaceName,
|
|
70
|
+
options
|
|
71
|
+
);
|
|
72
|
+
return {
|
|
73
|
+
next() {
|
|
74
|
+
return iter.next();
|
|
75
|
+
},
|
|
76
|
+
[Symbol.asyncIterator]() {
|
|
77
|
+
return this;
|
|
78
|
+
},
|
|
79
|
+
byPage: () => {
|
|
80
|
+
return this.listByNamespacePagingPage(
|
|
81
|
+
resourceGroupName,
|
|
82
|
+
namespaceName,
|
|
83
|
+
options
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private async *listByNamespacePagingPage(
|
|
90
|
+
resourceGroupName: string,
|
|
91
|
+
namespaceName: string,
|
|
92
|
+
options?: HybridConnectionsListByNamespaceOptionalParams
|
|
93
|
+
): AsyncIterableIterator<HybridConnection[]> {
|
|
94
|
+
let result = await this._listByNamespace(
|
|
95
|
+
resourceGroupName,
|
|
96
|
+
namespaceName,
|
|
97
|
+
options
|
|
98
|
+
);
|
|
99
|
+
yield result.value || [];
|
|
100
|
+
let continuationToken = result.nextLink;
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listByNamespaceNext(
|
|
103
|
+
resourceGroupName,
|
|
104
|
+
namespaceName,
|
|
105
|
+
continuationToken,
|
|
106
|
+
options
|
|
107
|
+
);
|
|
108
|
+
continuationToken = result.nextLink;
|
|
109
|
+
yield result.value || [];
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
private async *listByNamespacePagingAll(
|
|
114
|
+
resourceGroupName: string,
|
|
115
|
+
namespaceName: string,
|
|
116
|
+
options?: HybridConnectionsListByNamespaceOptionalParams
|
|
117
|
+
): AsyncIterableIterator<HybridConnection> {
|
|
118
|
+
for await (const page of this.listByNamespacePagingPage(
|
|
119
|
+
resourceGroupName,
|
|
120
|
+
namespaceName,
|
|
121
|
+
options
|
|
122
|
+
)) {
|
|
123
|
+
yield* page;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Authorization rules for a hybrid connection.
|
|
129
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
130
|
+
* @param namespaceName The namespace name
|
|
131
|
+
* @param hybridConnectionName The hybrid connection name.
|
|
132
|
+
* @param options The options parameters.
|
|
133
|
+
*/
|
|
134
|
+
public listAuthorizationRules(
|
|
135
|
+
resourceGroupName: string,
|
|
136
|
+
namespaceName: string,
|
|
137
|
+
hybridConnectionName: string,
|
|
138
|
+
options?: HybridConnectionsListAuthorizationRulesOptionalParams
|
|
139
|
+
): PagedAsyncIterableIterator<AuthorizationRule> {
|
|
140
|
+
const iter = this.listAuthorizationRulesPagingAll(
|
|
141
|
+
resourceGroupName,
|
|
142
|
+
namespaceName,
|
|
143
|
+
hybridConnectionName,
|
|
144
|
+
options
|
|
145
|
+
);
|
|
146
|
+
return {
|
|
147
|
+
next() {
|
|
148
|
+
return iter.next();
|
|
149
|
+
},
|
|
150
|
+
[Symbol.asyncIterator]() {
|
|
151
|
+
return this;
|
|
152
|
+
},
|
|
153
|
+
byPage: () => {
|
|
154
|
+
return this.listAuthorizationRulesPagingPage(
|
|
155
|
+
resourceGroupName,
|
|
156
|
+
namespaceName,
|
|
157
|
+
hybridConnectionName,
|
|
158
|
+
options
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
private async *listAuthorizationRulesPagingPage(
|
|
165
|
+
resourceGroupName: string,
|
|
166
|
+
namespaceName: string,
|
|
167
|
+
hybridConnectionName: string,
|
|
168
|
+
options?: HybridConnectionsListAuthorizationRulesOptionalParams
|
|
169
|
+
): AsyncIterableIterator<AuthorizationRule[]> {
|
|
170
|
+
let result = await this._listAuthorizationRules(
|
|
171
|
+
resourceGroupName,
|
|
172
|
+
namespaceName,
|
|
173
|
+
hybridConnectionName,
|
|
174
|
+
options
|
|
175
|
+
);
|
|
176
|
+
yield result.value || [];
|
|
177
|
+
let continuationToken = result.nextLink;
|
|
178
|
+
while (continuationToken) {
|
|
179
|
+
result = await this._listAuthorizationRulesNext(
|
|
180
|
+
resourceGroupName,
|
|
181
|
+
namespaceName,
|
|
182
|
+
hybridConnectionName,
|
|
183
|
+
continuationToken,
|
|
184
|
+
options
|
|
185
|
+
);
|
|
186
|
+
continuationToken = result.nextLink;
|
|
187
|
+
yield result.value || [];
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
private async *listAuthorizationRulesPagingAll(
|
|
192
|
+
resourceGroupName: string,
|
|
193
|
+
namespaceName: string,
|
|
194
|
+
hybridConnectionName: string,
|
|
195
|
+
options?: HybridConnectionsListAuthorizationRulesOptionalParams
|
|
196
|
+
): AsyncIterableIterator<AuthorizationRule> {
|
|
197
|
+
for await (const page of this.listAuthorizationRulesPagingPage(
|
|
198
|
+
resourceGroupName,
|
|
199
|
+
namespaceName,
|
|
200
|
+
hybridConnectionName,
|
|
201
|
+
options
|
|
202
|
+
)) {
|
|
203
|
+
yield* page;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Lists the hybrid connection within the namespace.
|
|
209
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
210
|
+
* @param namespaceName The namespace name
|
|
211
|
+
* @param options The options parameters.
|
|
212
|
+
*/
|
|
213
|
+
private _listByNamespace(
|
|
214
|
+
resourceGroupName: string,
|
|
215
|
+
namespaceName: string,
|
|
216
|
+
options?: HybridConnectionsListByNamespaceOptionalParams
|
|
217
|
+
): Promise<HybridConnectionsListByNamespaceResponse> {
|
|
218
|
+
return this.client.sendOperationRequest(
|
|
219
|
+
{ resourceGroupName, namespaceName, options },
|
|
220
|
+
listByNamespaceOperationSpec
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Creates or updates a service hybrid connection. This operation is idempotent.
|
|
226
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
227
|
+
* @param namespaceName The namespace name
|
|
228
|
+
* @param hybridConnectionName The hybrid connection name.
|
|
229
|
+
* @param parameters Parameters supplied to create a hybrid connection.
|
|
230
|
+
* @param options The options parameters.
|
|
231
|
+
*/
|
|
232
|
+
createOrUpdate(
|
|
233
|
+
resourceGroupName: string,
|
|
234
|
+
namespaceName: string,
|
|
235
|
+
hybridConnectionName: string,
|
|
236
|
+
parameters: HybridConnection,
|
|
237
|
+
options?: HybridConnectionsCreateOrUpdateOptionalParams
|
|
238
|
+
): Promise<HybridConnectionsCreateOrUpdateResponse> {
|
|
239
|
+
return this.client.sendOperationRequest(
|
|
240
|
+
{
|
|
241
|
+
resourceGroupName,
|
|
242
|
+
namespaceName,
|
|
243
|
+
hybridConnectionName,
|
|
244
|
+
parameters,
|
|
245
|
+
options
|
|
246
|
+
},
|
|
247
|
+
createOrUpdateOperationSpec
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Deletes a hybrid connection.
|
|
253
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
254
|
+
* @param namespaceName The namespace name
|
|
255
|
+
* @param hybridConnectionName The hybrid connection name.
|
|
256
|
+
* @param options The options parameters.
|
|
257
|
+
*/
|
|
258
|
+
delete(
|
|
259
|
+
resourceGroupName: string,
|
|
260
|
+
namespaceName: string,
|
|
261
|
+
hybridConnectionName: string,
|
|
262
|
+
options?: HybridConnectionsDeleteOptionalParams
|
|
263
|
+
): Promise<void> {
|
|
264
|
+
return this.client.sendOperationRequest(
|
|
265
|
+
{ resourceGroupName, namespaceName, hybridConnectionName, options },
|
|
266
|
+
deleteOperationSpec
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Returns the description for the specified hybrid connection.
|
|
272
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
273
|
+
* @param namespaceName The namespace name
|
|
274
|
+
* @param hybridConnectionName The hybrid connection name.
|
|
275
|
+
* @param options The options parameters.
|
|
276
|
+
*/
|
|
277
|
+
get(
|
|
278
|
+
resourceGroupName: string,
|
|
279
|
+
namespaceName: string,
|
|
280
|
+
hybridConnectionName: string,
|
|
281
|
+
options?: HybridConnectionsGetOptionalParams
|
|
282
|
+
): Promise<HybridConnectionsGetResponse> {
|
|
283
|
+
return this.client.sendOperationRequest(
|
|
284
|
+
{ resourceGroupName, namespaceName, hybridConnectionName, options },
|
|
285
|
+
getOperationSpec
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Authorization rules for a hybrid connection.
|
|
291
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
292
|
+
* @param namespaceName The namespace name
|
|
293
|
+
* @param hybridConnectionName The hybrid connection name.
|
|
294
|
+
* @param options The options parameters.
|
|
295
|
+
*/
|
|
296
|
+
private _listAuthorizationRules(
|
|
297
|
+
resourceGroupName: string,
|
|
298
|
+
namespaceName: string,
|
|
299
|
+
hybridConnectionName: string,
|
|
300
|
+
options?: HybridConnectionsListAuthorizationRulesOptionalParams
|
|
301
|
+
): Promise<HybridConnectionsListAuthorizationRulesResponse> {
|
|
302
|
+
return this.client.sendOperationRequest(
|
|
303
|
+
{ resourceGroupName, namespaceName, hybridConnectionName, options },
|
|
304
|
+
listAuthorizationRulesOperationSpec
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Creates or updates an authorization rule for a hybrid connection.
|
|
310
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
311
|
+
* @param namespaceName The namespace name
|
|
312
|
+
* @param hybridConnectionName The hybrid connection name.
|
|
313
|
+
* @param authorizationRuleName The authorization rule name.
|
|
314
|
+
* @param parameters The authorization rule parameters.
|
|
315
|
+
* @param options The options parameters.
|
|
316
|
+
*/
|
|
317
|
+
createOrUpdateAuthorizationRule(
|
|
318
|
+
resourceGroupName: string,
|
|
319
|
+
namespaceName: string,
|
|
320
|
+
hybridConnectionName: string,
|
|
321
|
+
authorizationRuleName: string,
|
|
322
|
+
parameters: AuthorizationRule,
|
|
323
|
+
options?: HybridConnectionsCreateOrUpdateAuthorizationRuleOptionalParams
|
|
324
|
+
): Promise<HybridConnectionsCreateOrUpdateAuthorizationRuleResponse> {
|
|
325
|
+
return this.client.sendOperationRequest(
|
|
326
|
+
{
|
|
327
|
+
resourceGroupName,
|
|
328
|
+
namespaceName,
|
|
329
|
+
hybridConnectionName,
|
|
330
|
+
authorizationRuleName,
|
|
331
|
+
parameters,
|
|
332
|
+
options
|
|
333
|
+
},
|
|
334
|
+
createOrUpdateAuthorizationRuleOperationSpec
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Deletes a hybrid connection authorization rule.
|
|
340
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
341
|
+
* @param namespaceName The namespace name
|
|
342
|
+
* @param hybridConnectionName The hybrid connection name.
|
|
343
|
+
* @param authorizationRuleName The authorization rule name.
|
|
344
|
+
* @param options The options parameters.
|
|
345
|
+
*/
|
|
346
|
+
deleteAuthorizationRule(
|
|
347
|
+
resourceGroupName: string,
|
|
348
|
+
namespaceName: string,
|
|
349
|
+
hybridConnectionName: string,
|
|
350
|
+
authorizationRuleName: string,
|
|
351
|
+
options?: HybridConnectionsDeleteAuthorizationRuleOptionalParams
|
|
352
|
+
): Promise<void> {
|
|
353
|
+
return this.client.sendOperationRequest(
|
|
354
|
+
{
|
|
355
|
+
resourceGroupName,
|
|
356
|
+
namespaceName,
|
|
357
|
+
hybridConnectionName,
|
|
358
|
+
authorizationRuleName,
|
|
359
|
+
options
|
|
360
|
+
},
|
|
361
|
+
deleteAuthorizationRuleOperationSpec
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Hybrid connection authorization rule for a hybrid connection by name.
|
|
367
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
368
|
+
* @param namespaceName The namespace name
|
|
369
|
+
* @param hybridConnectionName The hybrid connection name.
|
|
370
|
+
* @param authorizationRuleName The authorization rule name.
|
|
371
|
+
* @param options The options parameters.
|
|
372
|
+
*/
|
|
373
|
+
getAuthorizationRule(
|
|
374
|
+
resourceGroupName: string,
|
|
375
|
+
namespaceName: string,
|
|
376
|
+
hybridConnectionName: string,
|
|
377
|
+
authorizationRuleName: string,
|
|
378
|
+
options?: HybridConnectionsGetAuthorizationRuleOptionalParams
|
|
379
|
+
): Promise<HybridConnectionsGetAuthorizationRuleResponse> {
|
|
380
|
+
return this.client.sendOperationRequest(
|
|
381
|
+
{
|
|
382
|
+
resourceGroupName,
|
|
383
|
+
namespaceName,
|
|
384
|
+
hybridConnectionName,
|
|
385
|
+
authorizationRuleName,
|
|
386
|
+
options
|
|
387
|
+
},
|
|
388
|
+
getAuthorizationRuleOperationSpec
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Primary and secondary connection strings to the hybrid connection.
|
|
394
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
395
|
+
* @param namespaceName The namespace name
|
|
396
|
+
* @param hybridConnectionName The hybrid connection name.
|
|
397
|
+
* @param authorizationRuleName The authorization rule name.
|
|
398
|
+
* @param options The options parameters.
|
|
399
|
+
*/
|
|
400
|
+
listKeys(
|
|
401
|
+
resourceGroupName: string,
|
|
402
|
+
namespaceName: string,
|
|
403
|
+
hybridConnectionName: string,
|
|
404
|
+
authorizationRuleName: string,
|
|
405
|
+
options?: HybridConnectionsListKeysOptionalParams
|
|
406
|
+
): Promise<HybridConnectionsListKeysResponse> {
|
|
407
|
+
return this.client.sendOperationRequest(
|
|
408
|
+
{
|
|
409
|
+
resourceGroupName,
|
|
410
|
+
namespaceName,
|
|
411
|
+
hybridConnectionName,
|
|
412
|
+
authorizationRuleName,
|
|
413
|
+
options
|
|
414
|
+
},
|
|
415
|
+
listKeysOperationSpec
|
|
416
|
+
);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Regenerates the primary or secondary connection strings to the hybrid connection.
|
|
421
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
422
|
+
* @param namespaceName The namespace name
|
|
423
|
+
* @param hybridConnectionName The hybrid connection name.
|
|
424
|
+
* @param authorizationRuleName The authorization rule name.
|
|
425
|
+
* @param parameters Parameters supplied to regenerate authorization rule.
|
|
426
|
+
* @param options The options parameters.
|
|
427
|
+
*/
|
|
428
|
+
regenerateKeys(
|
|
429
|
+
resourceGroupName: string,
|
|
430
|
+
namespaceName: string,
|
|
431
|
+
hybridConnectionName: string,
|
|
432
|
+
authorizationRuleName: string,
|
|
433
|
+
parameters: RegenerateAccessKeyParameters,
|
|
434
|
+
options?: HybridConnectionsRegenerateKeysOptionalParams
|
|
435
|
+
): Promise<HybridConnectionsRegenerateKeysResponse> {
|
|
436
|
+
return this.client.sendOperationRequest(
|
|
437
|
+
{
|
|
438
|
+
resourceGroupName,
|
|
439
|
+
namespaceName,
|
|
440
|
+
hybridConnectionName,
|
|
441
|
+
authorizationRuleName,
|
|
442
|
+
parameters,
|
|
443
|
+
options
|
|
444
|
+
},
|
|
445
|
+
regenerateKeysOperationSpec
|
|
446
|
+
);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* ListByNamespaceNext
|
|
451
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
452
|
+
* @param namespaceName The namespace name
|
|
453
|
+
* @param nextLink The nextLink from the previous successful call to the ListByNamespace method.
|
|
454
|
+
* @param options The options parameters.
|
|
455
|
+
*/
|
|
456
|
+
private _listByNamespaceNext(
|
|
457
|
+
resourceGroupName: string,
|
|
458
|
+
namespaceName: string,
|
|
459
|
+
nextLink: string,
|
|
460
|
+
options?: HybridConnectionsListByNamespaceNextOptionalParams
|
|
461
|
+
): Promise<HybridConnectionsListByNamespaceNextResponse> {
|
|
462
|
+
return this.client.sendOperationRequest(
|
|
463
|
+
{ resourceGroupName, namespaceName, nextLink, options },
|
|
464
|
+
listByNamespaceNextOperationSpec
|
|
465
|
+
);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* ListAuthorizationRulesNext
|
|
470
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
471
|
+
* @param namespaceName The namespace name
|
|
472
|
+
* @param hybridConnectionName The hybrid connection name.
|
|
473
|
+
* @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method.
|
|
474
|
+
* @param options The options parameters.
|
|
475
|
+
*/
|
|
476
|
+
private _listAuthorizationRulesNext(
|
|
477
|
+
resourceGroupName: string,
|
|
478
|
+
namespaceName: string,
|
|
479
|
+
hybridConnectionName: string,
|
|
480
|
+
nextLink: string,
|
|
481
|
+
options?: HybridConnectionsListAuthorizationRulesNextOptionalParams
|
|
482
|
+
): Promise<HybridConnectionsListAuthorizationRulesNextResponse> {
|
|
483
|
+
return this.client.sendOperationRequest(
|
|
484
|
+
{
|
|
485
|
+
resourceGroupName,
|
|
486
|
+
namespaceName,
|
|
487
|
+
hybridConnectionName,
|
|
488
|
+
nextLink,
|
|
489
|
+
options
|
|
490
|
+
},
|
|
491
|
+
listAuthorizationRulesNextOperationSpec
|
|
492
|
+
);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
// Operation Specifications
|
|
496
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
497
|
+
|
|
498
|
+
const listByNamespaceOperationSpec: coreClient.OperationSpec = {
|
|
499
|
+
path:
|
|
500
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections",
|
|
501
|
+
httpMethod: "GET",
|
|
502
|
+
responses: {
|
|
503
|
+
200: {
|
|
504
|
+
bodyMapper: Mappers.HybridConnectionListResult
|
|
505
|
+
},
|
|
506
|
+
default: {
|
|
507
|
+
bodyMapper: Mappers.ErrorResponse
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
queryParameters: [Parameters.apiVersion],
|
|
511
|
+
urlParameters: [
|
|
512
|
+
Parameters.$host,
|
|
513
|
+
Parameters.subscriptionId,
|
|
514
|
+
Parameters.resourceGroupName,
|
|
515
|
+
Parameters.namespaceName
|
|
516
|
+
],
|
|
517
|
+
headerParameters: [Parameters.accept],
|
|
518
|
+
serializer
|
|
519
|
+
};
|
|
520
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
521
|
+
path:
|
|
522
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}",
|
|
523
|
+
httpMethod: "PUT",
|
|
524
|
+
responses: {
|
|
525
|
+
200: {
|
|
526
|
+
bodyMapper: Mappers.HybridConnection
|
|
527
|
+
},
|
|
528
|
+
default: {
|
|
529
|
+
bodyMapper: Mappers.ErrorResponse
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
requestBody: Parameters.parameters5,
|
|
533
|
+
queryParameters: [Parameters.apiVersion],
|
|
534
|
+
urlParameters: [
|
|
535
|
+
Parameters.$host,
|
|
536
|
+
Parameters.subscriptionId,
|
|
537
|
+
Parameters.resourceGroupName,
|
|
538
|
+
Parameters.namespaceName,
|
|
539
|
+
Parameters.hybridConnectionName
|
|
540
|
+
],
|
|
541
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
542
|
+
mediaType: "json",
|
|
543
|
+
serializer
|
|
544
|
+
};
|
|
545
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
546
|
+
path:
|
|
547
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}",
|
|
548
|
+
httpMethod: "DELETE",
|
|
549
|
+
responses: {
|
|
550
|
+
200: {},
|
|
551
|
+
204: {},
|
|
552
|
+
default: {
|
|
553
|
+
bodyMapper: Mappers.ErrorResponse
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
queryParameters: [Parameters.apiVersion],
|
|
557
|
+
urlParameters: [
|
|
558
|
+
Parameters.$host,
|
|
559
|
+
Parameters.subscriptionId,
|
|
560
|
+
Parameters.resourceGroupName,
|
|
561
|
+
Parameters.namespaceName,
|
|
562
|
+
Parameters.hybridConnectionName
|
|
563
|
+
],
|
|
564
|
+
headerParameters: [Parameters.accept],
|
|
565
|
+
serializer
|
|
566
|
+
};
|
|
567
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
568
|
+
path:
|
|
569
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}",
|
|
570
|
+
httpMethod: "GET",
|
|
571
|
+
responses: {
|
|
572
|
+
200: {
|
|
573
|
+
bodyMapper: Mappers.HybridConnection
|
|
574
|
+
},
|
|
575
|
+
default: {
|
|
576
|
+
bodyMapper: Mappers.ErrorResponse
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
queryParameters: [Parameters.apiVersion],
|
|
580
|
+
urlParameters: [
|
|
581
|
+
Parameters.$host,
|
|
582
|
+
Parameters.subscriptionId,
|
|
583
|
+
Parameters.resourceGroupName,
|
|
584
|
+
Parameters.namespaceName,
|
|
585
|
+
Parameters.hybridConnectionName
|
|
586
|
+
],
|
|
587
|
+
headerParameters: [Parameters.accept],
|
|
588
|
+
serializer
|
|
589
|
+
};
|
|
590
|
+
const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = {
|
|
591
|
+
path:
|
|
592
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules",
|
|
593
|
+
httpMethod: "GET",
|
|
594
|
+
responses: {
|
|
595
|
+
200: {
|
|
596
|
+
bodyMapper: Mappers.AuthorizationRuleListResult
|
|
597
|
+
},
|
|
598
|
+
default: {
|
|
599
|
+
bodyMapper: Mappers.ErrorResponse
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
queryParameters: [Parameters.apiVersion],
|
|
603
|
+
urlParameters: [
|
|
604
|
+
Parameters.$host,
|
|
605
|
+
Parameters.subscriptionId,
|
|
606
|
+
Parameters.resourceGroupName,
|
|
607
|
+
Parameters.namespaceName,
|
|
608
|
+
Parameters.hybridConnectionName
|
|
609
|
+
],
|
|
610
|
+
headerParameters: [Parameters.accept],
|
|
611
|
+
serializer
|
|
612
|
+
};
|
|
613
|
+
const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = {
|
|
614
|
+
path:
|
|
615
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}",
|
|
616
|
+
httpMethod: "PUT",
|
|
617
|
+
responses: {
|
|
618
|
+
200: {
|
|
619
|
+
bodyMapper: Mappers.AuthorizationRule
|
|
620
|
+
},
|
|
621
|
+
default: {
|
|
622
|
+
bodyMapper: Mappers.ErrorResponse
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
requestBody: Parameters.parameters3,
|
|
626
|
+
queryParameters: [Parameters.apiVersion],
|
|
627
|
+
urlParameters: [
|
|
628
|
+
Parameters.$host,
|
|
629
|
+
Parameters.subscriptionId,
|
|
630
|
+
Parameters.resourceGroupName,
|
|
631
|
+
Parameters.namespaceName,
|
|
632
|
+
Parameters.authorizationRuleName,
|
|
633
|
+
Parameters.hybridConnectionName
|
|
634
|
+
],
|
|
635
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
636
|
+
mediaType: "json",
|
|
637
|
+
serializer
|
|
638
|
+
};
|
|
639
|
+
const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = {
|
|
640
|
+
path:
|
|
641
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}",
|
|
642
|
+
httpMethod: "DELETE",
|
|
643
|
+
responses: {
|
|
644
|
+
200: {},
|
|
645
|
+
204: {},
|
|
646
|
+
default: {
|
|
647
|
+
bodyMapper: Mappers.ErrorResponse
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
queryParameters: [Parameters.apiVersion],
|
|
651
|
+
urlParameters: [
|
|
652
|
+
Parameters.$host,
|
|
653
|
+
Parameters.subscriptionId,
|
|
654
|
+
Parameters.resourceGroupName,
|
|
655
|
+
Parameters.namespaceName,
|
|
656
|
+
Parameters.authorizationRuleName,
|
|
657
|
+
Parameters.hybridConnectionName
|
|
658
|
+
],
|
|
659
|
+
headerParameters: [Parameters.accept],
|
|
660
|
+
serializer
|
|
661
|
+
};
|
|
662
|
+
const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = {
|
|
663
|
+
path:
|
|
664
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}",
|
|
665
|
+
httpMethod: "GET",
|
|
666
|
+
responses: {
|
|
667
|
+
200: {
|
|
668
|
+
bodyMapper: Mappers.AuthorizationRule
|
|
669
|
+
},
|
|
670
|
+
default: {
|
|
671
|
+
bodyMapper: Mappers.ErrorResponse
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
queryParameters: [Parameters.apiVersion],
|
|
675
|
+
urlParameters: [
|
|
676
|
+
Parameters.$host,
|
|
677
|
+
Parameters.subscriptionId,
|
|
678
|
+
Parameters.resourceGroupName,
|
|
679
|
+
Parameters.namespaceName,
|
|
680
|
+
Parameters.authorizationRuleName,
|
|
681
|
+
Parameters.hybridConnectionName
|
|
682
|
+
],
|
|
683
|
+
headerParameters: [Parameters.accept],
|
|
684
|
+
serializer
|
|
685
|
+
};
|
|
686
|
+
const listKeysOperationSpec: coreClient.OperationSpec = {
|
|
687
|
+
path:
|
|
688
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}/listKeys",
|
|
689
|
+
httpMethod: "POST",
|
|
690
|
+
responses: {
|
|
691
|
+
200: {
|
|
692
|
+
bodyMapper: Mappers.AccessKeys
|
|
693
|
+
},
|
|
694
|
+
default: {
|
|
695
|
+
bodyMapper: Mappers.ErrorResponse
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
queryParameters: [Parameters.apiVersion],
|
|
699
|
+
urlParameters: [
|
|
700
|
+
Parameters.$host,
|
|
701
|
+
Parameters.subscriptionId,
|
|
702
|
+
Parameters.resourceGroupName,
|
|
703
|
+
Parameters.namespaceName,
|
|
704
|
+
Parameters.authorizationRuleName,
|
|
705
|
+
Parameters.hybridConnectionName
|
|
706
|
+
],
|
|
707
|
+
headerParameters: [Parameters.accept],
|
|
708
|
+
serializer
|
|
709
|
+
};
|
|
710
|
+
const regenerateKeysOperationSpec: coreClient.OperationSpec = {
|
|
711
|
+
path:
|
|
712
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}/authorizationRules/{authorizationRuleName}/regenerateKeys",
|
|
713
|
+
httpMethod: "POST",
|
|
714
|
+
responses: {
|
|
715
|
+
200: {
|
|
716
|
+
bodyMapper: Mappers.AccessKeys
|
|
717
|
+
},
|
|
718
|
+
default: {
|
|
719
|
+
bodyMapper: Mappers.ErrorResponse
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
requestBody: Parameters.parameters4,
|
|
723
|
+
queryParameters: [Parameters.apiVersion],
|
|
724
|
+
urlParameters: [
|
|
725
|
+
Parameters.$host,
|
|
726
|
+
Parameters.subscriptionId,
|
|
727
|
+
Parameters.resourceGroupName,
|
|
728
|
+
Parameters.namespaceName,
|
|
729
|
+
Parameters.authorizationRuleName,
|
|
730
|
+
Parameters.hybridConnectionName
|
|
731
|
+
],
|
|
732
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
733
|
+
mediaType: "json",
|
|
734
|
+
serializer
|
|
735
|
+
};
|
|
736
|
+
const listByNamespaceNextOperationSpec: coreClient.OperationSpec = {
|
|
737
|
+
path: "{nextLink}",
|
|
738
|
+
httpMethod: "GET",
|
|
739
|
+
responses: {
|
|
740
|
+
200: {
|
|
741
|
+
bodyMapper: Mappers.HybridConnectionListResult
|
|
742
|
+
},
|
|
743
|
+
default: {
|
|
744
|
+
bodyMapper: Mappers.ErrorResponse
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
queryParameters: [Parameters.apiVersion],
|
|
748
|
+
urlParameters: [
|
|
749
|
+
Parameters.$host,
|
|
750
|
+
Parameters.nextLink,
|
|
751
|
+
Parameters.subscriptionId,
|
|
752
|
+
Parameters.resourceGroupName,
|
|
753
|
+
Parameters.namespaceName
|
|
754
|
+
],
|
|
755
|
+
headerParameters: [Parameters.accept],
|
|
756
|
+
serializer
|
|
757
|
+
};
|
|
758
|
+
const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = {
|
|
759
|
+
path: "{nextLink}",
|
|
760
|
+
httpMethod: "GET",
|
|
761
|
+
responses: {
|
|
762
|
+
200: {
|
|
763
|
+
bodyMapper: Mappers.AuthorizationRuleListResult
|
|
764
|
+
},
|
|
765
|
+
default: {
|
|
766
|
+
bodyMapper: Mappers.ErrorResponse
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
queryParameters: [Parameters.apiVersion],
|
|
770
|
+
urlParameters: [
|
|
771
|
+
Parameters.$host,
|
|
772
|
+
Parameters.nextLink,
|
|
773
|
+
Parameters.subscriptionId,
|
|
774
|
+
Parameters.resourceGroupName,
|
|
775
|
+
Parameters.namespaceName,
|
|
776
|
+
Parameters.hybridConnectionName
|
|
777
|
+
],
|
|
778
|
+
headerParameters: [Parameters.accept],
|
|
779
|
+
serializer
|
|
780
|
+
};
|