@azure/synapse-managed-private-endpoints 1.0.0-beta.3 → 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.
- package/LICENSE +21 -0
- package/README.md +11 -18
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +11 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/managedPrivateEndpointsClient.d.ts +20 -0
- package/dist/browser/managedPrivateEndpointsClient.d.ts.map +1 -0
- package/dist/browser/managedPrivateEndpointsClient.js +101 -0
- package/dist/browser/managedPrivateEndpointsClient.js.map +1 -0
- package/dist/browser/models/index.d.ts +99 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +10 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.d.ts +6 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/dist/browser/models/mappers.js +162 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.d.ts +10 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/dist/browser/models/parameters.js +88 -0
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +2 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +9 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/dist/browser/operations/managedPrivateEndpoints.d.ts +57 -0
- package/dist/browser/operations/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist/browser/operations/managedPrivateEndpoints.js +193 -0
- package/dist/browser/operations/managedPrivateEndpoints.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +2 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +9 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/operationsInterfaces/managedPrivateEndpoints.d.ts +34 -0
- package/dist/browser/operationsInterfaces/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/managedPrivateEndpoints.js +9 -0
- package/dist/browser/operationsInterfaces/managedPrivateEndpoints.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/tracing.d.ts +2 -0
- package/dist/browser/tracing.d.ts.map +1 -0
- package/dist/browser/tracing.js +14 -0
- package/dist/browser/tracing.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +16 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/managedPrivateEndpointsClient.d.ts +20 -0
- package/dist/commonjs/managedPrivateEndpointsClient.d.ts.map +1 -0
- package/dist/commonjs/managedPrivateEndpointsClient.js +106 -0
- package/dist/commonjs/managedPrivateEndpointsClient.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +99 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +11 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +6 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +165 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +10 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +91 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +2 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +12 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/managedPrivateEndpoints.d.ts +57 -0
- package/dist/commonjs/operations/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist/commonjs/operations/managedPrivateEndpoints.js +198 -0
- package/dist/commonjs/operations/managedPrivateEndpoints.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +12 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/managedPrivateEndpoints.d.ts +34 -0
- package/dist/commonjs/operationsInterfaces/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/managedPrivateEndpoints.js +10 -0
- package/dist/commonjs/operationsInterfaces/managedPrivateEndpoints.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tracing.d.ts +2 -0
- package/dist/commonjs/tracing.d.ts.map +1 -0
- package/dist/commonjs/tracing.js +17 -0
- package/dist/commonjs/tracing.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/managedPrivateEndpointsClient.d.ts +20 -0
- package/dist/esm/managedPrivateEndpointsClient.d.ts.map +1 -0
- package/dist/esm/managedPrivateEndpointsClient.js +101 -0
- package/dist/esm/managedPrivateEndpointsClient.js.map +1 -0
- package/dist/esm/models/index.d.ts +99 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +6 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +162 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +10 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +88 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +2 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +9 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/managedPrivateEndpoints.d.ts +57 -0
- package/dist/esm/operations/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist/esm/operations/managedPrivateEndpoints.js +193 -0
- package/dist/esm/operations/managedPrivateEndpoints.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +9 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/managedPrivateEndpoints.d.ts +34 -0
- package/dist/esm/operationsInterfaces/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/managedPrivateEndpoints.js +9 -0
- package/dist/esm/operationsInterfaces/managedPrivateEndpoints.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/tracing.d.ts +2 -0
- package/dist/esm/tracing.d.ts.map +1 -0
- package/dist/esm/tracing.js +14 -0
- package/dist/esm/tracing.js.map +1 -0
- package/dist/react-native/index.d.ts +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +11 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/managedPrivateEndpointsClient.d.ts +20 -0
- package/dist/react-native/managedPrivateEndpointsClient.d.ts.map +1 -0
- package/dist/react-native/managedPrivateEndpointsClient.js +101 -0
- package/dist/react-native/managedPrivateEndpointsClient.js.map +1 -0
- package/dist/react-native/models/index.d.ts +99 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +10 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +6 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +162 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +10 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +88 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +2 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +9 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/managedPrivateEndpoints.d.ts +57 -0
- package/dist/react-native/operations/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist/react-native/operations/managedPrivateEndpoints.js +193 -0
- package/dist/react-native/operations/managedPrivateEndpoints.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +9 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/managedPrivateEndpoints.d.ts +34 -0
- package/dist/react-native/operationsInterfaces/managedPrivateEndpoints.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/managedPrivateEndpoints.js +9 -0
- package/dist/react-native/operationsInterfaces/managedPrivateEndpoints.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/tracing.d.ts +2 -0
- package/dist/react-native/tracing.d.ts.map +1 -0
- package/dist/react-native/tracing.js +14 -0
- package/dist/react-native/tracing.js.map +1 -0
- package/package.json +84 -80
- package/CHANGELOG.md +0 -16
- package/dist/index.js +0 -595
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/rollup.config.js +0 -3
- package/tsconfig.json +0 -19
- package/types/synapse-managed-private-endpoints.d.ts +0 -167
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managedPrivateEndpoints.d.ts","sourceRoot":"","sources":["../../../src/operations/managedPrivateEndpoints.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAIhF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,KAAK,EACV,sBAAsB,EAEtB,yCAAyC,EACzC,wCAAwC,EACxC,kCAAkC,EAClC,2CAA2C,EAC3C,qCAAqC,EACrC,2CAA2C,EAG5C,MAAM,oBAAoB,CAAC;AAgF5B,2DAA2D;AAC3D,qBAAa,2BAA4B,YAAW,uBAAuB;IACzE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;;OAIG;IACI,IAAI,CACT,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,yCAAyC,GAClD,0BAA0B,CAAC,sBAAsB,CAAC;YAetC,cAAc;YAcd,aAAa;IAS5B;;;;;OAKG;IACG,GAAG,CACP,yBAAyB,EAAE,MAAM,EACjC,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAa9C;;;;;;OAMG;IACG,MAAM,CACV,yBAAyB,EAAE,MAAM,EACjC,0BAA0B,EAAE,MAAM,EAClC,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAkBjD;;;;;OAKG;IACG,MAAM,CACV,yBAAyB,EAAE,MAAM,EACjC,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,IAAI,CAAC;IAahB;;;;OAIG;YACW,KAAK;IAgBnB;;;;;OAKG;YACW,SAAS;CAgBxB"}
|
|
@@ -0,0 +1,198 @@
|
|
|
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.ManagedPrivateEndpointsImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const tracing_js_1 = require("../tracing.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
// Operation Specifications
|
|
17
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
18
|
+
const getOperationSpec = {
|
|
19
|
+
path: "/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}",
|
|
20
|
+
httpMethod: "GET",
|
|
21
|
+
responses: {
|
|
22
|
+
200: {
|
|
23
|
+
bodyMapper: Mappers.ManagedPrivateEndpoint,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
queryParameters: [Parameters.apiVersion],
|
|
27
|
+
urlParameters: [
|
|
28
|
+
Parameters.endpoint,
|
|
29
|
+
Parameters.managedVirtualNetworkName,
|
|
30
|
+
Parameters.managedPrivateEndpointName,
|
|
31
|
+
],
|
|
32
|
+
headerParameters: [Parameters.accept],
|
|
33
|
+
serializer,
|
|
34
|
+
};
|
|
35
|
+
const createOperationSpec = {
|
|
36
|
+
path: "/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}",
|
|
37
|
+
httpMethod: "PUT",
|
|
38
|
+
responses: {
|
|
39
|
+
200: {
|
|
40
|
+
bodyMapper: Mappers.ManagedPrivateEndpoint,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
requestBody: Parameters.managedPrivateEndpoint,
|
|
44
|
+
queryParameters: [Parameters.apiVersion],
|
|
45
|
+
urlParameters: [
|
|
46
|
+
Parameters.endpoint,
|
|
47
|
+
Parameters.managedVirtualNetworkName,
|
|
48
|
+
Parameters.managedPrivateEndpointName,
|
|
49
|
+
],
|
|
50
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
51
|
+
mediaType: "json",
|
|
52
|
+
serializer,
|
|
53
|
+
};
|
|
54
|
+
const deleteOperationSpec = {
|
|
55
|
+
path: "/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}",
|
|
56
|
+
httpMethod: "DELETE",
|
|
57
|
+
responses: { 202: {}, 204: {} },
|
|
58
|
+
queryParameters: [Parameters.apiVersion],
|
|
59
|
+
urlParameters: [
|
|
60
|
+
Parameters.endpoint,
|
|
61
|
+
Parameters.managedVirtualNetworkName,
|
|
62
|
+
Parameters.managedPrivateEndpointName,
|
|
63
|
+
],
|
|
64
|
+
serializer,
|
|
65
|
+
};
|
|
66
|
+
const listOperationSpec = {
|
|
67
|
+
path: "/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints",
|
|
68
|
+
httpMethod: "GET",
|
|
69
|
+
responses: {
|
|
70
|
+
200: {
|
|
71
|
+
bodyMapper: Mappers.ManagedPrivateEndpointListResponse,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
queryParameters: [Parameters.apiVersion],
|
|
75
|
+
urlParameters: [Parameters.endpoint, Parameters.managedVirtualNetworkName],
|
|
76
|
+
headerParameters: [Parameters.accept],
|
|
77
|
+
serializer,
|
|
78
|
+
};
|
|
79
|
+
const listNextOperationSpec = {
|
|
80
|
+
path: "{nextLink}",
|
|
81
|
+
httpMethod: "GET",
|
|
82
|
+
responses: {
|
|
83
|
+
200: {
|
|
84
|
+
bodyMapper: Mappers.ManagedPrivateEndpointListResponse,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
queryParameters: [Parameters.apiVersion],
|
|
88
|
+
urlParameters: [Parameters.endpoint, Parameters.managedVirtualNetworkName, Parameters.nextLink],
|
|
89
|
+
headerParameters: [Parameters.accept],
|
|
90
|
+
serializer,
|
|
91
|
+
};
|
|
92
|
+
/** Class containing ManagedPrivateEndpoints operations. */
|
|
93
|
+
class ManagedPrivateEndpointsImpl {
|
|
94
|
+
client;
|
|
95
|
+
/**
|
|
96
|
+
* Initialize a new instance of the class ManagedPrivateEndpoints class.
|
|
97
|
+
* @param client - Reference to the service client
|
|
98
|
+
*/
|
|
99
|
+
constructor(client) {
|
|
100
|
+
this.client = client;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* List Managed Private Endpoints
|
|
104
|
+
* @param managedVirtualNetworkName - Managed virtual network name
|
|
105
|
+
* @param options - The options parameters.
|
|
106
|
+
*/
|
|
107
|
+
list(managedVirtualNetworkName, options) {
|
|
108
|
+
const iter = this.listPagingAll(managedVirtualNetworkName, options);
|
|
109
|
+
return {
|
|
110
|
+
next() {
|
|
111
|
+
return iter.next();
|
|
112
|
+
},
|
|
113
|
+
[Symbol.asyncIterator]() {
|
|
114
|
+
return this;
|
|
115
|
+
},
|
|
116
|
+
byPage: () => {
|
|
117
|
+
return this.listPagingPage(managedVirtualNetworkName, options);
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
async *listPagingPage(managedVirtualNetworkName, options) {
|
|
122
|
+
let result = await this._list(managedVirtualNetworkName, options);
|
|
123
|
+
yield result.value || [];
|
|
124
|
+
let continuationToken = result.nextLink;
|
|
125
|
+
while (continuationToken) {
|
|
126
|
+
result = await this._listNext(managedVirtualNetworkName, continuationToken, options);
|
|
127
|
+
continuationToken = result.nextLink;
|
|
128
|
+
yield result.value || [];
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
async *listPagingAll(managedVirtualNetworkName, options) {
|
|
132
|
+
for await (const page of this.listPagingPage(managedVirtualNetworkName, options)) {
|
|
133
|
+
yield* page;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Get Managed Private Endpoints
|
|
138
|
+
* @param managedVirtualNetworkName - Managed virtual network name
|
|
139
|
+
* @param managedPrivateEndpointName - Managed private endpoint name
|
|
140
|
+
* @param options - The options parameters.
|
|
141
|
+
*/
|
|
142
|
+
async get(managedVirtualNetworkName, managedPrivateEndpointName, options) {
|
|
143
|
+
return tracing_js_1.tracingClient.withSpan("ManagedPrivateEndpointsClient.get", options ?? {}, async (updatedOptions) => {
|
|
144
|
+
return this.client.sendOperationRequest({ managedVirtualNetworkName, managedPrivateEndpointName, updatedOptions }, getOperationSpec);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Create Managed Private Endpoints
|
|
149
|
+
* @param managedVirtualNetworkName - Managed virtual network name
|
|
150
|
+
* @param managedPrivateEndpointName - Managed private endpoint name
|
|
151
|
+
* @param managedPrivateEndpoint - Managed private endpoint properties.
|
|
152
|
+
* @param options - The options parameters.
|
|
153
|
+
*/
|
|
154
|
+
async create(managedVirtualNetworkName, managedPrivateEndpointName, managedPrivateEndpoint, options) {
|
|
155
|
+
return tracing_js_1.tracingClient.withSpan("ManagedPrivateEndpointsClient.create", options ?? {}, async (updatedOptions) => {
|
|
156
|
+
return this.client.sendOperationRequest({
|
|
157
|
+
managedVirtualNetworkName,
|
|
158
|
+
managedPrivateEndpointName,
|
|
159
|
+
managedPrivateEndpoint,
|
|
160
|
+
updatedOptions,
|
|
161
|
+
}, createOperationSpec);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Delete Managed Private Endpoints
|
|
166
|
+
* @param managedVirtualNetworkName - Managed virtual network name
|
|
167
|
+
* @param managedPrivateEndpointName - Managed private endpoint name
|
|
168
|
+
* @param options - The options parameters.
|
|
169
|
+
*/
|
|
170
|
+
async delete(managedVirtualNetworkName, managedPrivateEndpointName, options) {
|
|
171
|
+
return tracing_js_1.tracingClient.withSpan("ManagedPrivateEndpointsClient.delete", options ?? {}, async (updatedOptions) => {
|
|
172
|
+
return this.client.sendOperationRequest({ managedVirtualNetworkName, managedPrivateEndpointName, updatedOptions }, deleteOperationSpec);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* List Managed Private Endpoints
|
|
177
|
+
* @param managedVirtualNetworkName - Managed virtual network name
|
|
178
|
+
* @param options - The options parameters.
|
|
179
|
+
*/
|
|
180
|
+
async _list(managedVirtualNetworkName, options) {
|
|
181
|
+
return tracing_js_1.tracingClient.withSpan("ManagedPrivateEndpointsClient._list", options ?? {}, async (updatedOptions) => {
|
|
182
|
+
return this.client.sendOperationRequest({ managedVirtualNetworkName, updatedOptions }, listOperationSpec);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* ListNext
|
|
187
|
+
* @param managedVirtualNetworkName - Managed virtual network name
|
|
188
|
+
* @param nextLink - The nextLink from the previous successful call to the List method.
|
|
189
|
+
* @param options - The options parameters.
|
|
190
|
+
*/
|
|
191
|
+
async _listNext(managedVirtualNetworkName, nextLink, options) {
|
|
192
|
+
return tracing_js_1.tracingClient.withSpan("ManagedPrivateEndpointsClient._listNext", options ?? {}, async (updatedOptions) => {
|
|
193
|
+
return this.client.sendOperationRequest({ managedVirtualNetworkName, nextLink, updatedOptions }, listNextOperationSpec);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
exports.ManagedPrivateEndpointsImpl = ManagedPrivateEndpointsImpl;
|
|
198
|
+
//# sourceMappingURL=managedPrivateEndpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managedPrivateEndpoints.js","sourceRoot":"","sources":["../../../src/operations/managedPrivateEndpoints.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAG9C,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAA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oft 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 { tracingClient } from \"../tracing.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { ManagedPrivateEndpoints } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { ManagedPrivateEndpointsClient } from \"../managedPrivateEndpointsClient.js\";\nimport type {\n ManagedPrivateEndpoint,\n ManagedPrivateEndpointsListNextOptionalParams,\n ManagedPrivateEndpointsListOptionalParams,\n ManagedPrivateEndpointsGetOptionalParams,\n ManagedPrivateEndpointsGetResponse,\n ManagedPrivateEndpointsCreateOptionalParams,\n ManagedPrivateEndpointsCreateResponse,\n ManagedPrivateEndpointsDeleteOptionalParams,\n ManagedPrivateEndpointsListResponse,\n ManagedPrivateEndpointsListNextResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.managedVirtualNetworkName,\n Parameters.managedPrivateEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpoint,\n },\n },\n requestBody: Parameters.managedPrivateEndpoint,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.managedVirtualNetworkName,\n Parameters.managedPrivateEndpointName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}\",\n httpMethod: \"DELETE\",\n responses: { 202: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.endpoint,\n Parameters.managedVirtualNetworkName,\n Parameters.managedPrivateEndpointName,\n ],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpointListResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.managedVirtualNetworkName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedPrivateEndpointListResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.managedVirtualNetworkName, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing ManagedPrivateEndpoints operations. */\nexport class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints {\n private readonly client: ManagedPrivateEndpointsClient;\n\n /**\n * Initialize a new instance of the class ManagedPrivateEndpoints class.\n * @param client - Reference to the service client\n */\n constructor(client: ManagedPrivateEndpointsClient) {\n this.client = client;\n }\n\n /**\n * List Managed Private Endpoints\n * @param managedVirtualNetworkName - Managed virtual network name\n * @param options - The options parameters.\n */\n public list(\n managedVirtualNetworkName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n ): PagedAsyncIterableIterator<ManagedPrivateEndpoint> {\n const iter = this.listPagingAll(managedVirtualNetworkName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(managedVirtualNetworkName, options);\n },\n };\n }\n\n private async *listPagingPage(\n managedVirtualNetworkName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n ): AsyncIterableIterator<ManagedPrivateEndpoint[]> {\n let result = await this._list(managedVirtualNetworkName, options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(managedVirtualNetworkName, continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n managedVirtualNetworkName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n ): AsyncIterableIterator<ManagedPrivateEndpoint> {\n for await (const page of this.listPagingPage(managedVirtualNetworkName, options)) {\n yield* page;\n }\n }\n\n /**\n * Get Managed Private Endpoints\n * @param managedVirtualNetworkName - Managed virtual network name\n * @param managedPrivateEndpointName - Managed private endpoint name\n * @param options - The options parameters.\n */\n async get(\n managedVirtualNetworkName: string,\n managedPrivateEndpointName: string,\n options?: ManagedPrivateEndpointsGetOptionalParams,\n ): Promise<ManagedPrivateEndpointsGetResponse> {\n return tracingClient.withSpan(\n \"ManagedPrivateEndpointsClient.get\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { managedVirtualNetworkName, managedPrivateEndpointName, updatedOptions },\n getOperationSpec,\n ) as Promise<ManagedPrivateEndpointsGetResponse>;\n },\n );\n }\n\n /**\n * Create Managed Private Endpoints\n * @param managedVirtualNetworkName - Managed virtual network name\n * @param managedPrivateEndpointName - Managed private endpoint name\n * @param managedPrivateEndpoint - Managed private endpoint properties.\n * @param options - The options parameters.\n */\n async create(\n managedVirtualNetworkName: string,\n managedPrivateEndpointName: string,\n managedPrivateEndpoint: ManagedPrivateEndpoint,\n options?: ManagedPrivateEndpointsCreateOptionalParams,\n ): Promise<ManagedPrivateEndpointsCreateResponse> {\n return tracingClient.withSpan(\n \"ManagedPrivateEndpointsClient.create\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n {\n managedVirtualNetworkName,\n managedPrivateEndpointName,\n managedPrivateEndpoint,\n updatedOptions,\n },\n createOperationSpec,\n ) as Promise<ManagedPrivateEndpointsCreateResponse>;\n },\n );\n }\n\n /**\n * Delete Managed Private Endpoints\n * @param managedVirtualNetworkName - Managed virtual network name\n * @param managedPrivateEndpointName - Managed private endpoint name\n * @param options - The options parameters.\n */\n async delete(\n managedVirtualNetworkName: string,\n managedPrivateEndpointName: string,\n options?: ManagedPrivateEndpointsDeleteOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ManagedPrivateEndpointsClient.delete\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { managedVirtualNetworkName, managedPrivateEndpointName, updatedOptions },\n deleteOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * List Managed Private Endpoints\n * @param managedVirtualNetworkName - Managed virtual network name\n * @param options - The options parameters.\n */\n private async _list(\n managedVirtualNetworkName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n ): Promise<ManagedPrivateEndpointsListResponse> {\n return tracingClient.withSpan(\n \"ManagedPrivateEndpointsClient._list\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { managedVirtualNetworkName, updatedOptions },\n listOperationSpec,\n ) as Promise<ManagedPrivateEndpointsListResponse>;\n },\n );\n }\n\n /**\n * ListNext\n * @param managedVirtualNetworkName - Managed virtual network name\n * @param nextLink - The nextLink from the previous successful call to the List method.\n * @param options - The options parameters.\n */\n private async _listNext(\n managedVirtualNetworkName: string,\n nextLink: string,\n options?: ManagedPrivateEndpointsListNextOptionalParams,\n ): Promise<ManagedPrivateEndpointsListNextResponse> {\n return tracingClient.withSpan(\n \"ManagedPrivateEndpointsClient._listNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { managedVirtualNetworkName, nextLink, updatedOptions },\n listNextOperationSpec,\n ) as Promise<ManagedPrivateEndpointsListNextResponse>;\n },\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/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/operationsInterfaces/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,34 @@
|
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { ManagedPrivateEndpoint, ManagedPrivateEndpointsListOptionalParams, ManagedPrivateEndpointsGetOptionalParams, ManagedPrivateEndpointsGetResponse, ManagedPrivateEndpointsCreateOptionalParams, ManagedPrivateEndpointsCreateResponse, ManagedPrivateEndpointsDeleteOptionalParams } from "../models/index.js";
|
|
3
|
+
/** Interface representing a ManagedPrivateEndpoints. */
|
|
4
|
+
export interface ManagedPrivateEndpoints {
|
|
5
|
+
/**
|
|
6
|
+
* List Managed Private Endpoints
|
|
7
|
+
* @param managedVirtualNetworkName - Managed virtual network name
|
|
8
|
+
* @param options - The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
list(managedVirtualNetworkName: string, options?: ManagedPrivateEndpointsListOptionalParams): PagedAsyncIterableIterator<ManagedPrivateEndpoint>;
|
|
11
|
+
/**
|
|
12
|
+
* Get Managed Private Endpoints
|
|
13
|
+
* @param managedVirtualNetworkName - Managed virtual network name
|
|
14
|
+
* @param managedPrivateEndpointName - Managed private endpoint name
|
|
15
|
+
* @param options - The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
get(managedVirtualNetworkName: string, managedPrivateEndpointName: string, options?: ManagedPrivateEndpointsGetOptionalParams): Promise<ManagedPrivateEndpointsGetResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Create Managed Private Endpoints
|
|
20
|
+
* @param managedVirtualNetworkName - Managed virtual network name
|
|
21
|
+
* @param managedPrivateEndpointName - Managed private endpoint name
|
|
22
|
+
* @param managedPrivateEndpoint - Managed private endpoint properties.
|
|
23
|
+
* @param options - The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
create(managedVirtualNetworkName: string, managedPrivateEndpointName: string, managedPrivateEndpoint: ManagedPrivateEndpoint, options?: ManagedPrivateEndpointsCreateOptionalParams): Promise<ManagedPrivateEndpointsCreateResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Delete Managed Private Endpoints
|
|
28
|
+
* @param managedVirtualNetworkName - Managed virtual network name
|
|
29
|
+
* @param managedPrivateEndpointName - Managed private endpoint name
|
|
30
|
+
* @param options - The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
delete(managedVirtualNetworkName: string, managedPrivateEndpointName: string, options?: ManagedPrivateEndpointsDeleteOptionalParams): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=managedPrivateEndpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managedPrivateEndpoints.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/managedPrivateEndpoints.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EACV,sBAAsB,EACtB,yCAAyC,EACzC,wCAAwC,EACxC,kCAAkC,EAClC,2CAA2C,EAC3C,qCAAqC,EACrC,2CAA2C,EAC5C,MAAM,oBAAoB,CAAC;AAE5B,wDAAwD;AACxD,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,IAAI,CACF,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,yCAAyC,GAClD,0BAA0B,CAAC,sBAAsB,CAAC,CAAC;IACtD;;;;;OAKG;IACH,GAAG,CACD,yBAAyB,EAAE,MAAM,EACjC,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC/C;;;;;;OAMG;IACH,MAAM,CACJ,yBAAyB,EAAE,MAAM,EACjC,0BAA0B,EAAE,MAAM,EAClC,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAClD;;;;;OAKG;IACH,MAAM,CACJ,yBAAyB,EAAE,MAAM,EACjC,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
//# sourceMappingURL=managedPrivateEndpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managedPrivateEndpoints.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/managedPrivateEndpoints.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type {\n ManagedPrivateEndpoint,\n ManagedPrivateEndpointsListOptionalParams,\n ManagedPrivateEndpointsGetOptionalParams,\n ManagedPrivateEndpointsGetResponse,\n ManagedPrivateEndpointsCreateOptionalParams,\n ManagedPrivateEndpointsCreateResponse,\n ManagedPrivateEndpointsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Interface representing a ManagedPrivateEndpoints. */\nexport interface ManagedPrivateEndpoints {\n /**\n * List Managed Private Endpoints\n * @param managedVirtualNetworkName - Managed virtual network name\n * @param options - The options parameters.\n */\n list(\n managedVirtualNetworkName: string,\n options?: ManagedPrivateEndpointsListOptionalParams,\n ): PagedAsyncIterableIterator<ManagedPrivateEndpoint>;\n /**\n * Get Managed Private Endpoints\n * @param managedVirtualNetworkName - Managed virtual network name\n * @param managedPrivateEndpointName - Managed private endpoint name\n * @param options - The options parameters.\n */\n get(\n managedVirtualNetworkName: string,\n managedPrivateEndpointName: string,\n options?: ManagedPrivateEndpointsGetOptionalParams,\n ): Promise<ManagedPrivateEndpointsGetResponse>;\n /**\n * Create Managed Private Endpoints\n * @param managedVirtualNetworkName - Managed virtual network name\n * @param managedPrivateEndpointName - Managed private endpoint name\n * @param managedPrivateEndpoint - Managed private endpoint properties.\n * @param options - The options parameters.\n */\n create(\n managedVirtualNetworkName: string,\n managedPrivateEndpointName: string,\n managedPrivateEndpoint: ManagedPrivateEndpoint,\n options?: ManagedPrivateEndpointsCreateOptionalParams,\n ): Promise<ManagedPrivateEndpointsCreateResponse>;\n /**\n * Delete Managed Private Endpoints\n * @param managedVirtualNetworkName - Managed virtual network name\n * @param managedPrivateEndpointName - Managed private endpoint name\n * @param options - The options parameters.\n */\n delete(\n managedVirtualNetworkName: string,\n managedPrivateEndpointName: string,\n options?: ManagedPrivateEndpointsDeleteOptionalParams,\n ): Promise<void>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa,6CAIxB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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.tracingClient = void 0;
|
|
11
|
+
const core_tracing_1 = require("@azure/core-tracing");
|
|
12
|
+
exports.tracingClient = (0, core_tracing_1.createTracingClient)({
|
|
13
|
+
namespace: "Azure.Synapse.ManagedPrivateEndpoints",
|
|
14
|
+
packageName: "@azure/synapse-managed-private-endpoints",
|
|
15
|
+
packageVersion: "1.0.0-beta.6",
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=tracing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,sDAA0D;AAE7C,QAAA,aAAa,GAAG,IAAA,kCAAmB,EAAC;IAC/C,SAAS,EAAE,uCAAuC;IAClD,WAAW,EAAE,0CAA0C;IACvD,cAAc,EAAE,cAAc;CAC/B,CAAC,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 { createTracingClient } from \"@azure/core-tracing\";\n\nexport const tracingClient = createTracingClient({\n namespace: \"Azure.Synapse.ManagedPrivateEndpoints\",\n packageName: \"@azure/synapse-managed-private-endpoints\",\n packageVersion: \"1.0.0-beta.6\",\n});\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.52.10"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./models/index.js";
|
|
9
|
+
export { ManagedPrivateEndpointsClient } from "./managedPrivateEndpointsClient.js";
|
|
10
|
+
export * from "./operationsInterfaces/index.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,cAAc,iCAAiC,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\nexport * from \"./models/index.js\";\nexport { ManagedPrivateEndpointsClient } from \"./managedPrivateEndpointsClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import type * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import type { ManagedPrivateEndpoints } from "./operationsInterfaces/index.js";
|
|
4
|
+
import type { ManagedPrivateEndpointsClientOptionalParams } from "./models/index.js";
|
|
5
|
+
export declare class ManagedPrivateEndpointsClient extends coreClient.ServiceClient {
|
|
6
|
+
endpoint: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
/**
|
|
9
|
+
* Initializes a new instance of the ManagedPrivateEndpointsClient class.
|
|
10
|
+
* @param credentials - Subscription credentials which uniquely identify client subscription.
|
|
11
|
+
* @param endpoint - The workspace development endpoint, for example
|
|
12
|
+
* https://myworkspace.dev.azuresynapse.net.
|
|
13
|
+
* @param options - The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, endpoint: string, options?: ManagedPrivateEndpointsClientOptionalParams);
|
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
|
+
private addCustomApiVersionPolicy;
|
|
18
|
+
managedPrivateEndpoints: ManagedPrivateEndpoints;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=managedPrivateEndpointsClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managedPrivateEndpointsClient.d.ts","sourceRoot":"","sources":["../../src/managedPrivateEndpointsClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,2CAA2C,EAAE,MAAM,mBAAmB,CAAC;AAErF,qBAAa,6BAA8B,SAAQ,UAAU,CAAC,aAAa;IACzE,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,2CAA2C;IAmEvD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IAwBjC,uBAAuB,EAAE,uBAAuB,CAAC;CAClD"}
|
|
@@ -0,0 +1,101 @@
|
|
|
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 * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
+
import { ManagedPrivateEndpointsImpl } from "./operations/index.js";
|
|
11
|
+
export class ManagedPrivateEndpointsClient extends coreClient.ServiceClient {
|
|
12
|
+
endpoint;
|
|
13
|
+
apiVersion;
|
|
14
|
+
/**
|
|
15
|
+
* Initializes a new instance of the ManagedPrivateEndpointsClient class.
|
|
16
|
+
* @param credentials - Subscription credentials which uniquely identify client subscription.
|
|
17
|
+
* @param endpoint - The workspace development endpoint, for example
|
|
18
|
+
* https://myworkspace.dev.azuresynapse.net.
|
|
19
|
+
* @param options - The parameter options
|
|
20
|
+
*/
|
|
21
|
+
constructor(credentials, endpoint, options) {
|
|
22
|
+
if (credentials === undefined) {
|
|
23
|
+
throw new Error("'credentials' cannot be null");
|
|
24
|
+
}
|
|
25
|
+
if (endpoint === undefined) {
|
|
26
|
+
throw new Error("'endpoint' cannot be null");
|
|
27
|
+
}
|
|
28
|
+
// Initializing default values for options
|
|
29
|
+
if (!options) {
|
|
30
|
+
options = {};
|
|
31
|
+
}
|
|
32
|
+
const defaults = {
|
|
33
|
+
requestContentType: "application/json; charset=utf-8",
|
|
34
|
+
credential: credentials,
|
|
35
|
+
};
|
|
36
|
+
const packageDetails = `azsdk-js-synapse-managed-private-endpoints/1.0.0-beta.6`;
|
|
37
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
38
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
39
|
+
: `${packageDetails}`;
|
|
40
|
+
if (!options.credentialScopes) {
|
|
41
|
+
options.credentialScopes = ["https://dev.azuresynapse.net/.default"];
|
|
42
|
+
}
|
|
43
|
+
const optionsWithDefaults = {
|
|
44
|
+
...defaults,
|
|
45
|
+
...options,
|
|
46
|
+
userAgentOptions: {
|
|
47
|
+
userAgentPrefix,
|
|
48
|
+
},
|
|
49
|
+
baseUri: options.endpoint ?? options.baseUri ?? "{endpoint}",
|
|
50
|
+
};
|
|
51
|
+
super(optionsWithDefaults);
|
|
52
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
53
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
54
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
55
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
56
|
+
this.pipeline.removePolicy({
|
|
57
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
58
|
+
});
|
|
59
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
60
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
61
|
+
challengeCallbacks: {
|
|
62
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
63
|
+
},
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
// Parameter assignments
|
|
68
|
+
this.endpoint = endpoint;
|
|
69
|
+
// Assigning values to Constant parameters
|
|
70
|
+
this.apiVersion = options.apiVersion || "2020-12-01";
|
|
71
|
+
this.managedPrivateEndpoints = new ManagedPrivateEndpointsImpl(this);
|
|
72
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
73
|
+
}
|
|
74
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
75
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
76
|
+
if (!apiVersion) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const apiVersionPolicy = {
|
|
80
|
+
name: "CustomApiVersionPolicy",
|
|
81
|
+
async sendRequest(request, next) {
|
|
82
|
+
const param = request.url.split("?");
|
|
83
|
+
if (param.length > 1) {
|
|
84
|
+
const newParams = param[1].split("&").map((item) => {
|
|
85
|
+
if (item.indexOf("api-version") > -1) {
|
|
86
|
+
return "api-version=" + apiVersion;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return item;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
93
|
+
}
|
|
94
|
+
return next(request);
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
98
|
+
}
|
|
99
|
+
managedPrivateEndpoints;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=managedPrivateEndpointsClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managedPrivateEndpointsClient.js","sourceRoot":"","sources":["../../src/managedPrivateEndpointsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAIpE,MAAM,OAAO,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,EA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AC;QACrE,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,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","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"]}
|