@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,149 @@
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, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
11
+ import { Operations } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
14
+ import * as Parameters from "../models/parameters";
15
+ import { HybridConnectivityManagementAPI } from "../hybridConnectivityManagementAPI";
16
+ import {
17
+ Operation,
18
+ OperationsListNextOptionalParams,
19
+ OperationsListOptionalParams,
20
+ OperationsListResponse,
21
+ OperationsListNextResponse
22
+ } from "../models";
23
+
24
+ /// <reference lib="esnext.asynciterable" />
25
+ /** Class containing Operations operations. */
26
+ export class OperationsImpl implements Operations {
27
+ private readonly client: HybridConnectivityManagementAPI;
28
+
29
+ /**
30
+ * Initialize a new instance of the class Operations class.
31
+ * @param client Reference to the service client
32
+ */
33
+ constructor(client: HybridConnectivityManagementAPI) {
34
+ this.client = client;
35
+ }
36
+
37
+ /**
38
+ * Lists the available Hybrid Connectivity REST API operations.
39
+ * @param options The options parameters.
40
+ */
41
+ public list(
42
+ options?: OperationsListOptionalParams
43
+ ): PagedAsyncIterableIterator<Operation> {
44
+ const iter = this.listPagingAll(options);
45
+ return {
46
+ next() {
47
+ return iter.next();
48
+ },
49
+ [Symbol.asyncIterator]() {
50
+ return this;
51
+ },
52
+ byPage: (settings?: PageSettings) => {
53
+ if (settings?.maxPageSize) {
54
+ throw new Error("maxPageSize is not supported by this operation.");
55
+ }
56
+ return this.listPagingPage(options, settings);
57
+ }
58
+ };
59
+ }
60
+
61
+ private async *listPagingPage(
62
+ options?: OperationsListOptionalParams,
63
+ settings?: PageSettings
64
+ ): AsyncIterableIterator<Operation[]> {
65
+ let result: OperationsListResponse;
66
+ let continuationToken = settings?.continuationToken;
67
+ if (!continuationToken) {
68
+ result = await this._list(options);
69
+ let page = result.value || [];
70
+ continuationToken = result.nextLink;
71
+ setContinuationToken(page, continuationToken);
72
+ yield page;
73
+ }
74
+ while (continuationToken) {
75
+ result = await this._listNext(continuationToken, options);
76
+ continuationToken = result.nextLink;
77
+ let page = result.value || [];
78
+ setContinuationToken(page, continuationToken);
79
+ yield page;
80
+ }
81
+ }
82
+
83
+ private async *listPagingAll(
84
+ options?: OperationsListOptionalParams
85
+ ): AsyncIterableIterator<Operation> {
86
+ for await (const page of this.listPagingPage(options)) {
87
+ yield* page;
88
+ }
89
+ }
90
+
91
+ /**
92
+ * Lists the available Hybrid Connectivity REST API operations.
93
+ * @param options The options parameters.
94
+ */
95
+ private _list(
96
+ options?: OperationsListOptionalParams
97
+ ): Promise<OperationsListResponse> {
98
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
99
+ }
100
+
101
+ /**
102
+ * ListNext
103
+ * @param nextLink The nextLink from the previous successful call to the List method.
104
+ * @param options The options parameters.
105
+ */
106
+ private _listNext(
107
+ nextLink: string,
108
+ options?: OperationsListNextOptionalParams
109
+ ): Promise<OperationsListNextResponse> {
110
+ return this.client.sendOperationRequest(
111
+ { nextLink, options },
112
+ listNextOperationSpec
113
+ );
114
+ }
115
+ }
116
+ // Operation Specifications
117
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
118
+
119
+ const listOperationSpec: coreClient.OperationSpec = {
120
+ path: "/providers/Microsoft.HybridConnectivity/operations",
121
+ httpMethod: "GET",
122
+ responses: {
123
+ 200: {
124
+ bodyMapper: Mappers.OperationListResult
125
+ },
126
+ default: {
127
+ bodyMapper: Mappers.ErrorResponse
128
+ }
129
+ },
130
+ queryParameters: [Parameters.apiVersion],
131
+ urlParameters: [Parameters.$host],
132
+ headerParameters: [Parameters.accept],
133
+ serializer
134
+ };
135
+ const listNextOperationSpec: coreClient.OperationSpec = {
136
+ path: "{nextLink}",
137
+ httpMethod: "GET",
138
+ responses: {
139
+ 200: {
140
+ bodyMapper: Mappers.OperationListResult
141
+ },
142
+ default: {
143
+ bodyMapper: Mappers.ErrorResponse
144
+ }
145
+ },
146
+ urlParameters: [Parameters.$host, Parameters.nextLink],
147
+ headerParameters: [Parameters.accept],
148
+ serializer
149
+ };
@@ -0,0 +1,401 @@
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, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
11
+ import { ServiceConfigurations } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
14
+ import * as Parameters from "../models/parameters";
15
+ import { HybridConnectivityManagementAPI } from "../hybridConnectivityManagementAPI";
16
+ import {
17
+ ServiceConfigurationResource,
18
+ ServiceConfigurationsListByEndpointResourceNextOptionalParams,
19
+ ServiceConfigurationsListByEndpointResourceOptionalParams,
20
+ ServiceConfigurationsListByEndpointResourceResponse,
21
+ ServiceConfigurationsGetOptionalParams,
22
+ ServiceConfigurationsGetResponse,
23
+ ServiceConfigurationsCreateOrupdateOptionalParams,
24
+ ServiceConfigurationsCreateOrupdateResponse,
25
+ ServiceConfigurationResourcePatch,
26
+ ServiceConfigurationsUpdateOptionalParams,
27
+ ServiceConfigurationsUpdateResponse,
28
+ ServiceConfigurationsDeleteOptionalParams,
29
+ ServiceConfigurationsListByEndpointResourceNextResponse
30
+ } from "../models";
31
+
32
+ /// <reference lib="esnext.asynciterable" />
33
+ /** Class containing ServiceConfigurations operations. */
34
+ export class ServiceConfigurationsImpl implements ServiceConfigurations {
35
+ private readonly client: HybridConnectivityManagementAPI;
36
+
37
+ /**
38
+ * Initialize a new instance of the class ServiceConfigurations class.
39
+ * @param client Reference to the service client
40
+ */
41
+ constructor(client: HybridConnectivityManagementAPI) {
42
+ this.client = client;
43
+ }
44
+
45
+ /**
46
+ * API to enumerate registered services in service configurations under a Endpoint Resource
47
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
48
+ * connected.
49
+ * @param endpointName The endpoint name.
50
+ * @param options The options parameters.
51
+ */
52
+ public listByEndpointResource(
53
+ resourceUri: string,
54
+ endpointName: string,
55
+ options?: ServiceConfigurationsListByEndpointResourceOptionalParams
56
+ ): PagedAsyncIterableIterator<ServiceConfigurationResource> {
57
+ const iter = this.listByEndpointResourcePagingAll(
58
+ resourceUri,
59
+ endpointName,
60
+ options
61
+ );
62
+ return {
63
+ next() {
64
+ return iter.next();
65
+ },
66
+ [Symbol.asyncIterator]() {
67
+ return this;
68
+ },
69
+ byPage: (settings?: PageSettings) => {
70
+ if (settings?.maxPageSize) {
71
+ throw new Error("maxPageSize is not supported by this operation.");
72
+ }
73
+ return this.listByEndpointResourcePagingPage(
74
+ resourceUri,
75
+ endpointName,
76
+ options,
77
+ settings
78
+ );
79
+ }
80
+ };
81
+ }
82
+
83
+ private async *listByEndpointResourcePagingPage(
84
+ resourceUri: string,
85
+ endpointName: string,
86
+ options?: ServiceConfigurationsListByEndpointResourceOptionalParams,
87
+ settings?: PageSettings
88
+ ): AsyncIterableIterator<ServiceConfigurationResource[]> {
89
+ let result: ServiceConfigurationsListByEndpointResourceResponse;
90
+ let continuationToken = settings?.continuationToken;
91
+ if (!continuationToken) {
92
+ result = await this._listByEndpointResource(
93
+ resourceUri,
94
+ endpointName,
95
+ options
96
+ );
97
+ let page = result.value || [];
98
+ continuationToken = result.nextLink;
99
+ setContinuationToken(page, continuationToken);
100
+ yield page;
101
+ }
102
+ while (continuationToken) {
103
+ result = await this._listByEndpointResourceNext(
104
+ resourceUri,
105
+ endpointName,
106
+ continuationToken,
107
+ options
108
+ );
109
+ continuationToken = result.nextLink;
110
+ let page = result.value || [];
111
+ setContinuationToken(page, continuationToken);
112
+ yield page;
113
+ }
114
+ }
115
+
116
+ private async *listByEndpointResourcePagingAll(
117
+ resourceUri: string,
118
+ endpointName: string,
119
+ options?: ServiceConfigurationsListByEndpointResourceOptionalParams
120
+ ): AsyncIterableIterator<ServiceConfigurationResource> {
121
+ for await (const page of this.listByEndpointResourcePagingPage(
122
+ resourceUri,
123
+ endpointName,
124
+ options
125
+ )) {
126
+ yield* page;
127
+ }
128
+ }
129
+
130
+ /**
131
+ * API to enumerate registered services in service configurations under a Endpoint Resource
132
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
133
+ * connected.
134
+ * @param endpointName The endpoint name.
135
+ * @param options The options parameters.
136
+ */
137
+ private _listByEndpointResource(
138
+ resourceUri: string,
139
+ endpointName: string,
140
+ options?: ServiceConfigurationsListByEndpointResourceOptionalParams
141
+ ): Promise<ServiceConfigurationsListByEndpointResourceResponse> {
142
+ return this.client.sendOperationRequest(
143
+ { resourceUri, endpointName, options },
144
+ listByEndpointResourceOperationSpec
145
+ );
146
+ }
147
+
148
+ /**
149
+ * Gets the details about the service to the resource.
150
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
151
+ * connected.
152
+ * @param endpointName The endpoint name.
153
+ * @param serviceConfigurationName The service name.
154
+ * @param options The options parameters.
155
+ */
156
+ get(
157
+ resourceUri: string,
158
+ endpointName: string,
159
+ serviceConfigurationName: string,
160
+ options?: ServiceConfigurationsGetOptionalParams
161
+ ): Promise<ServiceConfigurationsGetResponse> {
162
+ return this.client.sendOperationRequest(
163
+ { resourceUri, endpointName, serviceConfigurationName, options },
164
+ getOperationSpec
165
+ );
166
+ }
167
+
168
+ /**
169
+ * Create or update a service in serviceConfiguration for the endpoint resource.
170
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
171
+ * connected.
172
+ * @param endpointName The endpoint name.
173
+ * @param serviceConfigurationName The service name.
174
+ * @param serviceConfigurationResource Service details
175
+ * @param options The options parameters.
176
+ */
177
+ createOrupdate(
178
+ resourceUri: string,
179
+ endpointName: string,
180
+ serviceConfigurationName: string,
181
+ serviceConfigurationResource: ServiceConfigurationResource,
182
+ options?: ServiceConfigurationsCreateOrupdateOptionalParams
183
+ ): Promise<ServiceConfigurationsCreateOrupdateResponse> {
184
+ return this.client.sendOperationRequest(
185
+ {
186
+ resourceUri,
187
+ endpointName,
188
+ serviceConfigurationName,
189
+ serviceConfigurationResource,
190
+ options
191
+ },
192
+ createOrupdateOperationSpec
193
+ );
194
+ }
195
+
196
+ /**
197
+ * Update the service details in the service configurations of the target resource.
198
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
199
+ * connected.
200
+ * @param endpointName The endpoint name.
201
+ * @param serviceConfigurationName The service name.
202
+ * @param serviceConfigurationResource Service details
203
+ * @param options The options parameters.
204
+ */
205
+ update(
206
+ resourceUri: string,
207
+ endpointName: string,
208
+ serviceConfigurationName: string,
209
+ serviceConfigurationResource: ServiceConfigurationResourcePatch,
210
+ options?: ServiceConfigurationsUpdateOptionalParams
211
+ ): Promise<ServiceConfigurationsUpdateResponse> {
212
+ return this.client.sendOperationRequest(
213
+ {
214
+ resourceUri,
215
+ endpointName,
216
+ serviceConfigurationName,
217
+ serviceConfigurationResource,
218
+ options
219
+ },
220
+ updateOperationSpec
221
+ );
222
+ }
223
+
224
+ /**
225
+ * Deletes the service details to the target resource.
226
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
227
+ * connected.
228
+ * @param endpointName The endpoint name.
229
+ * @param serviceConfigurationName The service name.
230
+ * @param options The options parameters.
231
+ */
232
+ delete(
233
+ resourceUri: string,
234
+ endpointName: string,
235
+ serviceConfigurationName: string,
236
+ options?: ServiceConfigurationsDeleteOptionalParams
237
+ ): Promise<void> {
238
+ return this.client.sendOperationRequest(
239
+ { resourceUri, endpointName, serviceConfigurationName, options },
240
+ deleteOperationSpec
241
+ );
242
+ }
243
+
244
+ /**
245
+ * ListByEndpointResourceNext
246
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
247
+ * connected.
248
+ * @param endpointName The endpoint name.
249
+ * @param nextLink The nextLink from the previous successful call to the ListByEndpointResource method.
250
+ * @param options The options parameters.
251
+ */
252
+ private _listByEndpointResourceNext(
253
+ resourceUri: string,
254
+ endpointName: string,
255
+ nextLink: string,
256
+ options?: ServiceConfigurationsListByEndpointResourceNextOptionalParams
257
+ ): Promise<ServiceConfigurationsListByEndpointResourceNextResponse> {
258
+ return this.client.sendOperationRequest(
259
+ { resourceUri, endpointName, nextLink, options },
260
+ listByEndpointResourceNextOperationSpec
261
+ );
262
+ }
263
+ }
264
+ // Operation Specifications
265
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
266
+
267
+ const listByEndpointResourceOperationSpec: coreClient.OperationSpec = {
268
+ path:
269
+ "/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/serviceConfigurations",
270
+ httpMethod: "GET",
271
+ responses: {
272
+ 200: {
273
+ bodyMapper: Mappers.ServiceConfigurationList
274
+ },
275
+ default: {
276
+ bodyMapper: Mappers.ErrorResponse
277
+ }
278
+ },
279
+ queryParameters: [Parameters.apiVersion],
280
+ urlParameters: [
281
+ Parameters.$host,
282
+ Parameters.resourceUri,
283
+ Parameters.endpointName
284
+ ],
285
+ headerParameters: [Parameters.accept],
286
+ serializer
287
+ };
288
+ const getOperationSpec: coreClient.OperationSpec = {
289
+ path:
290
+ "/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/serviceConfigurations/{serviceConfigurationName}",
291
+ httpMethod: "GET",
292
+ responses: {
293
+ 200: {
294
+ bodyMapper: Mappers.ServiceConfigurationResource
295
+ },
296
+ default: {
297
+ bodyMapper: Mappers.ErrorResponse
298
+ }
299
+ },
300
+ queryParameters: [Parameters.apiVersion],
301
+ urlParameters: [
302
+ Parameters.$host,
303
+ Parameters.resourceUri,
304
+ Parameters.endpointName,
305
+ Parameters.serviceConfigurationName
306
+ ],
307
+ headerParameters: [Parameters.accept],
308
+ serializer
309
+ };
310
+ const createOrupdateOperationSpec: coreClient.OperationSpec = {
311
+ path:
312
+ "/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/serviceConfigurations/{serviceConfigurationName}",
313
+ httpMethod: "PUT",
314
+ responses: {
315
+ 200: {
316
+ bodyMapper: Mappers.ServiceConfigurationResource
317
+ },
318
+ 201: {
319
+ bodyMapper: Mappers.ServiceConfigurationResource
320
+ },
321
+ default: {
322
+ bodyMapper: Mappers.ErrorResponse
323
+ }
324
+ },
325
+ requestBody: Parameters.serviceConfigurationResource,
326
+ queryParameters: [Parameters.apiVersion],
327
+ urlParameters: [
328
+ Parameters.$host,
329
+ Parameters.resourceUri,
330
+ Parameters.endpointName,
331
+ Parameters.serviceConfigurationName
332
+ ],
333
+ headerParameters: [Parameters.accept, Parameters.contentType],
334
+ mediaType: "json",
335
+ serializer
336
+ };
337
+ const updateOperationSpec: coreClient.OperationSpec = {
338
+ path:
339
+ "/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/serviceConfigurations/{serviceConfigurationName}",
340
+ httpMethod: "PATCH",
341
+ responses: {
342
+ 200: {
343
+ bodyMapper: Mappers.ServiceConfigurationResource
344
+ },
345
+ default: {
346
+ bodyMapper: Mappers.ErrorResponse
347
+ }
348
+ },
349
+ requestBody: Parameters.serviceConfigurationResource1,
350
+ queryParameters: [Parameters.apiVersion],
351
+ urlParameters: [
352
+ Parameters.$host,
353
+ Parameters.resourceUri,
354
+ Parameters.endpointName,
355
+ Parameters.serviceConfigurationName
356
+ ],
357
+ headerParameters: [Parameters.accept, Parameters.contentType],
358
+ mediaType: "json",
359
+ serializer
360
+ };
361
+ const deleteOperationSpec: coreClient.OperationSpec = {
362
+ path:
363
+ "/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/serviceConfigurations/{serviceConfigurationName}",
364
+ httpMethod: "DELETE",
365
+ responses: {
366
+ 200: {},
367
+ 204: {},
368
+ default: {
369
+ bodyMapper: Mappers.ErrorResponse
370
+ }
371
+ },
372
+ queryParameters: [Parameters.apiVersion],
373
+ urlParameters: [
374
+ Parameters.$host,
375
+ Parameters.resourceUri,
376
+ Parameters.endpointName,
377
+ Parameters.serviceConfigurationName
378
+ ],
379
+ headerParameters: [Parameters.accept],
380
+ serializer
381
+ };
382
+ const listByEndpointResourceNextOperationSpec: coreClient.OperationSpec = {
383
+ path: "{nextLink}",
384
+ httpMethod: "GET",
385
+ responses: {
386
+ 200: {
387
+ bodyMapper: Mappers.ServiceConfigurationList
388
+ },
389
+ default: {
390
+ bodyMapper: Mappers.ErrorResponse
391
+ }
392
+ },
393
+ urlParameters: [
394
+ Parameters.$host,
395
+ Parameters.nextLink,
396
+ Parameters.resourceUri,
397
+ Parameters.endpointName
398
+ ],
399
+ headerParameters: [Parameters.accept],
400
+ serializer
401
+ };
@@ -0,0 +1,132 @@
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 {
11
+ EndpointResource,
12
+ EndpointsListOptionalParams,
13
+ EndpointsGetOptionalParams,
14
+ EndpointsGetResponse,
15
+ EndpointsCreateOrUpdateOptionalParams,
16
+ EndpointsCreateOrUpdateResponse,
17
+ EndpointsUpdateOptionalParams,
18
+ EndpointsUpdateResponse,
19
+ EndpointsDeleteOptionalParams,
20
+ EndpointsListCredentialsOptionalParams,
21
+ EndpointsListCredentialsResponse,
22
+ EndpointsListIngressGatewayCredentialsOptionalParams,
23
+ EndpointsListIngressGatewayCredentialsResponse,
24
+ ManagedProxyRequest,
25
+ EndpointsListManagedProxyDetailsOptionalParams,
26
+ EndpointsListManagedProxyDetailsResponse
27
+ } from "../models";
28
+
29
+ /// <reference lib="esnext.asynciterable" />
30
+ /** Interface representing a Endpoints. */
31
+ export interface Endpoints {
32
+ /**
33
+ * List of endpoints to the target resource.
34
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
35
+ * connected.
36
+ * @param options The options parameters.
37
+ */
38
+ list(
39
+ resourceUri: string,
40
+ options?: EndpointsListOptionalParams
41
+ ): PagedAsyncIterableIterator<EndpointResource>;
42
+ /**
43
+ * Gets the endpoint to the resource.
44
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
45
+ * connected.
46
+ * @param endpointName The endpoint name.
47
+ * @param options The options parameters.
48
+ */
49
+ get(
50
+ resourceUri: string,
51
+ endpointName: string,
52
+ options?: EndpointsGetOptionalParams
53
+ ): Promise<EndpointsGetResponse>;
54
+ /**
55
+ * Create or update the endpoint to the target resource.
56
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
57
+ * connected.
58
+ * @param endpointName The endpoint name.
59
+ * @param endpointResource Endpoint details
60
+ * @param options The options parameters.
61
+ */
62
+ createOrUpdate(
63
+ resourceUri: string,
64
+ endpointName: string,
65
+ endpointResource: EndpointResource,
66
+ options?: EndpointsCreateOrUpdateOptionalParams
67
+ ): Promise<EndpointsCreateOrUpdateResponse>;
68
+ /**
69
+ * Update the endpoint to the target resource.
70
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
71
+ * connected.
72
+ * @param endpointName The endpoint name.
73
+ * @param endpointResource Endpoint details
74
+ * @param options The options parameters.
75
+ */
76
+ update(
77
+ resourceUri: string,
78
+ endpointName: string,
79
+ endpointResource: EndpointResource,
80
+ options?: EndpointsUpdateOptionalParams
81
+ ): Promise<EndpointsUpdateResponse>;
82
+ /**
83
+ * Deletes the endpoint access to the target resource.
84
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
85
+ * connected.
86
+ * @param endpointName The endpoint name.
87
+ * @param options The options parameters.
88
+ */
89
+ delete(
90
+ resourceUri: string,
91
+ endpointName: string,
92
+ options?: EndpointsDeleteOptionalParams
93
+ ): Promise<void>;
94
+ /**
95
+ * Gets the endpoint access credentials to the resource.
96
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
97
+ * connected.
98
+ * @param endpointName The endpoint name.
99
+ * @param options The options parameters.
100
+ */
101
+ listCredentials(
102
+ resourceUri: string,
103
+ endpointName: string,
104
+ options?: EndpointsListCredentialsOptionalParams
105
+ ): Promise<EndpointsListCredentialsResponse>;
106
+ /**
107
+ * Gets the ingress gateway endpoint credentials
108
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
109
+ * connected.
110
+ * @param endpointName The endpoint name.
111
+ * @param options The options parameters.
112
+ */
113
+ listIngressGatewayCredentials(
114
+ resourceUri: string,
115
+ endpointName: string,
116
+ options?: EndpointsListIngressGatewayCredentialsOptionalParams
117
+ ): Promise<EndpointsListIngressGatewayCredentialsResponse>;
118
+ /**
119
+ * Fetches the managed proxy details
120
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be
121
+ * connected.
122
+ * @param endpointName The endpoint name.
123
+ * @param managedProxyRequest Object of type ManagedProxyRequest
124
+ * @param options The options parameters.
125
+ */
126
+ listManagedProxyDetails(
127
+ resourceUri: string,
128
+ endpointName: string,
129
+ managedProxyRequest: ManagedProxyRequest,
130
+ options?: EndpointsListManagedProxyDetailsOptionalParams
131
+ ): Promise<EndpointsListManagedProxyDetailsResponse>;
132
+ }
@@ -0,0 +1,11 @@
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
+ export * from "./operations";
10
+ export * from "./endpoints";
11
+ export * from "./serviceConfigurations";