@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,54 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the endpoint to the resource.
17
+ *
18
+ * @summary Gets the endpoint to the resource.
19
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/EndpointsGetCustom.json
20
+ */
21
+ function hybridConnectivityEndpointsGetCustom() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine";
24
+ const endpointName = "custom";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new HybridConnectivityManagementAPI(credential);
27
+ const result = yield client.endpoints.get(resourceUri, endpointName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ /**
32
+ * This sample demonstrates how to Gets the endpoint to the resource.
33
+ *
34
+ * @summary Gets the endpoint to the resource.
35
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/EndpointsGetDefault.json
36
+ */
37
+ function hybridConnectivityEndpointsGetDefault() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine";
40
+ const endpointName = "default";
41
+ const credential = new DefaultAzureCredential();
42
+ const client = new HybridConnectivityManagementAPI(credential);
43
+ const result = yield client.endpoints.get(resourceUri, endpointName);
44
+ console.log(result);
45
+ });
46
+ }
47
+ function main() {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ hybridConnectivityEndpointsGetCustom();
50
+ hybridConnectivityEndpointsGetDefault();
51
+ });
52
+ }
53
+ main().catch(console.error);
54
+ //# sourceMappingURL=endpointsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointsGetSample.js","sourceRoot":"","sources":["../../samples-dev/endpointsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oCAAoC;;QACjD,MAAM,WAAW,GACf,mIAAmI,CAAC;QACtI,MAAM,YAAY,GAAG,QAAQ,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;QACrE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,qCAAqC;;QAClD,MAAM,WAAW,GACf,mIAAmI,CAAC;QACtI,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;QACrE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,oCAAoC,EAAE,CAAC;QACvC,qCAAqC,EAAE,CAAC;IAC1C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=endpointsListCredentialsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointsListCredentialsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointsListCredentialsSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the endpoint access credentials to the resource.
17
+ *
18
+ * @summary Gets the endpoint access credentials to the resource.
19
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/EndpointsPostListCredentials.json
20
+ */
21
+ function hybridConnectivityEndpointsPostListCredentials() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine";
24
+ const endpointName = "default";
25
+ const expiresin = 10800;
26
+ const listCredentialsRequest = { serviceName: "SSH" };
27
+ const options = {
28
+ expiresin,
29
+ listCredentialsRequest
30
+ };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new HybridConnectivityManagementAPI(credential);
33
+ const result = yield client.endpoints.listCredentials(resourceUri, endpointName, options);
34
+ console.log(result);
35
+ });
36
+ }
37
+ function main() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ hybridConnectivityEndpointsPostListCredentials();
40
+ });
41
+ }
42
+ main().catch(console.error);
43
+ //# sourceMappingURL=endpointsListCredentialsSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointsListCredentialsSample.js","sourceRoot":"","sources":["../../samples-dev/endpointsListCredentialsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,8CAA8C;;QAC3D,MAAM,WAAW,GACf,mIAAmI,CAAC;QACtI,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,SAAS,GAAG,KAAK,CAAC;QACxB,MAAM,sBAAsB,GAA2B,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;QAC9E,MAAM,OAAO,GAA2C;YACtD,SAAS;YACT,sBAAsB;SACvB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,eAAe,CACnD,WAAW,EACX,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,8CAA8C,EAAE,CAAC;IACnD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=endpointsListIngressGatewayCredentialsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointsListIngressGatewayCredentialsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointsListIngressGatewayCredentialsSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the ingress gateway endpoint credentials
17
+ *
18
+ * @summary Gets the ingress gateway endpoint credentials
19
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/EndpointsPostListIngressGatewayCredentials.json
20
+ */
21
+ function hybridConnectivityEndpointsPostListIngressGatewayCredentials() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/arcGroup/providers/Microsoft.ArcPlaceHolder/ProvisionedClusters/cluster0";
24
+ const endpointName = "default";
25
+ const expiresin = 10800;
26
+ const options = {
27
+ expiresin
28
+ };
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new HybridConnectivityManagementAPI(credential);
31
+ const result = yield client.endpoints.listIngressGatewayCredentials(resourceUri, endpointName, options);
32
+ console.log(result);
33
+ });
34
+ }
35
+ function main() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ hybridConnectivityEndpointsPostListIngressGatewayCredentials();
38
+ });
39
+ }
40
+ main().catch(console.error);
41
+ //# sourceMappingURL=endpointsListIngressGatewayCredentialsSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointsListIngressGatewayCredentialsSample.js","sourceRoot":"","sources":["../../samples-dev/endpointsListIngressGatewayCredentialsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4DAA4D;;QACzE,MAAM,WAAW,GACf,4IAA4I,CAAC;QAC/I,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,SAAS,GAAG,KAAK,CAAC;QACxB,MAAM,OAAO,GAAyD;YACpE,SAAS;SACV,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,6BAA6B,CACjE,WAAW,EACX,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,4DAA4D,EAAE,CAAC;IACjE,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=endpointsListManagedProxyDetailsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointsListManagedProxyDetailsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointsListManagedProxyDetailsSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Fetches the managed proxy details
17
+ *
18
+ * @summary Fetches the managed proxy details
19
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/EndpointsPostListManagedProxyDetails.json
20
+ */
21
+ function hybridConnectivityEndpointsPostListManagedProxyDetails() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/arcGroup/providers/Microsoft.Compute/virtualMachines/vm00006";
24
+ const endpointName = "default";
25
+ const managedProxyRequest = {
26
+ hostname: "r.proxy.arc.com",
27
+ service: "127.0.0.1:65035",
28
+ serviceName: "WAC"
29
+ };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new HybridConnectivityManagementAPI(credential);
32
+ const result = yield client.endpoints.listManagedProxyDetails(resourceUri, endpointName, managedProxyRequest);
33
+ console.log(result);
34
+ });
35
+ }
36
+ function main() {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ hybridConnectivityEndpointsPostListManagedProxyDetails();
39
+ });
40
+ }
41
+ main().catch(console.error);
42
+ //# sourceMappingURL=endpointsListManagedProxyDetailsSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointsListManagedProxyDetailsSample.js","sourceRoot":"","sources":["../../samples-dev/endpointsListManagedProxyDetailsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sDAAsD;;QACnE,MAAM,WAAW,GACf,gIAAgI,CAAC;QACnI,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,mBAAmB,GAAwB;YAC/C,QAAQ,EAAE,iBAAiB;YAC3B,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,KAAK;SACnB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,uBAAuB,CAC3D,WAAW,EACX,YAAY,EACZ,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sDAAsD,EAAE,CAAC;IAC3D,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=endpointsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to List of endpoints to the target resource.
17
+ *
18
+ * @summary List of endpoints to the target resource.
19
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/EndpointsList.json
20
+ */
21
+ function hybridConnectivityEndpointsGet() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new HybridConnectivityManagementAPI(credential);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _d = true, _e = __asyncValues(client.endpoints.list(resourceUri)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
30
+ _c = _f.value;
31
+ _d = false;
32
+ try {
33
+ let item = _c;
34
+ resArray.push(item);
35
+ }
36
+ finally {
37
+ _d = true;
38
+ }
39
+ }
40
+ }
41
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
42
+ finally {
43
+ try {
44
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
45
+ }
46
+ finally { if (e_1) throw e_1.error; }
47
+ }
48
+ console.log(resArray);
49
+ });
50
+ }
51
+ function main() {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ hybridConnectivityEndpointsGet();
54
+ });
55
+ }
56
+ main().catch(console.error);
57
+ //# sourceMappingURL=endpointsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointsListSample.js","sourceRoot":"","sources":["../../samples-dev/endpointsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,8BAA8B;;;QAC3C,MAAM,WAAW,GACf,mIAAmI,CAAC;QACtI,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA,IAAA;gBAAlC,cAAkC;gBAAlC,WAAkC;;oBAA9C,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,8BAA8B,EAAE,CAAC;IACnC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=endpointsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/endpointsUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Update the endpoint to the target resource.
17
+ *
18
+ * @summary Update the endpoint to the target resource.
19
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/EndpointsPatchDefault.json
20
+ */
21
+ function hybridConnectivityEndpointsPatchDefault() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine";
24
+ const endpointName = "default";
25
+ const endpointResource = {
26
+ properties: { type: "default" }
27
+ };
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new HybridConnectivityManagementAPI(credential);
30
+ const result = yield client.endpoints.update(resourceUri, endpointName, endpointResource);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ hybridConnectivityEndpointsPatchDefault();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=endpointsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpointsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/endpointsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,uCAAuC;;QACpD,MAAM,WAAW,GACf,mIAAmI,CAAC;QACtI,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,gBAAgB,GAAqB;YACzC,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAChC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAC1C,WAAW,EACX,YAAY,EACZ,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,uCAAuC,EAAE,CAAC;IAC5C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,56 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Lists the available Hybrid Connectivity REST API operations.
17
+ *
18
+ * @summary Lists the available Hybrid Connectivity REST API operations.
19
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/OperationsList.json
20
+ */
21
+ function hybridConnectivityOperationsList() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new HybridConnectivityManagementAPI(credential);
26
+ const resArray = new Array();
27
+ try {
28
+ for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
29
+ _c = _f.value;
30
+ _d = false;
31
+ try {
32
+ let item = _c;
33
+ resArray.push(item);
34
+ }
35
+ finally {
36
+ _d = true;
37
+ }
38
+ }
39
+ }
40
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
41
+ finally {
42
+ try {
43
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
44
+ }
45
+ finally { if (e_1) throw e_1.error; }
46
+ }
47
+ console.log(resArray);
48
+ });
49
+ }
50
+ function main() {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ hybridConnectivityOperationsList();
53
+ });
54
+ }
55
+ main().catch(console.error);
56
+ //# sourceMappingURL=operationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gCAAgC;;;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAxB,cAAwB;gBAAxB,WAAwB;;oBAApC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,gCAAgC,EAAE,CAAC;IACrC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=serviceConfigurationsCreateOrupdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceConfigurationsCreateOrupdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/serviceConfigurationsCreateOrupdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Create or update a service in serviceConfiguration for the endpoint resource.
17
+ *
18
+ * @summary Create or update a service in serviceConfiguration for the endpoint resource.
19
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/ServiceConfigurationsPutSSH.json
20
+ */
21
+ function serviceConfigurationsPutSsh() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default";
24
+ const endpointName = "default";
25
+ const serviceConfigurationName = "SSH";
26
+ const serviceConfigurationResource = {
27
+ port: 22,
28
+ serviceName: "SSH"
29
+ };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new HybridConnectivityManagementAPI(credential);
32
+ const result = yield client.serviceConfigurations.createOrupdate(resourceUri, endpointName, serviceConfigurationName, serviceConfigurationResource);
33
+ console.log(result);
34
+ });
35
+ }
36
+ /**
37
+ * This sample demonstrates how to Create or update a service in serviceConfiguration for the endpoint resource.
38
+ *
39
+ * @summary Create or update a service in serviceConfiguration for the endpoint resource.
40
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/ServiceConfigurationsPutWAC.json
41
+ */
42
+ function serviceConfigurationsPutWac() {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default";
45
+ const endpointName = "default";
46
+ const serviceConfigurationName = "WAC";
47
+ const serviceConfigurationResource = {
48
+ port: 6516,
49
+ serviceName: "WAC"
50
+ };
51
+ const credential = new DefaultAzureCredential();
52
+ const client = new HybridConnectivityManagementAPI(credential);
53
+ const result = yield client.serviceConfigurations.createOrupdate(resourceUri, endpointName, serviceConfigurationName, serviceConfigurationResource);
54
+ console.log(result);
55
+ });
56
+ }
57
+ function main() {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ serviceConfigurationsPutSsh();
60
+ serviceConfigurationsPutWac();
61
+ });
62
+ }
63
+ main().catch(console.error);
64
+ //# sourceMappingURL=serviceConfigurationsCreateOrupdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceConfigurationsCreateOrupdateSample.js","sourceRoot":"","sources":["../../samples-dev/serviceConfigurationsCreateOrupdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,+BAA+B,EAChC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,WAAW,GACf,4LAA4L,CAAC;QAC/L,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,wBAAwB,GAAG,KAAK,CAAC;QACvC,MAAM,4BAA4B,GAAiC;YACjE,IAAI,EAAE,EAAE;YACR,WAAW,EAAE,KAAK;SACnB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,cAAc,CAC9D,WAAW,EACX,YAAY,EACZ,wBAAwB,EACxB,4BAA4B,CAC7B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,WAAW,GACf,4LAA4L,CAAC;QAC/L,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,wBAAwB,GAAG,KAAK,CAAC;QACvC,MAAM,4BAA4B,GAAiC;YACjE,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,KAAK;SACnB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,cAAc,CAC9D,WAAW,EACX,YAAY,EACZ,wBAAwB,EACxB,4BAA4B,CAC7B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2BAA2B,EAAE,CAAC;QAC9B,2BAA2B,EAAE,CAAC;IAChC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=serviceConfigurationsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceConfigurationsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/serviceConfigurationsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Deletes the service details to the target resource.
17
+ *
18
+ * @summary Deletes the service details to the target resource.
19
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/ServiceConfigurationsDeleteSSH.json
20
+ */
21
+ function serviceConfigurationsDeleteSsh() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default";
24
+ const endpointName = "default";
25
+ const serviceConfigurationName = "SSH";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new HybridConnectivityManagementAPI(credential);
28
+ const result = yield client.serviceConfigurations.delete(resourceUri, endpointName, serviceConfigurationName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ function main() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ serviceConfigurationsDeleteSsh();
35
+ });
36
+ }
37
+ main().catch(console.error);
38
+ //# sourceMappingURL=serviceConfigurationsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceConfigurationsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/serviceConfigurationsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,8BAA8B;;QAC3C,MAAM,WAAW,GACf,4LAA4L,CAAC;QAC/L,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,wBAAwB,GAAG,KAAK,CAAC;QACvC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,MAAM,CACtD,WAAW,EACX,YAAY,EACZ,wBAAwB,CACzB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,8BAA8B,EAAE,CAAC;IACnC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=serviceConfigurationsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceConfigurationsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/serviceConfigurationsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,56 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { HybridConnectivityManagementAPI } from "@azure/arm-hybridconnectivity";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the details about the service to the resource.
17
+ *
18
+ * @summary Gets the details about the service to the resource.
19
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/ServiceConfigurationsGetSSH.json
20
+ */
21
+ function hybridConnectivityEndpointsServiceconfigurationsGetSsh() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default";
24
+ const endpointName = "default";
25
+ const serviceConfigurationName = "SSH";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new HybridConnectivityManagementAPI(credential);
28
+ const result = yield client.serviceConfigurations.get(resourceUri, endpointName, serviceConfigurationName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ /**
33
+ * This sample demonstrates how to Gets the details about the service to the resource.
34
+ *
35
+ * @summary Gets the details about the service to the resource.
36
+ * x-ms-original-file: specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/stable/2023-03-15/examples/ServiceConfigurationsGetWAC.json
37
+ */
38
+ function hybridConnectivityEndpointsServiceconfigurationsGetWac() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const resourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default";
41
+ const endpointName = "default";
42
+ const serviceConfigurationName = "WAC";
43
+ const credential = new DefaultAzureCredential();
44
+ const client = new HybridConnectivityManagementAPI(credential);
45
+ const result = yield client.serviceConfigurations.get(resourceUri, endpointName, serviceConfigurationName);
46
+ console.log(result);
47
+ });
48
+ }
49
+ function main() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ hybridConnectivityEndpointsServiceconfigurationsGetSsh();
52
+ hybridConnectivityEndpointsServiceconfigurationsGetWac();
53
+ });
54
+ }
55
+ main().catch(console.error);
56
+ //# sourceMappingURL=serviceConfigurationsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceConfigurationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/serviceConfigurationsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sDAAsD;;QACnE,MAAM,WAAW,GACf,4LAA4L,CAAC;QAC/L,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,wBAAwB,GAAG,KAAK,CAAC;QACvC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,GAAG,CACnD,WAAW,EACX,YAAY,EACZ,wBAAwB,CACzB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,sDAAsD;;QACnE,MAAM,WAAW,GACf,4LAA4L,CAAC;QAC/L,MAAM,YAAY,GAAG,SAAS,CAAC;QAC/B,MAAM,wBAAwB,GAAG,KAAK,CAAC;QACvC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,+BAA+B,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,GAAG,CACnD,WAAW,EACX,YAAY,EACZ,wBAAwB,CACzB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sDAAsD,EAAE,CAAC;QACzD,sDAAsD,EAAE,CAAC;IAC3D,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=serviceConfigurationsListByEndpointResourceSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceConfigurationsListByEndpointResourceSample.d.ts","sourceRoot":"","sources":["../../samples-dev/serviceConfigurationsListByEndpointResourceSample.ts"],"names":[],"mappings":""}