@azure/arm-kubernetesconfiguration-privatelinkscopes 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +13 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.d.ts +11 -0
- package/dist/browser/lroImpl.d.ts.map +1 -0
- package/dist/browser/lroImpl.js +21 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.d.ts +376 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +66 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.d.ts +18 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/dist/browser/models/mappers.js +444 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.d.ts +15 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/dist/browser/models/parameters.js +133 -0
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +4 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +11 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/dist/browser/operations/privateEndpointConnections.d.ts +59 -0
- package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/browser/operations/privateEndpointConnections.js +216 -0
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
- package/dist/browser/operations/privateLinkResources.d.ts +28 -0
- package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/browser/operations/privateLinkResources.js +85 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -0
- package/dist/browser/operations/privateLinkScopes.d.ts +85 -0
- package/dist/browser/operations/privateLinkScopes.d.ts.map +1 -0
- package/dist/browser/operations/privateLinkScopes.js +386 -0
- package/dist/browser/operations/privateLinkScopes.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +11 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts +51 -0
- package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/browser/operationsInterfaces/privateLinkResources.d.ts +20 -0
- package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/browser/operationsInterfaces/privateLinkScopes.d.ts +49 -0
- package/dist/browser/operationsInterfaces/privateLinkScopes.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/privateLinkScopes.js +9 -0
- package/dist/browser/operationsInterfaces/privateLinkScopes.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +32 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/browser/privateLinkScopesClient.d.ts +22 -0
- package/dist/browser/privateLinkScopesClient.d.ts.map +1 -0
- package/dist/browser/privateLinkScopesClient.js +99 -0
- package/dist/browser/privateLinkScopesClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +24 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +376 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +69 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +18 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +447 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +15 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +136 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +14 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.d.ts +59 -0
- package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.js +221 -0
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
- package/dist/commonjs/operations/privateLinkResources.d.ts +28 -0
- package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/commonjs/operations/privateLinkResources.js +90 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
- package/dist/commonjs/operations/privateLinkScopes.d.ts +85 -0
- package/dist/commonjs/operations/privateLinkScopes.d.ts.map +1 -0
- package/dist/commonjs/operations/privateLinkScopes.js +390 -0
- package/dist/commonjs/operations/privateLinkScopes.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +14 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +51 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +20 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateLinkScopes.d.ts +49 -0
- package/dist/commonjs/operationsInterfaces/privateLinkScopes.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateLinkScopes.js +10 -0
- package/dist/commonjs/operationsInterfaces/privateLinkScopes.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/privateLinkScopesClient.d.ts +22 -0
- package/dist/commonjs/privateLinkScopesClient.d.ts.map +1 -0
- package/dist/commonjs/privateLinkScopesClient.js +104 -0
- package/dist/commonjs/privateLinkScopesClient.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +21 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +376 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +66 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +18 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +444 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +15 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +133 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +11 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts +59 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/esm/operations/privateEndpointConnections.js +216 -0
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
- package/dist/esm/operations/privateLinkResources.d.ts +28 -0
- package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/esm/operations/privateLinkResources.js +85 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -0
- package/dist/esm/operations/privateLinkScopes.d.ts +85 -0
- package/dist/esm/operations/privateLinkScopes.d.ts.map +1 -0
- package/dist/esm/operations/privateLinkScopes.js +386 -0
- package/dist/esm/operations/privateLinkScopes.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +11 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +51 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +20 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkScopes.d.ts +49 -0
- package/dist/esm/operationsInterfaces/privateLinkScopes.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkScopes.js +9 -0
- package/dist/esm/operationsInterfaces/privateLinkScopes.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/esm/privateLinkScopesClient.d.ts +22 -0
- package/dist/esm/privateLinkScopesClient.d.ts.map +1 -0
- package/dist/esm/privateLinkScopesClient.js +99 -0
- package/dist/esm/privateLinkScopesClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +21 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +376 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +66 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +18 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +444 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +15 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +133 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +11 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/privateEndpointConnections.d.ts +59 -0
- package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/react-native/operations/privateEndpointConnections.js +216 -0
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
- package/dist/react-native/operations/privateLinkResources.d.ts +28 -0
- package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/react-native/operations/privateLinkResources.js +85 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -0
- package/dist/react-native/operations/privateLinkScopes.d.ts +85 -0
- package/dist/react-native/operations/privateLinkScopes.d.ts.map +1 -0
- package/dist/react-native/operations/privateLinkScopes.js +386 -0
- package/dist/react-native/operations/privateLinkScopes.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +11 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +51 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +20 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/react-native/operationsInterfaces/privateLinkScopes.d.ts +49 -0
- package/dist/react-native/operationsInterfaces/privateLinkScopes.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/privateLinkScopes.js +9 -0
- package/dist/react-native/operationsInterfaces/privateLinkScopes.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/dist/react-native/privateLinkScopesClient.d.ts +22 -0
- package/dist/react-native/privateLinkScopesClient.d.ts.map +1 -0
- package/dist/react-native/privateLinkScopesClient.js +99 -0
- package/dist/react-native/privateLinkScopesClient.js.map +1 -0
- package/package.json +133 -0
- package/review/arm-kubernetesconfiguration-privatelinkscopes.api.md +324 -0
|
@@ -0,0 +1,133 @@
|
|
|
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 { KubernetesConfigurationPrivateLinkScope as KubernetesConfigurationPrivateLinkScopeMapper, TagsResource as TagsResourceMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, } from "../models/mappers.js";
|
|
9
|
+
export const accept = {
|
|
10
|
+
parameterPath: "accept",
|
|
11
|
+
mapper: {
|
|
12
|
+
defaultValue: "application/json",
|
|
13
|
+
isConstant: true,
|
|
14
|
+
serializedName: "Accept",
|
|
15
|
+
type: {
|
|
16
|
+
name: "String",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
export const $host = {
|
|
21
|
+
parameterPath: "$host",
|
|
22
|
+
mapper: {
|
|
23
|
+
serializedName: "$host",
|
|
24
|
+
required: true,
|
|
25
|
+
type: {
|
|
26
|
+
name: "String",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
skipEncoding: true,
|
|
30
|
+
};
|
|
31
|
+
export const apiVersion = {
|
|
32
|
+
parameterPath: "apiVersion",
|
|
33
|
+
mapper: {
|
|
34
|
+
defaultValue: "2024-11-01-preview",
|
|
35
|
+
isConstant: true,
|
|
36
|
+
serializedName: "api-version",
|
|
37
|
+
type: {
|
|
38
|
+
name: "String",
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
export const subscriptionId = {
|
|
43
|
+
parameterPath: "subscriptionId",
|
|
44
|
+
mapper: {
|
|
45
|
+
constraints: {
|
|
46
|
+
MinLength: 1,
|
|
47
|
+
},
|
|
48
|
+
serializedName: "subscriptionId",
|
|
49
|
+
required: true,
|
|
50
|
+
type: {
|
|
51
|
+
name: "String",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
export const resourceGroupName = {
|
|
56
|
+
parameterPath: "resourceGroupName",
|
|
57
|
+
mapper: {
|
|
58
|
+
constraints: {
|
|
59
|
+
MaxLength: 90,
|
|
60
|
+
MinLength: 1,
|
|
61
|
+
},
|
|
62
|
+
serializedName: "resourceGroupName",
|
|
63
|
+
required: true,
|
|
64
|
+
type: {
|
|
65
|
+
name: "String",
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
export const scopeName = {
|
|
70
|
+
parameterPath: "scopeName",
|
|
71
|
+
mapper: {
|
|
72
|
+
serializedName: "scopeName",
|
|
73
|
+
required: true,
|
|
74
|
+
type: {
|
|
75
|
+
name: "String",
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
export const contentType = {
|
|
80
|
+
parameterPath: ["options", "contentType"],
|
|
81
|
+
mapper: {
|
|
82
|
+
defaultValue: "application/json",
|
|
83
|
+
isConstant: true,
|
|
84
|
+
serializedName: "Content-Type",
|
|
85
|
+
type: {
|
|
86
|
+
name: "String",
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
export const parameters = {
|
|
91
|
+
parameterPath: "parameters",
|
|
92
|
+
mapper: KubernetesConfigurationPrivateLinkScopeMapper,
|
|
93
|
+
};
|
|
94
|
+
export const privateLinkScopeTags = {
|
|
95
|
+
parameterPath: "privateLinkScopeTags",
|
|
96
|
+
mapper: TagsResourceMapper,
|
|
97
|
+
};
|
|
98
|
+
export const nextLink = {
|
|
99
|
+
parameterPath: "nextLink",
|
|
100
|
+
mapper: {
|
|
101
|
+
serializedName: "nextLink",
|
|
102
|
+
required: true,
|
|
103
|
+
type: {
|
|
104
|
+
name: "String",
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
skipEncoding: true,
|
|
108
|
+
};
|
|
109
|
+
export const groupName = {
|
|
110
|
+
parameterPath: "groupName",
|
|
111
|
+
mapper: {
|
|
112
|
+
serializedName: "groupName",
|
|
113
|
+
required: true,
|
|
114
|
+
type: {
|
|
115
|
+
name: "String",
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
export const privateEndpointConnectionName = {
|
|
120
|
+
parameterPath: "privateEndpointConnectionName",
|
|
121
|
+
mapper: {
|
|
122
|
+
serializedName: "privateEndpointConnectionName",
|
|
123
|
+
required: true,
|
|
124
|
+
type: {
|
|
125
|
+
name: "String",
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
export const properties = {
|
|
130
|
+
parameterPath: "properties",
|
|
131
|
+
mapper: PrivateEndpointConnectionMapper,
|
|
132
|
+
};
|
|
133
|
+
//# sourceMappingURL=parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,uCAAuC,IAAI,6CAA6C,EACxF,YAAY,IAAI,kBAAkB,EAClC,yBAAyB,IAAI,+BAA+B,GAC7D,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,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;AAEF,MAAM,CAAC,MAAM,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE;QACN,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,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;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,6CAA6C;CACtD,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAuB;IACtD,aAAa,EAAE,sBAAsB;IACrC,MAAM,EAAE,kBAAkB;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,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;AAEF,MAAM,CAAC,MAAM,SAAS,GAA0B;IAC9C,aAAa,EAAE,WAAW;IAC1B,MAAM,EAAE;QACN,cAAc,EAAE,WAAW;QAC3B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAA0B;IAClE,aAAa,EAAE,+BAA+B;IAC9C,MAAM,EAAE;QACN,cAAc,EAAE,+BAA+B;QAC/C,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,aAAa,EAAE,YAAY;IAC3B,MAAM,EAAE,+BAA+B;CACxC,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 {\n OperationParameter,\n OperationURLParameter,\n OperationQueryParameter,\n} from \"@azure/core-client\";\nimport {\n KubernetesConfigurationPrivateLinkScope as KubernetesConfigurationPrivateLinkScopeMapper,\n TagsResource as TagsResourceMapper,\n PrivateEndpointConnection as PrivateEndpointConnectionMapper,\n} 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 $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\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: \"2024-11-01-preview\",\n isConstant: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n constraints: {\n MinLength: 1,\n },\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n constraints: {\n MaxLength: 90,\n MinLength: 1,\n },\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const scopeName: OperationURLParameter = {\n parameterPath: \"scopeName\",\n mapper: {\n serializedName: \"scopeName\",\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 parameters: OperationParameter = {\n parameterPath: \"parameters\",\n mapper: KubernetesConfigurationPrivateLinkScopeMapper,\n};\n\nexport const privateLinkScopeTags: OperationParameter = {\n parameterPath: \"privateLinkScopeTags\",\n mapper: TagsResourceMapper,\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\nexport const groupName: OperationURLParameter = {\n parameterPath: \"groupName\",\n mapper: {\n serializedName: \"groupName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const privateEndpointConnectionName: OperationURLParameter = {\n parameterPath: \"privateEndpointConnectionName\",\n mapper: {\n serializedName: \"privateEndpointConnectionName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const properties: OperationParameter = {\n parameterPath: \"properties\",\n mapper: PrivateEndpointConnectionMapper,\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,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 "./privateLinkScopes.js";
|
|
9
|
+
export * from "./privateLinkResources.js";
|
|
10
|
+
export * from "./privateEndpointConnections.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,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 \"./privateLinkScopes.js\";\nexport * from \"./privateLinkResources.js\";\nexport * from \"./privateEndpointConnections.js\";\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { PrivateEndpointConnections } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { PrivateLinkScopesClient } from "../privateLinkScopesClient.js";
|
|
3
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
4
|
+
import { PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnection, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsListByPrivateLinkScopeOptionalParams, PrivateEndpointConnectionsListByPrivateLinkScopeResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
6
|
+
export declare class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: PrivateLinkScopesClient);
|
|
13
|
+
/**
|
|
14
|
+
* Gets a private endpoint connection.
|
|
15
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
17
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
18
|
+
* Azure resource
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Approve or reject a private endpoint connection with a given name.
|
|
24
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
25
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
26
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
27
|
+
* Azure resource
|
|
28
|
+
* @param properties The private endpoint connection properties.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
beginCreateOrUpdate(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>, PrivateEndpointConnectionsCreateOrUpdateResponse>>;
|
|
32
|
+
/**
|
|
33
|
+
* Approve or reject a private endpoint connection with a given name.
|
|
34
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
35
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
36
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
37
|
+
* Azure resource
|
|
38
|
+
* @param properties The private endpoint connection properties.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Deletes a private endpoint connection with a given name.
|
|
44
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
46
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
47
|
+
* Azure resource
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
delete(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Gets all private endpoint connections on a private link scope.
|
|
53
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
54
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: PrivateEndpointConnectionsListByPrivateLinkScopeOptionalParams): Promise<PrivateEndpointConnectionsListByPrivateLinkScopeResponse>;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=privateEndpointConnections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAI9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,2CAA2C,EAC3C,qCAAqC,EACrC,yBAAyB,EACzB,sDAAsD,EACtD,gDAAgD,EAChD,8CAA8C,EAC9C,8DAA8D,EAC9D,wDAAwD,EACzD,MAAM,oBAAoB,CAAC;AAE5B,8DAA8D;AAC9D,qBAAa,8BACX,YAAW,0BAA0B;IAErC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAOjD;;;;;;;;OAQG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,6BAA6B,EAAE,MAAM,EACrC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,sDAAsD,GAC/D,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,gDAAgD,CAAC,EAChE,gDAAgD,CACjD,CACF;IA6DD;;;;;;;;OAQG;IACG,0BAA0B,CAC9B,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,6BAA6B,EAAE,MAAM,EACrC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,sDAAsD,GAC/D,OAAO,CAAC,gDAAgD,CAAC;IAW5D;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;OAKG;IACH,sBAAsB,CACpB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,8DAA8D,GACvE,OAAO,CAAC,wDAAwD,CAAC;CAMrE"}
|
|
@@ -0,0 +1,216 @@
|
|
|
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 Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
12
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
13
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
14
|
+
export class PrivateEndpointConnectionsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Gets a private endpoint connection.
|
|
24
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
25
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
26
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
27
|
+
* Azure resource
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
get(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
|
|
31
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, privateEndpointConnectionName, options }, getOperationSpec);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Approve or reject a private endpoint connection with a given name.
|
|
35
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
36
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
37
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
38
|
+
* Azure resource
|
|
39
|
+
* @param properties The private endpoint connection properties.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
async beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, properties, options) {
|
|
43
|
+
const directSendOperation = async (args, spec) => {
|
|
44
|
+
return this.client.sendOperationRequest(args, spec);
|
|
45
|
+
};
|
|
46
|
+
const sendOperationFn = async (args, spec) => {
|
|
47
|
+
var _a;
|
|
48
|
+
let currentRawResponse = undefined;
|
|
49
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
50
|
+
const callback = (rawResponse, flatResponse) => {
|
|
51
|
+
currentRawResponse = rawResponse;
|
|
52
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
53
|
+
};
|
|
54
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
55
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
56
|
+
return {
|
|
57
|
+
flatResponse,
|
|
58
|
+
rawResponse: {
|
|
59
|
+
statusCode: currentRawResponse.status,
|
|
60
|
+
body: currentRawResponse.parsedBody,
|
|
61
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const lro = createLroSpec({
|
|
66
|
+
sendOperationFn,
|
|
67
|
+
args: {
|
|
68
|
+
resourceGroupName,
|
|
69
|
+
scopeName,
|
|
70
|
+
privateEndpointConnectionName,
|
|
71
|
+
properties,
|
|
72
|
+
options,
|
|
73
|
+
},
|
|
74
|
+
spec: createOrUpdateOperationSpec,
|
|
75
|
+
});
|
|
76
|
+
const poller = await createHttpPoller(lro, {
|
|
77
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
78
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
79
|
+
});
|
|
80
|
+
await poller.poll();
|
|
81
|
+
return poller;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Approve or reject a private endpoint connection with a given name.
|
|
85
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
86
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
87
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
88
|
+
* Azure resource
|
|
89
|
+
* @param properties The private endpoint connection properties.
|
|
90
|
+
* @param options The options parameters.
|
|
91
|
+
*/
|
|
92
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, scopeName, privateEndpointConnectionName, properties, options) {
|
|
93
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, properties, options);
|
|
94
|
+
return poller.pollUntilDone();
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Deletes a private endpoint connection with a given name.
|
|
98
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
99
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
100
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
101
|
+
* Azure resource
|
|
102
|
+
* @param options The options parameters.
|
|
103
|
+
*/
|
|
104
|
+
delete(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
|
|
105
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, privateEndpointConnectionName, options }, deleteOperationSpec);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Gets all private endpoint connections on a private link scope.
|
|
109
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
110
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
111
|
+
* @param options The options parameters.
|
|
112
|
+
*/
|
|
113
|
+
listByPrivateLinkScope(resourceGroupName, scopeName, options) {
|
|
114
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, listByPrivateLinkScopeOperationSpec);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
// Operation Specifications
|
|
118
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
119
|
+
const getOperationSpec = {
|
|
120
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
121
|
+
httpMethod: "GET",
|
|
122
|
+
responses: {
|
|
123
|
+
200: {
|
|
124
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
125
|
+
},
|
|
126
|
+
default: {
|
|
127
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
queryParameters: [Parameters.apiVersion],
|
|
131
|
+
urlParameters: [
|
|
132
|
+
Parameters.$host,
|
|
133
|
+
Parameters.subscriptionId,
|
|
134
|
+
Parameters.resourceGroupName,
|
|
135
|
+
Parameters.scopeName,
|
|
136
|
+
Parameters.privateEndpointConnectionName,
|
|
137
|
+
],
|
|
138
|
+
headerParameters: [Parameters.accept],
|
|
139
|
+
serializer,
|
|
140
|
+
};
|
|
141
|
+
const createOrUpdateOperationSpec = {
|
|
142
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
143
|
+
httpMethod: "PUT",
|
|
144
|
+
responses: {
|
|
145
|
+
200: {
|
|
146
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
147
|
+
},
|
|
148
|
+
201: {
|
|
149
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
150
|
+
},
|
|
151
|
+
202: {
|
|
152
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
153
|
+
},
|
|
154
|
+
204: {
|
|
155
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
156
|
+
},
|
|
157
|
+
default: {
|
|
158
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
requestBody: Parameters.properties,
|
|
162
|
+
queryParameters: [Parameters.apiVersion],
|
|
163
|
+
urlParameters: [
|
|
164
|
+
Parameters.$host,
|
|
165
|
+
Parameters.subscriptionId,
|
|
166
|
+
Parameters.resourceGroupName,
|
|
167
|
+
Parameters.scopeName,
|
|
168
|
+
Parameters.privateEndpointConnectionName,
|
|
169
|
+
],
|
|
170
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
171
|
+
mediaType: "json",
|
|
172
|
+
serializer,
|
|
173
|
+
};
|
|
174
|
+
const deleteOperationSpec = {
|
|
175
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
176
|
+
httpMethod: "DELETE",
|
|
177
|
+
responses: {
|
|
178
|
+
200: {},
|
|
179
|
+
204: {},
|
|
180
|
+
default: {
|
|
181
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
queryParameters: [Parameters.apiVersion],
|
|
185
|
+
urlParameters: [
|
|
186
|
+
Parameters.$host,
|
|
187
|
+
Parameters.subscriptionId,
|
|
188
|
+
Parameters.resourceGroupName,
|
|
189
|
+
Parameters.scopeName,
|
|
190
|
+
Parameters.privateEndpointConnectionName,
|
|
191
|
+
],
|
|
192
|
+
headerParameters: [Parameters.accept],
|
|
193
|
+
serializer,
|
|
194
|
+
};
|
|
195
|
+
const listByPrivateLinkScopeOperationSpec = {
|
|
196
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateEndpointConnections",
|
|
197
|
+
httpMethod: "GET",
|
|
198
|
+
responses: {
|
|
199
|
+
200: {
|
|
200
|
+
bodyMapper: Mappers.PrivateEndpointConnectionListResult,
|
|
201
|
+
},
|
|
202
|
+
default: {
|
|
203
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
queryParameters: [Parameters.apiVersion],
|
|
207
|
+
urlParameters: [
|
|
208
|
+
Parameters.$host,
|
|
209
|
+
Parameters.subscriptionId,
|
|
210
|
+
Parameters.resourceGroupName,
|
|
211
|
+
Parameters.scopeName,
|
|
212
|
+
],
|
|
213
|
+
headerParameters: [Parameters.accept],
|
|
214
|
+
serializer,
|
|
215
|
+
};
|
|
216
|
+
//# sourceMappingURL=privateEndpointConnections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,C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c;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PrivateEndpointConnections } 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 { PrivateLinkScopesClient } from \"../privateLinkScopesClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnection,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnectionsListByPrivateLinkScopeOptionalParams,\n PrivateEndpointConnectionsListByPrivateLinkScopeResponse,\n} from \"../models/index.js\";\n\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections\n{\n private readonly client: PrivateLinkScopesClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: PrivateLinkScopesClient) {\n this.client = client;\n }\n\n /**\n * Gets a private endpoint connection.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n scopeName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, privateEndpointConnectionName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Approve or reject a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n scopeName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n scopeName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Approve or reject a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n scopeName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n scopeName,\n privateEndpointConnectionName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a private endpoint connection with a given name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n scopeName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, privateEndpointConnectionName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets all private endpoint connections on a private link scope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param options The options parameters.\n */\n listByPrivateLinkScope(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateEndpointConnectionsListByPrivateLinkScopeOptionalParams,\n ): Promise<PrivateEndpointConnectionsListByPrivateLinkScopeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, options },\n listByPrivateLinkScopeOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByPrivateLinkScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PrivateLinkResources } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { PrivateLinkScopesClient } from "../privateLinkScopesClient.js";
|
|
3
|
+
import { PrivateLinkResourcesListByPrivateLinkScopeOptionalParams, PrivateLinkResourcesListByPrivateLinkScopeResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse } from "../models/index.js";
|
|
4
|
+
/** Class containing PrivateLinkResources operations. */
|
|
5
|
+
export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: PrivateLinkScopesClient);
|
|
12
|
+
/**
|
|
13
|
+
* Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
|
|
14
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
15
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: PrivateLinkResourcesListByPrivateLinkScopeOptionalParams): Promise<PrivateLinkResourcesListByPrivateLinkScopeResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
|
|
21
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
22
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
23
|
+
* @param groupName The name of the private link resource.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
get(resourceGroupName: string, scopeName: string, groupName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise<PrivateLinkResourcesGetResponse>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=privateLinkResources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,wDAAwD,EACxD,kDAAkD,EAClD,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;OAKG;IACH,sBAAsB,CACpB,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,wDAAwD,GACjE,OAAO,CAAC,kDAAkD,CAAC;IAO9D;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;CAM5C"}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
/** Class containing PrivateLinkResources operations. */
|
|
12
|
+
export class PrivateLinkResourcesImpl {
|
|
13
|
+
/**
|
|
14
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
15
|
+
* @param client Reference to the service client
|
|
16
|
+
*/
|
|
17
|
+
constructor(client) {
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
|
|
22
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
23
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
listByPrivateLinkScope(resourceGroupName, scopeName, options) {
|
|
27
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, options }, listByPrivateLinkScopeOperationSpec);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
|
|
31
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
32
|
+
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
|
|
33
|
+
* @param groupName The name of the private link resource.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
get(resourceGroupName, scopeName, groupName, options) {
|
|
37
|
+
return this.client.sendOperationRequest({ resourceGroupName, scopeName, groupName, options }, getOperationSpec);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
// Operation Specifications
|
|
41
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
42
|
+
const listByPrivateLinkScopeOperationSpec = {
|
|
43
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateLinkResources",
|
|
44
|
+
httpMethod: "GET",
|
|
45
|
+
responses: {
|
|
46
|
+
200: {
|
|
47
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult,
|
|
48
|
+
},
|
|
49
|
+
default: {
|
|
50
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
queryParameters: [Parameters.apiVersion],
|
|
54
|
+
urlParameters: [
|
|
55
|
+
Parameters.$host,
|
|
56
|
+
Parameters.subscriptionId,
|
|
57
|
+
Parameters.resourceGroupName,
|
|
58
|
+
Parameters.scopeName,
|
|
59
|
+
],
|
|
60
|
+
headerParameters: [Parameters.accept],
|
|
61
|
+
serializer,
|
|
62
|
+
};
|
|
63
|
+
const getOperationSpec = {
|
|
64
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}",
|
|
65
|
+
httpMethod: "GET",
|
|
66
|
+
responses: {
|
|
67
|
+
200: {
|
|
68
|
+
bodyMapper: Mappers.PrivateLinkResource,
|
|
69
|
+
},
|
|
70
|
+
default: {
|
|
71
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
queryParameters: [Parameters.apiVersion],
|
|
75
|
+
urlParameters: [
|
|
76
|
+
Parameters.$host,
|
|
77
|
+
Parameters.subscriptionId,
|
|
78
|
+
Parameters.resourceGroupName,
|
|
79
|
+
Parameters.scopeName,
|
|
80
|
+
Parameters.groupName,
|
|
81
|
+
],
|
|
82
|
+
headerParameters: [Parameters.accept],
|
|
83
|
+
serializer,
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=privateLinkResources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,sBAAsB,CACpB,iBAAyB,EACzB,SAAiB,EACjB,OAAkE;QAElE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,SAAS,EAAE,OAAO,EAAE,EACzC,mCAAmC,CACpC,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,SAAiB,EACjB,SAAiB,EACjB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,EACpD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,mKAAmK;IACzK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+KAA+K;IACrL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PrivateLinkResources } 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 { PrivateLinkScopesClient } from \"../privateLinkScopesClient.js\";\nimport {\n PrivateLinkResourcesListByPrivateLinkScopeOptionalParams,\n PrivateLinkResourcesListByPrivateLinkScopeResponse,\n PrivateLinkResourcesGetOptionalParams,\n PrivateLinkResourcesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: PrivateLinkScopesClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: PrivateLinkScopesClient) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param options The options parameters.\n */\n listByPrivateLinkScope(\n resourceGroupName: string,\n scopeName: string,\n options?: PrivateLinkResourcesListByPrivateLinkScopeOptionalParams,\n ): Promise<PrivateLinkResourcesListByPrivateLinkScopeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, options },\n listByPrivateLinkScopeOperationSpec,\n );\n }\n\n /**\n * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param scopeName The name of the Azure Arc PrivateLinkScope resource.\n * @param groupName The name of the private link resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n scopeName: string,\n groupName: string,\n options?: PrivateLinkResourcesGetOptionalParams,\n ): Promise<PrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, scopeName, groupName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByPrivateLinkScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KubernetesConfiguration/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.scopeName,\n Parameters.groupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|