@azure/synapse-managed-private-endpoints 1.0.0-beta.4 → 1.0.0-beta.6

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 (176) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -18
  3. package/dist/browser/index.d.ts +4 -0
  4. package/dist/browser/index.d.ts.map +1 -0
  5. package/dist/browser/index.js +11 -0
  6. package/dist/browser/index.js.map +1 -0
  7. package/dist/browser/managedPrivateEndpointsClient.d.ts +20 -0
  8. package/dist/browser/managedPrivateEndpointsClient.d.ts.map +1 -0
  9. package/dist/browser/managedPrivateEndpointsClient.js +101 -0
  10. package/dist/browser/managedPrivateEndpointsClient.js.map +1 -0
  11. package/dist/browser/models/index.d.ts +99 -0
  12. package/dist/browser/models/index.d.ts.map +1 -0
  13. package/dist/browser/models/index.js +10 -0
  14. package/dist/browser/models/index.js.map +1 -0
  15. package/dist/browser/models/mappers.d.ts +6 -0
  16. package/dist/browser/models/mappers.d.ts.map +1 -0
  17. package/dist/browser/models/mappers.js +162 -0
  18. package/dist/browser/models/mappers.js.map +1 -0
  19. package/dist/browser/models/parameters.d.ts +10 -0
  20. package/dist/browser/models/parameters.d.ts.map +1 -0
  21. package/dist/browser/models/parameters.js +88 -0
  22. package/dist/browser/models/parameters.js.map +1 -0
  23. package/dist/browser/operations/index.d.ts +2 -0
  24. package/dist/browser/operations/index.d.ts.map +1 -0
  25. package/dist/browser/operations/index.js +9 -0
  26. package/dist/browser/operations/index.js.map +1 -0
  27. package/dist/browser/operations/managedPrivateEndpoints.d.ts +57 -0
  28. package/dist/browser/operations/managedPrivateEndpoints.d.ts.map +1 -0
  29. package/dist/browser/operations/managedPrivateEndpoints.js +193 -0
  30. package/dist/browser/operations/managedPrivateEndpoints.js.map +1 -0
  31. package/dist/browser/operationsInterfaces/index.d.ts +2 -0
  32. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  33. package/dist/browser/operationsInterfaces/index.js +9 -0
  34. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  35. package/dist/browser/operationsInterfaces/managedPrivateEndpoints.d.ts +34 -0
  36. package/dist/browser/operationsInterfaces/managedPrivateEndpoints.d.ts.map +1 -0
  37. package/dist/browser/operationsInterfaces/managedPrivateEndpoints.js +9 -0
  38. package/dist/browser/operationsInterfaces/managedPrivateEndpoints.js.map +1 -0
  39. package/dist/browser/package.json +3 -0
  40. package/dist/browser/tracing.d.ts +2 -0
  41. package/dist/browser/tracing.d.ts.map +1 -0
  42. package/dist/browser/tracing.js +14 -0
  43. package/dist/browser/tracing.js.map +1 -0
  44. package/dist/commonjs/index.d.ts +4 -0
  45. package/dist/commonjs/index.d.ts.map +1 -0
  46. package/dist/commonjs/index.js +16 -0
  47. package/dist/commonjs/index.js.map +1 -0
  48. package/dist/commonjs/managedPrivateEndpointsClient.d.ts +20 -0
  49. package/dist/commonjs/managedPrivateEndpointsClient.d.ts.map +1 -0
  50. package/dist/commonjs/managedPrivateEndpointsClient.js +106 -0
  51. package/dist/commonjs/managedPrivateEndpointsClient.js.map +1 -0
  52. package/dist/commonjs/models/index.d.ts +99 -0
  53. package/dist/commonjs/models/index.d.ts.map +1 -0
  54. package/dist/commonjs/models/index.js +11 -0
  55. package/dist/commonjs/models/index.js.map +1 -0
  56. package/dist/commonjs/models/mappers.d.ts +6 -0
  57. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  58. package/dist/commonjs/models/mappers.js +165 -0
  59. package/dist/commonjs/models/mappers.js.map +1 -0
  60. package/dist/commonjs/models/parameters.d.ts +10 -0
  61. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  62. package/dist/commonjs/models/parameters.js +91 -0
  63. package/dist/commonjs/models/parameters.js.map +1 -0
  64. package/dist/commonjs/operations/index.d.ts +2 -0
  65. package/dist/commonjs/operations/index.d.ts.map +1 -0
  66. package/dist/commonjs/operations/index.js +12 -0
  67. package/dist/commonjs/operations/index.js.map +1 -0
  68. package/dist/commonjs/operations/managedPrivateEndpoints.d.ts +57 -0
  69. package/dist/commonjs/operations/managedPrivateEndpoints.d.ts.map +1 -0
  70. package/dist/commonjs/operations/managedPrivateEndpoints.js +198 -0
  71. package/dist/commonjs/operations/managedPrivateEndpoints.js.map +1 -0
  72. package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
  73. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  74. package/dist/commonjs/operationsInterfaces/index.js +12 -0
  75. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  76. package/dist/commonjs/operationsInterfaces/managedPrivateEndpoints.d.ts +34 -0
  77. package/dist/commonjs/operationsInterfaces/managedPrivateEndpoints.d.ts.map +1 -0
  78. package/dist/commonjs/operationsInterfaces/managedPrivateEndpoints.js +10 -0
  79. package/dist/commonjs/operationsInterfaces/managedPrivateEndpoints.js.map +1 -0
  80. package/dist/commonjs/package.json +3 -0
  81. package/dist/commonjs/tracing.d.ts +2 -0
  82. package/dist/commonjs/tracing.d.ts.map +1 -0
  83. package/dist/commonjs/tracing.js +17 -0
  84. package/dist/commonjs/tracing.js.map +1 -0
  85. package/dist/commonjs/tsdoc-metadata.json +11 -0
  86. package/dist/esm/index.d.ts +4 -0
  87. package/dist/esm/index.d.ts.map +1 -0
  88. package/dist/esm/index.js +11 -0
  89. package/dist/esm/index.js.map +1 -0
  90. package/dist/esm/managedPrivateEndpointsClient.d.ts +20 -0
  91. package/dist/esm/managedPrivateEndpointsClient.d.ts.map +1 -0
  92. package/dist/esm/managedPrivateEndpointsClient.js +101 -0
  93. package/dist/esm/managedPrivateEndpointsClient.js.map +1 -0
  94. package/dist/esm/models/index.d.ts +99 -0
  95. package/dist/esm/models/index.d.ts.map +1 -0
  96. package/dist/esm/models/index.js +10 -0
  97. package/dist/esm/models/index.js.map +1 -0
  98. package/dist/esm/models/mappers.d.ts +6 -0
  99. package/dist/esm/models/mappers.d.ts.map +1 -0
  100. package/dist/esm/models/mappers.js +162 -0
  101. package/dist/esm/models/mappers.js.map +1 -0
  102. package/dist/esm/models/parameters.d.ts +10 -0
  103. package/dist/esm/models/parameters.d.ts.map +1 -0
  104. package/dist/esm/models/parameters.js +88 -0
  105. package/dist/esm/models/parameters.js.map +1 -0
  106. package/dist/esm/operations/index.d.ts +2 -0
  107. package/dist/esm/operations/index.d.ts.map +1 -0
  108. package/dist/esm/operations/index.js +9 -0
  109. package/dist/esm/operations/index.js.map +1 -0
  110. package/dist/esm/operations/managedPrivateEndpoints.d.ts +57 -0
  111. package/dist/esm/operations/managedPrivateEndpoints.d.ts.map +1 -0
  112. package/dist/esm/operations/managedPrivateEndpoints.js +193 -0
  113. package/dist/esm/operations/managedPrivateEndpoints.js.map +1 -0
  114. package/dist/esm/operationsInterfaces/index.d.ts +2 -0
  115. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  116. package/dist/esm/operationsInterfaces/index.js +9 -0
  117. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  118. package/dist/esm/operationsInterfaces/managedPrivateEndpoints.d.ts +34 -0
  119. package/dist/esm/operationsInterfaces/managedPrivateEndpoints.d.ts.map +1 -0
  120. package/dist/esm/operationsInterfaces/managedPrivateEndpoints.js +9 -0
  121. package/dist/esm/operationsInterfaces/managedPrivateEndpoints.js.map +1 -0
  122. package/dist/esm/package.json +3 -0
  123. package/dist/esm/tracing.d.ts +2 -0
  124. package/dist/esm/tracing.d.ts.map +1 -0
  125. package/dist/esm/tracing.js +14 -0
  126. package/dist/esm/tracing.js.map +1 -0
  127. package/dist/react-native/index.d.ts +4 -0
  128. package/dist/react-native/index.d.ts.map +1 -0
  129. package/dist/react-native/index.js +11 -0
  130. package/dist/react-native/index.js.map +1 -0
  131. package/dist/react-native/managedPrivateEndpointsClient.d.ts +20 -0
  132. package/dist/react-native/managedPrivateEndpointsClient.d.ts.map +1 -0
  133. package/dist/react-native/managedPrivateEndpointsClient.js +101 -0
  134. package/dist/react-native/managedPrivateEndpointsClient.js.map +1 -0
  135. package/dist/react-native/models/index.d.ts +99 -0
  136. package/dist/react-native/models/index.d.ts.map +1 -0
  137. package/dist/react-native/models/index.js +10 -0
  138. package/dist/react-native/models/index.js.map +1 -0
  139. package/dist/react-native/models/mappers.d.ts +6 -0
  140. package/dist/react-native/models/mappers.d.ts.map +1 -0
  141. package/dist/react-native/models/mappers.js +162 -0
  142. package/dist/react-native/models/mappers.js.map +1 -0
  143. package/dist/react-native/models/parameters.d.ts +10 -0
  144. package/dist/react-native/models/parameters.d.ts.map +1 -0
  145. package/dist/react-native/models/parameters.js +88 -0
  146. package/dist/react-native/models/parameters.js.map +1 -0
  147. package/dist/react-native/operations/index.d.ts +2 -0
  148. package/dist/react-native/operations/index.d.ts.map +1 -0
  149. package/dist/react-native/operations/index.js +9 -0
  150. package/dist/react-native/operations/index.js.map +1 -0
  151. package/dist/react-native/operations/managedPrivateEndpoints.d.ts +57 -0
  152. package/dist/react-native/operations/managedPrivateEndpoints.d.ts.map +1 -0
  153. package/dist/react-native/operations/managedPrivateEndpoints.js +193 -0
  154. package/dist/react-native/operations/managedPrivateEndpoints.js.map +1 -0
  155. package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
  156. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  157. package/dist/react-native/operationsInterfaces/index.js +9 -0
  158. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  159. package/dist/react-native/operationsInterfaces/managedPrivateEndpoints.d.ts +34 -0
  160. package/dist/react-native/operationsInterfaces/managedPrivateEndpoints.d.ts.map +1 -0
  161. package/dist/react-native/operationsInterfaces/managedPrivateEndpoints.js +9 -0
  162. package/dist/react-native/operationsInterfaces/managedPrivateEndpoints.js.map +1 -0
  163. package/dist/react-native/package.json +3 -0
  164. package/dist/react-native/tracing.d.ts +2 -0
  165. package/dist/react-native/tracing.d.ts.map +1 -0
  166. package/dist/react-native/tracing.js +14 -0
  167. package/dist/react-native/tracing.js.map +1 -0
  168. package/package.json +83 -79
  169. package/CHANGELOG.md +0 -22
  170. package/dist/index.js +0 -618
  171. package/dist/index.js.map +0 -1
  172. package/dist/index.min.js +0 -1
  173. package/dist/index.min.js.map +0 -1
  174. package/rollup.config.js +0 -3
  175. package/tsconfig.json +0 -19
  176. package/types/synapse-managed-private-endpoints.d.ts +0 -173
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ManagedPrivateEndpointsClient = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
+ const index_js_1 = require("./operations/index.js");
15
+ class ManagedPrivateEndpointsClient extends coreClient.ServiceClient {
16
+ endpoint;
17
+ apiVersion;
18
+ /**
19
+ * Initializes a new instance of the ManagedPrivateEndpointsClient class.
20
+ * @param credentials - Subscription credentials which uniquely identify client subscription.
21
+ * @param endpoint - The workspace development endpoint, for example
22
+ * https://myworkspace.dev.azuresynapse.net.
23
+ * @param options - The parameter options
24
+ */
25
+ constructor(credentials, endpoint, options) {
26
+ if (credentials === undefined) {
27
+ throw new Error("'credentials' cannot be null");
28
+ }
29
+ if (endpoint === undefined) {
30
+ throw new Error("'endpoint' cannot be null");
31
+ }
32
+ // Initializing default values for options
33
+ if (!options) {
34
+ options = {};
35
+ }
36
+ const defaults = {
37
+ requestContentType: "application/json; charset=utf-8",
38
+ credential: credentials,
39
+ };
40
+ const packageDetails = `azsdk-js-synapse-managed-private-endpoints/1.0.0-beta.6`;
41
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
42
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
43
+ : `${packageDetails}`;
44
+ if (!options.credentialScopes) {
45
+ options.credentialScopes = ["https://dev.azuresynapse.net/.default"];
46
+ }
47
+ const optionsWithDefaults = {
48
+ ...defaults,
49
+ ...options,
50
+ userAgentOptions: {
51
+ userAgentPrefix,
52
+ },
53
+ baseUri: options.endpoint ?? options.baseUri ?? "{endpoint}",
54
+ };
55
+ super(optionsWithDefaults);
56
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
57
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
58
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
59
+ if (!bearerTokenAuthenticationPolicyFound) {
60
+ this.pipeline.removePolicy({
61
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
62
+ });
63
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
64
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
65
+ challengeCallbacks: {
66
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
67
+ },
68
+ }));
69
+ }
70
+ }
71
+ // Parameter assignments
72
+ this.endpoint = endpoint;
73
+ // Assigning values to Constant parameters
74
+ this.apiVersion = options.apiVersion || "2020-12-01";
75
+ this.managedPrivateEndpoints = new index_js_1.ManagedPrivateEndpointsImpl(this);
76
+ this.addCustomApiVersionPolicy(options.apiVersion);
77
+ }
78
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
79
+ addCustomApiVersionPolicy(apiVersion) {
80
+ if (!apiVersion) {
81
+ return;
82
+ }
83
+ const apiVersionPolicy = {
84
+ name: "CustomApiVersionPolicy",
85
+ async sendRequest(request, next) {
86
+ const param = request.url.split("?");
87
+ if (param.length > 1) {
88
+ const newParams = param[1].split("&").map((item) => {
89
+ if (item.indexOf("api-version") > -1) {
90
+ return "api-version=" + apiVersion;
91
+ }
92
+ else {
93
+ return item;
94
+ }
95
+ });
96
+ request.url = param[0] + "?" + newParams.join("&");
97
+ }
98
+ return next(request);
99
+ },
100
+ };
101
+ this.pipeline.addPolicy(apiVersionPolicy);
102
+ }
103
+ managedPrivateEndpoints;
104
+ }
105
+ exports.ManagedPrivateEndpointsClient = ManagedPrivateEndpointsClient;
106
+ //# sourceMappingURL=managedPrivateEndpointsClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managedPrivateEndpointsClient.js","sourceRoot":"","sources":["../../src/managedPrivateEndpointsClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAG9D,oDAAoE;AAIpE,MAAa,6BAA8B,SAAQ,UAAU,CAAC,aAAa;IACzE,QAAQ,CAAS;IACjB,UAAU,CAAS;IAEnB;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,QAAgB,EAChB,OAAqD;QAErD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAAgD;YAC5D,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,yDAAyD,CAAC;QACjF,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC9B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAA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CAAC,CAAC;IACrD,CAAC;IAED,8GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CAAC,OAAwB,EAAE,IAAiB;gBAC3D,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,uBAAuB,CAA0B;CAClD;AA3GD,sEA2GC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport { ManagedPrivateEndpointsImpl } from \"./operations/index.js\";\nimport type { ManagedPrivateEndpoints } from \"./operationsInterfaces/index.js\";\nimport type { ManagedPrivateEndpointsClientOptionalParams } from \"./models/index.js\";\n\nexport class ManagedPrivateEndpointsClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ManagedPrivateEndpointsClient class.\n * @param credentials - Subscription credentials which uniquely identify client subscription.\n * @param endpoint - The workspace development endpoint, for example\n * https://myworkspace.dev.azuresynapse.net.\n * @param options - The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n endpoint: string,\n options?: ManagedPrivateEndpointsClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ManagedPrivateEndpointsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-synapse-managed-private-endpoints/1.0.0-beta.6`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://dev.azuresynapse.net/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n baseUri: options.endpoint ?? options.baseUri ?? \"{endpoint}\",\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n }\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2020-12-01\";\n this.managedPrivateEndpoints = new ManagedPrivateEndpointsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string): void {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n managedPrivateEndpoints: ManagedPrivateEndpoints;\n}\n"]}
@@ -0,0 +1,99 @@
1
+ import type * as coreClient from "@azure/core-client";
2
+ /** Managed private endpoint */
3
+ export interface ManagedPrivateEndpoint {
4
+ /**
5
+ * Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
6
+ * NOTE: This property will not be serialized. It can only be populated by the server.
7
+ */
8
+ readonly id?: string;
9
+ /**
10
+ * The name of the resource
11
+ * NOTE: This property will not be serialized. It can only be populated by the server.
12
+ */
13
+ readonly name?: string;
14
+ /**
15
+ * The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
16
+ * NOTE: This property will not be serialized. It can only be populated by the server.
17
+ */
18
+ readonly type?: string;
19
+ /** Managed private endpoint properties */
20
+ properties?: ManagedPrivateEndpointProperties;
21
+ }
22
+ /** Properties of a managed private endpoint */
23
+ export interface ManagedPrivateEndpointProperties {
24
+ /** The name of managed private endpoint */
25
+ name?: string;
26
+ /** The ARM resource ID of the resource to which the managed private endpoint is created */
27
+ privateLinkResourceId?: string;
28
+ /** The groupId to which the managed private endpoint is created */
29
+ groupId?: string;
30
+ /**
31
+ * The managed private endpoint provisioning state
32
+ * NOTE: This property will not be serialized. It can only be populated by the server.
33
+ */
34
+ readonly provisioningState?: string;
35
+ /** The managed private endpoint connection state */
36
+ connectionState?: ManagedPrivateEndpointConnectionState;
37
+ /**
38
+ * Denotes whether the managed private endpoint is reserved
39
+ * NOTE: This property will not be serialized. It can only be populated by the server.
40
+ */
41
+ readonly isReserved?: boolean;
42
+ /** List of fully qualified domain names */
43
+ fqdns?: string[];
44
+ /** Denotes whether the managed private endpoint is compliant */
45
+ isCompliant?: boolean;
46
+ }
47
+ /** The connection state of a managed private endpoint */
48
+ export interface ManagedPrivateEndpointConnectionState {
49
+ /**
50
+ * The approval status
51
+ * NOTE: This property will not be serialized. It can only be populated by the server.
52
+ */
53
+ readonly status?: string;
54
+ /** The managed private endpoint description */
55
+ description?: string;
56
+ /** The actions required on the managed private endpoint */
57
+ actionsRequired?: string;
58
+ }
59
+ /** A list of managed private endpoints */
60
+ export interface ManagedPrivateEndpointListResponse {
61
+ /** List of managed private endpoints */
62
+ value?: ManagedPrivateEndpoint[];
63
+ /**
64
+ * The link to the next page of results, if any remaining results exist.
65
+ * NOTE: This property will not be serialized. It can only be populated by the server.
66
+ */
67
+ readonly nextLink?: string;
68
+ }
69
+ /** Optional parameters. */
70
+ export interface ManagedPrivateEndpointsGetOptionalParams extends coreClient.OperationOptions {
71
+ }
72
+ /** Contains response data for the get operation. */
73
+ export type ManagedPrivateEndpointsGetResponse = ManagedPrivateEndpoint;
74
+ /** Optional parameters. */
75
+ export interface ManagedPrivateEndpointsCreateOptionalParams extends coreClient.OperationOptions {
76
+ }
77
+ /** Contains response data for the create operation. */
78
+ export type ManagedPrivateEndpointsCreateResponse = ManagedPrivateEndpoint;
79
+ /** Optional parameters. */
80
+ export interface ManagedPrivateEndpointsDeleteOptionalParams extends coreClient.OperationOptions {
81
+ }
82
+ /** Optional parameters. */
83
+ export interface ManagedPrivateEndpointsListOptionalParams extends coreClient.OperationOptions {
84
+ }
85
+ /** Contains response data for the list operation. */
86
+ export type ManagedPrivateEndpointsListResponse = ManagedPrivateEndpointListResponse;
87
+ /** Optional parameters. */
88
+ export interface ManagedPrivateEndpointsListNextOptionalParams extends coreClient.OperationOptions {
89
+ }
90
+ /** Contains response data for the listNext operation. */
91
+ export type ManagedPrivateEndpointsListNextResponse = ManagedPrivateEndpointListResponse;
92
+ /** Optional parameters. */
93
+ export interface ManagedPrivateEndpointsClientOptionalParams extends coreClient.ServiceClientOptions {
94
+ /** Api Version */
95
+ apiVersion?: string;
96
+ /** Overrides client endpoint. */
97
+ endpoint?: string;
98
+ }
99
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEtD,+BAA+B;AAC/B,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,gCAAgC,CAAC;CAC/C;AAED,+CAA+C;AAC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C3B,MAAM,WAAW,yCAA0C,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAEjG,qDAAqD;AACrD,MAAM,MAAM,mCAAmC,GAAG,kCAAkC,CAAC;AAErF,2BAA2B;AAC3B,MAAM,WAAW,6CACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,yDAAyD;AACzD,MAAM,MAAM,uCAAuC,GAAG,kCAAkC,CAAC;AAEzF,2BAA2B;AAC3B,MAAM,WAAW,2CACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /* eslint-disable tsdoc/syntax */
3
+ /*
4
+ * Copyright (c) Microsoft Corporation.
5
+ * Licensed under the MIT License.
6
+ *
7
+ * Code generated by Microsoft (R) AutoRest Code Generator.
8
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC;;;;;;GAMG","sourcesContent":["/* eslint-disable tsdoc/syntax */\n/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type * as coreClient from \"@azure/core-client\";\n\n/** Managed private endpoint */\nexport interface ManagedPrivateEndpoint {\n /**\n * Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the resource\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** Managed private endpoint properties */\n properties?: ManagedPrivateEndpointProperties;\n}\n\n/** Properties of a managed private endpoint */\nexport interface ManagedPrivateEndpointProperties {\n /** The name of managed private endpoint */\n name?: string;\n /** The ARM resource ID of the resource to which the managed private endpoint is created */\n privateLinkResourceId?: string;\n /** The groupId to which the managed private endpoint is created */\n groupId?: string;\n /**\n * The managed private endpoint provisioning state\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provisioningState?: string;\n /** The managed private endpoint connection state */\n connectionState?: ManagedPrivateEndpointConnectionState;\n /**\n * Denotes whether the managed private endpoint is reserved\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly isReserved?: boolean;\n /** List of fully qualified domain names */\n fqdns?: string[];\n /** Denotes whether the managed private endpoint is compliant */\n isCompliant?: boolean;\n}\n\n/** The connection state of a managed private endpoint */\nexport interface ManagedPrivateEndpointConnectionState {\n /**\n * The approval status\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly status?: string;\n /** The managed private endpoint description */\n description?: string;\n /** The actions required on the managed private endpoint */\n actionsRequired?: string;\n}\n\n/** A list of managed private endpoints */\nexport interface ManagedPrivateEndpointListResponse {\n /** List of managed private endpoints */\n value?: ManagedPrivateEndpoint[];\n /**\n * The link to the next page of results, if any remaining results exist.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Optional parameters. */\nexport interface ManagedPrivateEndpointsGetOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type ManagedPrivateEndpointsGetResponse = ManagedPrivateEndpoint;\n\n/** Optional parameters. */\nexport interface ManagedPrivateEndpointsCreateOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the create operation. */\nexport type ManagedPrivateEndpointsCreateResponse = ManagedPrivateEndpoint;\n\n/** Optional parameters. */\nexport interface ManagedPrivateEndpointsDeleteOptionalParams extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface ManagedPrivateEndpointsListOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type ManagedPrivateEndpointsListResponse = ManagedPrivateEndpointListResponse;\n\n/** Optional parameters. */\nexport interface ManagedPrivateEndpointsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type ManagedPrivateEndpointsListNextResponse = ManagedPrivateEndpointListResponse;\n\n/** Optional parameters. */\nexport interface ManagedPrivateEndpointsClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import type * as coreClient from "@azure/core-client";
2
+ export declare const ManagedPrivateEndpoint: coreClient.CompositeMapper;
3
+ export declare const ManagedPrivateEndpointProperties: coreClient.CompositeMapper;
4
+ export declare const ManagedPrivateEndpointConnectionState: coreClient.CompositeMapper;
5
+ export declare const ManagedPrivateEndpointListResponse: coreClient.CompositeMapper;
6
+ //# sourceMappingURL=mappers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAmC/C,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,eA+DzD,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,UAAU,CAAC,eA0B9D,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,UAAU,CAAC,eA0B3D,CAAC"}
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ManagedPrivateEndpointListResponse = exports.ManagedPrivateEndpointConnectionState = exports.ManagedPrivateEndpointProperties = exports.ManagedPrivateEndpoint = void 0;
11
+ exports.ManagedPrivateEndpoint = {
12
+ type: {
13
+ name: "Composite",
14
+ className: "ManagedPrivateEndpoint",
15
+ modelProperties: {
16
+ id: {
17
+ serializedName: "id",
18
+ readOnly: true,
19
+ type: {
20
+ name: "String",
21
+ },
22
+ },
23
+ name: {
24
+ serializedName: "name",
25
+ readOnly: true,
26
+ type: {
27
+ name: "String",
28
+ },
29
+ },
30
+ type: {
31
+ serializedName: "type",
32
+ readOnly: true,
33
+ type: {
34
+ name: "String",
35
+ },
36
+ },
37
+ properties: {
38
+ serializedName: "properties",
39
+ type: {
40
+ name: "Composite",
41
+ className: "ManagedPrivateEndpointProperties",
42
+ },
43
+ },
44
+ },
45
+ },
46
+ };
47
+ exports.ManagedPrivateEndpointProperties = {
48
+ type: {
49
+ name: "Composite",
50
+ className: "ManagedPrivateEndpointProperties",
51
+ modelProperties: {
52
+ name: {
53
+ serializedName: "name",
54
+ type: {
55
+ name: "String",
56
+ },
57
+ },
58
+ privateLinkResourceId: {
59
+ serializedName: "privateLinkResourceId",
60
+ type: {
61
+ name: "String",
62
+ },
63
+ },
64
+ groupId: {
65
+ serializedName: "groupId",
66
+ type: {
67
+ name: "String",
68
+ },
69
+ },
70
+ provisioningState: {
71
+ serializedName: "provisioningState",
72
+ readOnly: true,
73
+ type: {
74
+ name: "String",
75
+ },
76
+ },
77
+ connectionState: {
78
+ serializedName: "connectionState",
79
+ type: {
80
+ name: "Composite",
81
+ className: "ManagedPrivateEndpointConnectionState",
82
+ },
83
+ },
84
+ isReserved: {
85
+ serializedName: "isReserved",
86
+ readOnly: true,
87
+ type: {
88
+ name: "Boolean",
89
+ },
90
+ },
91
+ fqdns: {
92
+ serializedName: "fqdns",
93
+ type: {
94
+ name: "Sequence",
95
+ element: {
96
+ type: {
97
+ name: "String",
98
+ },
99
+ },
100
+ },
101
+ },
102
+ isCompliant: {
103
+ serializedName: "isCompliant",
104
+ type: {
105
+ name: "Boolean",
106
+ },
107
+ },
108
+ },
109
+ },
110
+ };
111
+ exports.ManagedPrivateEndpointConnectionState = {
112
+ type: {
113
+ name: "Composite",
114
+ className: "ManagedPrivateEndpointConnectionState",
115
+ modelProperties: {
116
+ status: {
117
+ serializedName: "status",
118
+ readOnly: true,
119
+ type: {
120
+ name: "String",
121
+ },
122
+ },
123
+ description: {
124
+ serializedName: "description",
125
+ type: {
126
+ name: "String",
127
+ },
128
+ },
129
+ actionsRequired: {
130
+ serializedName: "actionsRequired",
131
+ type: {
132
+ name: "String",
133
+ },
134
+ },
135
+ },
136
+ },
137
+ };
138
+ exports.ManagedPrivateEndpointListResponse = {
139
+ type: {
140
+ name: "Composite",
141
+ className: "ManagedPrivateEndpointListResponse",
142
+ modelProperties: {
143
+ value: {
144
+ serializedName: "value",
145
+ type: {
146
+ name: "Sequence",
147
+ element: {
148
+ type: {
149
+ name: "Composite",
150
+ className: "ManagedPrivateEndpoint",
151
+ },
152
+ },
153
+ },
154
+ },
155
+ nextLink: {
156
+ serializedName: "nextLink",
157
+ readOnly: true,
158
+ type: {
159
+ name: "String",
160
+ },
161
+ },
162
+ },
163
+ },
164
+ };
165
+ //# sourceMappingURL=mappers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,sBAAsB,GAA+B;IAChE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,wBAAwB;QACnC,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,QAAQ,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,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type * as coreClient from \"@azure/core-client\";\n\nexport const ManagedPrivateEndpoint: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedPrivateEndpoint\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n properties: {\n serializedName: \"properties\",\n type: {\n name: \"Composite\",\n className: \"ManagedPrivateEndpointProperties\",\n },\n },\n },\n },\n};\n\nexport const ManagedPrivateEndpointProperties: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedPrivateEndpointProperties\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\",\n },\n },\n privateLinkResourceId: {\n serializedName: \"privateLinkResourceId\",\n type: {\n name: \"String\",\n },\n },\n groupId: {\n serializedName: \"groupId\",\n type: {\n name: \"String\",\n },\n },\n provisioningState: {\n serializedName: \"provisioningState\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n connectionState: {\n serializedName: \"connectionState\",\n type: {\n name: \"Composite\",\n className: \"ManagedPrivateEndpointConnectionState\",\n },\n },\n isReserved: {\n serializedName: \"isReserved\",\n readOnly: true,\n type: {\n name: \"Boolean\",\n },\n },\n fqdns: {\n serializedName: \"fqdns\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\",\n },\n },\n },\n },\n isCompliant: {\n serializedName: \"isCompliant\",\n type: {\n name: \"Boolean\",\n },\n },\n },\n },\n};\n\nexport const ManagedPrivateEndpointConnectionState: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedPrivateEndpointConnectionState\",\n modelProperties: {\n status: {\n serializedName: \"status\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\",\n },\n },\n actionsRequired: {\n serializedName: \"actionsRequired\",\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n\nexport const ManagedPrivateEndpointListResponse: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ManagedPrivateEndpointListResponse\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ManagedPrivateEndpoint\",\n },\n },\n },\n },\n nextLink: {\n serializedName: \"nextLink\",\n readOnly: true,\n type: {\n name: \"String\",\n },\n },\n },\n },\n};\n"]}
@@ -0,0 +1,10 @@
1
+ import type { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
2
+ export declare const accept: OperationParameter;
3
+ export declare const endpoint: OperationURLParameter;
4
+ export declare const apiVersion: OperationQueryParameter;
5
+ export declare const managedVirtualNetworkName: OperationURLParameter;
6
+ export declare const managedPrivateEndpointName: OperationURLParameter;
7
+ export declare const contentType: OperationParameter;
8
+ export declare const managedPrivateEndpoint: OperationParameter;
9
+ export declare const nextLink: OperationURLParameter;
10
+ //# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,qBASvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,qBASxC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,kBAGpC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC"}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.nextLink = exports.managedPrivateEndpoint = exports.contentType = exports.managedPrivateEndpointName = exports.managedVirtualNetworkName = exports.apiVersion = exports.endpoint = exports.accept = void 0;
11
+ const mappers_js_1 = require("../models/mappers.js");
12
+ exports.accept = {
13
+ parameterPath: "accept",
14
+ mapper: {
15
+ defaultValue: "application/json",
16
+ isConstant: true,
17
+ serializedName: "Accept",
18
+ type: {
19
+ name: "String",
20
+ },
21
+ },
22
+ };
23
+ exports.endpoint = {
24
+ parameterPath: "endpoint",
25
+ mapper: {
26
+ serializedName: "endpoint",
27
+ required: true,
28
+ type: {
29
+ name: "String",
30
+ },
31
+ },
32
+ skipEncoding: true,
33
+ };
34
+ exports.apiVersion = {
35
+ parameterPath: "apiVersion",
36
+ mapper: {
37
+ defaultValue: "2020-12-01",
38
+ isConstant: true,
39
+ serializedName: "api-version",
40
+ type: {
41
+ name: "String",
42
+ },
43
+ },
44
+ };
45
+ exports.managedVirtualNetworkName = {
46
+ parameterPath: "managedVirtualNetworkName",
47
+ mapper: {
48
+ serializedName: "managedVirtualNetworkName",
49
+ required: true,
50
+ type: {
51
+ name: "String",
52
+ },
53
+ },
54
+ };
55
+ exports.managedPrivateEndpointName = {
56
+ parameterPath: "managedPrivateEndpointName",
57
+ mapper: {
58
+ serializedName: "managedPrivateEndpointName",
59
+ required: true,
60
+ type: {
61
+ name: "String",
62
+ },
63
+ },
64
+ };
65
+ exports.contentType = {
66
+ parameterPath: ["options", "contentType"],
67
+ mapper: {
68
+ defaultValue: "application/json",
69
+ isConstant: true,
70
+ serializedName: "Content-Type",
71
+ type: {
72
+ name: "String",
73
+ },
74
+ },
75
+ };
76
+ exports.managedPrivateEndpoint = {
77
+ parameterPath: "managedPrivateEndpoint",
78
+ mapper: mappers_js_1.ManagedPrivateEndpoint,
79
+ };
80
+ exports.nextLink = {
81
+ parameterPath: "nextLink",
82
+ mapper: {
83
+ serializedName: "nextLink",
84
+ required: true,
85
+ type: {
86
+ name: "String",
87
+ },
88
+ },
89
+ skipEncoding: true,
90
+ };
91
+ //# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAOH,qDAA8F;AAEjF,QAAA,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEW,QAAA,UAAU,GAA4B;IACjD,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE;QACN,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,aAAa;QAC7B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,yBAAyB,GAA0B;IAC9D,aAAa,EAAE,2BAA2B;IAC1C,MAAM,EAAE;QACN,cAAc,EAAE,2BAA2B;QAC3C,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,0BAA0B,GAA0B;IAC/D,aAAa,EAAE,4BAA4B;IAC3C,MAAM,EAAE;QACN,cAAc,EAAE,4BAA4B;QAC5C,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,sBAAsB,GAAuB;IACxD,aAAa,EAAE,wBAAwB;IACvC,MAAM,EAAE,mCAA4B;CACrC,CAAC;AAEW,QAAA,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter,\n} from \"@azure/core-client\";\nimport { ManagedPrivateEndpoint as ManagedPrivateEndpointMapper } from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const endpoint: OperationURLParameter = {\n parameterPath: \"endpoint\",\n mapper: {\n serializedName: \"endpoint\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const apiVersion: OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n defaultValue: \"2020-12-01\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const managedVirtualNetworkName: OperationURLParameter = {\n parameterPath: \"managedVirtualNetworkName\",\n mapper: {\n serializedName: \"managedVirtualNetworkName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const managedPrivateEndpointName: OperationURLParameter = {\n parameterPath: \"managedPrivateEndpointName\",\n mapper: {\n serializedName: \"managedPrivateEndpointName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const managedPrivateEndpoint: OperationParameter = {\n parameterPath: \"managedPrivateEndpoint\",\n mapper: ManagedPrivateEndpointMapper,\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./managedPrivateEndpoints.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./managedPrivateEndpoints.js"), exports);
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,uEAA6C","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./managedPrivateEndpoints.js\";\n"]}
@@ -0,0 +1,57 @@
1
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import type { ManagedPrivateEndpoints } from "../operationsInterfaces/index.js";
3
+ import type { ManagedPrivateEndpointsClient } from "../managedPrivateEndpointsClient.js";
4
+ import type { ManagedPrivateEndpoint, ManagedPrivateEndpointsListOptionalParams, ManagedPrivateEndpointsGetOptionalParams, ManagedPrivateEndpointsGetResponse, ManagedPrivateEndpointsCreateOptionalParams, ManagedPrivateEndpointsCreateResponse, ManagedPrivateEndpointsDeleteOptionalParams } from "../models/index.js";
5
+ /** Class containing ManagedPrivateEndpoints operations. */
6
+ export declare class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class ManagedPrivateEndpoints class.
10
+ * @param client - Reference to the service client
11
+ */
12
+ constructor(client: ManagedPrivateEndpointsClient);
13
+ /**
14
+ * List Managed Private Endpoints
15
+ * @param managedVirtualNetworkName - Managed virtual network name
16
+ * @param options - The options parameters.
17
+ */
18
+ list(managedVirtualNetworkName: string, options?: ManagedPrivateEndpointsListOptionalParams): PagedAsyncIterableIterator<ManagedPrivateEndpoint>;
19
+ private listPagingPage;
20
+ private listPagingAll;
21
+ /**
22
+ * Get Managed Private Endpoints
23
+ * @param managedVirtualNetworkName - Managed virtual network name
24
+ * @param managedPrivateEndpointName - Managed private endpoint name
25
+ * @param options - The options parameters.
26
+ */
27
+ get(managedVirtualNetworkName: string, managedPrivateEndpointName: string, options?: ManagedPrivateEndpointsGetOptionalParams): Promise<ManagedPrivateEndpointsGetResponse>;
28
+ /**
29
+ * Create Managed Private Endpoints
30
+ * @param managedVirtualNetworkName - Managed virtual network name
31
+ * @param managedPrivateEndpointName - Managed private endpoint name
32
+ * @param managedPrivateEndpoint - Managed private endpoint properties.
33
+ * @param options - The options parameters.
34
+ */
35
+ create(managedVirtualNetworkName: string, managedPrivateEndpointName: string, managedPrivateEndpoint: ManagedPrivateEndpoint, options?: ManagedPrivateEndpointsCreateOptionalParams): Promise<ManagedPrivateEndpointsCreateResponse>;
36
+ /**
37
+ * Delete Managed Private Endpoints
38
+ * @param managedVirtualNetworkName - Managed virtual network name
39
+ * @param managedPrivateEndpointName - Managed private endpoint name
40
+ * @param options - The options parameters.
41
+ */
42
+ delete(managedVirtualNetworkName: string, managedPrivateEndpointName: string, options?: ManagedPrivateEndpointsDeleteOptionalParams): Promise<void>;
43
+ /**
44
+ * List Managed Private Endpoints
45
+ * @param managedVirtualNetworkName - Managed virtual network name
46
+ * @param options - The options parameters.
47
+ */
48
+ private _list;
49
+ /**
50
+ * ListNext
51
+ * @param managedVirtualNetworkName - Managed virtual network name
52
+ * @param nextLink - The nextLink from the previous successful call to the List method.
53
+ * @param options - The options parameters.
54
+ */
55
+ private _listNext;
56
+ }
57
+ //# sourceMappingURL=managedPrivateEndpoints.d.ts.map