Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 82b0239

Browse files
authored
Generated from 0f95ff79bf5626b76d881a3abb35826bf22e2b05 (#2461)
Add node config to keyvault for Swagger to SDK
1 parent 8e520cb commit 82b0239

25 files changed

+4105
-422
lines changed

lib/services/keyVaultManagement/lib/keyVaultManagementClient.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ declare class KeyVaultManagementClient extends AzureServiceClient {
2020
* @class
2121
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
2222
*
23-
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
23+
* @param {string} subscriptionId - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
2424
*
2525
* @param {string} [baseUri] - The base URI of the service.
2626
*
@@ -56,6 +56,7 @@ declare class KeyVaultManagementClient extends AzureServiceClient {
5656

5757
// Operation groups
5858
vaults: operations.Vaults;
59+
operations: operations.Operations;
5960
}
6061

6162
export = KeyVaultManagementClient;

lib/services/keyVaultManagement/lib/keyVaultManagementClient.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class KeyVaultManagementClient extends ServiceClient {
2727
/**
2828
* Create a KeyVaultManagementClient.
2929
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
30-
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
30+
* @param {string} subscriptionId - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
3131
* @param {string} [baseUri] - The base URI of the service.
3232
* @param {object} [options] - The parameter options
3333
* @param {Array} [options.filters] - Filters to be added to the request pipeline
@@ -73,6 +73,7 @@ class KeyVaultManagementClient extends ServiceClient {
7373
this.generateClientRequestId = options.generateClientRequestId;
7474
}
7575
this.vaults = new operations.Vaults(this);
76+
this.operations = new operations.Operations(this);
7677
this.models = models;
7778
msRest.addSerializationMixin(this);
7879
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
* Changes may cause incorrect behavior and will be lost if the code is
8+
* regenerated.
9+
*/
10+
11+
'use strict';
12+
13+
/**
14+
* The CheckNameAvailability operation response.
15+
*
16+
*/
17+
class CheckNameAvailabilityResult {
18+
/**
19+
* Create a CheckNameAvailabilityResult.
20+
* @member {boolean} [nameAvailable] A boolean value that indicates whether
21+
* the name is available for you to use. If true, the name is available. If
22+
* false, the name has already been taken or is invalid and cannot be used.
23+
* @member {string} [reason] The reason that a vault name could not be used.
24+
* The Reason element is only returned if NameAvailable is false. Possible
25+
* values include: 'AccountNameInvalid', 'AlreadyExists'
26+
* @member {string} [message] An error message explaining the Reason value in
27+
* more detail.
28+
*/
29+
constructor() {
30+
}
31+
32+
/**
33+
* Defines the metadata of CheckNameAvailabilityResult
34+
*
35+
* @returns {object} metadata of CheckNameAvailabilityResult
36+
*
37+
*/
38+
mapper() {
39+
return {
40+
required: false,
41+
serializedName: 'CheckNameAvailabilityResult',
42+
type: {
43+
name: 'Composite',
44+
className: 'CheckNameAvailabilityResult',
45+
modelProperties: {
46+
nameAvailable: {
47+
required: false,
48+
readOnly: true,
49+
serializedName: 'nameAvailable',
50+
type: {
51+
name: 'Boolean'
52+
}
53+
},
54+
reason: {
55+
required: false,
56+
readOnly: true,
57+
serializedName: 'reason',
58+
type: {
59+
name: 'Enum',
60+
allowedValues: [ 'AccountNameInvalid', 'AlreadyExists' ]
61+
}
62+
},
63+
message: {
64+
required: false,
65+
readOnly: true,
66+
serializedName: 'message',
67+
type: {
68+
name: 'String'
69+
}
70+
}
71+
}
72+
}
73+
};
74+
}
75+
}
76+
77+
module.exports = CheckNameAvailabilityResult;

0 commit comments

Comments
 (0)