@azure/arm-relay 2.2.1 → 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.
Files changed (160) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +69 -80
  4. package/dist/index.js +2907 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +493 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +9 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +23 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +369 -416
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +20 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +169 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/hybridConnections.d.ts +137 -0
  29. package/dist-esm/src/operations/hybridConnections.d.ts.map +1 -0
  30. package/dist-esm/src/operations/hybridConnections.js +571 -0
  31. package/dist-esm/src/operations/hybridConnections.js.map +1 -0
  32. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/{esm → dist-esm/src}/operations/index.js +3 -5
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/src/operations/namespaces.d.ts +174 -0
  37. package/dist-esm/src/operations/namespaces.d.ts.map +1 -0
  38. package/dist-esm/src/operations/namespaces.js +771 -0
  39. package/dist-esm/src/operations/namespaces.js.map +1 -0
  40. package/dist-esm/src/operations/operations.d.ts +32 -0
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/operations.js +120 -0
  43. package/dist-esm/src/operations/operations.js.map +1 -0
  44. package/dist-esm/src/operations/wCFRelays.d.ts +137 -0
  45. package/dist-esm/src/operations/wCFRelays.d.ts.map +1 -0
  46. package/dist-esm/src/operations/wCFRelays.js +554 -0
  47. package/dist-esm/src/operations/wCFRelays.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/hybridConnections.d.ts +93 -0
  49. package/dist-esm/src/operationsInterfaces/hybridConnections.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/hybridConnections.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/hybridConnections.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  53. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  55. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/namespaces.d.ts +121 -0
  57. package/dist-esm/src/operationsInterfaces/namespaces.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/namespaces.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/namespaces.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  61. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/wCFRelays.d.ts +93 -0
  65. package/dist-esm/src/operationsInterfaces/wCFRelays.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/wCFRelays.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/wCFRelays.js.map +1 -0
  68. package/dist-esm/src/relayAPI.d.ts +22 -0
  69. package/dist-esm/src/relayAPI.d.ts.map +1 -0
  70. package/dist-esm/src/relayAPI.js +55 -0
  71. package/dist-esm/src/relayAPI.js.map +1 -0
  72. package/dist-esm/test/relay_examples.d.ts +4 -0
  73. package/dist-esm/test/relay_examples.d.ts.map +1 -0
  74. package/dist-esm/test/relay_examples.js +240 -0
  75. package/dist-esm/test/relay_examples.js.map +1 -0
  76. package/package.json +68 -33
  77. package/review/arm-relay.api.md +539 -0
  78. package/rollup.config.js +184 -27
  79. package/src/index.ts +12 -0
  80. package/src/lroImpl.ts +34 -0
  81. package/src/models/index.ts +470 -1163
  82. package/src/models/mappers.ts +366 -413
  83. package/src/models/parameters.ts +126 -46
  84. package/src/operations/hybridConnections.ts +473 -492
  85. package/src/operations/index.ts +3 -5
  86. package/src/operations/namespaces.ts +702 -651
  87. package/src/operations/operations.ts +87 -73
  88. package/src/operations/wCFRelays.ts +470 -507
  89. package/src/operationsInterfaces/hybridConnections.ts +179 -0
  90. package/src/operationsInterfaces/index.ts +12 -0
  91. package/src/operationsInterfaces/namespaces.ts +228 -0
  92. package/src/operationsInterfaces/operations.ts +22 -0
  93. package/src/operationsInterfaces/wCFRelays.ts +179 -0
  94. package/src/relayAPI.ts +92 -0
  95. package/tsconfig.json +4 -4
  96. package/types/arm-relay.d.ts +931 -0
  97. package/types/tsdoc-metadata.json +11 -0
  98. package/dist/arm-relay.js +0 -2603
  99. package/dist/arm-relay.js.map +0 -1
  100. package/dist/arm-relay.min.js +0 -1
  101. package/dist/arm-relay.min.js.map +0 -1
  102. package/esm/models/hybridConnectionsMappers.d.ts +0 -2
  103. package/esm/models/hybridConnectionsMappers.d.ts.map +0 -1
  104. package/esm/models/hybridConnectionsMappers.js +0 -11
  105. package/esm/models/hybridConnectionsMappers.js.map +0 -1
  106. package/esm/models/index.d.ts +0 -1231
  107. package/esm/models/index.d.ts.map +0 -1
  108. package/esm/models/index.js +0 -10
  109. package/esm/models/index.js.map +0 -1
  110. package/esm/models/mappers.d.ts +0 -25
  111. package/esm/models/mappers.d.ts.map +0 -1
  112. package/esm/models/mappers.js.map +0 -1
  113. package/esm/models/namespacesMappers.d.ts +0 -2
  114. package/esm/models/namespacesMappers.d.ts.map +0 -1
  115. package/esm/models/namespacesMappers.js +0 -11
  116. package/esm/models/namespacesMappers.js.map +0 -1
  117. package/esm/models/operationsMappers.d.ts +0 -2
  118. package/esm/models/operationsMappers.d.ts.map +0 -1
  119. package/esm/models/operationsMappers.js +0 -11
  120. package/esm/models/operationsMappers.js.map +0 -1
  121. package/esm/models/parameters.d.ts +0 -11
  122. package/esm/models/parameters.d.ts.map +0 -1
  123. package/esm/models/parameters.js +0 -118
  124. package/esm/models/parameters.js.map +0 -1
  125. package/esm/models/wCFRelaysMappers.d.ts +0 -2
  126. package/esm/models/wCFRelaysMappers.d.ts.map +0 -1
  127. package/esm/models/wCFRelaysMappers.js +0 -11
  128. package/esm/models/wCFRelaysMappers.js.map +0 -1
  129. package/esm/operations/hybridConnections.d.ts +0 -310
  130. package/esm/operations/hybridConnections.d.ts.map +0 -1
  131. package/esm/operations/hybridConnections.js +0 -431
  132. package/esm/operations/hybridConnections.js.map +0 -1
  133. package/esm/operations/index.d.ts.map +0 -1
  134. package/esm/operations/index.js.map +0 -1
  135. package/esm/operations/namespaces.d.ts +0 -348
  136. package/esm/operations/namespaces.d.ts.map +0 -1
  137. package/esm/operations/namespaces.js +0 -579
  138. package/esm/operations/namespaces.js.map +0 -1
  139. package/esm/operations/operations.d.ts +0 -46
  140. package/esm/operations/operations.d.ts.map +0 -1
  141. package/esm/operations/operations.js +0 -77
  142. package/esm/operations/operations.js.map +0 -1
  143. package/esm/operations/wCFRelays.d.ts +0 -310
  144. package/esm/operations/wCFRelays.d.ts.map +0 -1
  145. package/esm/operations/wCFRelays.js +0 -432
  146. package/esm/operations/wCFRelays.js.map +0 -1
  147. package/esm/relayManagementClient.d.ts +0 -28
  148. package/esm/relayManagementClient.d.ts.map +0 -1
  149. package/esm/relayManagementClient.js +0 -42
  150. package/esm/relayManagementClient.js.map +0 -1
  151. package/esm/relayManagementClientContext.d.ts +0 -23
  152. package/esm/relayManagementClientContext.d.ts.map +0 -1
  153. package/esm/relayManagementClientContext.js +0 -62
  154. package/esm/relayManagementClientContext.js.map +0 -1
  155. package/src/models/hybridConnectionsMappers.ts +0 -28
  156. package/src/models/namespacesMappers.ts +0 -30
  157. package/src/models/operationsMappers.ts +0 -17
  158. package/src/models/wCFRelaysMappers.ts +0 -29
  159. package/src/relayManagementClient.ts +0 -55
  160. package/src/relayManagementClientContext.ts +0 -69
@@ -0,0 +1,931 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+ import { PollerLike } from '@azure/core-lro';
5
+ import { PollOperationState } from '@azure/core-lro';
6
+
7
+ /** Namespace/Relay Connection String */
8
+ export declare interface AccessKeys {
9
+ /** Primary connection string of the created namespace authorization rule. */
10
+ primaryConnectionString?: string;
11
+ /** Secondary connection string of the created namespace authorization rule. */
12
+ secondaryConnectionString?: string;
13
+ /** A base64-encoded 256-bit primary key for signing and validating the SAS token. */
14
+ primaryKey?: string;
15
+ /** A base64-encoded 256-bit secondary key for signing and validating the SAS token. */
16
+ secondaryKey?: string;
17
+ /** A string that describes the authorization rule. */
18
+ keyName?: string;
19
+ }
20
+
21
+ /** Defines values for AccessRights. */
22
+ export declare type AccessRights = "Manage" | "Send" | "Listen";
23
+
24
+ /** Description of a namespace authorization rule. */
25
+ export declare type AuthorizationRule = Resource & {
26
+ /** The rights associated with the rule. */
27
+ rights: AccessRights[];
28
+ };
29
+
30
+ /** The response from the list namespace operation. */
31
+ export declare interface AuthorizationRuleListResult {
32
+ /** Result of the list authorization rules operation. */
33
+ value?: AuthorizationRule[];
34
+ /** Link to the next set of results. Not empty if value contains incomplete list of authorization rules. */
35
+ nextLink?: string;
36
+ }
37
+
38
+ /** Description of the check name availability request properties. */
39
+ export declare interface CheckNameAvailability {
40
+ /** The namespace name to check for availability. The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number. */
41
+ name: string;
42
+ }
43
+
44
+ /** Description of the check name availability request properties. */
45
+ export declare interface CheckNameAvailabilityResult {
46
+ /**
47
+ * The detailed info regarding the reason associated with the namespace.
48
+ * NOTE: This property will not be serialized. It can only be populated by the server.
49
+ */
50
+ readonly message?: string;
51
+ /** Value indicating namespace is available. Returns true if the namespace is available; otherwise, false. */
52
+ nameAvailable?: boolean;
53
+ /** The reason for unavailability of a namespace. */
54
+ reason?: UnavailableReason;
55
+ }
56
+
57
+ /** Error reponse indicates Relay service is not able to process the incoming request. The reason is provided in the error message. */
58
+ export declare interface ErrorResponse {
59
+ /** Error code. */
60
+ code?: string;
61
+ /** Error message indicating why the operation failed. */
62
+ message?: string;
63
+ }
64
+
65
+ /** Description of hybrid connection resource. */
66
+ export declare type HybridConnection = Resource & {
67
+ /**
68
+ * The time the hybrid connection was created.
69
+ * NOTE: This property will not be serialized. It can only be populated by the server.
70
+ */
71
+ readonly createdAt?: Date;
72
+ /**
73
+ * The time the namespace was updated.
74
+ * NOTE: This property will not be serialized. It can only be populated by the server.
75
+ */
76
+ readonly updatedAt?: Date;
77
+ /**
78
+ * The number of listeners for this hybrid connection. Note that min : 1 and max:25 are supported.
79
+ * NOTE: This property will not be serialized. It can only be populated by the server.
80
+ */
81
+ readonly listenerCount?: number;
82
+ /** Returns true if client authorization is needed for this hybrid connection; otherwise, false. */
83
+ requiresClientAuthorization?: boolean;
84
+ /** The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored. */
85
+ userMetadata?: string;
86
+ };
87
+
88
+ /** The response of the list hybrid connection operation. */
89
+ export declare interface HybridConnectionListResult {
90
+ /** Result of the list hybrid connections. */
91
+ value?: HybridConnection[];
92
+ /** Link to the next set of results. Not empty if value contains incomplete list hybrid connection operation. */
93
+ nextLink?: string;
94
+ }
95
+
96
+ /** Interface representing a HybridConnections. */
97
+ export declare interface HybridConnections {
98
+ /**
99
+ * Lists the hybrid connection within the namespace.
100
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
101
+ * @param namespaceName The namespace name
102
+ * @param options The options parameters.
103
+ */
104
+ listByNamespace(resourceGroupName: string, namespaceName: string, options?: HybridConnectionsListByNamespaceOptionalParams): PagedAsyncIterableIterator<HybridConnection>;
105
+ /**
106
+ * Authorization rules for a hybrid connection.
107
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
108
+ * @param namespaceName The namespace name
109
+ * @param hybridConnectionName The hybrid connection name.
110
+ * @param options The options parameters.
111
+ */
112
+ listAuthorizationRules(resourceGroupName: string, namespaceName: string, hybridConnectionName: string, options?: HybridConnectionsListAuthorizationRulesOptionalParams): PagedAsyncIterableIterator<AuthorizationRule>;
113
+ /**
114
+ * Creates or updates a service hybrid connection. This operation is idempotent.
115
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
116
+ * @param namespaceName The namespace name
117
+ * @param hybridConnectionName The hybrid connection name.
118
+ * @param parameters Parameters supplied to create a hybrid connection.
119
+ * @param options The options parameters.
120
+ */
121
+ createOrUpdate(resourceGroupName: string, namespaceName: string, hybridConnectionName: string, parameters: HybridConnection, options?: HybridConnectionsCreateOrUpdateOptionalParams): Promise<HybridConnectionsCreateOrUpdateResponse>;
122
+ /**
123
+ * Deletes a hybrid connection.
124
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
125
+ * @param namespaceName The namespace name
126
+ * @param hybridConnectionName The hybrid connection name.
127
+ * @param options The options parameters.
128
+ */
129
+ delete(resourceGroupName: string, namespaceName: string, hybridConnectionName: string, options?: HybridConnectionsDeleteOptionalParams): Promise<void>;
130
+ /**
131
+ * Returns the description for the specified hybrid connection.
132
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
133
+ * @param namespaceName The namespace name
134
+ * @param hybridConnectionName The hybrid connection name.
135
+ * @param options The options parameters.
136
+ */
137
+ get(resourceGroupName: string, namespaceName: string, hybridConnectionName: string, options?: HybridConnectionsGetOptionalParams): Promise<HybridConnectionsGetResponse>;
138
+ /**
139
+ * Creates or updates an authorization rule for a hybrid connection.
140
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
141
+ * @param namespaceName The namespace name
142
+ * @param hybridConnectionName The hybrid connection name.
143
+ * @param authorizationRuleName The authorization rule name.
144
+ * @param parameters The authorization rule parameters.
145
+ * @param options The options parameters.
146
+ */
147
+ createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, hybridConnectionName: string, authorizationRuleName: string, parameters: AuthorizationRule, options?: HybridConnectionsCreateOrUpdateAuthorizationRuleOptionalParams): Promise<HybridConnectionsCreateOrUpdateAuthorizationRuleResponse>;
148
+ /**
149
+ * Deletes a hybrid connection authorization rule.
150
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
151
+ * @param namespaceName The namespace name
152
+ * @param hybridConnectionName The hybrid connection name.
153
+ * @param authorizationRuleName The authorization rule name.
154
+ * @param options The options parameters.
155
+ */
156
+ deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, hybridConnectionName: string, authorizationRuleName: string, options?: HybridConnectionsDeleteAuthorizationRuleOptionalParams): Promise<void>;
157
+ /**
158
+ * Hybrid connection authorization rule for a hybrid connection by name.
159
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
160
+ * @param namespaceName The namespace name
161
+ * @param hybridConnectionName The hybrid connection name.
162
+ * @param authorizationRuleName The authorization rule name.
163
+ * @param options The options parameters.
164
+ */
165
+ getAuthorizationRule(resourceGroupName: string, namespaceName: string, hybridConnectionName: string, authorizationRuleName: string, options?: HybridConnectionsGetAuthorizationRuleOptionalParams): Promise<HybridConnectionsGetAuthorizationRuleResponse>;
166
+ /**
167
+ * Primary and secondary connection strings to the hybrid connection.
168
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
169
+ * @param namespaceName The namespace name
170
+ * @param hybridConnectionName The hybrid connection name.
171
+ * @param authorizationRuleName The authorization rule name.
172
+ * @param options The options parameters.
173
+ */
174
+ listKeys(resourceGroupName: string, namespaceName: string, hybridConnectionName: string, authorizationRuleName: string, options?: HybridConnectionsListKeysOptionalParams): Promise<HybridConnectionsListKeysResponse>;
175
+ /**
176
+ * Regenerates the primary or secondary connection strings to the hybrid connection.
177
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
178
+ * @param namespaceName The namespace name
179
+ * @param hybridConnectionName The hybrid connection name.
180
+ * @param authorizationRuleName The authorization rule name.
181
+ * @param parameters Parameters supplied to regenerate authorization rule.
182
+ * @param options The options parameters.
183
+ */
184
+ regenerateKeys(resourceGroupName: string, namespaceName: string, hybridConnectionName: string, authorizationRuleName: string, parameters: RegenerateAccessKeyParameters, options?: HybridConnectionsRegenerateKeysOptionalParams): Promise<HybridConnectionsRegenerateKeysResponse>;
185
+ }
186
+
187
+ /** Optional parameters. */
188
+ export declare interface HybridConnectionsCreateOrUpdateAuthorizationRuleOptionalParams extends coreClient.OperationOptions {
189
+ }
190
+
191
+ /** Contains response data for the createOrUpdateAuthorizationRule operation. */
192
+ export declare type HybridConnectionsCreateOrUpdateAuthorizationRuleResponse = AuthorizationRule;
193
+
194
+ /** Optional parameters. */
195
+ export declare interface HybridConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
196
+ }
197
+
198
+ /** Contains response data for the createOrUpdate operation. */
199
+ export declare type HybridConnectionsCreateOrUpdateResponse = HybridConnection;
200
+
201
+ /** Optional parameters. */
202
+ export declare interface HybridConnectionsDeleteAuthorizationRuleOptionalParams extends coreClient.OperationOptions {
203
+ }
204
+
205
+ /** Optional parameters. */
206
+ export declare interface HybridConnectionsDeleteOptionalParams extends coreClient.OperationOptions {
207
+ }
208
+
209
+ /** Optional parameters. */
210
+ export declare interface HybridConnectionsGetAuthorizationRuleOptionalParams extends coreClient.OperationOptions {
211
+ }
212
+
213
+ /** Contains response data for the getAuthorizationRule operation. */
214
+ export declare type HybridConnectionsGetAuthorizationRuleResponse = AuthorizationRule;
215
+
216
+ /** Optional parameters. */
217
+ export declare interface HybridConnectionsGetOptionalParams extends coreClient.OperationOptions {
218
+ }
219
+
220
+ /** Contains response data for the get operation. */
221
+ export declare type HybridConnectionsGetResponse = HybridConnection;
222
+
223
+ /** Optional parameters. */
224
+ export declare interface HybridConnectionsListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions {
225
+ }
226
+
227
+ /** Contains response data for the listAuthorizationRulesNext operation. */
228
+ export declare type HybridConnectionsListAuthorizationRulesNextResponse = AuthorizationRuleListResult;
229
+
230
+ /** Optional parameters. */
231
+ export declare interface HybridConnectionsListAuthorizationRulesOptionalParams extends coreClient.OperationOptions {
232
+ }
233
+
234
+ /** Contains response data for the listAuthorizationRules operation. */
235
+ export declare type HybridConnectionsListAuthorizationRulesResponse = AuthorizationRuleListResult;
236
+
237
+ /** Optional parameters. */
238
+ export declare interface HybridConnectionsListByNamespaceNextOptionalParams extends coreClient.OperationOptions {
239
+ }
240
+
241
+ /** Contains response data for the listByNamespaceNext operation. */
242
+ export declare type HybridConnectionsListByNamespaceNextResponse = HybridConnectionListResult;
243
+
244
+ /** Optional parameters. */
245
+ export declare interface HybridConnectionsListByNamespaceOptionalParams extends coreClient.OperationOptions {
246
+ }
247
+
248
+ /** Contains response data for the listByNamespace operation. */
249
+ export declare type HybridConnectionsListByNamespaceResponse = HybridConnectionListResult;
250
+
251
+ /** Optional parameters. */
252
+ export declare interface HybridConnectionsListKeysOptionalParams extends coreClient.OperationOptions {
253
+ }
254
+
255
+ /** Contains response data for the listKeys operation. */
256
+ export declare type HybridConnectionsListKeysResponse = AccessKeys;
257
+
258
+ /** Optional parameters. */
259
+ export declare interface HybridConnectionsRegenerateKeysOptionalParams extends coreClient.OperationOptions {
260
+ }
261
+
262
+ /** Contains response data for the regenerateKeys operation. */
263
+ export declare type HybridConnectionsRegenerateKeysResponse = AccessKeys;
264
+
265
+ /** Defines values for KeyType. */
266
+ declare type KeyType_2 = "PrimaryKey" | "SecondaryKey";
267
+ export { KeyType_2 as KeyType }
268
+
269
+ /** Interface representing a Namespaces. */
270
+ export declare interface Namespaces {
271
+ /**
272
+ * Lists all the available namespaces within the subscription regardless of the resourceGroups.
273
+ * @param options The options parameters.
274
+ */
275
+ list(options?: NamespacesListOptionalParams): PagedAsyncIterableIterator<RelayNamespace>;
276
+ /**
277
+ * Lists all the available namespaces within the ResourceGroup.
278
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
279
+ * @param options The options parameters.
280
+ */
281
+ listByResourceGroup(resourceGroupName: string, options?: NamespacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<RelayNamespace>;
282
+ /**
283
+ * Authorization rules for a namespace.
284
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
285
+ * @param namespaceName The namespace name
286
+ * @param options The options parameters.
287
+ */
288
+ listAuthorizationRules(resourceGroupName: string, namespaceName: string, options?: NamespacesListAuthorizationRulesOptionalParams): PagedAsyncIterableIterator<AuthorizationRule>;
289
+ /**
290
+ * Check the specified namespace name availability.
291
+ * @param parameters Parameters to check availability of the specified namespace name.
292
+ * @param options The options parameters.
293
+ */
294
+ checkNameAvailability(parameters: CheckNameAvailability, options?: NamespacesCheckNameAvailabilityOptionalParams): Promise<NamespacesCheckNameAvailabilityResponse>;
295
+ /**
296
+ * Create Azure Relay namespace.
297
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
298
+ * @param namespaceName The namespace name
299
+ * @param parameters Parameters supplied to create a namespace resource.
300
+ * @param options The options parameters.
301
+ */
302
+ beginCreateOrUpdate(resourceGroupName: string, namespaceName: string, parameters: RelayNamespace, options?: NamespacesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<NamespacesCreateOrUpdateResponse>, NamespacesCreateOrUpdateResponse>>;
303
+ /**
304
+ * Create Azure Relay namespace.
305
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
306
+ * @param namespaceName The namespace name
307
+ * @param parameters Parameters supplied to create a namespace resource.
308
+ * @param options The options parameters.
309
+ */
310
+ beginCreateOrUpdateAndWait(resourceGroupName: string, namespaceName: string, parameters: RelayNamespace, options?: NamespacesCreateOrUpdateOptionalParams): Promise<NamespacesCreateOrUpdateResponse>;
311
+ /**
312
+ * Deletes an existing namespace. This operation also removes all associated resources under the
313
+ * namespace.
314
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
315
+ * @param namespaceName The namespace name
316
+ * @param options The options parameters.
317
+ */
318
+ beginDelete(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
319
+ /**
320
+ * Deletes an existing namespace. This operation also removes all associated resources under the
321
+ * namespace.
322
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
323
+ * @param namespaceName The namespace name
324
+ * @param options The options parameters.
325
+ */
326
+ beginDeleteAndWait(resourceGroupName: string, namespaceName: string, options?: NamespacesDeleteOptionalParams): Promise<void>;
327
+ /**
328
+ * Returns the description for the specified namespace.
329
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
330
+ * @param namespaceName The namespace name
331
+ * @param options The options parameters.
332
+ */
333
+ get(resourceGroupName: string, namespaceName: string, options?: NamespacesGetOptionalParams): Promise<NamespacesGetResponse>;
334
+ /**
335
+ * Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This
336
+ * operation is idempotent.
337
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
338
+ * @param namespaceName The namespace name
339
+ * @param parameters Parameters for updating a namespace resource.
340
+ * @param options The options parameters.
341
+ */
342
+ update(resourceGroupName: string, namespaceName: string, parameters: RelayUpdateParameters, options?: NamespacesUpdateOptionalParams): Promise<NamespacesUpdateResponse>;
343
+ /**
344
+ * Creates or updates an authorization rule for a namespace.
345
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
346
+ * @param namespaceName The namespace name
347
+ * @param authorizationRuleName The authorization rule name.
348
+ * @param parameters The authorization rule parameters.
349
+ * @param options The options parameters.
350
+ */
351
+ createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: AuthorizationRule, options?: NamespacesCreateOrUpdateAuthorizationRuleOptionalParams): Promise<NamespacesCreateOrUpdateAuthorizationRuleResponse>;
352
+ /**
353
+ * Deletes a namespace authorization rule.
354
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
355
+ * @param namespaceName The namespace name
356
+ * @param authorizationRuleName The authorization rule name.
357
+ * @param options The options parameters.
358
+ */
359
+ deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesDeleteAuthorizationRuleOptionalParams): Promise<void>;
360
+ /**
361
+ * Authorization rule for a namespace by name.
362
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
363
+ * @param namespaceName The namespace name
364
+ * @param authorizationRuleName The authorization rule name.
365
+ * @param options The options parameters.
366
+ */
367
+ getAuthorizationRule(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesGetAuthorizationRuleOptionalParams): Promise<NamespacesGetAuthorizationRuleResponse>;
368
+ /**
369
+ * Primary and secondary connection strings to the namespace.
370
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
371
+ * @param namespaceName The namespace name
372
+ * @param authorizationRuleName The authorization rule name.
373
+ * @param options The options parameters.
374
+ */
375
+ listKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, options?: NamespacesListKeysOptionalParams): Promise<NamespacesListKeysResponse>;
376
+ /**
377
+ * Regenerates the primary or secondary connection strings to the namespace.
378
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
379
+ * @param namespaceName The namespace name
380
+ * @param authorizationRuleName The authorization rule name.
381
+ * @param parameters Parameters supplied to regenerate authorization rule.
382
+ * @param options The options parameters.
383
+ */
384
+ regenerateKeys(resourceGroupName: string, namespaceName: string, authorizationRuleName: string, parameters: RegenerateAccessKeyParameters, options?: NamespacesRegenerateKeysOptionalParams): Promise<NamespacesRegenerateKeysResponse>;
385
+ }
386
+
387
+ /** Optional parameters. */
388
+ export declare interface NamespacesCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {
389
+ }
390
+
391
+ /** Contains response data for the checkNameAvailability operation. */
392
+ export declare type NamespacesCheckNameAvailabilityResponse = CheckNameAvailabilityResult;
393
+
394
+ /** Optional parameters. */
395
+ export declare interface NamespacesCreateOrUpdateAuthorizationRuleOptionalParams extends coreClient.OperationOptions {
396
+ }
397
+
398
+ /** Contains response data for the createOrUpdateAuthorizationRule operation. */
399
+ export declare type NamespacesCreateOrUpdateAuthorizationRuleResponse = AuthorizationRule;
400
+
401
+ /** Optional parameters. */
402
+ export declare interface NamespacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
403
+ /** Delay to wait until next poll, in milliseconds. */
404
+ updateIntervalInMs?: number;
405
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
406
+ resumeFrom?: string;
407
+ }
408
+
409
+ /** Contains response data for the createOrUpdate operation. */
410
+ export declare type NamespacesCreateOrUpdateResponse = RelayNamespace;
411
+
412
+ /** Optional parameters. */
413
+ export declare interface NamespacesDeleteAuthorizationRuleOptionalParams extends coreClient.OperationOptions {
414
+ }
415
+
416
+ /** Optional parameters. */
417
+ export declare interface NamespacesDeleteOptionalParams extends coreClient.OperationOptions {
418
+ /** Delay to wait until next poll, in milliseconds. */
419
+ updateIntervalInMs?: number;
420
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
421
+ resumeFrom?: string;
422
+ }
423
+
424
+ /** Optional parameters. */
425
+ export declare interface NamespacesGetAuthorizationRuleOptionalParams extends coreClient.OperationOptions {
426
+ }
427
+
428
+ /** Contains response data for the getAuthorizationRule operation. */
429
+ export declare type NamespacesGetAuthorizationRuleResponse = AuthorizationRule;
430
+
431
+ /** Optional parameters. */
432
+ export declare interface NamespacesGetOptionalParams extends coreClient.OperationOptions {
433
+ }
434
+
435
+ /** Contains response data for the get operation. */
436
+ export declare type NamespacesGetResponse = RelayNamespace;
437
+
438
+ /** Optional parameters. */
439
+ export declare interface NamespacesListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions {
440
+ }
441
+
442
+ /** Contains response data for the listAuthorizationRulesNext operation. */
443
+ export declare type NamespacesListAuthorizationRulesNextResponse = AuthorizationRuleListResult;
444
+
445
+ /** Optional parameters. */
446
+ export declare interface NamespacesListAuthorizationRulesOptionalParams extends coreClient.OperationOptions {
447
+ }
448
+
449
+ /** Contains response data for the listAuthorizationRules operation. */
450
+ export declare type NamespacesListAuthorizationRulesResponse = AuthorizationRuleListResult;
451
+
452
+ /** Optional parameters. */
453
+ export declare interface NamespacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
454
+ }
455
+
456
+ /** Contains response data for the listByResourceGroupNext operation. */
457
+ export declare type NamespacesListByResourceGroupNextResponse = RelayNamespaceListResult;
458
+
459
+ /** Optional parameters. */
460
+ export declare interface NamespacesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
461
+ }
462
+
463
+ /** Contains response data for the listByResourceGroup operation. */
464
+ export declare type NamespacesListByResourceGroupResponse = RelayNamespaceListResult;
465
+
466
+ /** Optional parameters. */
467
+ export declare interface NamespacesListKeysOptionalParams extends coreClient.OperationOptions {
468
+ }
469
+
470
+ /** Contains response data for the listKeys operation. */
471
+ export declare type NamespacesListKeysResponse = AccessKeys;
472
+
473
+ /** Optional parameters. */
474
+ export declare interface NamespacesListNextOptionalParams extends coreClient.OperationOptions {
475
+ }
476
+
477
+ /** Contains response data for the listNext operation. */
478
+ export declare type NamespacesListNextResponse = RelayNamespaceListResult;
479
+
480
+ /** Optional parameters. */
481
+ export declare interface NamespacesListOptionalParams extends coreClient.OperationOptions {
482
+ }
483
+
484
+ /** Contains response data for the list operation. */
485
+ export declare type NamespacesListResponse = RelayNamespaceListResult;
486
+
487
+ /** Optional parameters. */
488
+ export declare interface NamespacesRegenerateKeysOptionalParams extends coreClient.OperationOptions {
489
+ }
490
+
491
+ /** Contains response data for the regenerateKeys operation. */
492
+ export declare type NamespacesRegenerateKeysResponse = AccessKeys;
493
+
494
+ /** Optional parameters. */
495
+ export declare interface NamespacesUpdateOptionalParams extends coreClient.OperationOptions {
496
+ }
497
+
498
+ /** Contains response data for the update operation. */
499
+ export declare type NamespacesUpdateResponse = RelayNamespace;
500
+
501
+ /** A Relay REST API operation. */
502
+ export declare interface Operation {
503
+ /**
504
+ * Operation name: {provider}/{resource}/{operation}
505
+ * NOTE: This property will not be serialized. It can only be populated by the server.
506
+ */
507
+ readonly name?: string;
508
+ /** The object that represents the operation. */
509
+ display?: OperationDisplay;
510
+ }
511
+
512
+ /** The object that represents the operation. */
513
+ export declare interface OperationDisplay {
514
+ /**
515
+ * Service provider: Relay.
516
+ * NOTE: This property will not be serialized. It can only be populated by the server.
517
+ */
518
+ readonly provider?: string;
519
+ /**
520
+ * Resource on which the operation is performed: Invoice, etc.
521
+ * NOTE: This property will not be serialized. It can only be populated by the server.
522
+ */
523
+ readonly resource?: string;
524
+ /**
525
+ * Operation type: Read, write, delete, etc.
526
+ * NOTE: This property will not be serialized. It can only be populated by the server.
527
+ */
528
+ readonly operation?: string;
529
+ }
530
+
531
+ /** Result of the request to list Relay operations. It contains a list of operations and a URL link to get the next set of results. */
532
+ export declare interface OperationListResult {
533
+ /**
534
+ * List of Relay operations supported by resource provider.
535
+ * NOTE: This property will not be serialized. It can only be populated by the server.
536
+ */
537
+ readonly value?: Operation[];
538
+ /**
539
+ * URL to get the next set of operation list results if there are any.
540
+ * NOTE: This property will not be serialized. It can only be populated by the server.
541
+ */
542
+ readonly nextLink?: string;
543
+ }
544
+
545
+ /** Interface representing a Operations. */
546
+ export declare interface Operations {
547
+ /**
548
+ * Lists all available Relay REST API operations.
549
+ * @param options The options parameters.
550
+ */
551
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
552
+ }
553
+
554
+ /** Optional parameters. */
555
+ export declare interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
556
+ }
557
+
558
+ /** Contains response data for the listNext operation. */
559
+ export declare type OperationsListNextResponse = OperationListResult;
560
+
561
+ /** Optional parameters. */
562
+ export declare interface OperationsListOptionalParams extends coreClient.OperationOptions {
563
+ }
564
+
565
+ /** Contains response data for the list operation. */
566
+ export declare type OperationsListResponse = OperationListResult;
567
+
568
+ /** Defines values for ProvisioningStateEnum. */
569
+ export declare type ProvisioningStateEnum = "Created" | "Succeeded" | "Deleted" | "Failed" | "Updating" | "Unknown";
570
+
571
+ /** Parameters supplied to the regenerate authorization rule operation, specifies which key neeeds to be reset. */
572
+ export declare interface RegenerateAccessKeyParameters {
573
+ /** The access key to regenerate. */
574
+ keyType: KeyType_2;
575
+ /** Optional. If the key value is provided, this is set to key type, or autogenerated key value set for key type. */
576
+ key?: string;
577
+ }
578
+
579
+ export declare class RelayAPI extends coreClient.ServiceClient {
580
+ $host: string;
581
+ apiVersion: string;
582
+ subscriptionId: string;
583
+ /**
584
+ * Initializes a new instance of the RelayAPI class.
585
+ * @param credentials Subscription credentials which uniquely identify client subscription.
586
+ * @param subscriptionId Subscription credentials which uniquely identify the Microsoft Azure
587
+ * subscription. The subscription ID forms part of the URI for every service call.
588
+ * @param options The parameter options
589
+ */
590
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: RelayAPIOptionalParams);
591
+ operations: Operations;
592
+ namespaces: Namespaces;
593
+ hybridConnections: HybridConnections;
594
+ wCFRelays: WCFRelays;
595
+ }
596
+
597
+ /** Optional parameters. */
598
+ export declare interface RelayAPIOptionalParams extends coreClient.ServiceClientOptions {
599
+ /** server parameter */
600
+ $host?: string;
601
+ /** Api Version */
602
+ apiVersion?: string;
603
+ /** Overrides client endpoint. */
604
+ endpoint?: string;
605
+ }
606
+
607
+ /** Description of a namespace resource. */
608
+ export declare type RelayNamespace = TrackedResource & {
609
+ /** SKU of the namespace. */
610
+ sku?: Sku;
611
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
612
+ readonly provisioningState?: ProvisioningStateEnum;
613
+ /**
614
+ * The time the namespace was created.
615
+ * NOTE: This property will not be serialized. It can only be populated by the server.
616
+ */
617
+ readonly createdAt?: Date;
618
+ /**
619
+ * The time the namespace was updated.
620
+ * NOTE: This property will not be serialized. It can only be populated by the server.
621
+ */
622
+ readonly updatedAt?: Date;
623
+ /**
624
+ * Endpoint you can use to perform Service Bus operations.
625
+ * NOTE: This property will not be serialized. It can only be populated by the server.
626
+ */
627
+ readonly serviceBusEndpoint?: string;
628
+ /**
629
+ * Identifier for Azure Insights metrics.
630
+ * NOTE: This property will not be serialized. It can only be populated by the server.
631
+ */
632
+ readonly metricId?: string;
633
+ };
634
+
635
+ /** The response from the list namespace operation. */
636
+ export declare interface RelayNamespaceListResult {
637
+ /** Result of the list namespace operation. */
638
+ value?: RelayNamespace[];
639
+ /** Link to the next set of results. Not empty if value contains incomplete list of namespaces. */
640
+ nextLink?: string;
641
+ }
642
+
643
+ /** Defines values for Relaytype. */
644
+ export declare type Relaytype = "NetTcp" | "Http";
645
+
646
+ /** Description of a namespace resource. */
647
+ export declare type RelayUpdateParameters = ResourceNamespacePatch & {
648
+ /** SKU of the namespace. */
649
+ sku?: Sku;
650
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
651
+ readonly provisioningState?: ProvisioningStateEnum;
652
+ /**
653
+ * The time the namespace was created.
654
+ * NOTE: This property will not be serialized. It can only be populated by the server.
655
+ */
656
+ readonly createdAt?: Date;
657
+ /**
658
+ * The time the namespace was updated.
659
+ * NOTE: This property will not be serialized. It can only be populated by the server.
660
+ */
661
+ readonly updatedAt?: Date;
662
+ /**
663
+ * Endpoint you can use to perform Service Bus operations.
664
+ * NOTE: This property will not be serialized. It can only be populated by the server.
665
+ */
666
+ readonly serviceBusEndpoint?: string;
667
+ /**
668
+ * Identifier for Azure Insights metrics.
669
+ * NOTE: This property will not be serialized. It can only be populated by the server.
670
+ */
671
+ readonly metricId?: string;
672
+ };
673
+
674
+ /** The resource definition. */
675
+ export declare interface Resource {
676
+ /**
677
+ * Resource ID.
678
+ * NOTE: This property will not be serialized. It can only be populated by the server.
679
+ */
680
+ readonly id?: string;
681
+ /**
682
+ * Resource name.
683
+ * NOTE: This property will not be serialized. It can only be populated by the server.
684
+ */
685
+ readonly name?: string;
686
+ /**
687
+ * Resource type.
688
+ * NOTE: This property will not be serialized. It can only be populated by the server.
689
+ */
690
+ readonly type?: string;
691
+ }
692
+
693
+ /** Definition of resource. */
694
+ export declare type ResourceNamespacePatch = Resource & {
695
+ /** Resource tags. */
696
+ tags?: {
697
+ [propertyName: string]: string;
698
+ };
699
+ };
700
+
701
+ /** SKU of the namespace. */
702
+ export declare interface Sku {
703
+ /** Name of this SKU. */
704
+ name: "Standard";
705
+ /** The tier of this SKU. */
706
+ tier?: "Standard";
707
+ }
708
+
709
+ /** Definition of resource. */
710
+ export declare type TrackedResource = Resource & {
711
+ /** Resource location. */
712
+ location: string;
713
+ /** Resource tags. */
714
+ tags?: {
715
+ [propertyName: string]: string;
716
+ };
717
+ };
718
+
719
+ /** Defines values for UnavailableReason. */
720
+ export declare type UnavailableReason = "None" | "InvalidName" | "SubscriptionIsDisabled" | "NameInUse" | "NameInLockdown" | "TooManyNamespaceInCurrentSubscription";
721
+
722
+ /** Description of the WCF relay resource. */
723
+ export declare type WcfRelay = Resource & {
724
+ /**
725
+ * Returns true if the relay is dynamic; otherwise, false.
726
+ * NOTE: This property will not be serialized. It can only be populated by the server.
727
+ */
728
+ readonly isDynamic?: boolean;
729
+ /**
730
+ * The time the WCF relay was created.
731
+ * NOTE: This property will not be serialized. It can only be populated by the server.
732
+ */
733
+ readonly createdAt?: Date;
734
+ /**
735
+ * The time the namespace was updated.
736
+ * NOTE: This property will not be serialized. It can only be populated by the server.
737
+ */
738
+ readonly updatedAt?: Date;
739
+ /**
740
+ * The number of listeners for this relay. Note that min :1 and max:25 are supported.
741
+ * NOTE: This property will not be serialized. It can only be populated by the server.
742
+ */
743
+ readonly listenerCount?: number;
744
+ /** WCF relay type. */
745
+ relayType?: Relaytype;
746
+ /** Returns true if client authorization is needed for this relay; otherwise, false. */
747
+ requiresClientAuthorization?: boolean;
748
+ /** Returns true if transport security is needed for this relay; otherwise, false. */
749
+ requiresTransportSecurity?: boolean;
750
+ /** The usermetadata is a placeholder to store user-defined string data for the WCF Relay endpoint. For example, it can be used to store descriptive data, such as list of teams and their contact information. Also, user-defined configuration settings can be stored. */
751
+ userMetadata?: string;
752
+ };
753
+
754
+ /** Interface representing a WCFRelays. */
755
+ export declare interface WCFRelays {
756
+ /**
757
+ * Lists the WCF relays within the namespace.
758
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
759
+ * @param namespaceName The namespace name
760
+ * @param options The options parameters.
761
+ */
762
+ listByNamespace(resourceGroupName: string, namespaceName: string, options?: WCFRelaysListByNamespaceOptionalParams): PagedAsyncIterableIterator<WcfRelay>;
763
+ /**
764
+ * Authorization rules for a WCF relay.
765
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
766
+ * @param namespaceName The namespace name
767
+ * @param relayName The relay name.
768
+ * @param options The options parameters.
769
+ */
770
+ listAuthorizationRules(resourceGroupName: string, namespaceName: string, relayName: string, options?: WCFRelaysListAuthorizationRulesOptionalParams): PagedAsyncIterableIterator<AuthorizationRule>;
771
+ /**
772
+ * Creates or updates a WCF relay. This operation is idempotent.
773
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
774
+ * @param namespaceName The namespace name
775
+ * @param relayName The relay name.
776
+ * @param parameters Parameters supplied to create a WCF relay.
777
+ * @param options The options parameters.
778
+ */
779
+ createOrUpdate(resourceGroupName: string, namespaceName: string, relayName: string, parameters: WcfRelay, options?: WCFRelaysCreateOrUpdateOptionalParams): Promise<WCFRelaysCreateOrUpdateResponse>;
780
+ /**
781
+ * Deletes a WCF relay.
782
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
783
+ * @param namespaceName The namespace name
784
+ * @param relayName The relay name.
785
+ * @param options The options parameters.
786
+ */
787
+ delete(resourceGroupName: string, namespaceName: string, relayName: string, options?: WCFRelaysDeleteOptionalParams): Promise<void>;
788
+ /**
789
+ * Returns the description for the specified WCF relay.
790
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
791
+ * @param namespaceName The namespace name
792
+ * @param relayName The relay name.
793
+ * @param options The options parameters.
794
+ */
795
+ get(resourceGroupName: string, namespaceName: string, relayName: string, options?: WCFRelaysGetOptionalParams): Promise<WCFRelaysGetResponse>;
796
+ /**
797
+ * Creates or updates an authorization rule for a WCF relay.
798
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
799
+ * @param namespaceName The namespace name
800
+ * @param relayName The relay name.
801
+ * @param authorizationRuleName The authorization rule name.
802
+ * @param parameters The authorization rule parameters.
803
+ * @param options The options parameters.
804
+ */
805
+ createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, relayName: string, authorizationRuleName: string, parameters: AuthorizationRule, options?: WCFRelaysCreateOrUpdateAuthorizationRuleOptionalParams): Promise<WCFRelaysCreateOrUpdateAuthorizationRuleResponse>;
806
+ /**
807
+ * Deletes a WCF relay authorization rule.
808
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
809
+ * @param namespaceName The namespace name
810
+ * @param relayName The relay name.
811
+ * @param authorizationRuleName The authorization rule name.
812
+ * @param options The options parameters.
813
+ */
814
+ deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, relayName: string, authorizationRuleName: string, options?: WCFRelaysDeleteAuthorizationRuleOptionalParams): Promise<void>;
815
+ /**
816
+ * Get authorizationRule for a WCF relay by name.
817
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
818
+ * @param namespaceName The namespace name
819
+ * @param relayName The relay name.
820
+ * @param authorizationRuleName The authorization rule name.
821
+ * @param options The options parameters.
822
+ */
823
+ getAuthorizationRule(resourceGroupName: string, namespaceName: string, relayName: string, authorizationRuleName: string, options?: WCFRelaysGetAuthorizationRuleOptionalParams): Promise<WCFRelaysGetAuthorizationRuleResponse>;
824
+ /**
825
+ * Primary and secondary connection strings to the WCF relay.
826
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
827
+ * @param namespaceName The namespace name
828
+ * @param relayName The relay name.
829
+ * @param authorizationRuleName The authorization rule name.
830
+ * @param options The options parameters.
831
+ */
832
+ listKeys(resourceGroupName: string, namespaceName: string, relayName: string, authorizationRuleName: string, options?: WCFRelaysListKeysOptionalParams): Promise<WCFRelaysListKeysResponse>;
833
+ /**
834
+ * Regenerates the primary or secondary connection strings to the WCF relay.
835
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
836
+ * @param namespaceName The namespace name
837
+ * @param relayName The relay name.
838
+ * @param authorizationRuleName The authorization rule name.
839
+ * @param parameters Parameters supplied to regenerate authorization rule.
840
+ * @param options The options parameters.
841
+ */
842
+ regenerateKeys(resourceGroupName: string, namespaceName: string, relayName: string, authorizationRuleName: string, parameters: RegenerateAccessKeyParameters, options?: WCFRelaysRegenerateKeysOptionalParams): Promise<WCFRelaysRegenerateKeysResponse>;
843
+ }
844
+
845
+ /** Optional parameters. */
846
+ export declare interface WCFRelaysCreateOrUpdateAuthorizationRuleOptionalParams extends coreClient.OperationOptions {
847
+ }
848
+
849
+ /** Contains response data for the createOrUpdateAuthorizationRule operation. */
850
+ export declare type WCFRelaysCreateOrUpdateAuthorizationRuleResponse = AuthorizationRule;
851
+
852
+ /** Optional parameters. */
853
+ export declare interface WCFRelaysCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
854
+ }
855
+
856
+ /** Contains response data for the createOrUpdate operation. */
857
+ export declare type WCFRelaysCreateOrUpdateResponse = WcfRelay;
858
+
859
+ /** Optional parameters. */
860
+ export declare interface WCFRelaysDeleteAuthorizationRuleOptionalParams extends coreClient.OperationOptions {
861
+ }
862
+
863
+ /** Optional parameters. */
864
+ export declare interface WCFRelaysDeleteOptionalParams extends coreClient.OperationOptions {
865
+ }
866
+
867
+ /** Optional parameters. */
868
+ export declare interface WCFRelaysGetAuthorizationRuleOptionalParams extends coreClient.OperationOptions {
869
+ }
870
+
871
+ /** Contains response data for the getAuthorizationRule operation. */
872
+ export declare type WCFRelaysGetAuthorizationRuleResponse = AuthorizationRule;
873
+
874
+ /** Optional parameters. */
875
+ export declare interface WCFRelaysGetOptionalParams extends coreClient.OperationOptions {
876
+ }
877
+
878
+ /** Contains response data for the get operation. */
879
+ export declare type WCFRelaysGetResponse = WcfRelay;
880
+
881
+ /** Optional parameters. */
882
+ export declare interface WCFRelaysListAuthorizationRulesNextOptionalParams extends coreClient.OperationOptions {
883
+ }
884
+
885
+ /** Contains response data for the listAuthorizationRulesNext operation. */
886
+ export declare type WCFRelaysListAuthorizationRulesNextResponse = AuthorizationRuleListResult;
887
+
888
+ /** Optional parameters. */
889
+ export declare interface WCFRelaysListAuthorizationRulesOptionalParams extends coreClient.OperationOptions {
890
+ }
891
+
892
+ /** Contains response data for the listAuthorizationRules operation. */
893
+ export declare type WCFRelaysListAuthorizationRulesResponse = AuthorizationRuleListResult;
894
+
895
+ /** Optional parameters. */
896
+ export declare interface WCFRelaysListByNamespaceNextOptionalParams extends coreClient.OperationOptions {
897
+ }
898
+
899
+ /** Contains response data for the listByNamespaceNext operation. */
900
+ export declare type WCFRelaysListByNamespaceNextResponse = WcfRelaysListResult;
901
+
902
+ /** Optional parameters. */
903
+ export declare interface WCFRelaysListByNamespaceOptionalParams extends coreClient.OperationOptions {
904
+ }
905
+
906
+ /** Contains response data for the listByNamespace operation. */
907
+ export declare type WCFRelaysListByNamespaceResponse = WcfRelaysListResult;
908
+
909
+ /** Optional parameters. */
910
+ export declare interface WCFRelaysListKeysOptionalParams extends coreClient.OperationOptions {
911
+ }
912
+
913
+ /** Contains response data for the listKeys operation. */
914
+ export declare type WCFRelaysListKeysResponse = AccessKeys;
915
+
916
+ /** The response of the list WCF relay operation. */
917
+ export declare interface WcfRelaysListResult {
918
+ /** Result of the list WCF relay operation. */
919
+ value?: WcfRelay[];
920
+ /** Link to the next set of results. Not empty if value contains incomplete list of WCF relays. */
921
+ nextLink?: string;
922
+ }
923
+
924
+ /** Optional parameters. */
925
+ export declare interface WCFRelaysRegenerateKeysOptionalParams extends coreClient.OperationOptions {
926
+ }
927
+
928
+ /** Contains response data for the regenerateKeys operation. */
929
+ export declare type WCFRelaysRegenerateKeysResponse = AccessKeys;
930
+
931
+ export { }