@azure/arm-hybridconnectivity 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +108 -0
  4. package/dist/index.js +1809 -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/samples-dev/endpointsCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js +63 -0
  11. package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/endpointsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/endpointsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/endpointsDeleteSample.js +37 -0
  15. package/dist-esm/samples-dev/endpointsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/endpointsGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/endpointsGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/endpointsGetSample.js +54 -0
  19. package/dist-esm/samples-dev/endpointsGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/endpointsListCredentialsSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/endpointsListCredentialsSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/endpointsListCredentialsSample.js +43 -0
  23. package/dist-esm/samples-dev/endpointsListCredentialsSample.js.map +1 -0
  24. package/dist-esm/samples-dev/endpointsListIngressGatewayCredentialsSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/endpointsListIngressGatewayCredentialsSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/endpointsListIngressGatewayCredentialsSample.js +41 -0
  27. package/dist-esm/samples-dev/endpointsListIngressGatewayCredentialsSample.js.map +1 -0
  28. package/dist-esm/samples-dev/endpointsListManagedProxyDetailsSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/endpointsListManagedProxyDetailsSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/endpointsListManagedProxyDetailsSample.js +42 -0
  31. package/dist-esm/samples-dev/endpointsListManagedProxyDetailsSample.js.map +1 -0
  32. package/dist-esm/samples-dev/endpointsListSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/endpointsListSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/endpointsListSample.js +57 -0
  35. package/dist-esm/samples-dev/endpointsListSample.js.map +1 -0
  36. package/dist-esm/samples-dev/endpointsUpdateSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/endpointsUpdateSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/endpointsUpdateSample.js +40 -0
  39. package/dist-esm/samples-dev/endpointsUpdateSample.js.map +1 -0
  40. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/operationsListSample.js +56 -0
  43. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  44. package/dist-esm/samples-dev/serviceConfigurationsCreateOrupdateSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/serviceConfigurationsCreateOrupdateSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/serviceConfigurationsCreateOrupdateSample.js +64 -0
  47. package/dist-esm/samples-dev/serviceConfigurationsCreateOrupdateSample.js.map +1 -0
  48. package/dist-esm/samples-dev/serviceConfigurationsDeleteSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/serviceConfigurationsDeleteSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/serviceConfigurationsDeleteSample.js +38 -0
  51. package/dist-esm/samples-dev/serviceConfigurationsDeleteSample.js.map +1 -0
  52. package/dist-esm/samples-dev/serviceConfigurationsGetSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/serviceConfigurationsGetSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/serviceConfigurationsGetSample.js +56 -0
  55. package/dist-esm/samples-dev/serviceConfigurationsGetSample.js.map +1 -0
  56. package/dist-esm/samples-dev/serviceConfigurationsListByEndpointResourceSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/serviceConfigurationsListByEndpointResourceSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/serviceConfigurationsListByEndpointResourceSample.js +58 -0
  59. package/dist-esm/samples-dev/serviceConfigurationsListByEndpointResourceSample.js.map +1 -0
  60. package/dist-esm/samples-dev/serviceConfigurationsUpdateSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/serviceConfigurationsUpdateSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/serviceConfigurationsUpdateSample.js +41 -0
  63. package/dist-esm/samples-dev/serviceConfigurationsUpdateSample.js.map +1 -0
  64. package/dist-esm/src/hybridConnectivityManagementAPI.d.ts +20 -0
  65. package/dist-esm/src/hybridConnectivityManagementAPI.d.ts.map +1 -0
  66. package/dist-esm/src/hybridConnectivityManagementAPI.js +96 -0
  67. package/dist-esm/src/hybridConnectivityManagementAPI.js.map +1 -0
  68. package/dist-esm/src/index.d.ts +6 -0
  69. package/dist-esm/src/index.d.ts.map +1 -0
  70. package/dist-esm/src/index.js +13 -0
  71. package/dist-esm/src/index.js.map +1 -0
  72. package/dist-esm/src/models/index.d.ts +477 -0
  73. package/dist-esm/src/models/index.d.ts.map +1 -0
  74. package/dist-esm/src/models/index.js +66 -0
  75. package/dist-esm/src/models/index.js.map +1 -0
  76. package/dist-esm/src/models/mappers.d.ts +23 -0
  77. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  78. package/dist-esm/src/models/mappers.js +631 -0
  79. package/dist-esm/src/models/mappers.js.map +1 -0
  80. package/dist-esm/src/models/parameters.d.ts +17 -0
  81. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  82. package/dist-esm/src/models/parameters.js +135 -0
  83. package/dist-esm/src/models/parameters.js.map +1 -0
  84. package/dist-esm/src/operations/endpoints.d.ts +97 -0
  85. package/dist-esm/src/operations/endpoints.d.ts.map +1 -0
  86. package/dist-esm/src/operations/endpoints.js +370 -0
  87. package/dist-esm/src/operations/endpoints.js.map +1 -0
  88. package/dist-esm/src/operations/index.d.ts +4 -0
  89. package/dist-esm/src/operations/index.d.ts.map +1 -0
  90. package/dist-esm/src/operations/index.js +11 -0
  91. package/dist-esm/src/operations/index.js.map +1 -0
  92. package/dist-esm/src/operations/operations.d.ts +32 -0
  93. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operations/operations.js +138 -0
  95. package/dist-esm/src/operations/operations.js.map +1 -0
  96. package/dist-esm/src/operations/serviceConfigurations.d.ts +79 -0
  97. package/dist-esm/src/operations/serviceConfigurations.d.ts.map +1 -0
  98. package/dist-esm/src/operations/serviceConfigurations.js +304 -0
  99. package/dist-esm/src/operations/serviceConfigurations.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/endpoints.d.ts +72 -0
  101. package/dist-esm/src/operationsInterfaces/endpoints.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/endpoints.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/endpoints.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  105. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  107. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  109. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/serviceConfigurations.d.ts +52 -0
  113. package/dist-esm/src/operationsInterfaces/serviceConfigurations.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/serviceConfigurations.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/serviceConfigurations.js.map +1 -0
  116. package/dist-esm/src/pagingHelper.d.ts +13 -0
  117. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  118. package/dist-esm/src/pagingHelper.js +32 -0
  119. package/dist-esm/src/pagingHelper.js.map +1 -0
  120. package/dist-esm/test/hybridconnectivity_operations_test.spec.d.ts +4 -0
  121. package/dist-esm/test/hybridconnectivity_operations_test.spec.d.ts.map +1 -0
  122. package/dist-esm/test/hybridconnectivity_operations_test.spec.js +122 -0
  123. package/dist-esm/test/hybridconnectivity_operations_test.spec.js.map +1 -0
  124. package/package.json +122 -0
  125. package/review/arm-hybridconnectivity.api.md +388 -0
  126. package/rollup.config.js +122 -0
  127. package/src/hybridConnectivityManagementAPI.ts +144 -0
  128. package/src/index.ts +13 -0
  129. package/src/models/index.ts +552 -0
  130. package/src/models/mappers.ts +664 -0
  131. package/src/models/parameters.ts +162 -0
  132. package/src/operations/endpoints.ts +469 -0
  133. package/src/operations/index.ts +11 -0
  134. package/src/operations/operations.ts +149 -0
  135. package/src/operations/serviceConfigurations.ts +401 -0
  136. package/src/operationsInterfaces/endpoints.ts +132 -0
  137. package/src/operationsInterfaces/index.ts +11 -0
  138. package/src/operationsInterfaces/operations.ts +22 -0
  139. package/src/operationsInterfaces/serviceConfigurations.ts +98 -0
  140. package/src/pagingHelper.ts +39 -0
  141. package/tsconfig.json +33 -0
  142. package/types/arm-hybridconnectivity.d.ts +700 -0
  143. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,388 @@
1
+ ## API Report File for "@azure/arm-hybridconnectivity"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
+
11
+ // @public
12
+ export type ActionType = string;
13
+
14
+ // @public
15
+ export type CreatedByType = string;
16
+
17
+ // @public
18
+ export interface EndpointAccessResource {
19
+ readonly accessKey?: string;
20
+ expiresOn?: number;
21
+ hybridConnectionName?: string;
22
+ namespaceName?: string;
23
+ namespaceNameSuffix?: string;
24
+ serviceConfigurationToken?: string;
25
+ }
26
+
27
+ // @public
28
+ export interface EndpointProperties {
29
+ readonly provisioningState?: string;
30
+ resourceId?: string;
31
+ type: Type;
32
+ }
33
+
34
+ // @public
35
+ export interface EndpointResource extends ProxyResource {
36
+ properties?: EndpointProperties;
37
+ }
38
+
39
+ // @public
40
+ export interface Endpoints {
41
+ createOrUpdate(resourceUri: string, endpointName: string, endpointResource: EndpointResource, options?: EndpointsCreateOrUpdateOptionalParams): Promise<EndpointsCreateOrUpdateResponse>;
42
+ delete(resourceUri: string, endpointName: string, options?: EndpointsDeleteOptionalParams): Promise<void>;
43
+ get(resourceUri: string, endpointName: string, options?: EndpointsGetOptionalParams): Promise<EndpointsGetResponse>;
44
+ list(resourceUri: string, options?: EndpointsListOptionalParams): PagedAsyncIterableIterator<EndpointResource>;
45
+ listCredentials(resourceUri: string, endpointName: string, options?: EndpointsListCredentialsOptionalParams): Promise<EndpointsListCredentialsResponse>;
46
+ listIngressGatewayCredentials(resourceUri: string, endpointName: string, options?: EndpointsListIngressGatewayCredentialsOptionalParams): Promise<EndpointsListIngressGatewayCredentialsResponse>;
47
+ listManagedProxyDetails(resourceUri: string, endpointName: string, managedProxyRequest: ManagedProxyRequest, options?: EndpointsListManagedProxyDetailsOptionalParams): Promise<EndpointsListManagedProxyDetailsResponse>;
48
+ update(resourceUri: string, endpointName: string, endpointResource: EndpointResource, options?: EndpointsUpdateOptionalParams): Promise<EndpointsUpdateResponse>;
49
+ }
50
+
51
+ // @public
52
+ export interface EndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
53
+ }
54
+
55
+ // @public
56
+ export type EndpointsCreateOrUpdateResponse = EndpointResource;
57
+
58
+ // @public
59
+ export interface EndpointsDeleteOptionalParams extends coreClient.OperationOptions {
60
+ }
61
+
62
+ // @public
63
+ export interface EndpointsGetOptionalParams extends coreClient.OperationOptions {
64
+ }
65
+
66
+ // @public
67
+ export type EndpointsGetResponse = EndpointResource;
68
+
69
+ // @public
70
+ export interface EndpointsList {
71
+ nextLink?: string;
72
+ value?: EndpointResource[];
73
+ }
74
+
75
+ // @public
76
+ export interface EndpointsListCredentialsOptionalParams extends coreClient.OperationOptions {
77
+ expiresin?: number;
78
+ listCredentialsRequest?: ListCredentialsRequest;
79
+ }
80
+
81
+ // @public
82
+ export type EndpointsListCredentialsResponse = EndpointAccessResource;
83
+
84
+ // @public
85
+ export interface EndpointsListIngressGatewayCredentialsOptionalParams extends coreClient.OperationOptions {
86
+ expiresin?: number;
87
+ listIngressGatewayCredentialsRequest?: ListIngressGatewayCredentialsRequest;
88
+ }
89
+
90
+ // @public
91
+ export type EndpointsListIngressGatewayCredentialsResponse = IngressGatewayResource;
92
+
93
+ // @public
94
+ export interface EndpointsListManagedProxyDetailsOptionalParams extends coreClient.OperationOptions {
95
+ }
96
+
97
+ // @public
98
+ export type EndpointsListManagedProxyDetailsResponse = ManagedProxyResource;
99
+
100
+ // @public
101
+ export interface EndpointsListNextOptionalParams extends coreClient.OperationOptions {
102
+ }
103
+
104
+ // @public
105
+ export type EndpointsListNextResponse = EndpointsList;
106
+
107
+ // @public
108
+ export interface EndpointsListOptionalParams extends coreClient.OperationOptions {
109
+ }
110
+
111
+ // @public
112
+ export type EndpointsListResponse = EndpointsList;
113
+
114
+ // @public
115
+ export interface EndpointsUpdateOptionalParams extends coreClient.OperationOptions {
116
+ }
117
+
118
+ // @public
119
+ export type EndpointsUpdateResponse = EndpointResource;
120
+
121
+ // @public
122
+ export interface ErrorAdditionalInfo {
123
+ readonly info?: Record<string, unknown>;
124
+ readonly type?: string;
125
+ }
126
+
127
+ // @public
128
+ export interface ErrorDetail {
129
+ readonly additionalInfo?: ErrorAdditionalInfo[];
130
+ readonly code?: string;
131
+ readonly details?: ErrorDetail[];
132
+ readonly message?: string;
133
+ readonly target?: string;
134
+ }
135
+
136
+ // @public
137
+ export interface ErrorResponse {
138
+ error?: ErrorDetail;
139
+ }
140
+
141
+ // @public
142
+ export function getContinuationToken(page: unknown): string | undefined;
143
+
144
+ // @public (undocumented)
145
+ export class HybridConnectivityManagementAPI extends coreClient.ServiceClient {
146
+ // (undocumented)
147
+ $host: string;
148
+ constructor(credentials: coreAuth.TokenCredential, options?: HybridConnectivityManagementAPIOptionalParams);
149
+ // (undocumented)
150
+ apiVersion: string;
151
+ // (undocumented)
152
+ endpoints: Endpoints;
153
+ // (undocumented)
154
+ operations: Operations;
155
+ // (undocumented)
156
+ serviceConfigurations: ServiceConfigurations;
157
+ }
158
+
159
+ // @public
160
+ export interface HybridConnectivityManagementAPIOptionalParams extends coreClient.ServiceClientOptions {
161
+ $host?: string;
162
+ apiVersion?: string;
163
+ endpoint?: string;
164
+ }
165
+
166
+ // @public
167
+ export interface IngressGatewayResource {
168
+ readonly accessKey?: string;
169
+ expiresOn?: number;
170
+ hostname?: string;
171
+ hybridConnectionName?: string;
172
+ namespaceName?: string;
173
+ namespaceNameSuffix?: string;
174
+ serverId?: string;
175
+ serviceConfigurationToken?: string;
176
+ tenantId?: string;
177
+ }
178
+
179
+ // @public
180
+ export enum KnownActionType {
181
+ Internal = "Internal"
182
+ }
183
+
184
+ // @public
185
+ export enum KnownCreatedByType {
186
+ Application = "Application",
187
+ Key = "Key",
188
+ ManagedIdentity = "ManagedIdentity",
189
+ User = "User"
190
+ }
191
+
192
+ // @public
193
+ export enum KnownOrigin {
194
+ System = "system",
195
+ User = "user",
196
+ UserSystem = "user,system"
197
+ }
198
+
199
+ // @public
200
+ export enum KnownProvisioningState {
201
+ Canceled = "Canceled",
202
+ Creating = "Creating",
203
+ Failed = "Failed",
204
+ Succeeded = "Succeeded",
205
+ Updating = "Updating"
206
+ }
207
+
208
+ // @public
209
+ export enum KnownServiceName {
210
+ SSH = "SSH",
211
+ WAC = "WAC"
212
+ }
213
+
214
+ // @public
215
+ export enum KnownType {
216
+ Custom = "custom",
217
+ Default = "default"
218
+ }
219
+
220
+ // @public
221
+ export interface ListCredentialsRequest {
222
+ serviceName?: ServiceName;
223
+ }
224
+
225
+ // @public
226
+ export interface ListIngressGatewayCredentialsRequest {
227
+ serviceName?: ServiceName;
228
+ }
229
+
230
+ // @public
231
+ export interface ManagedProxyRequest {
232
+ hostname?: string;
233
+ service: string;
234
+ serviceName?: ServiceName;
235
+ }
236
+
237
+ // @public
238
+ export interface ManagedProxyResource {
239
+ expiresOn: number;
240
+ proxy: string;
241
+ }
242
+
243
+ // @public
244
+ export interface Operation {
245
+ readonly actionType?: ActionType;
246
+ display?: OperationDisplay;
247
+ readonly isDataAction?: boolean;
248
+ readonly name?: string;
249
+ readonly origin?: Origin;
250
+ }
251
+
252
+ // @public
253
+ export interface OperationDisplay {
254
+ readonly description?: string;
255
+ readonly operation?: string;
256
+ readonly provider?: string;
257
+ readonly resource?: string;
258
+ }
259
+
260
+ // @public
261
+ export interface OperationListResult {
262
+ readonly nextLink?: string;
263
+ readonly value?: Operation[];
264
+ }
265
+
266
+ // @public
267
+ export interface Operations {
268
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
269
+ }
270
+
271
+ // @public
272
+ export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
273
+ }
274
+
275
+ // @public
276
+ export type OperationsListNextResponse = OperationListResult;
277
+
278
+ // @public
279
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
280
+ }
281
+
282
+ // @public
283
+ export type OperationsListResponse = OperationListResult;
284
+
285
+ // @public
286
+ export type Origin = string;
287
+
288
+ // @public
289
+ export type ProvisioningState = string;
290
+
291
+ // @public
292
+ export interface ProxyResource extends Resource {
293
+ }
294
+
295
+ // @public
296
+ export interface Resource {
297
+ readonly id?: string;
298
+ readonly name?: string;
299
+ readonly systemData?: SystemData;
300
+ readonly type?: string;
301
+ }
302
+
303
+ // @public
304
+ export interface ServiceConfigurationList {
305
+ nextLink?: string;
306
+ value?: ServiceConfigurationResource[];
307
+ }
308
+
309
+ // @public
310
+ export interface ServiceConfigurationResource extends ProxyResource {
311
+ port?: number;
312
+ readonly provisioningState?: ProvisioningState;
313
+ resourceId?: string;
314
+ serviceName?: ServiceName;
315
+ }
316
+
317
+ // @public
318
+ export interface ServiceConfigurationResourcePatch {
319
+ port?: number;
320
+ }
321
+
322
+ // @public
323
+ export interface ServiceConfigurations {
324
+ createOrupdate(resourceUri: string, endpointName: string, serviceConfigurationName: string, serviceConfigurationResource: ServiceConfigurationResource, options?: ServiceConfigurationsCreateOrupdateOptionalParams): Promise<ServiceConfigurationsCreateOrupdateResponse>;
325
+ delete(resourceUri: string, endpointName: string, serviceConfigurationName: string, options?: ServiceConfigurationsDeleteOptionalParams): Promise<void>;
326
+ get(resourceUri: string, endpointName: string, serviceConfigurationName: string, options?: ServiceConfigurationsGetOptionalParams): Promise<ServiceConfigurationsGetResponse>;
327
+ listByEndpointResource(resourceUri: string, endpointName: string, options?: ServiceConfigurationsListByEndpointResourceOptionalParams): PagedAsyncIterableIterator<ServiceConfigurationResource>;
328
+ update(resourceUri: string, endpointName: string, serviceConfigurationName: string, serviceConfigurationResource: ServiceConfigurationResourcePatch, options?: ServiceConfigurationsUpdateOptionalParams): Promise<ServiceConfigurationsUpdateResponse>;
329
+ }
330
+
331
+ // @public
332
+ export interface ServiceConfigurationsCreateOrupdateOptionalParams extends coreClient.OperationOptions {
333
+ }
334
+
335
+ // @public
336
+ export type ServiceConfigurationsCreateOrupdateResponse = ServiceConfigurationResource;
337
+
338
+ // @public
339
+ export interface ServiceConfigurationsDeleteOptionalParams extends coreClient.OperationOptions {
340
+ }
341
+
342
+ // @public
343
+ export interface ServiceConfigurationsGetOptionalParams extends coreClient.OperationOptions {
344
+ }
345
+
346
+ // @public
347
+ export type ServiceConfigurationsGetResponse = ServiceConfigurationResource;
348
+
349
+ // @public
350
+ export interface ServiceConfigurationsListByEndpointResourceNextOptionalParams extends coreClient.OperationOptions {
351
+ }
352
+
353
+ // @public
354
+ export type ServiceConfigurationsListByEndpointResourceNextResponse = ServiceConfigurationList;
355
+
356
+ // @public
357
+ export interface ServiceConfigurationsListByEndpointResourceOptionalParams extends coreClient.OperationOptions {
358
+ }
359
+
360
+ // @public
361
+ export type ServiceConfigurationsListByEndpointResourceResponse = ServiceConfigurationList;
362
+
363
+ // @public
364
+ export interface ServiceConfigurationsUpdateOptionalParams extends coreClient.OperationOptions {
365
+ }
366
+
367
+ // @public
368
+ export type ServiceConfigurationsUpdateResponse = ServiceConfigurationResource;
369
+
370
+ // @public
371
+ export type ServiceName = string;
372
+
373
+ // @public
374
+ export interface SystemData {
375
+ createdAt?: Date;
376
+ createdBy?: string;
377
+ createdByType?: CreatedByType;
378
+ lastModifiedAt?: Date;
379
+ lastModifiedBy?: string;
380
+ lastModifiedByType?: CreatedByType;
381
+ }
382
+
383
+ // @public
384
+ export type Type = string;
385
+
386
+ // (No @packageDocumentation comment for this package)
387
+
388
+ ```
@@ -0,0 +1,122 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import nodeResolve from "@rollup/plugin-node-resolve";
10
+ import cjs from "@rollup/plugin-commonjs";
11
+ import sourcemaps from "rollup-plugin-sourcemaps";
12
+ import multiEntry from "@rollup/plugin-multi-entry";
13
+ import json from "@rollup/plugin-json";
14
+
15
+ import nodeBuiltins from "builtin-modules";
16
+
17
+ // #region Warning Handler
18
+
19
+ /**
20
+ * A function that can determine whether a rollup warning should be ignored. If
21
+ * the function returns `true`, then the warning will not be displayed.
22
+ */
23
+
24
+ function ignoreNiseSinonEval(warning) {
25
+ return (
26
+ warning.code === "EVAL" &&
27
+ warning.id &&
28
+ (warning.id.includes("node_modules/nise") ||
29
+ warning.id.includes("node_modules/sinon")) === true
30
+ );
31
+ }
32
+
33
+ function ignoreChaiCircularDependency(warning) {
34
+ return (
35
+ warning.code === "CIRCULAR_DEPENDENCY" &&
36
+ warning.importer && warning.importer.includes("node_modules/chai") === true
37
+ );
38
+ }
39
+
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
41
+
42
+ /**
43
+ * Construct a warning handler for the shared rollup configuration
44
+ * that ignores certain warnings that are not relevant to testing.
45
+ */
46
+ function makeOnWarnForTesting() {
47
+ return (warning, warn) => {
48
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
49
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
50
+ warn(warning);
51
+ }
52
+ };
53
+ }
54
+
55
+ // #endregion
56
+
57
+ function makeBrowserTestConfig() {
58
+ const config = {
59
+ input: {
60
+ include: ["dist-esm/test/**/*.spec.js"],
61
+ exclude: ["dist-esm/test/**/node/**"]
62
+ },
63
+ output: {
64
+ file: `dist-test/index.browser.js`,
65
+ format: "umd",
66
+ sourcemap: true
67
+ },
68
+ preserveSymlinks: false,
69
+ plugins: [
70
+ multiEntry({ exports: false }),
71
+ nodeResolve({
72
+ mainFields: ["module", "browser"]
73
+ }),
74
+ cjs(),
75
+ json(),
76
+ sourcemaps()
77
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
78
+ ],
79
+ onwarn: makeOnWarnForTesting(),
80
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
81
+ // rollup started respecting the "sideEffects" field in package.json. Since
82
+ // our package.json sets "sideEffects=false", this also applies to test
83
+ // code, which causes all tests to be removed by tree-shaking.
84
+ treeshake: false
85
+ };
86
+
87
+ return config;
88
+ }
89
+
90
+ const defaultConfigurationOptions = {
91
+ disableBrowserBundle: false
92
+ };
93
+
94
+ export function makeConfig(pkg, options) {
95
+ options = {
96
+ ...defaultConfigurationOptions,
97
+ ...(options || {})
98
+ };
99
+
100
+ const baseConfig = {
101
+ // Use the package's module field if it has one
102
+ input: pkg["module"] || "dist-esm/src/index.js",
103
+ external: [
104
+ ...nodeBuiltins,
105
+ ...Object.keys(pkg.dependencies),
106
+ ...Object.keys(pkg.devDependencies)
107
+ ],
108
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
109
+ preserveSymlinks: false,
110
+ plugins: [sourcemaps(), nodeResolve()]
111
+ };
112
+
113
+ const config = [baseConfig];
114
+
115
+ if (!options.disableBrowserBundle) {
116
+ config.push(makeBrowserTestConfig());
117
+ }
118
+
119
+ return config;
120
+ }
121
+
122
+ export default makeConfig(require("./package.json"));
@@ -0,0 +1,144 @@
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 * as coreClient from "@azure/core-client";
10
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
+ import {
12
+ PipelineRequest,
13
+ PipelineResponse,
14
+ SendRequest
15
+ } from "@azure/core-rest-pipeline";
16
+ import * as coreAuth from "@azure/core-auth";
17
+ import {
18
+ OperationsImpl,
19
+ EndpointsImpl,
20
+ ServiceConfigurationsImpl
21
+ } from "./operations";
22
+ import {
23
+ Operations,
24
+ Endpoints,
25
+ ServiceConfigurations
26
+ } from "./operationsInterfaces";
27
+ import { HybridConnectivityManagementAPIOptionalParams } from "./models";
28
+
29
+ export class HybridConnectivityManagementAPI extends coreClient.ServiceClient {
30
+ $host: string;
31
+ apiVersion: string;
32
+
33
+ /**
34
+ * Initializes a new instance of the HybridConnectivityManagementAPI class.
35
+ * @param credentials Subscription credentials which uniquely identify client subscription.
36
+ * @param options The parameter options
37
+ */
38
+ constructor(
39
+ credentials: coreAuth.TokenCredential,
40
+ options?: HybridConnectivityManagementAPIOptionalParams
41
+ ) {
42
+ if (credentials === undefined) {
43
+ throw new Error("'credentials' cannot be null");
44
+ }
45
+
46
+ // Initializing default values for options
47
+ if (!options) {
48
+ options = {};
49
+ }
50
+ const defaults: HybridConnectivityManagementAPIOptionalParams = {
51
+ requestContentType: "application/json; charset=utf-8",
52
+ credential: credentials
53
+ };
54
+
55
+ const packageDetails = `azsdk-js-arm-hybridconnectivity/1.0.0-beta.1`;
56
+ const userAgentPrefix =
57
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
58
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
59
+ : `${packageDetails}`;
60
+
61
+ const optionsWithDefaults = {
62
+ ...defaults,
63
+ ...options,
64
+ userAgentOptions: {
65
+ userAgentPrefix
66
+ },
67
+ endpoint:
68
+ options.endpoint ?? options.baseUri ?? "https://management.azure.com"
69
+ };
70
+ super(optionsWithDefaults);
71
+
72
+ let bearerTokenAuthenticationPolicyFound: boolean = false;
73
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
74
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
75
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
76
+ (pipelinePolicy) =>
77
+ pipelinePolicy.name ===
78
+ coreRestPipeline.bearerTokenAuthenticationPolicyName
79
+ );
80
+ }
81
+ if (
82
+ !options ||
83
+ !options.pipeline ||
84
+ options.pipeline.getOrderedPolicies().length == 0 ||
85
+ !bearerTokenAuthenticationPolicyFound
86
+ ) {
87
+ this.pipeline.removePolicy({
88
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
89
+ });
90
+ this.pipeline.addPolicy(
91
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
92
+ credential: credentials,
93
+ scopes:
94
+ optionsWithDefaults.credentialScopes ??
95
+ `${optionsWithDefaults.endpoint}/.default`,
96
+ challengeCallbacks: {
97
+ authorizeRequestOnChallenge:
98
+ coreClient.authorizeRequestOnClaimChallenge
99
+ }
100
+ })
101
+ );
102
+ }
103
+
104
+ // Assigning values to Constant parameters
105
+ this.$host = options.$host || "https://management.azure.com";
106
+ this.apiVersion = options.apiVersion || "2023-03-15";
107
+ this.operations = new OperationsImpl(this);
108
+ this.endpoints = new EndpointsImpl(this);
109
+ this.serviceConfigurations = new ServiceConfigurationsImpl(this);
110
+ this.addCustomApiVersionPolicy(options.apiVersion);
111
+ }
112
+
113
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
114
+ private addCustomApiVersionPolicy(apiVersion?: string) {
115
+ if (!apiVersion) {
116
+ return;
117
+ }
118
+ const apiVersionPolicy = {
119
+ name: "CustomApiVersionPolicy",
120
+ async sendRequest(
121
+ request: PipelineRequest,
122
+ next: SendRequest
123
+ ): Promise<PipelineResponse> {
124
+ const param = request.url.split("?");
125
+ if (param.length > 1) {
126
+ const newParams = param[1].split("&").map((item) => {
127
+ if (item.indexOf("api-version") > -1) {
128
+ return "api-version=" + apiVersion;
129
+ } else {
130
+ return item;
131
+ }
132
+ });
133
+ request.url = param[0] + "?" + newParams.join("&");
134
+ }
135
+ return next(request);
136
+ }
137
+ };
138
+ this.pipeline.addPolicy(apiVersionPolicy);
139
+ }
140
+
141
+ operations: Operations;
142
+ endpoints: Endpoints;
143
+ serviceConfigurations: ServiceConfigurations;
144
+ }
package/src/index.ts ADDED
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ /// <reference lib="esnext.asynciterable" />
10
+ export { getContinuationToken } from "./pagingHelper";
11
+ export * from "./models";
12
+ export { HybridConnectivityManagementAPI } from "./hybridConnectivityManagementAPI";
13
+ export * from "./operationsInterfaces";