@azure/arm-keyvault-profile-2020-09-01-hybrid 1.0.0 → 2.0.0-alpha.20220309.3
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 +83 -77
- 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 +74 -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 -39
- 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 -3048
- 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 -23
- package/esm/keyVaultManagementClient.d.ts.map +0 -1
- package/esm/keyVaultManagementClient.js +0 -38
- package/esm/keyVaultManagementClient.js.map +0 -1
- package/esm/keyVaultManagementClientContext.d.ts +0 -17
- package/esm/keyVaultManagementClientContext.d.ts.map +0 -1
- package/esm/keyVaultManagementClientContext.js +0 -57
- 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 -63
- 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
package/src/models/parameters.ts
CHANGED
|
@@ -1,178 +1,255 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
OperationParameter,
|
|
11
|
+
OperationURLParameter,
|
|
12
|
+
OperationQueryParameter
|
|
13
|
+
} from "@azure/core-client";
|
|
14
|
+
import {
|
|
15
|
+
VaultCreateOrUpdateParameters as VaultCreateOrUpdateParametersMapper,
|
|
16
|
+
VaultPatchParameters as VaultPatchParametersMapper,
|
|
17
|
+
VaultAccessPolicyParameters as VaultAccessPolicyParametersMapper,
|
|
18
|
+
VaultCheckNameAvailabilityParameters as VaultCheckNameAvailabilityParametersMapper,
|
|
19
|
+
PrivateEndpointConnection as PrivateEndpointConnectionMapper,
|
|
20
|
+
SecretCreateOrUpdateParameters as SecretCreateOrUpdateParametersMapper,
|
|
21
|
+
SecretPatchParameters as SecretPatchParametersMapper
|
|
22
|
+
} from "../models/mappers";
|
|
12
23
|
|
|
13
|
-
export const
|
|
14
|
-
parameterPath: "
|
|
24
|
+
export const contentType: OperationParameter = {
|
|
25
|
+
parameterPath: ["options", "contentType"],
|
|
15
26
|
mapper: {
|
|
16
|
-
|
|
17
|
-
|
|
27
|
+
defaultValue: "application/json",
|
|
28
|
+
isConstant: true,
|
|
29
|
+
serializedName: "Content-Type",
|
|
18
30
|
type: {
|
|
19
31
|
name: "String"
|
|
20
32
|
}
|
|
21
33
|
}
|
|
22
34
|
};
|
|
23
|
-
|
|
24
|
-
|
|
35
|
+
|
|
36
|
+
export const parameters: OperationParameter = {
|
|
37
|
+
parameterPath: "parameters",
|
|
38
|
+
mapper: VaultCreateOrUpdateParametersMapper
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const accept: OperationParameter = {
|
|
42
|
+
parameterPath: "accept",
|
|
25
43
|
mapper: {
|
|
26
|
-
|
|
27
|
-
|
|
44
|
+
defaultValue: "application/json",
|
|
45
|
+
isConstant: true,
|
|
46
|
+
serializedName: "Accept",
|
|
28
47
|
type: {
|
|
29
48
|
name: "String"
|
|
30
49
|
}
|
|
31
50
|
}
|
|
32
51
|
};
|
|
33
|
-
|
|
34
|
-
|
|
52
|
+
|
|
53
|
+
export const $host: OperationURLParameter = {
|
|
54
|
+
parameterPath: "$host",
|
|
35
55
|
mapper: {
|
|
56
|
+
serializedName: "$host",
|
|
57
|
+
required: true,
|
|
58
|
+
type: {
|
|
59
|
+
name: "String"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
skipEncoding: true
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const resourceGroupName: OperationURLParameter = {
|
|
66
|
+
parameterPath: "resourceGroupName",
|
|
67
|
+
mapper: {
|
|
68
|
+
serializedName: "resourceGroupName",
|
|
36
69
|
required: true,
|
|
37
|
-
isConstant: true,
|
|
38
|
-
serializedName: "api-version",
|
|
39
|
-
defaultValue: '2015-11-01',
|
|
40
70
|
type: {
|
|
41
71
|
name: "String"
|
|
42
72
|
}
|
|
43
73
|
}
|
|
44
74
|
};
|
|
45
|
-
|
|
46
|
-
|
|
75
|
+
|
|
76
|
+
export const vaultName: OperationURLParameter = {
|
|
77
|
+
parameterPath: "vaultName",
|
|
47
78
|
mapper: {
|
|
79
|
+
constraints: {
|
|
80
|
+
Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$")
|
|
81
|
+
},
|
|
82
|
+
serializedName: "vaultName",
|
|
48
83
|
required: true,
|
|
84
|
+
type: {
|
|
85
|
+
name: "String"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export const apiVersion: OperationQueryParameter = {
|
|
91
|
+
parameterPath: "apiVersion",
|
|
92
|
+
mapper: {
|
|
93
|
+
defaultValue: "2019-09-01",
|
|
49
94
|
isConstant: true,
|
|
50
|
-
serializedName: "
|
|
51
|
-
defaultValue: 'resourceType eq \'Microsoft.KeyVault/vaults\'',
|
|
95
|
+
serializedName: "api-version",
|
|
52
96
|
type: {
|
|
53
97
|
name: "String"
|
|
54
98
|
}
|
|
55
99
|
}
|
|
56
100
|
};
|
|
57
|
-
|
|
58
|
-
|
|
101
|
+
|
|
102
|
+
export const subscriptionId: OperationURLParameter = {
|
|
103
|
+
parameterPath: "subscriptionId",
|
|
59
104
|
mapper: {
|
|
105
|
+
serializedName: "subscriptionId",
|
|
60
106
|
required: true,
|
|
61
|
-
serializedName: "location",
|
|
62
107
|
type: {
|
|
63
108
|
name: "String"
|
|
64
109
|
}
|
|
65
110
|
}
|
|
66
111
|
};
|
|
67
|
-
|
|
68
|
-
|
|
112
|
+
|
|
113
|
+
export const parameters1: OperationParameter = {
|
|
114
|
+
parameterPath: "parameters",
|
|
115
|
+
mapper: VaultPatchParametersMapper
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export const vaultName1: OperationURLParameter = {
|
|
119
|
+
parameterPath: "vaultName",
|
|
69
120
|
mapper: {
|
|
121
|
+
serializedName: "vaultName",
|
|
70
122
|
required: true,
|
|
71
|
-
serializedName: "nextLink",
|
|
72
123
|
type: {
|
|
73
124
|
name: "String"
|
|
74
125
|
}
|
|
75
|
-
}
|
|
76
|
-
skipEncoding: true
|
|
126
|
+
}
|
|
77
127
|
};
|
|
78
|
-
|
|
128
|
+
|
|
129
|
+
export const parameters2: OperationParameter = {
|
|
130
|
+
parameterPath: "parameters",
|
|
131
|
+
mapper: VaultAccessPolicyParametersMapper
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export const operationKind: OperationURLParameter = {
|
|
79
135
|
parameterPath: "operationKind",
|
|
80
136
|
mapper: {
|
|
81
|
-
required: true,
|
|
82
137
|
serializedName: "operationKind",
|
|
138
|
+
required: true,
|
|
83
139
|
type: {
|
|
84
140
|
name: "Enum",
|
|
85
|
-
allowedValues: [
|
|
86
|
-
"add",
|
|
87
|
-
"replace",
|
|
88
|
-
"remove"
|
|
89
|
-
]
|
|
141
|
+
allowedValues: ["add", "replace", "remove"]
|
|
90
142
|
}
|
|
91
143
|
}
|
|
92
144
|
};
|
|
93
|
-
|
|
94
|
-
|
|
145
|
+
|
|
146
|
+
export const top: OperationQueryParameter = {
|
|
147
|
+
parameterPath: ["options", "top"],
|
|
95
148
|
mapper: {
|
|
96
|
-
|
|
97
|
-
serializedName: "privateEndpointConnectionName",
|
|
149
|
+
serializedName: "$top",
|
|
98
150
|
type: {
|
|
99
|
-
name: "
|
|
151
|
+
name: "Number"
|
|
100
152
|
}
|
|
101
153
|
}
|
|
102
154
|
};
|
|
103
|
-
|
|
104
|
-
|
|
155
|
+
|
|
156
|
+
export const location: OperationURLParameter = {
|
|
157
|
+
parameterPath: "location",
|
|
105
158
|
mapper: {
|
|
159
|
+
serializedName: "location",
|
|
106
160
|
required: true,
|
|
107
|
-
serializedName: "resourceGroupName",
|
|
108
161
|
type: {
|
|
109
162
|
name: "String"
|
|
110
163
|
}
|
|
111
164
|
}
|
|
112
165
|
};
|
|
113
|
-
|
|
114
|
-
|
|
166
|
+
|
|
167
|
+
export const filter: OperationQueryParameter = {
|
|
168
|
+
parameterPath: "filter",
|
|
115
169
|
mapper: {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
Pattern: /^[a-zA-Z0-9-]{1,127}$/
|
|
120
|
-
},
|
|
170
|
+
defaultValue: "resourceType eq 'Microsoft.KeyVault/vaults'",
|
|
171
|
+
isConstant: true,
|
|
172
|
+
serializedName: "$filter",
|
|
121
173
|
type: {
|
|
122
174
|
name: "String"
|
|
123
175
|
}
|
|
124
176
|
}
|
|
125
177
|
};
|
|
126
|
-
|
|
127
|
-
|
|
178
|
+
|
|
179
|
+
export const apiVersion1: OperationQueryParameter = {
|
|
180
|
+
parameterPath: "apiVersion",
|
|
128
181
|
mapper: {
|
|
129
|
-
|
|
130
|
-
|
|
182
|
+
defaultValue: "2015-11-01",
|
|
183
|
+
isConstant: true,
|
|
184
|
+
serializedName: "api-version",
|
|
131
185
|
type: {
|
|
132
186
|
name: "String"
|
|
133
187
|
}
|
|
134
188
|
}
|
|
135
189
|
};
|
|
136
|
-
|
|
137
|
-
|
|
190
|
+
|
|
191
|
+
export const vaultName2: OperationParameter = {
|
|
192
|
+
parameterPath: "vaultName",
|
|
193
|
+
mapper: VaultCheckNameAvailabilityParametersMapper
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export const nextLink: OperationURLParameter = {
|
|
197
|
+
parameterPath: "nextLink",
|
|
138
198
|
mapper: {
|
|
199
|
+
serializedName: "nextLink",
|
|
139
200
|
required: true,
|
|
140
|
-
serializedName: "subscriptionId",
|
|
141
201
|
type: {
|
|
142
202
|
name: "String"
|
|
143
203
|
}
|
|
144
|
-
}
|
|
204
|
+
},
|
|
205
|
+
skipEncoding: true
|
|
145
206
|
};
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
"top"
|
|
150
|
-
],
|
|
207
|
+
|
|
208
|
+
export const privateEndpointConnectionName: OperationURLParameter = {
|
|
209
|
+
parameterPath: "privateEndpointConnectionName",
|
|
151
210
|
mapper: {
|
|
152
|
-
serializedName: "
|
|
211
|
+
serializedName: "privateEndpointConnectionName",
|
|
212
|
+
required: true,
|
|
153
213
|
type: {
|
|
154
|
-
name: "
|
|
214
|
+
name: "String"
|
|
155
215
|
}
|
|
156
216
|
}
|
|
157
217
|
};
|
|
158
|
-
|
|
159
|
-
|
|
218
|
+
|
|
219
|
+
export const properties: OperationParameter = {
|
|
220
|
+
parameterPath: "properties",
|
|
221
|
+
mapper: PrivateEndpointConnectionMapper
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export const parameters3: OperationParameter = {
|
|
225
|
+
parameterPath: "parameters",
|
|
226
|
+
mapper: SecretCreateOrUpdateParametersMapper
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
export const secretName: OperationURLParameter = {
|
|
230
|
+
parameterPath: "secretName",
|
|
160
231
|
mapper: {
|
|
161
|
-
required: true,
|
|
162
|
-
serializedName: "vaultName",
|
|
163
232
|
constraints: {
|
|
164
|
-
Pattern:
|
|
233
|
+
Pattern: new RegExp("^[a-zA-Z0-9-]{1,127}$")
|
|
165
234
|
},
|
|
235
|
+
serializedName: "secretName",
|
|
236
|
+
required: true,
|
|
166
237
|
type: {
|
|
167
238
|
name: "String"
|
|
168
239
|
}
|
|
169
240
|
}
|
|
170
241
|
};
|
|
171
|
-
|
|
172
|
-
|
|
242
|
+
|
|
243
|
+
export const parameters4: OperationParameter = {
|
|
244
|
+
parameterPath: "parameters",
|
|
245
|
+
mapper: SecretPatchParametersMapper
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export const secretName1: OperationURLParameter = {
|
|
249
|
+
parameterPath: "secretName",
|
|
173
250
|
mapper: {
|
|
251
|
+
serializedName: "secretName",
|
|
174
252
|
required: true,
|
|
175
|
-
serializedName: "vaultName",
|
|
176
253
|
type: {
|
|
177
254
|
name: "String"
|
|
178
255
|
}
|
package/src/operations/index.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
9
|
export * from "./vaults";
|
|
@@ -1,95 +1,111 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { KeyVaultManagementClient } from "../keyVaultManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Operation,
|
|
17
|
+
OperationsListNextOptionalParams,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse,
|
|
20
|
+
OperationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Operations operations. */
|
|
25
|
+
export class OperationsImpl implements Operations {
|
|
26
|
+
private readonly client: KeyVaultManagementClient;
|
|
20
27
|
|
|
21
28
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class Operations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
24
31
|
*/
|
|
25
|
-
constructor(client:
|
|
32
|
+
constructor(client: KeyVaultManagementClient) {
|
|
26
33
|
this.client = client;
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
/**
|
|
30
37
|
* Lists all of the available Key Vault Rest API operations.
|
|
31
|
-
* @param
|
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
38
|
+
* @param options The options parameters.
|
|
33
39
|
*/
|
|
34
|
-
list(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
40
|
+
public list(
|
|
41
|
+
options?: OperationsListOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Operation> {
|
|
43
|
+
const iter = this.listPagingAll(options);
|
|
44
|
+
return {
|
|
45
|
+
next() {
|
|
46
|
+
return iter.next();
|
|
47
|
+
},
|
|
48
|
+
[Symbol.asyncIterator]() {
|
|
49
|
+
return this;
|
|
48
50
|
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
byPage: () => {
|
|
52
|
+
return this.listPagingPage(options);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async *listPagingPage(
|
|
58
|
+
options?: OperationsListOptionalParams
|
|
59
|
+
): AsyncIterableIterator<Operation[]> {
|
|
60
|
+
let result = await this._list(options);
|
|
61
|
+
yield result.value || [];
|
|
62
|
+
let continuationToken = result.nextLink;
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listNext(continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
yield result.value || [];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listPagingAll(
|
|
71
|
+
options?: OperationsListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<Operation> {
|
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
51
76
|
}
|
|
52
77
|
|
|
53
78
|
/**
|
|
54
79
|
* Lists all of the available Key Vault Rest API operations.
|
|
55
|
-
* @param
|
|
56
|
-
* @param [options] The optional parameters
|
|
57
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
|
58
|
-
*/
|
|
59
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
|
60
|
-
/**
|
|
61
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
62
|
-
* @param callback The callback
|
|
80
|
+
* @param options The options parameters.
|
|
63
81
|
*/
|
|
64
|
-
|
|
82
|
+
private _list(
|
|
83
|
+
options?: OperationsListOptionalParams
|
|
84
|
+
): Promise<OperationsListResponse> {
|
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
|
|
65
88
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @param
|
|
68
|
-
* @param
|
|
89
|
+
* ListNext
|
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
91
|
+
* @param options The options parameters.
|
|
69
92
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
93
|
+
private _listNext(
|
|
94
|
+
nextLink: string,
|
|
95
|
+
options?: OperationsListNextOptionalParams
|
|
96
|
+
): Promise<OperationsListNextResponse> {
|
|
72
97
|
return this.client.sendOperationRequest(
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
listNextOperationSpec,
|
|
78
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
|
98
|
+
{ nextLink, options },
|
|
99
|
+
listNextOperationSpec
|
|
100
|
+
);
|
|
79
101
|
}
|
|
80
102
|
}
|
|
81
|
-
|
|
82
103
|
// Operation Specifications
|
|
83
|
-
const serializer =
|
|
84
|
-
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
|
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
107
|
+
path: "/providers/Microsoft.KeyVault/operations",
|
|
85
108
|
httpMethod: "GET",
|
|
86
|
-
path: "providers/Microsoft.KeyVault/operations",
|
|
87
|
-
queryParameters: [
|
|
88
|
-
Parameters.apiVersion0
|
|
89
|
-
],
|
|
90
|
-
headerParameters: [
|
|
91
|
-
Parameters.acceptLanguage
|
|
92
|
-
],
|
|
93
109
|
responses: {
|
|
94
110
|
200: {
|
|
95
111
|
bodyMapper: Mappers.OperationListResult
|
|
@@ -98,19 +114,14 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
98
114
|
bodyMapper: Mappers.CloudError
|
|
99
115
|
}
|
|
100
116
|
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
101
120
|
serializer
|
|
102
121
|
};
|
|
103
|
-
|
|
104
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
105
|
-
httpMethod: "GET",
|
|
106
|
-
baseUrl: "https://management.azure.com",
|
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
107
123
|
path: "{nextLink}",
|
|
108
|
-
|
|
109
|
-
Parameters.nextPageLink
|
|
110
|
-
],
|
|
111
|
-
headerParameters: [
|
|
112
|
-
Parameters.acceptLanguage
|
|
113
|
-
],
|
|
124
|
+
httpMethod: "GET",
|
|
114
125
|
responses: {
|
|
115
126
|
200: {
|
|
116
127
|
bodyMapper: Mappers.OperationListResult
|
|
@@ -119,5 +130,8 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
119
130
|
bodyMapper: Mappers.CloudError
|
|
120
131
|
}
|
|
121
132
|
},
|
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
122
136
|
serializer
|
|
123
137
|
};
|