Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Generated from 0f95ff79bf5626b76d881a3abb35826bf22e2b05 (#2461)
Add node config to keyvault for Swagger to SDK
  • Loading branch information
AutorestCI authored Mar 14, 2018
commit 82b0239c129a04ddbfc23a7c78def27c0404ee59
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ declare class KeyVaultManagementClient extends AzureServiceClient {
* @class
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
* @param {string} subscriptionId - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
*
* @param {string} [baseUri] - The base URI of the service.
*
Expand Down Expand Up @@ -56,6 +56,7 @@ declare class KeyVaultManagementClient extends AzureServiceClient {

// Operation groups
vaults: operations.Vaults;
operations: operations.Operations;
}

export = KeyVaultManagementClient;
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class KeyVaultManagementClient extends ServiceClient {
/**
* Create a KeyVaultManagementClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
* @param {string} subscriptionId - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
Expand Down Expand Up @@ -73,6 +73,7 @@ class KeyVaultManagementClient extends ServiceClient {
this.generateClientRequestId = options.generateClientRequestId;
}
this.vaults = new operations.Vaults(this);
this.operations = new operations.Operations(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The CheckNameAvailability operation response.
*
*/
class CheckNameAvailabilityResult {
/**
* Create a CheckNameAvailabilityResult.
* @member {boolean} [nameAvailable] A boolean value that indicates whether
* the name is available for you to use. If true, the name is available. If
* false, the name has already been taken or is invalid and cannot be used.
* @member {string} [reason] The reason that a vault name could not be used.
* The Reason element is only returned if NameAvailable is false. Possible
* values include: 'AccountNameInvalid', 'AlreadyExists'
* @member {string} [message] An error message explaining the Reason value in
* more detail.
*/
constructor() {
}

/**
* Defines the metadata of CheckNameAvailabilityResult
*
* @returns {object} metadata of CheckNameAvailabilityResult
*
*/
mapper() {
return {
required: false,
serializedName: 'CheckNameAvailabilityResult',
type: {
name: 'Composite',
className: 'CheckNameAvailabilityResult',
modelProperties: {
nameAvailable: {
required: false,
readOnly: true,
serializedName: 'nameAvailable',
type: {
name: 'Boolean'
}
},
reason: {
required: false,
readOnly: true,
serializedName: 'reason',
type: {
name: 'Enum',
allowedValues: [ 'AccountNameInvalid', 'AlreadyExists' ]
}
},
message: {
required: false,
readOnly: true,
serializedName: 'message',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = CheckNameAvailabilityResult;
Loading