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 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2848 from Azure/restapi_auto_containerservices/re…
…source-manager [AutoPR] containerservices/resource-manager
- Loading branch information
Showing
18 changed files
with
1,838 additions
and
370 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 |
---|---|---|
@@ -1,21 +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. | ||
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. |
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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
--- | ||
uid: azure-arm-containerservice | ||
summary: *content | ||
|
||
--- | ||
# Microsoft Azure SDK for Node.js - ContainerServiceClient | ||
This project provides a Node.js package for accessing Azure. Right now it supports: | ||
- **Node.js version 6.x.x or higher** | ||
|
||
## Features | ||
|
||
|
||
## How to Install | ||
|
||
```bash | ||
npm install azure-arm-containerservice | ||
``` | ||
|
||
## How to use | ||
|
||
### Authentication, client creation and list containerServices as an example. | ||
|
||
```javascript | ||
const msRestAzure = require("ms-rest-azure"); | ||
const ContainerServiceClient = require("azure-arm-containerservice"); | ||
msRestAzure.interactiveLogin().then((creds) => { | ||
const subscriptionId = "<Subscription_Id>"; | ||
const client = new ContainerServiceClient(creds, subscriptionId); | ||
return client.containerServices.list().then((result) => { | ||
console.log("The result is:"); | ||
console.log(result); | ||
}); | ||
}).catch((err) => { | ||
console.log('An error occurred:'); | ||
console.dir(err, {depth: null, colors: true}); | ||
}); | ||
|
||
## Related projects | ||
|
||
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) | ||
--- | ||
uid: azure-arm-containerservice | ||
summary: *content | ||
|
||
--- | ||
# Microsoft Azure SDK for Node.js - ContainerServiceClient | ||
This project provides a Node.js package for accessing Azure. Right now it supports: | ||
- **Node.js version 6.x.x or higher** | ||
|
||
## Features | ||
|
||
|
||
## How to Install | ||
|
||
```bash | ||
npm install azure-arm-containerservice | ||
``` | ||
|
||
## How to use | ||
|
||
### Authentication, client creation and list containerServices as an example. | ||
|
||
```javascript | ||
const msRestAzure = require("ms-rest-azure"); | ||
const ContainerServiceClient = require("azure-arm-containerservice"); | ||
msRestAzure.interactiveLogin().then((creds) => { | ||
const subscriptionId = "<Subscription_Id>"; | ||
const client = new ContainerServiceClient(creds, subscriptionId); | ||
return client.containerServices.list().then((result) => { | ||
console.log("The result is:"); | ||
console.log(result); | ||
}); | ||
}).catch((err) => { | ||
console.log('An error occurred:'); | ||
console.dir(err, {depth: null, colors: true}); | ||
}); | ||
|
||
## Related projects | ||
|
||
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) |
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
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
60 changes: 60 additions & 0 deletions
60
lib/services/containerservicesManagement/lib/models/computeOperationListResult.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,60 @@ | ||
/* | ||
* 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 List Compute Operation operation response. | ||
*/ | ||
class ComputeOperationListResult extends Array { | ||
/** | ||
* Create a ComputeOperationListResult. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of ComputeOperationListResult | ||
* | ||
* @returns {object} metadata of ComputeOperationListResult | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ComputeOperationListResult', | ||
type: { | ||
name: 'Composite', | ||
className: 'ComputeOperationListResult', | ||
modelProperties: { | ||
value: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: '', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'ComputeOperationValueElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'ComputeOperationValue' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ComputeOperationListResult; |
99 changes: 99 additions & 0 deletions
99
lib/services/containerservicesManagement/lib/models/computeOperationValue.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,99 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* Describes the properties of a Compute Operation value. | ||
* | ||
*/ | ||
class ComputeOperationValue { | ||
/** | ||
* Create a ComputeOperationValue. | ||
* @member {string} [origin] The origin of the compute operation. | ||
* @member {string} [name] The name of the compute operation. | ||
* @member {string} [operation] The display name of the compute operation. | ||
* @member {string} [resource] The display name of the resource the operation | ||
* applies to. | ||
* @member {string} [description] The description of the operation. | ||
* @member {string} [provider] The resource provider for the operation. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of ComputeOperationValue | ||
* | ||
* @returns {object} metadata of ComputeOperationValue | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ComputeOperationValue', | ||
type: { | ||
name: 'Composite', | ||
className: 'ComputeOperationValue', | ||
modelProperties: { | ||
origin: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'origin', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
name: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
operation: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'display.operation', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
resource: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'display.resource', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
description: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'display.description', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
provider: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'display.provider', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ComputeOperationValue; |
62 changes: 62 additions & 0 deletions
62
lib/services/containerservicesManagement/lib/models/credentialResult.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,62 @@ | ||
/* | ||
* 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 credential result response. | ||
* | ||
*/ | ||
class CredentialResult { | ||
/** | ||
* Create a CredentialResult. | ||
* @member {string} [name] The name of the credential. | ||
* @member {string} [value] The value of the credential. | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of CredentialResult | ||
* | ||
* @returns {object} metadata of CredentialResult | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'CredentialResult', | ||
type: { | ||
name: 'Composite', | ||
className: 'CredentialResult', | ||
modelProperties: { | ||
name: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
value: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'value', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = CredentialResult; |
Oops, something went wrong.