@azure/arm-keyvault-profile-2020-09-01-hybrid 1.1.0 → 2.0.0-alpha.20220314.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 +11 -0
- package/LICENSE +21 -0
- package/README.md +80 -83
- package/dist/index.js +3453 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/keyVaultManagementClient.d.ts +23 -0
- package/dist-esm/src/keyVaultManagementClient.d.ts.map +1 -0
- package/dist-esm/src/keyVaultManagementClient.js +56 -0
- package/dist-esm/src/keyVaultManagementClient.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1008 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +123 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +48 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +728 -617
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +26 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +220 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +51 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +187 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +20 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +53 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/secrets.d.ts +72 -0
- package/dist-esm/src/operations/secrets.d.ts.map +1 -0
- package/dist-esm/src/operations/secrets.js +247 -0
- package/dist-esm/src/operations/secrets.js.map +1 -0
- package/dist-esm/src/operations/vaults.d.ts +166 -0
- package/dist-esm/src/operations/vaults.d.ts.map +1 -0
- package/dist-esm/src/operations/vaults.js +816 -0
- package/dist-esm/src/operations/vaults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +43 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/secrets.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/secrets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/secrets.js +9 -0
- package/dist-esm/src/operationsInterfaces/secrets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts +103 -0
- package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/vaults.js +9 -0
- package/dist-esm/src/operationsInterfaces/vaults.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +73 -22
- package/review/arm-keyvault-profile-2020-09-01-hybrid.api.md +876 -0
- package/rollup.config.js +115 -30
- package/src/index.ts +12 -0
- package/src/keyVaultManagementClient.ts +84 -45
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +849 -1276
- package/src/models/mappers.ts +730 -609
- package/src/models/parameters.ts +153 -76
- package/src/operations/index.ts +3 -5
- package/src/operations/operations.ts +87 -73
- package/src/operations/privateEndpointConnections.ts +174 -154
- package/src/operations/privateLinkResources.ts +39 -54
- package/src/operations/secrets.ts +215 -248
- package/src/operations/vaults.ts +731 -629
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +85 -0
- package/src/operationsInterfaces/privateLinkResources.ts +27 -0
- package/src/operationsInterfaces/secrets.ts +86 -0
- package/src/operationsInterfaces/vaults.ts +197 -0
- package/tsconfig.json +14 -6
- package/types/arm-keyvault-profile-2020-09-01-hybrid.d.ts +1360 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-keyvault-profile-2020-09-01-hybrid.js +0 -3058
- package/dist/arm-keyvault-profile-2020-09-01-hybrid.js.map +0 -1
- package/dist/arm-keyvault-profile-2020-09-01-hybrid.min.js +0 -1
- package/dist/arm-keyvault-profile-2020-09-01-hybrid.min.js.map +0 -1
- package/esm/keyVaultManagementClient.d.ts +0 -29
- package/esm/keyVaultManagementClient.d.ts.map +0 -1
- package/esm/keyVaultManagementClient.js +0 -43
- package/esm/keyVaultManagementClient.js.map +0 -1
- package/esm/keyVaultManagementClientContext.d.ts +0 -23
- package/esm/keyVaultManagementClientContext.d.ts.map +0 -1
- package/esm/keyVaultManagementClientContext.js +0 -62
- package/esm/keyVaultManagementClientContext.js.map +0 -1
- package/esm/models/index.d.ts +0 -1449
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -46
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -17
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -178
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/secretsMappers.d.ts +0 -2
- package/esm/models/secretsMappers.d.ts.map +0 -1
- package/esm/models/secretsMappers.js +0 -9
- package/esm/models/secretsMappers.js.map +0 -1
- package/esm/models/vaultsMappers.d.ts +0 -2
- package/esm/models/vaultsMappers.d.ts.map +0 -1
- package/esm/models/vaultsMappers.js +0 -9
- package/esm/models/vaultsMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -91
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -164
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -34
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -58
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/secrets.d.ts +0 -139
- package/esm/operations/secrets.d.ts.map +0 -1
- package/esm/operations/secrets.js +0 -201
- package/esm/operations/secrets.js.map +0 -1
- package/esm/operations/vaults.d.ts +0 -317
- package/esm/operations/vaults.d.ts.map +0 -1
- package/esm/operations/vaults.js +0 -557
- package/esm/operations/vaults.js.map +0 -1
- package/src/keyVaultManagementClientContext.ts +0 -69
- package/src/models/operationsMappers.ts +0 -16
- package/src/models/privateEndpointConnectionsMappers.ts +0 -40
- package/src/models/privateLinkResourcesMappers.ts +0 -39
- package/src/models/secretsMappers.ts +0 -39
- package/src/models/vaultsMappers.ts +0 -45
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
15
|
+
export class PrivateEndpointConnectionsImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Gets the specified private endpoint connection associated with the key vault.
|
|
25
|
+
* @param resourceGroupName Name of the resource group that contains the key vault.
|
|
26
|
+
* @param vaultName The name of the key vault.
|
|
27
|
+
* @param privateEndpointConnectionName Name of the private endpoint connection associated with the key
|
|
28
|
+
* vault.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
get(resourceGroupName, vaultName, privateEndpointConnectionName, options) {
|
|
32
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, privateEndpointConnectionName, options }, getOperationSpec);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Updates the specified private endpoint connection associated with the key vault.
|
|
36
|
+
* @param resourceGroupName Name of the resource group that contains the key vault.
|
|
37
|
+
* @param vaultName The name of the key vault.
|
|
38
|
+
* @param privateEndpointConnectionName Name of the private endpoint connection associated with the key
|
|
39
|
+
* vault.
|
|
40
|
+
* @param properties The intended state of private endpoint connection.
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
put(resourceGroupName, vaultName, privateEndpointConnectionName, properties, options) {
|
|
44
|
+
return this.client.sendOperationRequest({
|
|
45
|
+
resourceGroupName,
|
|
46
|
+
vaultName,
|
|
47
|
+
privateEndpointConnectionName,
|
|
48
|
+
properties,
|
|
49
|
+
options
|
|
50
|
+
}, putOperationSpec);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Deletes the specified private endpoint connection associated with the key vault.
|
|
54
|
+
* @param resourceGroupName Name of the resource group that contains the key vault.
|
|
55
|
+
* @param vaultName The name of the key vault.
|
|
56
|
+
* @param privateEndpointConnectionName Name of the private endpoint connection associated with the key
|
|
57
|
+
* vault.
|
|
58
|
+
* @param options The options parameters.
|
|
59
|
+
*/
|
|
60
|
+
beginDelete(resourceGroupName, vaultName, privateEndpointConnectionName, options) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
return this.client.sendOperationRequest(args, spec);
|
|
64
|
+
});
|
|
65
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
var _a;
|
|
67
|
+
let currentRawResponse = undefined;
|
|
68
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
69
|
+
const callback = (rawResponse, flatResponse) => {
|
|
70
|
+
currentRawResponse = rawResponse;
|
|
71
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
72
|
+
};
|
|
73
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
74
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
75
|
+
return {
|
|
76
|
+
flatResponse,
|
|
77
|
+
rawResponse: {
|
|
78
|
+
statusCode: currentRawResponse.status,
|
|
79
|
+
body: currentRawResponse.parsedBody,
|
|
80
|
+
headers: currentRawResponse.headers.toJSON()
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, privateEndpointConnectionName, options }, deleteOperationSpec);
|
|
85
|
+
return new LroEngine(lro, {
|
|
86
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
87
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Deletes the specified private endpoint connection associated with the key vault.
|
|
93
|
+
* @param resourceGroupName Name of the resource group that contains the key vault.
|
|
94
|
+
* @param vaultName The name of the key vault.
|
|
95
|
+
* @param privateEndpointConnectionName Name of the private endpoint connection associated with the key
|
|
96
|
+
* vault.
|
|
97
|
+
* @param options The options parameters.
|
|
98
|
+
*/
|
|
99
|
+
beginDeleteAndWait(resourceGroupName, vaultName, privateEndpointConnectionName, options) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const poller = yield this.beginDelete(resourceGroupName, vaultName, privateEndpointConnectionName, options);
|
|
102
|
+
return poller.pollUntilDone();
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
// Operation Specifications
|
|
107
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
108
|
+
const getOperationSpec = {
|
|
109
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
110
|
+
httpMethod: "GET",
|
|
111
|
+
responses: {
|
|
112
|
+
200: {
|
|
113
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
114
|
+
},
|
|
115
|
+
204: {},
|
|
116
|
+
default: {
|
|
117
|
+
bodyMapper: Mappers.CloudError
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
queryParameters: [Parameters.apiVersion],
|
|
121
|
+
urlParameters: [
|
|
122
|
+
Parameters.$host,
|
|
123
|
+
Parameters.resourceGroupName,
|
|
124
|
+
Parameters.vaultName,
|
|
125
|
+
Parameters.subscriptionId,
|
|
126
|
+
Parameters.privateEndpointConnectionName
|
|
127
|
+
],
|
|
128
|
+
headerParameters: [Parameters.accept],
|
|
129
|
+
serializer
|
|
130
|
+
};
|
|
131
|
+
const putOperationSpec = {
|
|
132
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
133
|
+
httpMethod: "PUT",
|
|
134
|
+
responses: {
|
|
135
|
+
200: {
|
|
136
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
137
|
+
headersMapper: Mappers.PrivateEndpointConnectionsPutHeaders
|
|
138
|
+
},
|
|
139
|
+
default: {
|
|
140
|
+
bodyMapper: Mappers.CloudError
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
requestBody: Parameters.properties,
|
|
144
|
+
queryParameters: [Parameters.apiVersion],
|
|
145
|
+
urlParameters: [
|
|
146
|
+
Parameters.$host,
|
|
147
|
+
Parameters.resourceGroupName,
|
|
148
|
+
Parameters.vaultName,
|
|
149
|
+
Parameters.subscriptionId,
|
|
150
|
+
Parameters.privateEndpointConnectionName
|
|
151
|
+
],
|
|
152
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
153
|
+
mediaType: "json",
|
|
154
|
+
serializer
|
|
155
|
+
};
|
|
156
|
+
const deleteOperationSpec = {
|
|
157
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
158
|
+
httpMethod: "DELETE",
|
|
159
|
+
responses: {
|
|
160
|
+
200: {
|
|
161
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
162
|
+
},
|
|
163
|
+
201: {
|
|
164
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
165
|
+
},
|
|
166
|
+
202: {
|
|
167
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
168
|
+
},
|
|
169
|
+
204: {
|
|
170
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
171
|
+
},
|
|
172
|
+
default: {
|
|
173
|
+
bodyMapper: Mappers.CloudError
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
queryParameters: [Parameters.apiVersion],
|
|
177
|
+
urlParameters: [
|
|
178
|
+
Parameters.$host,
|
|
179
|
+
Parameters.resourceGroupName,
|
|
180
|
+
Parameters.vaultName,
|
|
181
|
+
Parameters.subscriptionId,
|
|
182
|
+
Parameters.privateEndpointConnectionName
|
|
183
|
+
],
|
|
184
|
+
headerParameters: [Parameters.accept],
|
|
185
|
+
serializer
|
|
186
|
+
};
|
|
187
|
+
//# 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,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAWrC,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,iBAAyB,EACzB,SAAiB,EACjB,6BAAqC,EACrC,OAAqD;QAErD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,SAAS,EAAE,6BAA6B,EAAE,OAAO,EAAE,EACxE,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,iBAAyB,EACzB,SAAiB,EACjB,6BAAqC,EACrC,UAAqC,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;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
2
|
+
import { KeyVaultManagementClient } from "../keyVaultManagementClient";
|
|
3
|
+
import { PrivateLinkResourcesListByVaultOptionalParams, PrivateLinkResourcesListByVaultResponse } from "../models";
|
|
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: KeyVaultManagementClient);
|
|
12
|
+
/**
|
|
13
|
+
* Gets the private link resources supported for the key vault.
|
|
14
|
+
* @param resourceGroupName Name of the resource group that contains the key vault.
|
|
15
|
+
* @param vaultName The name of the key vault.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
listByVault(resourceGroupName: string, vaultName: string, options?: PrivateLinkResourcesListByVaultOptionalParams): Promise<PrivateLinkResourcesListByVaultResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# 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,yBAAyB,CAAC;AAI/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EACL,6CAA6C,EAC7C,uCAAuC,EACxC,MAAM,WAAW,CAAC;AAEnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,uCAAuC,CAAC;CAMpD"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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";
|
|
10
|
+
import * as Parameters from "../models/parameters";
|
|
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 supported for the key vault.
|
|
22
|
+
* @param resourceGroupName Name of the resource group that contains the key vault.
|
|
23
|
+
* @param vaultName The name of the key vault.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
listByVault(resourceGroupName, vaultName, options) {
|
|
27
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listByVaultOperationSpec);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
// Operation Specifications
|
|
31
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
32
|
+
const listByVaultOperationSpec = {
|
|
33
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateLinkResources",
|
|
34
|
+
httpMethod: "GET",
|
|
35
|
+
responses: {
|
|
36
|
+
200: {
|
|
37
|
+
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
38
|
+
},
|
|
39
|
+
default: {
|
|
40
|
+
bodyMapper: Mappers.CloudError
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
queryParameters: [Parameters.apiVersion],
|
|
44
|
+
urlParameters: [
|
|
45
|
+
Parameters.$host,
|
|
46
|
+
Parameters.resourceGroupName,
|
|
47
|
+
Parameters.vaultName,
|
|
48
|
+
Parameters.subscriptionId
|
|
49
|
+
],
|
|
50
|
+
headerParameters: [Parameters.accept],
|
|
51
|
+
serializer
|
|
52
|
+
};
|
|
53
|
+
//# 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,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAOnD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,WAAW,CACT,iBAAyB,EACzB,SAAiB,EACjB,OAAuD;QAEvD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,SAAS,EAAE,OAAO,EAAE,EACzC,wBAAwB,CACzB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EACF,yIAAyI;IAC3I,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Secrets } from "../operationsInterfaces";
|
|
3
|
+
import { KeyVaultManagementClient } from "../keyVaultManagementClient";
|
|
4
|
+
import { Secret, SecretsListOptionalParams, SecretCreateOrUpdateParameters, SecretsCreateOrUpdateOptionalParams, SecretsCreateOrUpdateResponse, SecretPatchParameters, SecretsUpdateOptionalParams, SecretsUpdateResponse, SecretsGetOptionalParams, SecretsGetResponse } from "../models";
|
|
5
|
+
/** Class containing Secrets operations. */
|
|
6
|
+
export declare class SecretsImpl implements Secrets {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Secrets class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: KeyVaultManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* The List operation gets information about the secrets in a vault. NOTE: This API is intended for
|
|
15
|
+
* internal use in ARM deployments. Users should use the data-plane REST service for interaction with
|
|
16
|
+
* vault secrets.
|
|
17
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
18
|
+
* @param vaultName The name of the vault.
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
list(resourceGroupName: string, vaultName: string, options?: SecretsListOptionalParams): PagedAsyncIterableIterator<Secret>;
|
|
22
|
+
private listPagingPage;
|
|
23
|
+
private listPagingAll;
|
|
24
|
+
/**
|
|
25
|
+
* Create or update a secret in a key vault in the specified subscription. NOTE: This API is intended
|
|
26
|
+
* for internal use in ARM deployments. Users should use the data-plane REST service for interaction
|
|
27
|
+
* with vault secrets.
|
|
28
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
29
|
+
* @param vaultName Name of the vault
|
|
30
|
+
* @param secretName Name of the secret
|
|
31
|
+
* @param parameters Parameters to create or update the secret
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
createOrUpdate(resourceGroupName: string, vaultName: string, secretName: string, parameters: SecretCreateOrUpdateParameters, options?: SecretsCreateOrUpdateOptionalParams): Promise<SecretsCreateOrUpdateResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Update a secret in the specified subscription. NOTE: This API is intended for internal use in ARM
|
|
37
|
+
* deployments. Users should use the data-plane REST service for interaction with vault secrets.
|
|
38
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
39
|
+
* @param vaultName Name of the vault
|
|
40
|
+
* @param secretName Name of the secret
|
|
41
|
+
* @param parameters Parameters to patch the secret
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
update(resourceGroupName: string, vaultName: string, secretName: string, parameters: SecretPatchParameters, options?: SecretsUpdateOptionalParams): Promise<SecretsUpdateResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Gets the specified secret. NOTE: This API is intended for internal use in ARM deployments. Users
|
|
47
|
+
* should use the data-plane REST service for interaction with vault secrets.
|
|
48
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
49
|
+
* @param vaultName The name of the vault.
|
|
50
|
+
* @param secretName The name of the secret.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
get(resourceGroupName: string, vaultName: string, secretName: string, options?: SecretsGetOptionalParams): Promise<SecretsGetResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* The List operation gets information about the secrets in a vault. NOTE: This API is intended for
|
|
56
|
+
* internal use in ARM deployments. Users should use the data-plane REST service for interaction with
|
|
57
|
+
* vault secrets.
|
|
58
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
59
|
+
* @param vaultName The name of the vault.
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
private _list;
|
|
63
|
+
/**
|
|
64
|
+
* ListNext
|
|
65
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
66
|
+
* @param vaultName The name of the vault.
|
|
67
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
68
|
+
* @param options The options parameters.
|
|
69
|
+
*/
|
|
70
|
+
private _listNext;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=secrets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../../src/operations/secrets.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIlD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EACL,MAAM,EAEN,yBAAyB,EACzB,8BAA8B,EAC9B,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAGnB,MAAM,WAAW,CAAC;AAGnB,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAElD;;;OAGG;gBACS,MAAM,EAAE,wBAAwB;IAI5C;;;;;;;OAOG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,yBAAyB,GAClC,0BAA0B,CAAC,MAAM,CAAC;YAetB,cAAc;YAoBd,aAAa;IAc5B;;;;;;;;;OASG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,8BAA8B,EAC1C,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC;IAOzC;;;;;;;;OAQG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,qBAAqB,EACjC,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC;IAOjC;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;IAO9B;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAWlB"}
|
|
@@ -0,0 +1,247 @@
|
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Secrets operations. */
|
|
14
|
+
export class SecretsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Secrets class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The List operation gets information about the secrets in a vault. NOTE: This API is intended for
|
|
24
|
+
* internal use in ARM deployments. Users should use the data-plane REST service for interaction with
|
|
25
|
+
* vault secrets.
|
|
26
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
27
|
+
* @param vaultName The name of the vault.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
list(resourceGroupName, vaultName, options) {
|
|
31
|
+
const iter = this.listPagingAll(resourceGroupName, vaultName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.listPagingPage(resourceGroupName, vaultName, options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listPagingPage(resourceGroupName, vaultName, options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
46
|
+
let result = yield __await(this._list(resourceGroupName, vaultName, options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
let continuationToken = result.nextLink;
|
|
49
|
+
while (continuationToken) {
|
|
50
|
+
result = yield __await(this._listNext(resourceGroupName, vaultName, continuationToken, options));
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
listPagingAll(resourceGroupName, vaultName, options) {
|
|
57
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
58
|
+
var e_1, _a;
|
|
59
|
+
try {
|
|
60
|
+
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, vaultName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
61
|
+
const page = _c.value;
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Create or update a secret in a key vault in the specified subscription. NOTE: This API is intended
|
|
76
|
+
* for internal use in ARM deployments. Users should use the data-plane REST service for interaction
|
|
77
|
+
* with vault secrets.
|
|
78
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
79
|
+
* @param vaultName Name of the vault
|
|
80
|
+
* @param secretName Name of the secret
|
|
81
|
+
* @param parameters Parameters to create or update the secret
|
|
82
|
+
* @param options The options parameters.
|
|
83
|
+
*/
|
|
84
|
+
createOrUpdate(resourceGroupName, vaultName, secretName, parameters, options) {
|
|
85
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, secretName, parameters, options }, createOrUpdateOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Update a secret in the specified subscription. NOTE: This API is intended for internal use in ARM
|
|
89
|
+
* deployments. Users should use the data-plane REST service for interaction with vault secrets.
|
|
90
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
91
|
+
* @param vaultName Name of the vault
|
|
92
|
+
* @param secretName Name of the secret
|
|
93
|
+
* @param parameters Parameters to patch the secret
|
|
94
|
+
* @param options The options parameters.
|
|
95
|
+
*/
|
|
96
|
+
update(resourceGroupName, vaultName, secretName, parameters, options) {
|
|
97
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, secretName, parameters, options }, updateOperationSpec);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Gets the specified secret. NOTE: This API is intended for internal use in ARM deployments. Users
|
|
101
|
+
* should use the data-plane REST service for interaction with vault secrets.
|
|
102
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
103
|
+
* @param vaultName The name of the vault.
|
|
104
|
+
* @param secretName The name of the secret.
|
|
105
|
+
* @param options The options parameters.
|
|
106
|
+
*/
|
|
107
|
+
get(resourceGroupName, vaultName, secretName, options) {
|
|
108
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, secretName, options }, getOperationSpec);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The List operation gets information about the secrets in a vault. NOTE: This API is intended for
|
|
112
|
+
* internal use in ARM deployments. Users should use the data-plane REST service for interaction with
|
|
113
|
+
* vault secrets.
|
|
114
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
115
|
+
* @param vaultName The name of the vault.
|
|
116
|
+
* @param options The options parameters.
|
|
117
|
+
*/
|
|
118
|
+
_list(resourceGroupName, vaultName, options) {
|
|
119
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* ListNext
|
|
123
|
+
* @param resourceGroupName The name of the Resource Group to which the vault belongs.
|
|
124
|
+
* @param vaultName The name of the vault.
|
|
125
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
126
|
+
* @param options The options parameters.
|
|
127
|
+
*/
|
|
128
|
+
_listNext(resourceGroupName, vaultName, nextLink, options) {
|
|
129
|
+
return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
// Operation Specifications
|
|
133
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
134
|
+
const createOrUpdateOperationSpec = {
|
|
135
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}",
|
|
136
|
+
httpMethod: "PUT",
|
|
137
|
+
responses: {
|
|
138
|
+
200: {
|
|
139
|
+
bodyMapper: Mappers.Secret
|
|
140
|
+
},
|
|
141
|
+
201: {
|
|
142
|
+
bodyMapper: Mappers.Secret
|
|
143
|
+
},
|
|
144
|
+
default: {
|
|
145
|
+
bodyMapper: Mappers.CloudError
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
requestBody: Parameters.parameters3,
|
|
149
|
+
queryParameters: [Parameters.apiVersion],
|
|
150
|
+
urlParameters: [
|
|
151
|
+
Parameters.$host,
|
|
152
|
+
Parameters.resourceGroupName,
|
|
153
|
+
Parameters.vaultName,
|
|
154
|
+
Parameters.subscriptionId,
|
|
155
|
+
Parameters.secretName
|
|
156
|
+
],
|
|
157
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
158
|
+
mediaType: "json",
|
|
159
|
+
serializer
|
|
160
|
+
};
|
|
161
|
+
const updateOperationSpec = {
|
|
162
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}",
|
|
163
|
+
httpMethod: "PATCH",
|
|
164
|
+
responses: {
|
|
165
|
+
200: {
|
|
166
|
+
bodyMapper: Mappers.Secret
|
|
167
|
+
},
|
|
168
|
+
201: {
|
|
169
|
+
bodyMapper: Mappers.Secret
|
|
170
|
+
},
|
|
171
|
+
default: {
|
|
172
|
+
bodyMapper: Mappers.CloudError
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
requestBody: Parameters.parameters4,
|
|
176
|
+
queryParameters: [Parameters.apiVersion],
|
|
177
|
+
urlParameters: [
|
|
178
|
+
Parameters.$host,
|
|
179
|
+
Parameters.resourceGroupName,
|
|
180
|
+
Parameters.vaultName,
|
|
181
|
+
Parameters.subscriptionId,
|
|
182
|
+
Parameters.secretName
|
|
183
|
+
],
|
|
184
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
185
|
+
mediaType: "json",
|
|
186
|
+
serializer
|
|
187
|
+
};
|
|
188
|
+
const getOperationSpec = {
|
|
189
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{secretName}",
|
|
190
|
+
httpMethod: "GET",
|
|
191
|
+
responses: {
|
|
192
|
+
200: {
|
|
193
|
+
bodyMapper: Mappers.Secret
|
|
194
|
+
},
|
|
195
|
+
default: {
|
|
196
|
+
bodyMapper: Mappers.CloudError
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
queryParameters: [Parameters.apiVersion],
|
|
200
|
+
urlParameters: [
|
|
201
|
+
Parameters.$host,
|
|
202
|
+
Parameters.resourceGroupName,
|
|
203
|
+
Parameters.subscriptionId,
|
|
204
|
+
Parameters.vaultName1,
|
|
205
|
+
Parameters.secretName1
|
|
206
|
+
],
|
|
207
|
+
headerParameters: [Parameters.accept],
|
|
208
|
+
serializer
|
|
209
|
+
};
|
|
210
|
+
const listOperationSpec = {
|
|
211
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets",
|
|
212
|
+
httpMethod: "GET",
|
|
213
|
+
responses: {
|
|
214
|
+
200: {
|
|
215
|
+
bodyMapper: Mappers.SecretListResult
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
219
|
+
urlParameters: [
|
|
220
|
+
Parameters.$host,
|
|
221
|
+
Parameters.resourceGroupName,
|
|
222
|
+
Parameters.subscriptionId,
|
|
223
|
+
Parameters.vaultName1
|
|
224
|
+
],
|
|
225
|
+
headerParameters: [Parameters.accept],
|
|
226
|
+
serializer
|
|
227
|
+
};
|
|
228
|
+
const listNextOperationSpec = {
|
|
229
|
+
path: "{nextLink}",
|
|
230
|
+
httpMethod: "GET",
|
|
231
|
+
responses: {
|
|
232
|
+
200: {
|
|
233
|
+
bodyMapper: Mappers.SecretListResult
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
queryParameters: [Parameters.apiVersion, Parameters.top],
|
|
237
|
+
urlParameters: [
|
|
238
|
+
Parameters.$host,
|
|
239
|
+
Parameters.resourceGroupName,
|
|
240
|
+
Parameters.subscriptionId,
|
|
241
|
+
Parameters.vaultName1,
|
|
242
|
+
Parameters.nextLink
|
|
243
|
+
],
|
|
244
|
+
headerParameters: [Parameters.accept],
|
|
245
|
+
serializer
|
|
246
|
+
};
|
|
247
|
+
//# sourceMappingURL=secrets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../../src/operations/secrets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAkBnD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,iBAAyB,EACzB,SAAiB,EACjB,OAAmC;QAEnC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACvE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;YACpE,CAAC;SAC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