@azure/arm-keyvault 3.2.0-alpha.20250717.1 → 3.2.0-alpha.20250729.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/dist/browser/keyVaultManagementClient.js +24 -5
- package/dist/browser/keyVaultManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +95 -43
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/keys.js +45 -79
- package/dist/browser/operations/keys.js.map +1 -1
- package/dist/browser/operations/managedHsmKeys.js +45 -79
- package/dist/browser/operations/managedHsmKeys.js.map +1 -1
- package/dist/browser/operations/managedHsms.js +111 -142
- package/dist/browser/operations/managedHsms.js.map +1 -1
- package/dist/browser/operations/mhsmPrivateEndpointConnections.js +34 -46
- package/dist/browser/operations/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/mhsmPrivateLinkResources.js +1 -0
- package/dist/browser/operations/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/browser/operations/mhsmRegions.js +23 -40
- package/dist/browser/operations/mhsmRegions.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +34 -46
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/secrets.js +23 -40
- package/dist/browser/operations/secrets.js.map +1 -1
- package/dist/browser/operations/vaults.js +111 -169
- package/dist/browser/operations/vaults.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/keyVaultManagementClient.js +24 -5
- package/dist/commonjs/keyVaultManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +95 -43
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/keys.js +45 -78
- package/dist/commonjs/operations/keys.js.map +1 -1
- package/dist/commonjs/operations/managedHsmKeys.js +45 -78
- package/dist/commonjs/operations/managedHsmKeys.js.map +1 -1
- package/dist/commonjs/operations/managedHsms.js +111 -141
- package/dist/commonjs/operations/managedHsms.js.map +1 -1
- package/dist/commonjs/operations/mhsmPrivateEndpointConnections.js +34 -45
- package/dist/commonjs/operations/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/mhsmPrivateLinkResources.js +1 -0
- package/dist/commonjs/operations/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/mhsmRegions.js +23 -39
- package/dist/commonjs/operations/mhsmRegions.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +34 -45
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/secrets.js +23 -39
- package/dist/commonjs/operations/secrets.js.map +1 -1
- package/dist/commonjs/operations/vaults.js +111 -168
- package/dist/commonjs/operations/vaults.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/keyVaultManagementClient.js +24 -5
- package/dist/esm/keyVaultManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +95 -43
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/keys.js +45 -79
- package/dist/esm/operations/keys.js.map +1 -1
- package/dist/esm/operations/managedHsmKeys.js +45 -79
- package/dist/esm/operations/managedHsmKeys.js.map +1 -1
- package/dist/esm/operations/managedHsms.js +111 -142
- package/dist/esm/operations/managedHsms.js.map +1 -1
- package/dist/esm/operations/mhsmPrivateEndpointConnections.js +34 -46
- package/dist/esm/operations/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/mhsmPrivateLinkResources.js +1 -0
- package/dist/esm/operations/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/esm/operations/mhsmRegions.js +23 -40
- package/dist/esm/operations/mhsmRegions.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +34 -46
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/secrets.js +23 -40
- package/dist/esm/operations/secrets.js.map +1 -1
- package/dist/esm/operations/vaults.js +111 -169
- package/dist/esm/operations/vaults.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/keyVaultManagementClient.js +24 -5
- package/dist/react-native/keyVaultManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +95 -43
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/keys.js +45 -79
- package/dist/react-native/operations/keys.js.map +1 -1
- package/dist/react-native/operations/managedHsmKeys.js +45 -79
- package/dist/react-native/operations/managedHsmKeys.js.map +1 -1
- package/dist/react-native/operations/managedHsms.js +111 -142
- package/dist/react-native/operations/managedHsms.js.map +1 -1
- package/dist/react-native/operations/mhsmPrivateEndpointConnections.js +34 -46
- package/dist/react-native/operations/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/mhsmPrivateLinkResources.js +1 -0
- package/dist/react-native/operations/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/react-native/operations/mhsmRegions.js +23 -40
- package/dist/react-native/operations/mhsmRegions.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +34 -46
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/secrets.js +23 -40
- package/dist/react-native/operations/secrets.js.map +1 -1
- package/dist/react-native/operations/vaults.js +111 -169
- package/dist/react-native/operations/vaults.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-keyvault-node.api.md +1722 -1722
package/dist/esm/pagingHelper.js
CHANGED
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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 interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { KeysImpl, ManagedHsmKeysImpl, VaultsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, ManagedHsmsImpl, MhsmPrivateEndpointConnectionsImpl, MhsmPrivateLinkResourcesImpl, MhsmRegionsImpl, OperationsImpl, SecretsImpl, } from "./operations/index.js";
|
|
11
11
|
export class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
subscriptionId;
|
|
14
|
+
apiVersion;
|
|
12
15
|
/**
|
|
13
16
|
* Initializes a new instance of the KeyVaultManagementClient class.
|
|
14
17
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -17,7 +20,6 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
17
20
|
* @param options The parameter options
|
|
18
21
|
*/
|
|
19
22
|
constructor(credentials, subscriptionId, options) {
|
|
20
|
-
var _a, _b, _c;
|
|
21
23
|
if (credentials === undefined) {
|
|
22
24
|
throw new Error("'credentials' cannot be null");
|
|
23
25
|
}
|
|
@@ -36,12 +38,17 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
36
38
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
39
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
40
|
: `${packageDetails}`;
|
|
39
|
-
const optionsWithDefaults =
|
|
41
|
+
const optionsWithDefaults = {
|
|
42
|
+
...defaults,
|
|
43
|
+
...options,
|
|
44
|
+
userAgentOptions: {
|
|
40
45
|
userAgentPrefix,
|
|
41
|
-
},
|
|
46
|
+
},
|
|
47
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
48
|
+
};
|
|
42
49
|
super(optionsWithDefaults);
|
|
43
50
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
44
|
-
if (
|
|
51
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
45
52
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
46
53
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
47
54
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -55,7 +62,8 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
55
62
|
});
|
|
56
63
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
64
|
credential: credentials,
|
|
58
|
-
scopes:
|
|
65
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
66
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
59
67
|
challengeCallbacks: {
|
|
60
68
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
61
69
|
},
|
|
@@ -105,5 +113,16 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
105
113
|
};
|
|
106
114
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
107
115
|
}
|
|
116
|
+
keys;
|
|
117
|
+
managedHsmKeys;
|
|
118
|
+
vaults;
|
|
119
|
+
privateEndpointConnections;
|
|
120
|
+
privateLinkResources;
|
|
121
|
+
managedHsms;
|
|
122
|
+
mhsmPrivateEndpointConnections;
|
|
123
|
+
mhsmPrivateLinkResources;
|
|
124
|
+
mhsmRegions;
|
|
125
|
+
operations;
|
|
126
|
+
secrets;
|
|
108
127
|
}
|
|
109
128
|
//# sourceMappingURL=keyVaultManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyVaultManagementClient.js","sourceRoot":"","sources":["../../src/keyVaultManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,UAAU,EACV,8BAA8B,EAC9B,wBAAwB,EACxB,eAAe,EACf,kCAAkC,EAClC,4BAA4B,EAC5B,eAAe,EACf,cAAc,EACd,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAgB/B,MAAM,OAAO,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IAKpE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAgD;;QAEhD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA2C;YACvD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,6BAA6B,CAAC;QACrD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,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,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAaF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n KeysImpl,\n ManagedHsmKeysImpl,\n VaultsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ManagedHsmsImpl,\n MhsmPrivateEndpointConnectionsImpl,\n MhsmPrivateLinkResourcesImpl,\n MhsmRegionsImpl,\n OperationsImpl,\n SecretsImpl,\n} from \"./operations/index.js\";\nimport {\n Keys,\n ManagedHsmKeys,\n Vaults,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ManagedHsms,\n MhsmPrivateEndpointConnections,\n MhsmPrivateLinkResources,\n MhsmRegions,\n Operations,\n Secrets,\n} from \"./operationsInterfaces/index.js\";\nimport { KeyVaultManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class KeyVaultManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the KeyVaultManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: KeyVaultManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: KeyVaultManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-keyvault/3.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-11-01\";\n this.keys = new KeysImpl(this);\n this.managedHsmKeys = new ManagedHsmKeysImpl(this);\n this.vaults = new VaultsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.managedHsms = new ManagedHsmsImpl(this);\n this.mhsmPrivateEndpointConnections =\n new MhsmPrivateEndpointConnectionsImpl(this);\n this.mhsmPrivateLinkResources = new MhsmPrivateLinkResourcesImpl(this);\n this.mhsmRegions = new MhsmRegionsImpl(this);\n this.operations = new OperationsImpl(this);\n this.secrets = new SecretsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n keys: Keys;\n managedHsmKeys: ManagedHsmKeys;\n vaults: Vaults;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n managedHsms: ManagedHsms;\n mhsmPrivateEndpointConnections: MhsmPrivateEndpointConnections;\n mhsmPrivateLinkResources: MhsmPrivateLinkResources;\n mhsmRegions: MhsmRegions;\n operations: Operations;\n secrets: Secrets;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"keyVaultManagementClient.js","sourceRoot":"","sources":["../../src/keyVaultManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,UAAU,EACV,8BAA8B,EAC9B,wBAAwB,EACxB,eAAe,EACf,kCAAkC,EAClC,4BAA4B,EAC5B,eAAe,EACf,cAAc,EACd,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAgB/B,MAAM,OAAO,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IACpE,KAAK,CAAS;IACd,cAAc,CAAS;IACvB,UAAU,CAAS;IAEnB;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAgD;QAEhD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA2C;YACvD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,6BAA6B,CAAC;QACrD,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ChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,CAAO;IACX,cAAc,CAAiB;IAC/B,MAAM,CAAS;IACf,0BAA0B,CAA6B;IACvD,oBAAoB,CAAuB;IAC3C,WAAW,CAAc;IACzB,8BAA8B,CAAiC;IAC/D,wBAAwB,CAA2B;IACnD,WAAW,CAAc;IACzB,UAAU,CAAa;IACvB,OAAO,CAAU;CAClB","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n KeysImpl,\n ManagedHsmKeysImpl,\n VaultsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ManagedHsmsImpl,\n MhsmPrivateEndpointConnectionsImpl,\n MhsmPrivateLinkResourcesImpl,\n MhsmRegionsImpl,\n OperationsImpl,\n SecretsImpl,\n} from \"./operations/index.js\";\nimport {\n Keys,\n ManagedHsmKeys,\n Vaults,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ManagedHsms,\n MhsmPrivateEndpointConnections,\n MhsmPrivateLinkResources,\n MhsmRegions,\n Operations,\n Secrets,\n} from \"./operationsInterfaces/index.js\";\nimport { KeyVaultManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class KeyVaultManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the KeyVaultManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: KeyVaultManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: KeyVaultManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-keyvault/3.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-11-01\";\n this.keys = new KeysImpl(this);\n this.managedHsmKeys = new ManagedHsmKeysImpl(this);\n this.vaults = new VaultsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.managedHsms = new ManagedHsmsImpl(this);\n this.mhsmPrivateEndpointConnections =\n new MhsmPrivateEndpointConnectionsImpl(this);\n this.mhsmPrivateLinkResources = new MhsmPrivateLinkResourcesImpl(this);\n this.mhsmRegions = new MhsmRegionsImpl(this);\n this.operations = new OperationsImpl(this);\n this.secrets = new SecretsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n keys: Keys;\n managedHsmKeys: ManagedHsmKeys;\n vaults: Vaults;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n managedHsms: ManagedHsms;\n mhsmPrivateEndpointConnections: MhsmPrivateEndpointConnections;\n mhsmPrivateLinkResources: MhsmPrivateLinkResources;\n mhsmRegions: MhsmRegions;\n operations: Operations;\n secrets: Secrets;\n}\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __rest } from "tslib";
|
|
9
8
|
export function createLroSpec(inputs) {
|
|
10
9
|
const { args, spec, sendOperationFn } = inputs;
|
|
11
10
|
return {
|
|
@@ -13,8 +12,13 @@ export function createLroSpec(inputs) {
|
|
|
13
12
|
requestPath: spec.path,
|
|
14
13
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
15
14
|
sendPollRequest: (path, options) => {
|
|
16
|
-
const { requestBody
|
|
17
|
-
return sendOperationFn(args,
|
|
15
|
+
const { requestBody, ...restSpec } = spec;
|
|
16
|
+
return sendOperationFn(args, {
|
|
17
|
+
...restSpec,
|
|
18
|
+
httpMethod: "GET",
|
|
19
|
+
path,
|
|
20
|
+
abortSignal: options?.abortSignal,
|
|
21
|
+
});
|
|
18
22
|
},
|
|
19
23
|
};
|
|
20
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|
|
@@ -2950,18 +2950,22 @@ export const Key = {
|
|
|
2950
2950
|
type: {
|
|
2951
2951
|
name: "Composite",
|
|
2952
2952
|
className: "Key",
|
|
2953
|
-
modelProperties:
|
|
2953
|
+
modelProperties: {
|
|
2954
|
+
...Resource.type.modelProperties,
|
|
2955
|
+
attributes: {
|
|
2954
2956
|
serializedName: "properties.attributes",
|
|
2955
2957
|
type: {
|
|
2956
2958
|
name: "Composite",
|
|
2957
2959
|
className: "KeyAttributes",
|
|
2958
2960
|
},
|
|
2959
|
-
},
|
|
2961
|
+
},
|
|
2962
|
+
kty: {
|
|
2960
2963
|
serializedName: "properties.kty",
|
|
2961
2964
|
type: {
|
|
2962
2965
|
name: "String",
|
|
2963
2966
|
},
|
|
2964
|
-
},
|
|
2967
|
+
},
|
|
2968
|
+
keyOps: {
|
|
2965
2969
|
serializedName: "properties.keyOps",
|
|
2966
2970
|
type: {
|
|
2967
2971
|
name: "Sequence",
|
|
@@ -2971,83 +2975,99 @@ export const Key = {
|
|
|
2971
2975
|
},
|
|
2972
2976
|
},
|
|
2973
2977
|
},
|
|
2974
|
-
},
|
|
2978
|
+
},
|
|
2979
|
+
keySize: {
|
|
2975
2980
|
serializedName: "properties.keySize",
|
|
2976
2981
|
type: {
|
|
2977
2982
|
name: "Number",
|
|
2978
2983
|
},
|
|
2979
|
-
},
|
|
2984
|
+
},
|
|
2985
|
+
curveName: {
|
|
2980
2986
|
serializedName: "properties.curveName",
|
|
2981
2987
|
type: {
|
|
2982
2988
|
name: "String",
|
|
2983
2989
|
},
|
|
2984
|
-
},
|
|
2990
|
+
},
|
|
2991
|
+
keyUri: {
|
|
2985
2992
|
serializedName: "properties.keyUri",
|
|
2986
2993
|
readOnly: true,
|
|
2987
2994
|
type: {
|
|
2988
2995
|
name: "String",
|
|
2989
2996
|
},
|
|
2990
|
-
},
|
|
2997
|
+
},
|
|
2998
|
+
keyUriWithVersion: {
|
|
2991
2999
|
serializedName: "properties.keyUriWithVersion",
|
|
2992
3000
|
readOnly: true,
|
|
2993
3001
|
type: {
|
|
2994
3002
|
name: "String",
|
|
2995
3003
|
},
|
|
2996
|
-
},
|
|
3004
|
+
},
|
|
3005
|
+
rotationPolicy: {
|
|
2997
3006
|
serializedName: "properties.rotationPolicy",
|
|
2998
3007
|
type: {
|
|
2999
3008
|
name: "Composite",
|
|
3000
3009
|
className: "RotationPolicy",
|
|
3001
3010
|
},
|
|
3002
|
-
},
|
|
3011
|
+
},
|
|
3012
|
+
releasePolicy: {
|
|
3003
3013
|
serializedName: "properties.release_policy",
|
|
3004
3014
|
type: {
|
|
3005
3015
|
name: "Composite",
|
|
3006
3016
|
className: "KeyReleasePolicy",
|
|
3007
3017
|
},
|
|
3008
|
-
}
|
|
3018
|
+
},
|
|
3019
|
+
},
|
|
3009
3020
|
},
|
|
3010
3021
|
};
|
|
3011
3022
|
export const PrivateEndpointConnection = {
|
|
3012
3023
|
type: {
|
|
3013
3024
|
name: "Composite",
|
|
3014
3025
|
className: "PrivateEndpointConnection",
|
|
3015
|
-
modelProperties:
|
|
3026
|
+
modelProperties: {
|
|
3027
|
+
...Resource.type.modelProperties,
|
|
3028
|
+
etag: {
|
|
3016
3029
|
serializedName: "etag",
|
|
3017
3030
|
type: {
|
|
3018
3031
|
name: "String",
|
|
3019
3032
|
},
|
|
3020
|
-
},
|
|
3033
|
+
},
|
|
3034
|
+
privateEndpoint: {
|
|
3021
3035
|
serializedName: "properties.privateEndpoint",
|
|
3022
3036
|
type: {
|
|
3023
3037
|
name: "Composite",
|
|
3024
3038
|
className: "PrivateEndpoint",
|
|
3025
3039
|
},
|
|
3026
|
-
},
|
|
3040
|
+
},
|
|
3041
|
+
privateLinkServiceConnectionState: {
|
|
3027
3042
|
serializedName: "properties.privateLinkServiceConnectionState",
|
|
3028
3043
|
type: {
|
|
3029
3044
|
name: "Composite",
|
|
3030
3045
|
className: "PrivateLinkServiceConnectionState",
|
|
3031
3046
|
},
|
|
3032
|
-
},
|
|
3047
|
+
},
|
|
3048
|
+
provisioningState: {
|
|
3033
3049
|
serializedName: "properties.provisioningState",
|
|
3034
3050
|
type: {
|
|
3035
3051
|
name: "String",
|
|
3036
3052
|
},
|
|
3037
|
-
}
|
|
3053
|
+
},
|
|
3054
|
+
},
|
|
3038
3055
|
},
|
|
3039
3056
|
};
|
|
3040
3057
|
export const PrivateLinkResource = {
|
|
3041
3058
|
type: {
|
|
3042
3059
|
name: "Composite",
|
|
3043
3060
|
className: "PrivateLinkResource",
|
|
3044
|
-
modelProperties:
|
|
3061
|
+
modelProperties: {
|
|
3062
|
+
...Resource.type.modelProperties,
|
|
3063
|
+
groupId: {
|
|
3045
3064
|
serializedName: "properties.groupId",
|
|
3046
3065
|
readOnly: true,
|
|
3047
3066
|
type: {
|
|
3048
3067
|
name: "String",
|
|
3049
3068
|
},
|
|
3050
|
-
},
|
|
3069
|
+
},
|
|
3070
|
+
requiredMembers: {
|
|
3051
3071
|
serializedName: "properties.requiredMembers",
|
|
3052
3072
|
readOnly: true,
|
|
3053
3073
|
type: {
|
|
@@ -3058,7 +3078,8 @@ export const PrivateLinkResource = {
|
|
|
3058
3078
|
},
|
|
3059
3079
|
},
|
|
3060
3080
|
},
|
|
3061
|
-
},
|
|
3081
|
+
},
|
|
3082
|
+
requiredZoneNames: {
|
|
3062
3083
|
serializedName: "properties.requiredZoneNames",
|
|
3063
3084
|
type: {
|
|
3064
3085
|
name: "Sequence",
|
|
@@ -3068,38 +3089,46 @@ export const PrivateLinkResource = {
|
|
|
3068
3089
|
},
|
|
3069
3090
|
},
|
|
3070
3091
|
},
|
|
3071
|
-
}
|
|
3092
|
+
},
|
|
3093
|
+
},
|
|
3072
3094
|
},
|
|
3073
3095
|
};
|
|
3074
3096
|
export const Secret = {
|
|
3075
3097
|
type: {
|
|
3076
3098
|
name: "Composite",
|
|
3077
3099
|
className: "Secret",
|
|
3078
|
-
modelProperties:
|
|
3100
|
+
modelProperties: {
|
|
3101
|
+
...Resource.type.modelProperties,
|
|
3102
|
+
properties: {
|
|
3079
3103
|
serializedName: "properties",
|
|
3080
3104
|
type: {
|
|
3081
3105
|
name: "Composite",
|
|
3082
3106
|
className: "SecretProperties",
|
|
3083
3107
|
},
|
|
3084
|
-
}
|
|
3108
|
+
},
|
|
3109
|
+
},
|
|
3085
3110
|
},
|
|
3086
3111
|
};
|
|
3087
3112
|
export const ManagedHsmKey = {
|
|
3088
3113
|
type: {
|
|
3089
3114
|
name: "Composite",
|
|
3090
3115
|
className: "ManagedHsmKey",
|
|
3091
|
-
modelProperties:
|
|
3116
|
+
modelProperties: {
|
|
3117
|
+
...ProxyResourceWithoutSystemData.type.modelProperties,
|
|
3118
|
+
attributes: {
|
|
3092
3119
|
serializedName: "properties.attributes",
|
|
3093
3120
|
type: {
|
|
3094
3121
|
name: "Composite",
|
|
3095
3122
|
className: "ManagedHsmKeyAttributes",
|
|
3096
3123
|
},
|
|
3097
|
-
},
|
|
3124
|
+
},
|
|
3125
|
+
kty: {
|
|
3098
3126
|
serializedName: "properties.kty",
|
|
3099
3127
|
type: {
|
|
3100
3128
|
name: "String",
|
|
3101
3129
|
},
|
|
3102
|
-
},
|
|
3130
|
+
},
|
|
3131
|
+
keyOps: {
|
|
3103
3132
|
serializedName: "properties.keyOps",
|
|
3104
3133
|
type: {
|
|
3105
3134
|
name: "Sequence",
|
|
@@ -3109,96 +3138,115 @@ export const ManagedHsmKey = {
|
|
|
3109
3138
|
},
|
|
3110
3139
|
},
|
|
3111
3140
|
},
|
|
3112
|
-
},
|
|
3141
|
+
},
|
|
3142
|
+
keySize: {
|
|
3113
3143
|
serializedName: "properties.keySize",
|
|
3114
3144
|
type: {
|
|
3115
3145
|
name: "Number",
|
|
3116
3146
|
},
|
|
3117
|
-
},
|
|
3147
|
+
},
|
|
3148
|
+
curveName: {
|
|
3118
3149
|
serializedName: "properties.curveName",
|
|
3119
3150
|
type: {
|
|
3120
3151
|
name: "String",
|
|
3121
3152
|
},
|
|
3122
|
-
},
|
|
3153
|
+
},
|
|
3154
|
+
keyUri: {
|
|
3123
3155
|
serializedName: "properties.keyUri",
|
|
3124
3156
|
readOnly: true,
|
|
3125
3157
|
type: {
|
|
3126
3158
|
name: "String",
|
|
3127
3159
|
},
|
|
3128
|
-
},
|
|
3160
|
+
},
|
|
3161
|
+
keyUriWithVersion: {
|
|
3129
3162
|
serializedName: "properties.keyUriWithVersion",
|
|
3130
3163
|
readOnly: true,
|
|
3131
3164
|
type: {
|
|
3132
3165
|
name: "String",
|
|
3133
3166
|
},
|
|
3134
|
-
},
|
|
3167
|
+
},
|
|
3168
|
+
rotationPolicy: {
|
|
3135
3169
|
serializedName: "properties.rotationPolicy",
|
|
3136
3170
|
type: {
|
|
3137
3171
|
name: "Composite",
|
|
3138
3172
|
className: "ManagedHsmRotationPolicy",
|
|
3139
3173
|
},
|
|
3140
|
-
},
|
|
3174
|
+
},
|
|
3175
|
+
releasePolicy: {
|
|
3141
3176
|
serializedName: "properties.release_policy",
|
|
3142
3177
|
type: {
|
|
3143
3178
|
name: "Composite",
|
|
3144
3179
|
className: "ManagedHsmKeyReleasePolicy",
|
|
3145
3180
|
},
|
|
3146
|
-
}
|
|
3181
|
+
},
|
|
3182
|
+
},
|
|
3147
3183
|
},
|
|
3148
3184
|
};
|
|
3149
3185
|
export const ManagedHsm = {
|
|
3150
3186
|
type: {
|
|
3151
3187
|
name: "Composite",
|
|
3152
3188
|
className: "ManagedHsm",
|
|
3153
|
-
modelProperties:
|
|
3189
|
+
modelProperties: {
|
|
3190
|
+
...ManagedHsmResource.type.modelProperties,
|
|
3191
|
+
properties: {
|
|
3154
3192
|
serializedName: "properties",
|
|
3155
3193
|
type: {
|
|
3156
3194
|
name: "Composite",
|
|
3157
3195
|
className: "ManagedHsmProperties",
|
|
3158
3196
|
},
|
|
3159
|
-
}
|
|
3197
|
+
},
|
|
3198
|
+
},
|
|
3160
3199
|
},
|
|
3161
3200
|
};
|
|
3162
3201
|
export const MhsmPrivateEndpointConnection = {
|
|
3163
3202
|
type: {
|
|
3164
3203
|
name: "Composite",
|
|
3165
3204
|
className: "MhsmPrivateEndpointConnection",
|
|
3166
|
-
modelProperties:
|
|
3205
|
+
modelProperties: {
|
|
3206
|
+
...ManagedHsmResource.type.modelProperties,
|
|
3207
|
+
etag: {
|
|
3167
3208
|
serializedName: "etag",
|
|
3168
3209
|
type: {
|
|
3169
3210
|
name: "String",
|
|
3170
3211
|
},
|
|
3171
|
-
},
|
|
3212
|
+
},
|
|
3213
|
+
privateEndpoint: {
|
|
3172
3214
|
serializedName: "properties.privateEndpoint",
|
|
3173
3215
|
type: {
|
|
3174
3216
|
name: "Composite",
|
|
3175
3217
|
className: "MhsmPrivateEndpoint",
|
|
3176
3218
|
},
|
|
3177
|
-
},
|
|
3219
|
+
},
|
|
3220
|
+
privateLinkServiceConnectionState: {
|
|
3178
3221
|
serializedName: "properties.privateLinkServiceConnectionState",
|
|
3179
3222
|
type: {
|
|
3180
3223
|
name: "Composite",
|
|
3181
3224
|
className: "MhsmPrivateLinkServiceConnectionState",
|
|
3182
3225
|
},
|
|
3183
|
-
},
|
|
3226
|
+
},
|
|
3227
|
+
provisioningState: {
|
|
3184
3228
|
serializedName: "properties.provisioningState",
|
|
3185
3229
|
type: {
|
|
3186
3230
|
name: "String",
|
|
3187
3231
|
},
|
|
3188
|
-
}
|
|
3232
|
+
},
|
|
3233
|
+
},
|
|
3189
3234
|
},
|
|
3190
3235
|
};
|
|
3191
3236
|
export const MhsmPrivateLinkResource = {
|
|
3192
3237
|
type: {
|
|
3193
3238
|
name: "Composite",
|
|
3194
3239
|
className: "MhsmPrivateLinkResource",
|
|
3195
|
-
modelProperties:
|
|
3240
|
+
modelProperties: {
|
|
3241
|
+
...ManagedHsmResource.type.modelProperties,
|
|
3242
|
+
groupId: {
|
|
3196
3243
|
serializedName: "properties.groupId",
|
|
3197
3244
|
readOnly: true,
|
|
3198
3245
|
type: {
|
|
3199
3246
|
name: "String",
|
|
3200
3247
|
},
|
|
3201
|
-
},
|
|
3248
|
+
},
|
|
3249
|
+
requiredMembers: {
|
|
3202
3250
|
serializedName: "properties.requiredMembers",
|
|
3203
3251
|
readOnly: true,
|
|
3204
3252
|
type: {
|
|
@@ -3209,7 +3257,8 @@ export const MhsmPrivateLinkResource = {
|
|
|
3209
3257
|
},
|
|
3210
3258
|
},
|
|
3211
3259
|
},
|
|
3212
|
-
},
|
|
3260
|
+
},
|
|
3261
|
+
requiredZoneNames: {
|
|
3213
3262
|
serializedName: "properties.requiredZoneNames",
|
|
3214
3263
|
type: {
|
|
3215
3264
|
name: "Sequence",
|
|
@@ -3219,14 +3268,17 @@ export const MhsmPrivateLinkResource = {
|
|
|
3219
3268
|
},
|
|
3220
3269
|
},
|
|
3221
3270
|
},
|
|
3222
|
-
}
|
|
3271
|
+
},
|
|
3272
|
+
},
|
|
3223
3273
|
},
|
|
3224
3274
|
};
|
|
3225
3275
|
export const SecretAttributes = {
|
|
3226
3276
|
type: {
|
|
3227
3277
|
name: "Composite",
|
|
3228
3278
|
className: "SecretAttributes",
|
|
3229
|
-
modelProperties:
|
|
3279
|
+
modelProperties: {
|
|
3280
|
+
...Attributes.type.modelProperties,
|
|
3281
|
+
},
|
|
3230
3282
|
},
|
|
3231
3283
|
};
|
|
3232
3284
|
export const PrivateEndpointConnectionsPutHeaders = {
|