@azure/arm-keyvault 3.2.0-alpha.20250619.1 → 3.2.0-alpha.20250718.2
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.api.md → arm-keyvault-node.api.md} +0 -0
|
@@ -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"]}
|
|
@@ -13,6 +13,9 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
|
13
13
|
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
14
|
const index_js_1 = require("./operations/index.js");
|
|
15
15
|
class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
16
|
+
$host;
|
|
17
|
+
subscriptionId;
|
|
18
|
+
apiVersion;
|
|
16
19
|
/**
|
|
17
20
|
* Initializes a new instance of the KeyVaultManagementClient class.
|
|
18
21
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -21,7 +24,6 @@ class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
21
24
|
* @param options The parameter options
|
|
22
25
|
*/
|
|
23
26
|
constructor(credentials, subscriptionId, options) {
|
|
24
|
-
var _a, _b, _c;
|
|
25
27
|
if (credentials === undefined) {
|
|
26
28
|
throw new Error("'credentials' cannot be null");
|
|
27
29
|
}
|
|
@@ -40,12 +42,17 @@ class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
40
42
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
41
43
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
42
44
|
: `${packageDetails}`;
|
|
43
|
-
const optionsWithDefaults =
|
|
45
|
+
const optionsWithDefaults = {
|
|
46
|
+
...defaults,
|
|
47
|
+
...options,
|
|
48
|
+
userAgentOptions: {
|
|
44
49
|
userAgentPrefix,
|
|
45
|
-
},
|
|
50
|
+
},
|
|
51
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
52
|
+
};
|
|
46
53
|
super(optionsWithDefaults);
|
|
47
54
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
48
|
-
if (
|
|
55
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
49
56
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
50
57
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
51
58
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -59,7 +66,8 @@ class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
59
66
|
});
|
|
60
67
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
61
68
|
credential: credentials,
|
|
62
|
-
scopes:
|
|
69
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
70
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
63
71
|
challengeCallbacks: {
|
|
64
72
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
65
73
|
},
|
|
@@ -109,6 +117,17 @@ class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
109
117
|
};
|
|
110
118
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
111
119
|
}
|
|
120
|
+
keys;
|
|
121
|
+
managedHsmKeys;
|
|
122
|
+
vaults;
|
|
123
|
+
privateEndpointConnections;
|
|
124
|
+
privateLinkResources;
|
|
125
|
+
managedHsms;
|
|
126
|
+
mhsmPrivateEndpointConnections;
|
|
127
|
+
mhsmPrivateLinkResources;
|
|
128
|
+
mhsmRegions;
|
|
129
|
+
operations;
|
|
130
|
+
secrets;
|
|
112
131
|
}
|
|
113
132
|
exports.KeyVaultManagementClient = KeyVaultManagementClient;
|
|
114
133
|
//# sourceMappingURL=keyVaultManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyVaultManagementClient.js","sourceRoot":"","sources":["../../src/keyVaultManagementClient.ts"],"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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;AA9ID,4DA8IC","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/keyVaultManagementCl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I,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;AA9ID,4DA8IC","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"]}
|
package/dist/commonjs/lroImpl.js
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.createLroSpec = createLroSpec;
|
|
11
|
-
const tslib_1 = require("tslib");
|
|
12
11
|
function createLroSpec(inputs) {
|
|
13
12
|
const { args, spec, sendOperationFn } = inputs;
|
|
14
13
|
return {
|
|
@@ -16,8 +15,13 @@ function createLroSpec(inputs) {
|
|
|
16
15
|
requestPath: spec.path,
|
|
17
16
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
18
17
|
sendPollRequest: (path, options) => {
|
|
19
|
-
const { requestBody
|
|
20
|
-
return sendOperationFn(args,
|
|
18
|
+
const { requestBody, ...restSpec } = spec;
|
|
19
|
+
return sendOperationFn(args, {
|
|
20
|
+
...restSpec,
|
|
21
|
+
httpMethod: "GET",
|
|
22
|
+
path,
|
|
23
|
+
abortSignal: options?.abortSignal,
|
|
24
|
+
});
|
|
21
25
|
},
|
|
22
26
|
};
|
|
23
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAQH,sCA2BC
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAQH,sCA2BC;AA3BD,SAAgB,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"]}
|
|
@@ -2955,18 +2955,22 @@ exports.Key = {
|
|
|
2955
2955
|
type: {
|
|
2956
2956
|
name: "Composite",
|
|
2957
2957
|
className: "Key",
|
|
2958
|
-
modelProperties:
|
|
2958
|
+
modelProperties: {
|
|
2959
|
+
...exports.Resource.type.modelProperties,
|
|
2960
|
+
attributes: {
|
|
2959
2961
|
serializedName: "properties.attributes",
|
|
2960
2962
|
type: {
|
|
2961
2963
|
name: "Composite",
|
|
2962
2964
|
className: "KeyAttributes",
|
|
2963
2965
|
},
|
|
2964
|
-
},
|
|
2966
|
+
},
|
|
2967
|
+
kty: {
|
|
2965
2968
|
serializedName: "properties.kty",
|
|
2966
2969
|
type: {
|
|
2967
2970
|
name: "String",
|
|
2968
2971
|
},
|
|
2969
|
-
},
|
|
2972
|
+
},
|
|
2973
|
+
keyOps: {
|
|
2970
2974
|
serializedName: "properties.keyOps",
|
|
2971
2975
|
type: {
|
|
2972
2976
|
name: "Sequence",
|
|
@@ -2976,83 +2980,99 @@ exports.Key = {
|
|
|
2976
2980
|
},
|
|
2977
2981
|
},
|
|
2978
2982
|
},
|
|
2979
|
-
},
|
|
2983
|
+
},
|
|
2984
|
+
keySize: {
|
|
2980
2985
|
serializedName: "properties.keySize",
|
|
2981
2986
|
type: {
|
|
2982
2987
|
name: "Number",
|
|
2983
2988
|
},
|
|
2984
|
-
},
|
|
2989
|
+
},
|
|
2990
|
+
curveName: {
|
|
2985
2991
|
serializedName: "properties.curveName",
|
|
2986
2992
|
type: {
|
|
2987
2993
|
name: "String",
|
|
2988
2994
|
},
|
|
2989
|
-
},
|
|
2995
|
+
},
|
|
2996
|
+
keyUri: {
|
|
2990
2997
|
serializedName: "properties.keyUri",
|
|
2991
2998
|
readOnly: true,
|
|
2992
2999
|
type: {
|
|
2993
3000
|
name: "String",
|
|
2994
3001
|
},
|
|
2995
|
-
},
|
|
3002
|
+
},
|
|
3003
|
+
keyUriWithVersion: {
|
|
2996
3004
|
serializedName: "properties.keyUriWithVersion",
|
|
2997
3005
|
readOnly: true,
|
|
2998
3006
|
type: {
|
|
2999
3007
|
name: "String",
|
|
3000
3008
|
},
|
|
3001
|
-
},
|
|
3009
|
+
},
|
|
3010
|
+
rotationPolicy: {
|
|
3002
3011
|
serializedName: "properties.rotationPolicy",
|
|
3003
3012
|
type: {
|
|
3004
3013
|
name: "Composite",
|
|
3005
3014
|
className: "RotationPolicy",
|
|
3006
3015
|
},
|
|
3007
|
-
},
|
|
3016
|
+
},
|
|
3017
|
+
releasePolicy: {
|
|
3008
3018
|
serializedName: "properties.release_policy",
|
|
3009
3019
|
type: {
|
|
3010
3020
|
name: "Composite",
|
|
3011
3021
|
className: "KeyReleasePolicy",
|
|
3012
3022
|
},
|
|
3013
|
-
}
|
|
3023
|
+
},
|
|
3024
|
+
},
|
|
3014
3025
|
},
|
|
3015
3026
|
};
|
|
3016
3027
|
exports.PrivateEndpointConnection = {
|
|
3017
3028
|
type: {
|
|
3018
3029
|
name: "Composite",
|
|
3019
3030
|
className: "PrivateEndpointConnection",
|
|
3020
|
-
modelProperties:
|
|
3031
|
+
modelProperties: {
|
|
3032
|
+
...exports.Resource.type.modelProperties,
|
|
3033
|
+
etag: {
|
|
3021
3034
|
serializedName: "etag",
|
|
3022
3035
|
type: {
|
|
3023
3036
|
name: "String",
|
|
3024
3037
|
},
|
|
3025
|
-
},
|
|
3038
|
+
},
|
|
3039
|
+
privateEndpoint: {
|
|
3026
3040
|
serializedName: "properties.privateEndpoint",
|
|
3027
3041
|
type: {
|
|
3028
3042
|
name: "Composite",
|
|
3029
3043
|
className: "PrivateEndpoint",
|
|
3030
3044
|
},
|
|
3031
|
-
},
|
|
3045
|
+
},
|
|
3046
|
+
privateLinkServiceConnectionState: {
|
|
3032
3047
|
serializedName: "properties.privateLinkServiceConnectionState",
|
|
3033
3048
|
type: {
|
|
3034
3049
|
name: "Composite",
|
|
3035
3050
|
className: "PrivateLinkServiceConnectionState",
|
|
3036
3051
|
},
|
|
3037
|
-
},
|
|
3052
|
+
},
|
|
3053
|
+
provisioningState: {
|
|
3038
3054
|
serializedName: "properties.provisioningState",
|
|
3039
3055
|
type: {
|
|
3040
3056
|
name: "String",
|
|
3041
3057
|
},
|
|
3042
|
-
}
|
|
3058
|
+
},
|
|
3059
|
+
},
|
|
3043
3060
|
},
|
|
3044
3061
|
};
|
|
3045
3062
|
exports.PrivateLinkResource = {
|
|
3046
3063
|
type: {
|
|
3047
3064
|
name: "Composite",
|
|
3048
3065
|
className: "PrivateLinkResource",
|
|
3049
|
-
modelProperties:
|
|
3066
|
+
modelProperties: {
|
|
3067
|
+
...exports.Resource.type.modelProperties,
|
|
3068
|
+
groupId: {
|
|
3050
3069
|
serializedName: "properties.groupId",
|
|
3051
3070
|
readOnly: true,
|
|
3052
3071
|
type: {
|
|
3053
3072
|
name: "String",
|
|
3054
3073
|
},
|
|
3055
|
-
},
|
|
3074
|
+
},
|
|
3075
|
+
requiredMembers: {
|
|
3056
3076
|
serializedName: "properties.requiredMembers",
|
|
3057
3077
|
readOnly: true,
|
|
3058
3078
|
type: {
|
|
@@ -3063,7 +3083,8 @@ exports.PrivateLinkResource = {
|
|
|
3063
3083
|
},
|
|
3064
3084
|
},
|
|
3065
3085
|
},
|
|
3066
|
-
},
|
|
3086
|
+
},
|
|
3087
|
+
requiredZoneNames: {
|
|
3067
3088
|
serializedName: "properties.requiredZoneNames",
|
|
3068
3089
|
type: {
|
|
3069
3090
|
name: "Sequence",
|
|
@@ -3073,38 +3094,46 @@ exports.PrivateLinkResource = {
|
|
|
3073
3094
|
},
|
|
3074
3095
|
},
|
|
3075
3096
|
},
|
|
3076
|
-
}
|
|
3097
|
+
},
|
|
3098
|
+
},
|
|
3077
3099
|
},
|
|
3078
3100
|
};
|
|
3079
3101
|
exports.Secret = {
|
|
3080
3102
|
type: {
|
|
3081
3103
|
name: "Composite",
|
|
3082
3104
|
className: "Secret",
|
|
3083
|
-
modelProperties:
|
|
3105
|
+
modelProperties: {
|
|
3106
|
+
...exports.Resource.type.modelProperties,
|
|
3107
|
+
properties: {
|
|
3084
3108
|
serializedName: "properties",
|
|
3085
3109
|
type: {
|
|
3086
3110
|
name: "Composite",
|
|
3087
3111
|
className: "SecretProperties",
|
|
3088
3112
|
},
|
|
3089
|
-
}
|
|
3113
|
+
},
|
|
3114
|
+
},
|
|
3090
3115
|
},
|
|
3091
3116
|
};
|
|
3092
3117
|
exports.ManagedHsmKey = {
|
|
3093
3118
|
type: {
|
|
3094
3119
|
name: "Composite",
|
|
3095
3120
|
className: "ManagedHsmKey",
|
|
3096
|
-
modelProperties:
|
|
3121
|
+
modelProperties: {
|
|
3122
|
+
...exports.ProxyResourceWithoutSystemData.type.modelProperties,
|
|
3123
|
+
attributes: {
|
|
3097
3124
|
serializedName: "properties.attributes",
|
|
3098
3125
|
type: {
|
|
3099
3126
|
name: "Composite",
|
|
3100
3127
|
className: "ManagedHsmKeyAttributes",
|
|
3101
3128
|
},
|
|
3102
|
-
},
|
|
3129
|
+
},
|
|
3130
|
+
kty: {
|
|
3103
3131
|
serializedName: "properties.kty",
|
|
3104
3132
|
type: {
|
|
3105
3133
|
name: "String",
|
|
3106
3134
|
},
|
|
3107
|
-
},
|
|
3135
|
+
},
|
|
3136
|
+
keyOps: {
|
|
3108
3137
|
serializedName: "properties.keyOps",
|
|
3109
3138
|
type: {
|
|
3110
3139
|
name: "Sequence",
|
|
@@ -3114,96 +3143,115 @@ exports.ManagedHsmKey = {
|
|
|
3114
3143
|
},
|
|
3115
3144
|
},
|
|
3116
3145
|
},
|
|
3117
|
-
},
|
|
3146
|
+
},
|
|
3147
|
+
keySize: {
|
|
3118
3148
|
serializedName: "properties.keySize",
|
|
3119
3149
|
type: {
|
|
3120
3150
|
name: "Number",
|
|
3121
3151
|
},
|
|
3122
|
-
},
|
|
3152
|
+
},
|
|
3153
|
+
curveName: {
|
|
3123
3154
|
serializedName: "properties.curveName",
|
|
3124
3155
|
type: {
|
|
3125
3156
|
name: "String",
|
|
3126
3157
|
},
|
|
3127
|
-
},
|
|
3158
|
+
},
|
|
3159
|
+
keyUri: {
|
|
3128
3160
|
serializedName: "properties.keyUri",
|
|
3129
3161
|
readOnly: true,
|
|
3130
3162
|
type: {
|
|
3131
3163
|
name: "String",
|
|
3132
3164
|
},
|
|
3133
|
-
},
|
|
3165
|
+
},
|
|
3166
|
+
keyUriWithVersion: {
|
|
3134
3167
|
serializedName: "properties.keyUriWithVersion",
|
|
3135
3168
|
readOnly: true,
|
|
3136
3169
|
type: {
|
|
3137
3170
|
name: "String",
|
|
3138
3171
|
},
|
|
3139
|
-
},
|
|
3172
|
+
},
|
|
3173
|
+
rotationPolicy: {
|
|
3140
3174
|
serializedName: "properties.rotationPolicy",
|
|
3141
3175
|
type: {
|
|
3142
3176
|
name: "Composite",
|
|
3143
3177
|
className: "ManagedHsmRotationPolicy",
|
|
3144
3178
|
},
|
|
3145
|
-
},
|
|
3179
|
+
},
|
|
3180
|
+
releasePolicy: {
|
|
3146
3181
|
serializedName: "properties.release_policy",
|
|
3147
3182
|
type: {
|
|
3148
3183
|
name: "Composite",
|
|
3149
3184
|
className: "ManagedHsmKeyReleasePolicy",
|
|
3150
3185
|
},
|
|
3151
|
-
}
|
|
3186
|
+
},
|
|
3187
|
+
},
|
|
3152
3188
|
},
|
|
3153
3189
|
};
|
|
3154
3190
|
exports.ManagedHsm = {
|
|
3155
3191
|
type: {
|
|
3156
3192
|
name: "Composite",
|
|
3157
3193
|
className: "ManagedHsm",
|
|
3158
|
-
modelProperties:
|
|
3194
|
+
modelProperties: {
|
|
3195
|
+
...exports.ManagedHsmResource.type.modelProperties,
|
|
3196
|
+
properties: {
|
|
3159
3197
|
serializedName: "properties",
|
|
3160
3198
|
type: {
|
|
3161
3199
|
name: "Composite",
|
|
3162
3200
|
className: "ManagedHsmProperties",
|
|
3163
3201
|
},
|
|
3164
|
-
}
|
|
3202
|
+
},
|
|
3203
|
+
},
|
|
3165
3204
|
},
|
|
3166
3205
|
};
|
|
3167
3206
|
exports.MhsmPrivateEndpointConnection = {
|
|
3168
3207
|
type: {
|
|
3169
3208
|
name: "Composite",
|
|
3170
3209
|
className: "MhsmPrivateEndpointConnection",
|
|
3171
|
-
modelProperties:
|
|
3210
|
+
modelProperties: {
|
|
3211
|
+
...exports.ManagedHsmResource.type.modelProperties,
|
|
3212
|
+
etag: {
|
|
3172
3213
|
serializedName: "etag",
|
|
3173
3214
|
type: {
|
|
3174
3215
|
name: "String",
|
|
3175
3216
|
},
|
|
3176
|
-
},
|
|
3217
|
+
},
|
|
3218
|
+
privateEndpoint: {
|
|
3177
3219
|
serializedName: "properties.privateEndpoint",
|
|
3178
3220
|
type: {
|
|
3179
3221
|
name: "Composite",
|
|
3180
3222
|
className: "MhsmPrivateEndpoint",
|
|
3181
3223
|
},
|
|
3182
|
-
},
|
|
3224
|
+
},
|
|
3225
|
+
privateLinkServiceConnectionState: {
|
|
3183
3226
|
serializedName: "properties.privateLinkServiceConnectionState",
|
|
3184
3227
|
type: {
|
|
3185
3228
|
name: "Composite",
|
|
3186
3229
|
className: "MhsmPrivateLinkServiceConnectionState",
|
|
3187
3230
|
},
|
|
3188
|
-
},
|
|
3231
|
+
},
|
|
3232
|
+
provisioningState: {
|
|
3189
3233
|
serializedName: "properties.provisioningState",
|
|
3190
3234
|
type: {
|
|
3191
3235
|
name: "String",
|
|
3192
3236
|
},
|
|
3193
|
-
}
|
|
3237
|
+
},
|
|
3238
|
+
},
|
|
3194
3239
|
},
|
|
3195
3240
|
};
|
|
3196
3241
|
exports.MhsmPrivateLinkResource = {
|
|
3197
3242
|
type: {
|
|
3198
3243
|
name: "Composite",
|
|
3199
3244
|
className: "MhsmPrivateLinkResource",
|
|
3200
|
-
modelProperties:
|
|
3245
|
+
modelProperties: {
|
|
3246
|
+
...exports.ManagedHsmResource.type.modelProperties,
|
|
3247
|
+
groupId: {
|
|
3201
3248
|
serializedName: "properties.groupId",
|
|
3202
3249
|
readOnly: true,
|
|
3203
3250
|
type: {
|
|
3204
3251
|
name: "String",
|
|
3205
3252
|
},
|
|
3206
|
-
},
|
|
3253
|
+
},
|
|
3254
|
+
requiredMembers: {
|
|
3207
3255
|
serializedName: "properties.requiredMembers",
|
|
3208
3256
|
readOnly: true,
|
|
3209
3257
|
type: {
|
|
@@ -3214,7 +3262,8 @@ exports.MhsmPrivateLinkResource = {
|
|
|
3214
3262
|
},
|
|
3215
3263
|
},
|
|
3216
3264
|
},
|
|
3217
|
-
},
|
|
3265
|
+
},
|
|
3266
|
+
requiredZoneNames: {
|
|
3218
3267
|
serializedName: "properties.requiredZoneNames",
|
|
3219
3268
|
type: {
|
|
3220
3269
|
name: "Sequence",
|
|
@@ -3224,14 +3273,17 @@ exports.MhsmPrivateLinkResource = {
|
|
|
3224
3273
|
},
|
|
3225
3274
|
},
|
|
3226
3275
|
},
|
|
3227
|
-
}
|
|
3276
|
+
},
|
|
3277
|
+
},
|
|
3228
3278
|
},
|
|
3229
3279
|
};
|
|
3230
3280
|
exports.SecretAttributes = {
|
|
3231
3281
|
type: {
|
|
3232
3282
|
name: "Composite",
|
|
3233
3283
|
className: "SecretAttributes",
|
|
3234
|
-
modelProperties:
|
|
3284
|
+
modelProperties: {
|
|
3285
|
+
...exports.Attributes.type.modelProperties,
|
|
3286
|
+
},
|
|
3235
3287
|
},
|
|
3236
3288
|
};
|
|
3237
3289
|
exports.PrivateEndpointConnectionsPutHeaders = {
|