This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR containerinstance/resource-manager] Adding April Swagger For …
…GA (#2604) * Generated from 3f1cb3ecea72fb963c8c89dcce5a4a3fe378e878 Adding GA Swagger * Generated from ab364c6f9db63bf093fc85506577245a35f1fbb4 Moving read only to property level
- Loading branch information
1 parent
4a0e750
commit 2ea8044
Showing
43 changed files
with
8,039 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
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. |
66 changes: 66 additions & 0 deletions
66
lib/services/containerinstanceManagement/lib/lib/containerInstanceManagementClient.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import { ServiceClientCredentials } from 'ms-rest'; | ||
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; | ||
import * as models from "./models"; | ||
import * as operations from "./operations"; | ||
|
||
export default class ContainerInstanceManagementClient extends AzureServiceClient { | ||
/** | ||
* Initializes a new instance of the ContainerInstanceManagementClient class. | ||
* @constructor | ||
* | ||
* @class | ||
* @param {credentials} credentials - Credentials needed for the client to connect to Azure. | ||
* | ||
* @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 | ||
* | ||
* @param {object} [options.requestOptions] - Options for the underlying request object | ||
* {@link https://github.com/request/request#requestoptions-callback Options doc} | ||
* | ||
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy | ||
* | ||
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. | ||
* | ||
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. | ||
* | ||
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. | ||
* | ||
*/ | ||
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); | ||
|
||
credentials: ServiceClientCredentials; | ||
|
||
subscriptionId: string; | ||
|
||
apiVersion: string; | ||
|
||
acceptLanguage: string; | ||
|
||
longRunningOperationRetryTimeout: number; | ||
|
||
generateClientRequestId: boolean; | ||
|
||
// Operation groups | ||
containerGroups: operations.ContainerGroups; | ||
operations: operations.Operations; | ||
containerGroupUsage: operations.ContainerGroupUsage; | ||
containerLogs: operations.ContainerLogs; | ||
startContainer: operations.StartContainer; | ||
} | ||
|
||
export { ContainerInstanceManagementClient, models as ContainerInstanceManagementModels }; |
89 changes: 89 additions & 0 deletions
89
lib/services/containerinstanceManagement/lib/lib/containerInstanceManagementClient.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
/* jshint latedef:false */ | ||
/* jshint forin:false */ | ||
/* jshint noempty:false */ | ||
|
||
'use strict'; | ||
|
||
const msRest = require('ms-rest'); | ||
const msRestAzure = require('ms-rest-azure'); | ||
const ServiceClient = msRestAzure.AzureServiceClient; | ||
|
||
const models = require('./models'); | ||
const operations = require('./operations'); | ||
|
||
|
||
/** Class representing a ContainerInstanceManagementClient. */ | ||
class ContainerInstanceManagementClient extends ServiceClient { | ||
/** | ||
* Create a ContainerInstanceManagementClient. | ||
* @param {credentials} credentials - Credentials needed for the client to connect to Azure. | ||
* @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 | ||
* @param {object} [options.requestOptions] - Options for the underlying request object | ||
* {@link https://github.com/request/request#requestoptions-callback Options doc} | ||
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy | ||
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. | ||
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. | ||
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. | ||
*/ | ||
constructor(credentials, subscriptionId, baseUri, options) { | ||
if (credentials === null || credentials === undefined) { | ||
throw new Error('\'credentials\' cannot be null.'); | ||
} | ||
if (subscriptionId === null || subscriptionId === undefined) { | ||
throw new Error('\'subscriptionId\' cannot be null.'); | ||
} | ||
|
||
if (!options) options = {}; | ||
|
||
super(credentials, options); | ||
|
||
this.apiVersion = '2018-04-01'; | ||
this.acceptLanguage = 'en-US'; | ||
this.longRunningOperationRetryTimeout = 30; | ||
this.generateClientRequestId = true; | ||
this.baseUri = baseUri; | ||
if (!this.baseUri) { | ||
this.baseUri = 'https://management.azure.com'; | ||
} | ||
this.credentials = credentials; | ||
this.subscriptionId = subscriptionId; | ||
|
||
let packageInfo = this.getPackageJsonInfo(__dirname); | ||
this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`); | ||
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { | ||
this.acceptLanguage = options.acceptLanguage; | ||
} | ||
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { | ||
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; | ||
} | ||
if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { | ||
this.generateClientRequestId = options.generateClientRequestId; | ||
} | ||
this.containerGroups = new operations.ContainerGroups(this); | ||
this.operations = new operations.Operations(this); | ||
this.containerGroupUsage = new operations.ContainerGroupUsage(this); | ||
this.containerLogs = new operations.ContainerLogs(this); | ||
this.startContainer = new operations.StartContainer(this); | ||
this.models = models; | ||
msRest.addSerializationMixin(this); | ||
} | ||
|
||
} | ||
|
||
module.exports = ContainerInstanceManagementClient; | ||
module.exports['default'] = ContainerInstanceManagementClient; | ||
module.exports.ContainerInstanceManagementClient = ContainerInstanceManagementClient; | ||
module.exports.ContainerInstanceManagementModels = models; |
81 changes: 81 additions & 0 deletions
81
lib/services/containerinstanceManagement/lib/lib/models/azureFileVolume.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* | ||
* 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 properties of the Azure File volume. Azure File shares are mounted as | ||
* volumes. | ||
* | ||
*/ | ||
class AzureFileVolume { | ||
/** | ||
* Create a AzureFileVolume. | ||
* @member {string} shareName The name of the Azure File share to be mounted | ||
* as a volume. | ||
* @member {boolean} [readOnly] The flag indicating whether the Azure File | ||
* shared mounted as a volume is read-only. | ||
* @member {string} storageAccountName The name of the storage account that | ||
* contains the Azure File share. | ||
* @member {string} [storageAccountKey] The storage account access key used | ||
* to access the Azure File share. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of AzureFileVolume | ||
* | ||
* @returns {object} metadata of AzureFileVolume | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'AzureFileVolume', | ||
type: { | ||
name: 'Composite', | ||
className: 'AzureFileVolume', | ||
modelProperties: { | ||
shareName: { | ||
required: true, | ||
serializedName: 'shareName', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
readOnly: { | ||
required: false, | ||
serializedName: 'readOnly', | ||
type: { | ||
name: 'Boolean' | ||
} | ||
}, | ||
storageAccountName: { | ||
required: true, | ||
serializedName: 'storageAccountName', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
storageAccountKey: { | ||
required: false, | ||
serializedName: 'storageAccountKey', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AzureFileVolume; |
Oops, something went wrong.