Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
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
42 changes: 21 additions & 21 deletions lib/services/keyVaultManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@

import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";

declare class KeyVaultManagementClient extends AzureServiceClient {
export default class KeyVaultManagementClient extends AzureServiceClient {
/**
* Initializes a new instance of the KeyVaultManagementClient class.
* @constructor
*
* @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 +57,7 @@ declare class KeyVaultManagementClient extends AzureServiceClient {

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

export = KeyVaultManagementClient;
export { KeyVaultManagementClient, models as KeyVaultManagementModels };
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 All @@ -50,7 +50,7 @@ class KeyVaultManagementClient extends ServiceClient {

super(credentials, options);

this.apiVersion = '2016-10-01';
this.apiVersion = '2018-02-14';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand All @@ -73,10 +73,14 @@ 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);
}

}

module.exports = KeyVaultManagementClient;
module.exports['default'] = KeyVaultManagementClient;
module.exports.KeyVaultManagementClient = KeyVaultManagementClient;
module.exports.KeyVaultManagementModels = models;
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;
55 changes: 55 additions & 0 deletions lib/services/keyVaultManagement/lib/models/iPRule.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* 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';

/**
* A rule governing the accesibility of a vault from a specific ip address or
* ip range.
*
*/
class IPRule {
/**
* Create a IPRule.
* @member {string} value An IPv4 address range in CIDR notation, such as
* '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that
* start with 124.56.78).
*/
constructor() {
}

/**
* Defines the metadata of IPRule
*
* @returns {object} metadata of IPRule
*
*/
mapper() {
return {
required: false,
serializedName: 'IPRule',
type: {
name: 'Composite',
className: 'IPRule',
modelProperties: {
value: {
required: true,
serializedName: 'value',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = IPRule;
Loading