Skip to content

Commit

Permalink
Generated from 48189ac1b2aa70373ffc8758d37a84a0d20f0cb2
Browse files Browse the repository at this point in the history
update readme for sdk generation (Azure#10636)

* update readme for sdks

* update the remaining readme.md

* fix space
  • Loading branch information
SDK Automation committed Sep 9, 2020
1 parent d670bde commit ad3ba6c
Show file tree
Hide file tree
Showing 16 changed files with 668 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class ContainerServiceClient extends ContainerServiceClientContext {
managedClusters: operations.ManagedClusters;
agentPools: operations.AgentPools;
privateEndpointConnections: operations.PrivateEndpointConnections;
privateLinkResources: operations.PrivateLinkResources;
resolvePrivateLinkServiceId: operations.ResolvePrivateLinkServiceId;

/**
* Initializes a new instance of the ContainerServiceClient class.
Expand All @@ -39,6 +41,8 @@ class ContainerServiceClient extends ContainerServiceClientContext {
this.managedClusters = new operations.ManagedClusters(this);
this.agentPools = new operations.AgentPools(this);
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
this.privateLinkResources = new operations.PrivateLinkResources(this);
this.resolvePrivateLinkServiceId = new operations.ResolvePrivateLinkServiceId(this);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
Expand All @@ -51,10 +51,10 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export {
OpenShiftManagedClusterIdentityProvider,
OpenShiftManagedClusterMasterPoolProfile,
OpenShiftRouterProfile,
PowerState,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkServiceConnectionState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export {
OrchestratorProfile,
OrchestratorVersionProfile,
OrchestratorVersionProfileListResult,
PowerState,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkServiceConnectionState,
Expand Down
154 changes: 153 additions & 1 deletion sdk/containerservice/arm-containerservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,16 @@ export interface AgentPoolUpgradeSettings {
maxSurge?: string;
}

/**
* Describes the Power State of the cluster
*/
export interface PowerState {
/**
* Tells whether the cluster is Running or Stopped. Possible values include: 'Running', 'Stopped'
*/
code?: Code;
}

/**
* Properties for the container service agent pool profile.
*/
Expand Down Expand Up @@ -867,6 +877,12 @@ export interface ManagedClusterAgentPoolProfileProperties {
* specified.
*/
osDiskSizeGB?: number;
/**
* OS disk type to be used for machines in a given agent pool. Allowed values are 'Ephemeral' and
* 'Managed'. Defaults to 'Managed'. May not be changed after creation. Possible values include:
* 'Managed', 'Ephemeral'
*/
osDiskType?: OSDiskType;
/**
* VNet SubnetID specifies the VNet's subnet identifier.
*/
Expand Down Expand Up @@ -919,6 +935,11 @@ export interface ManagedClusterAgentPoolProfileProperties {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly provisioningState?: string;
/**
* Describes whether the Agent Pool is Running or Stopped
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly powerState?: PowerState;
/**
* Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType.
*/
Expand Down Expand Up @@ -1030,6 +1051,12 @@ export interface AgentPool extends SubResource {
* specified.
*/
osDiskSizeGB?: number;
/**
* OS disk type to be used for machines in a given agent pool. Allowed values are 'Ephemeral' and
* 'Managed'. Defaults to 'Managed'. May not be changed after creation. Possible values include:
* 'Managed', 'Ephemeral'
*/
osDiskType?: OSDiskType;
/**
* VNet SubnetID specifies the VNet's subnet identifier.
*/
Expand Down Expand Up @@ -1082,6 +1109,11 @@ export interface AgentPool extends SubResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly provisioningState?: string;
/**
* Describes whether the Agent Pool is Running or Stopped
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly powerState?: PowerState;
/**
* Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType.
*/
Expand Down Expand Up @@ -1356,14 +1388,24 @@ export interface ManagedClusterAADProfile {
*/
export interface ManagedClusterPropertiesAutoScalerProfile {
balanceSimilarNodeGroups?: string;
/**
* Possible values include: 'least-waste', 'most-pods', 'random'
*/
expander?: Expander;
maxEmptyBulkDelete?: string;
maxGracefulTerminationSec?: string;
maxTotalUnreadyPercentage?: string;
newPodScaleUpDelay?: string;
okTotalUnreadyCount?: string;
scanInterval?: string;
scaleDownDelayAfterAdd?: string;
scaleDownDelayAfterDelete?: string;
scaleDownDelayAfterFailure?: string;
scaleDownUnneededTime?: string;
scaleDownUnreadyTime?: string;
scaleDownUtilizationThreshold?: string;
maxGracefulTerminationSec?: string;
skipNodesWithLocalStorage?: string;
skipNodesWithSystemPods?: string;
}

/**
Expand Down Expand Up @@ -1456,6 +1498,11 @@ export interface ManagedCluster extends Resource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly provisioningState?: string;
/**
* Represents the Power State of the cluster
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly powerState?: PowerState;
/**
* The max number of agent pools for the managed cluster.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand Down Expand Up @@ -1816,6 +1863,47 @@ export interface PrivateEndpointConnectionListResult {
value?: PrivateEndpointConnection[];
}

/**
* A private link resource
*/
export interface PrivateLinkResource {
/**
* The ID of the private link resource.
*/
id?: string;
/**
* The name of the private link resource.
*/
name?: string;
/**
* The resource type.
*/
type?: string;
/**
* The group ID of the resource.
*/
groupId?: string;
/**
* RequiredMembers of the resource
*/
requiredMembers?: string[];
/**
* The private link service ID of the resource, this field is exposed only to NRP internally.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly privateLinkServiceID?: string;
}

/**
* A list of private link resources
*/
export interface PrivateLinkResourcesListResult {
/**
* The collection value.
*/
value?: PrivateLinkResource[];
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1985,6 +2073,14 @@ export type ContainerServiceVMSizeTypes = 'Standard_A1' | 'Standard_A10' | 'Stan
*/
export type ContainerServiceOrchestratorTypes = 'Kubernetes' | 'Swarm' | 'DCOS' | 'DockerCE' | 'Custom';

/**
* Defines values for OSDiskType.
* Possible values include: 'Managed', 'Ephemeral'
* @readonly
* @enum {string}
*/
export type OSDiskType = 'Managed' | 'Ephemeral';

/**
* Defines values for AgentPoolType.
* Possible values include: 'VirtualMachineScaleSets', 'AvailabilitySet'
Expand All @@ -2001,6 +2097,14 @@ export type AgentPoolType = 'VirtualMachineScaleSets' | 'AvailabilitySet';
*/
export type AgentPoolMode = 'System' | 'User';

/**
* Defines values for Code.
* Possible values include: 'Running', 'Stopped'
* @readonly
* @enum {string}
*/
export type Code = 'Running' | 'Stopped';

/**
* Defines values for ScaleSetPriority.
* Possible values include: 'Spot', 'Regular'
Expand Down Expand Up @@ -2065,6 +2169,14 @@ export type OutboundType = 'loadBalancer' | 'userDefinedRouting';
*/
export type LoadBalancerSku = 'standard' | 'basic';

/**
* Defines values for Expander.
* Possible values include: 'least-waste', 'most-pods', 'random'
* @readonly
* @enum {string}
*/
export type Expander = 'least-waste' | 'most-pods' | 'random';

/**
* Defines values for ResourceIdentityType.
* Possible values include: 'SystemAssigned', 'UserAssigned', 'None'
Expand Down Expand Up @@ -2984,3 +3096,43 @@ export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnection
parsedBody: PrivateEndpointConnection;
};
};

/**
* Contains response data for the list operation.
*/
export type PrivateLinkResourcesListResponse = PrivateLinkResourcesListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: PrivateLinkResourcesListResult;
};
};

/**
* Contains response data for the pOST operation.
*/
export type ResolvePrivateLinkServiceIdPOSTResponse = PrivateLinkResource & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: PrivateLinkResource;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export {
OpenShiftManagedClusterIdentityProvider,
OpenShiftManagedClusterMasterPoolProfile,
OpenShiftRouterProfile,
PowerState,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkServiceConnectionState,
Expand Down
Loading

0 comments on commit ad3ba6c

Please sign in to comment.