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
6 changes: 2 additions & 4 deletions lib/services/containerservicesManagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@ npm install azure-arm-containerservice

## How to use

### Authentication, client creation and get openShiftManagedClusters as an example.
### Authentication, client creation and list openShiftManagedClusters 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);
const resourceGroupName = "testresourceGroupName";
const resourceName = "testresourceName";
return client.openShiftManagedClusters.get(resourceGroupName, resourceName).then((result) => {
return client.openShiftManagedClusters.list().then((result) => {
console.log("The result is:");
console.log(result);
});
Expand Down
47 changes: 41 additions & 6 deletions lib/services/containerservicesManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,17 @@ export interface NetworkProfile {
* @member {string} [name] Unique name of the master pool profile in the
* context of the subscription and resource group.
* @member {number} count Number of masters (VMs) to host docker containers.
* The default value is 3. Default value: 3 .
* The default value is 3.
* @member {string} vmSize Size of agent VMs. Possible values include:
* 'Standard_D2s_v3', 'Standard_D4s_v3'
* 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3',
* 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_DS4_v2',
* 'Standard_DS5_v2', 'Standard_F8s_v2', 'Standard_F16s_v2',
* 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s',
* 'Standard_F16s', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3',
* 'Standard_E20s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2',
* 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2',
* 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s',
* 'Standard_L8s', 'Standard_L16s', 'Standard_L32s'
* @member {string} [subnetCidr] Subnet CIDR for the peering.
* @member {string} [osType] OsType to be used to specify os type. Choose from
* Linux and Windows. Default to Linux. Possible values include: 'Linux',
Expand All @@ -123,10 +131,16 @@ export interface OpenShiftManagedClusterMasterPoolProfile {
* @member {string} name Unique name of the pool profile in the context of the
* subscription and resource group.
* @member {number} count Number of agents (VMs) to host docker containers.
* Allowed values must be in the range of 1 to 5 (inclusive). The default value
* is 2. . Default value: 2 .
* @member {string} vmSize Size of agent VMs. Possible values include:
* 'Standard_D2s_v3', 'Standard_D4s_v3'
* 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', 'Standard_D16s_v3',
* 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_DS4_v2',
* 'Standard_DS5_v2', 'Standard_F8s_v2', 'Standard_F16s_v2',
* 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s',
* 'Standard_F16s', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3',
* 'Standard_E20s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2',
* 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2',
* 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s',
* 'Standard_L8s', 'Standard_L16s', 'Standard_L32s'
* @member {string} [subnetCidr] Subnet CIDR for the peering. Default value:
* '10.0.0.0/24' .
* @member {string} [osType] OsType to be used to specify os type. Choose from
Expand Down Expand Up @@ -216,7 +230,15 @@ export interface OpenShiftManagedClusterAuthProfile {
* @member {number} [masterPoolProfile.count] Number of masters (VMs) to host
* docker containers. The default value is 3.
* @member {string} [masterPoolProfile.vmSize] Size of agent VMs. Possible
* values include: 'Standard_D2s_v3', 'Standard_D4s_v3'
* values include: 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3',
* 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3',
* 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2', 'Standard_F16s_v2',
* 'Standard_F32s_v2', 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s',
* 'Standard_F16s', 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3',
* 'Standard_E20s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2',
* 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2',
* 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s',
* 'Standard_L8s', 'Standard_L16s', 'Standard_L32s'
* @member {string} [masterPoolProfile.subnetCidr] Subnet CIDR for the peering.
* @member {string} [masterPoolProfile.osType] OsType to be used to specify os
* type. Choose from Linux and Windows. Default to Linux. Possible values
Expand Down Expand Up @@ -1162,6 +1184,19 @@ export interface OrchestratorVersionProfileListResult {
}


/**
* @class
* Initializes a new instance of the OpenShiftManagedClusterListResult class.
* @constructor
* The response from the List OpenShift Managed Clusters operation.
*
* @member {string} [nextLink] The URL to get the next set of OpenShift managed
* cluster results.
*/
export interface OpenShiftManagedClusterListResult extends Array<OpenShiftManagedCluster> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the ContainerServiceListResult class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ exports.CredentialResult = require('./credentialResult');
exports.CredentialResults = require('./credentialResults');
exports.OrchestratorVersionProfile = require('./orchestratorVersionProfile');
exports.OrchestratorVersionProfileListResult = require('./orchestratorVersionProfileListResult');
exports.OpenShiftManagedClusterListResult = require('./openShiftManagedClusterListResult');
exports.ContainerServiceListResult = require('./containerServiceListResult');
exports.OperationListResult = require('./operationListResult');
exports.ManagedClusterListResult = require('./managedClusterListResult');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,16 @@ class OpenShiftManagedCluster extends models['Resource'] {
* @member {number} [masterPoolProfile.count] Number of masters (VMs) to host
* docker containers. The default value is 3.
* @member {string} [masterPoolProfile.vmSize] Size of agent VMs. Possible
* values include: 'Standard_D2s_v3', 'Standard_D4s_v3'
* values include: 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3',
* 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3',
* 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2',
* 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2',
* 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3',
* 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3',
* 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3',
* 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2',
* 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s',
* 'Standard_L16s', 'Standard_L32s'
* @member {string} [masterPoolProfile.subnetCidr] Subnet CIDR for the
* peering.
* @member {string} [masterPoolProfile.osType] OsType to be used to specify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,17 @@ class OpenShiftManagedClusterAgentPoolProfile {
* @member {string} name Unique name of the pool profile in the context of
* the subscription and resource group.
* @member {number} count Number of agents (VMs) to host docker containers.
* Allowed values must be in the range of 1 to 5 (inclusive). The default
* value is 2. . Default value: 2 .
* @member {string} vmSize Size of agent VMs. Possible values include:
* 'Standard_D2s_v3', 'Standard_D4s_v3'
* 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3',
* 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3',
* 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2',
* 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2',
* 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3',
* 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3',
* 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3',
* 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2',
* 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s',
* 'Standard_L16s', 'Standard_L32s'
* @member {string} [subnetCidr] Subnet CIDR for the peering. Default value:
* '10.0.0.0/24' .
* @member {string} [osType] OsType to be used to specify os type. Choose
Expand Down Expand Up @@ -59,11 +66,6 @@ class OpenShiftManagedClusterAgentPoolProfile {
count: {
required: true,
serializedName: 'count',
defaultValue: 2,
constraints: {
InclusiveMaximum: 5,
InclusiveMinimum: 1
},
type: {
name: 'Number'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* 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 response from the List OpenShift Managed Clusters operation.
*/
class OpenShiftManagedClusterListResult extends Array {
/**
* Create a OpenShiftManagedClusterListResult.
* @member {string} [nextLink] The URL to get the next set of OpenShift
* managed cluster results.
*/
constructor() {
super();
}

/**
* Defines the metadata of OpenShiftManagedClusterListResult
*
* @returns {object} metadata of OpenShiftManagedClusterListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'OpenShiftManagedClusterListResult',
type: {
name: 'Composite',
className: 'OpenShiftManagedClusterListResult',
modelProperties: {
value: {
required: false,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'OpenShiftManagedClusterElementType',
type: {
name: 'Composite',
className: 'OpenShiftManagedCluster'
}
}
}
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = OpenShiftManagedClusterListResult;
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,18 @@ class OpenShiftManagedClusterMasterPoolProfile {
* @member {string} [name] Unique name of the master pool profile in the
* context of the subscription and resource group.
* @member {number} count Number of masters (VMs) to host docker containers.
* The default value is 3. Default value: 3 .
* The default value is 3.
* @member {string} vmSize Size of agent VMs. Possible values include:
* 'Standard_D2s_v3', 'Standard_D4s_v3'
* 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3',
* 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3',
* 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2',
* 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2',
* 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3',
* 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3',
* 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3',
* 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2',
* 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s',
* 'Standard_L16s', 'Standard_L32s'
* @member {string} [subnetCidr] Subnet CIDR for the peering.
* @member {string} [osType] OsType to be used to specify os type. Choose
* from Linux and Windows. Default to Linux. Possible values include:
Expand Down Expand Up @@ -56,11 +65,6 @@ class OpenShiftManagedClusterMasterPoolProfile {
count: {
required: true,
serializedName: 'count',
defaultValue: 3,
constraints: {
InclusiveMaximum: 10,
InclusiveMinimum: 1
},
type: {
name: 'Number'
}
Expand Down
Loading